/* ================================
   VARIÁVEIS & RESET
================================ */
/* --- TEMA ESCURO (padrão) --- */
:root {
    --bg: #0f172a;
    --bg-2: #1e293b;
    --bg-3: #334155;
    --surface: #1e293b;
    --surface-hover: #263449;
    --border: #334155;
    --border-light: #475569;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --primary: #6366f1;
    --primary-hover: #5558e3;
    --primary-soft: rgba(99, 102, 241, 0.15);

    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    --warning: #f59e0b;

    --prio-low: #10b981;
    --prio-medium: #3b82f6;
    --prio-high: #f59e0b;
    --prio-urgent: #ef4444;

    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);

    /* Cores das colunas — detectadas por tipo */
    --col-todo: #94a3b8;
    --col-doing: #3b82f6;
    --col-review: #f59e0b;
    --col-done: #10b981;
}

/* --- TEMA CLARO --- */
[data-theme="light"] {
    --bg: #f1f5f9;
    --bg-2: #ffffff;
    --bg-3: #e2e8f0;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --primary: #6366f1;
    --primary-hover: #5558e3;
    --primary-soft: rgba(99, 102, 241, 0.1);

    --shadow: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.06);
    --shadow-lg: 0 10px 25px -5px rgba(15,23,42,0.15), 0 8px 10px -6px rgba(15,23,42,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ================================
   LOGIN
================================ */
.login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f172a 55%);
    padding: 20px;
}

.login-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 36px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.04) inset;
    text-align: center;
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login-logo-img {
    max-height: 64px;
    max-width: 220px;
    object-fit: contain;
    background: white;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
}

.login-logo-fallback {
    width: 72px;
    height: 72px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 18px;
    align-items: center;
    justify-content: center;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 13px;
    line-height: 1.5;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-left: 2px;
}

.login-field input {
    padding: 11px 14px !important;
    font-size: 14px !important;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    transition: border 0.15s, background 0.15s, box-shadow 0.15s !important;
}

.login-field input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.login-submit {
    margin-top: 6px;
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.05s;
}

.login-submit:hover {
    background: var(--primary-hover);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-submit svg {
    transition: transform 0.2s;
}

.login-submit:hover svg {
    transform: translateX(2px);
}

.login-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 14px;
    min-height: 18px;
    text-align: center;
}

/* ================================
   HEADER
================================ */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 16px;
    flex-shrink: 0;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    padding-right: 8px;
    border-right: 1px solid var(--border);
    margin-right: 4px;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Seletor de projetos */
.project-selector {
    position: relative;
}

.project-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    min-width: 200px;
}

.project-current:hover { background: var(--bg-2); border-color: var(--border-light); }

.project-icon {
    font-size: 16px;
    line-height: 1;
}

.project-name {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 260px;
    z-index: 50;
    overflow: hidden;
    animation: dropdownIn 0.15s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}

.project-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
}

.project-option:hover { background: var(--surface-hover); }

.project-option.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 500;
}

.project-option-icon { font-size: 16px; }

.project-color-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: auto;
}

.project-dropdown-footer {
    border-top: 1px solid var(--border);
    padding: 4px;
    display: flex;
    flex-direction: column;
}

.project-dropdown-footer button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    text-align: left;
    border-radius: var(--radius);
}

.project-dropdown-footer button:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrap svg {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-wrap input {
    padding-left: 34px !important;
    width: 240px;
}

.filter-wrap { display: flex; gap: 8px; }
.filter-wrap select { min-width: 140px; }

/* ================================
   INPUTS & BOTÕES
================================ */
input[type="text"], input[type="password"], input[type="date"], input[type="email"], input[type="number"], input[type="search"], textarea, select {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border 0.15s, background 0.15s;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    background: var(--bg-2);
}

textarea { resize: vertical; }

button {
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    border: none;
    border-radius: var(--radius);
    transition: background 0.15s, transform 0.05s;
}

button:active { transform: translateY(1px); }

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 9px 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 9px 14px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-ghost:hover { color: var(--text); background: var(--surface-hover); }

.btn-sm { padding: 6px 10px; font-size: 12px; }

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 9px 14px;
}

.btn-danger:hover { background: var(--danger-hover); }

.btn-icon {
    background: transparent;
    color: var(--text-muted);
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover { color: var(--text); background: var(--surface-hover); }

/* ================================
   BOARD
================================ */
.board {
    flex: 1;
    display: flex;
    gap: 16px;
    padding: 20px;
    overflow-x: auto;
    overflow-y: hidden;
}

.column {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-height: 100%;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--bg);
    border-radius: 11px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.column-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.column-body.drag-over { background: var(--primary-soft); }

.empty-board {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 12px;
}

.empty-board h3 { color: var(--text); font-weight: 500; }

/* ================================
   CARDS
================================ */
.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    cursor: grab;
    transition: border 0.15s, transform 0.1s, box-shadow 0.15s;
    border-left: 3px solid var(--prio-medium);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.card.dragging { opacity: 0.5; cursor: grabbing; }

.card[data-priority="low"]    { border-left-color: var(--prio-low); }
.card[data-priority="medium"] { border-left-color: var(--prio-medium); }
.card[data-priority="high"]   { border-left-color: var(--prio-high); }
.card[data-priority="urgent"] { border-left-color: var(--prio-urgent); }

.card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.card-tag {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 11px;
}

.card-meta-item { display: inline-flex; align-items: center; gap: 3px; }
.card-meta-item.overdue { color: var(--danger); font-weight: 600; }
.card-meta-item.due-soon { color: var(--warning); }

.assignees { display: flex; align-items: center; }

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid var(--bg-2);
    text-transform: uppercase;
}

.avatar + .avatar { margin-left: -8px; }

/* ================================
   MODAIS
================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

.task-modal        { max-width: 640px; }
.users-modal       { max-width: 480px; }
.projects-modal    { max-width: 520px; }
.project-edit-modal{ max-width: 520px; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h2 { font-size: 16px; font-weight: 600; }
.modal-body { padding: 20px; overflow-y: auto; }

.modal-footer {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    gap: 10px;
    flex-shrink: 0;
}

.footer-spacer { flex: 1; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.form-row-2 {
    grid-template-columns: 80px 1fr;
}

.icon-input {
    text-align: center;
    font-size: 18px !important;
}

/* Color picker */
.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.1s, border-color 0.15s;
}

.color-swatch:hover { transform: scale(1.1); }
.color-swatch.selected { border-color: var(--text); }

/* Columns editor */
.columns-editor {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.column-editor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 8px;
}

.column-editor-row .drag-handle {
    color: var(--text-dim);
    cursor: grab;
    padding: 2px;
    user-select: none;
}

.column-editor-row .drag-handle:active { cursor: grabbing; }

.column-editor-row.col-dragging {
    opacity: 0.55;
    border-color: var(--accent, #0891b2);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.column-editor-row input {
    border: none;
    background: transparent;
    padding: 4px 0;
}

.column-editor-row input:focus { background: transparent; }

.column-editor-row .btn-icon { padding: 4px; }

/* Chip picker (donos) */
.chip-picker { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.chip:hover { border-color: var(--border-light); }

.chip.selected {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.chip .avatar { width: 18px; height: 18px; font-size: 9px; border: none; }

/* Tags */
.tags-input-wrap { display: flex; flex-direction: column; gap: 8px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag-chip button {
    background: transparent;
    color: inherit;
    padding: 0;
    line-height: 1;
    font-size: 14px;
    opacity: 0.6;
}

.tag-chip button:hover { opacity: 1; }

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    margin-top: 8px;
}

.tab-btn {
    padding: 10px 16px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Comentários */
.comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.comment {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 10px 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.comment-author { font-weight: 600; font-size: 12px; }
.comment-time { font-size: 11px; color: var(--text-dim); }

.comment-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-delete {
    margin-top: 4px;
    background: transparent;
    color: var(--text-dim);
    font-size: 11px;
    padding: 2px 4px;
}

.comment-delete:hover { color: var(--danger); }

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.small-input { font-size: 12px !important; }

/* Histórico */
.history-list { display: flex; flex-direction: column; gap: 8px; }

.history-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}

.history-item:last-child { border-bottom: none; }

.history-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.history-dot.created { background: var(--success); }
.history-dot.moved   { background: var(--primary); }
.history-dot.updated { background: var(--warning); }
.history-dot.deleted { background: var(--danger); }
.history-dot.comment { background: var(--text-muted); }

.history-main { flex: 1; }
.history-action { color: var(--text); line-height: 1.4; }
.history-time { color: var(--text-dim); font-size: 11px; margin-top: 2px; }

/* Lista de usuários e projetos */
.user-add, .project-add-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.users-list, .projects-mgmt-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-item, .project-mgmt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.user-item .avatar { width: 32px; height: 32px; font-size: 12px; border: none; }

.user-name, .project-mgmt-name { flex: 1; font-weight: 500; }

.project-mgmt-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.project-mgmt-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 10px;
}

.empty-hint {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 8px;
}

/* Empty state */
.column-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    margin: 8px 0;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.25s;
    z-index: 200;
    font-size: 13px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.success { border-color: var(--success); color: var(--success); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* Responsivo */
@media (max-width: 900px) {
    .search-wrap input { width: 160px; }
    .filter-wrap select { min-width: 110px; }
}

@media (max-width: 768px) {
    .header { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
    .header-left { flex: 1; flex-wrap: wrap; }
    .logo { border-right: none; padding-right: 0; }
    .project-current { min-width: 140px; }
    .search-wrap input { width: 140px; }
    .filter-wrap { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 60px 1fr; }
    .column { flex: 0 0 85vw; }
}

/* ================================
   ANEXOS
================================ */
.tab-badge {
    display: inline-block;
    background: var(--bg-3);
    color: var(--text-muted);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    min-width: 18px;
    text-align: center;
}

.tab-btn.active .tab-badge {
    background: var(--primary-soft);
    color: var(--primary);
}

.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg);
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
    margin-bottom: 14px;
}

.dropzone:hover {
    border-color: var(--border-light);
    background: var(--bg-2);
}

.dropzone.drag-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dropzone-inner p {
    font-size: 13px;
    line-height: 1.5;
}

.dropzone-inner strong { color: var(--text); }

.link-inline {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.dropzone-hint {
    font-size: 11px;
    color: var(--text-dim);
}

.dropzone-hint-bottom {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.attachments-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.attachment-item {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border 0.15s, transform 0.1s;
}

.attachment-item:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.attachment-thumb {
    width: 100%;
    height: 110px;
    background: var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.attachment-thumb-icon {
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.attachment-thumb-icon .ext-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.attachment-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.attachment-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.attachment-meta {
    font-size: 10px;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attachment-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.attachment-item:hover .attachment-actions {
    opacity: 1;
}

.attachment-action-btn {
    width: 26px;
    height: 26px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.attachment-action-btn:hover {
    background: rgba(15, 23, 42, 0.95);
}

.attachment-action-btn.delete:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.attachment-uploading {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    color: var(--text);
    z-index: 2;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.attachments-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    padding: 12px;
}

/* Indicador no card */
.card-meta-item.attachments { color: var(--text-muted); }

/* Paste global fica visível */
.paste-indicator {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s;
    z-index: 250;
}

.paste-indicator.show {
    transform: translateX(-50%) translateY(0);
}

/* ================================
   MODAL DE PREVIEW DE IMAGEM
================================ */
.image-preview-modal {
    padding: 0;
}

.image-preview-modal .modal-overlay {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}

#imagePreviewImg {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: imgIn 0.2s ease;
}

@keyframes imgIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    backdrop-filter: blur(6px);
    z-index: 10;
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.image-preview-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(6px);
    max-width: 80vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================
   NOVO HEADER HERO
================================ */
.header-hero {
    padding: 14px 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.hero-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.hero-title-wrap { min-width: 0; }

.hero-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-hero-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    color: #34d399;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s;
}

.sync-indicator.saving {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.sync-indicator.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ================================
   BARRA DE ESTATÍSTICAS
================================ */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 24px;
    flex-wrap: wrap;
}

.stats-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-total {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-right: 20px;
    border-right: 1px solid var(--border);
}

.stat-total-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-total-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-by-column {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.stat-col {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.stat-col-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    flex-shrink: 0;
}

.stat-col-num {
    font-weight: 700;
    color: var(--text);
    font-size: 13px;
}

.stats-right { min-width: 260px; flex: 1; max-width: 400px; }

.progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.progress-label strong {
    color: var(--text);
    font-weight: 700;
}

.progress-bar {
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #10b981 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ================================
   BARRA DE CONTROLES
================================ */
.controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

/* ================================
   CHIPS DE FILTRO POR PESSOA
================================ */
.people-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-wrap: nowrap;
}

.people-filter-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 4px;
}

.person-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
}

.person-chip:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.person-chip.active {
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.person-chip .person-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.person-chip.all {
    /* "Todos" tem visual neutro */
}

.person-chip.all.active {
    background: var(--text);
    color: var(--bg);
}

/* ================================
   AJUSTES PARA OS CARDS (datas em PT)
================================ */
.card-meta-item.date-br {
    font-weight: 500;
}

/* Responsivo */
@media (max-width: 900px) {
    .stats-bar { padding: 10px 14px; }
    .stats-right { min-width: 200px; }
    .controls-bar { padding: 10px 14px; }
    .people-filter { padding: 10px 14px; }
    .header-hero { padding: 12px 14px; }
    .hero-title { font-size: 15px; }
    .hero-subtitle { font-size: 11px; }
}

@media (max-width: 640px) {
    .stats-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .stats-right { width: 100%; max-width: none; }
    .header-hero-right .sync-indicator .sync-label { display: none; }
}

/* ================================
   TOGGLE SWITCH (checkbox estilizado)
================================ */
.toggle-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: normal !important;
    color: var(--text) !important;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    transition: transform 0.2s;
}

.toggle-label input:checked + .toggle-switch {
    background: var(--primary);
}

.toggle-label input:checked + .toggle-switch::after {
    transform: translateX(16px);
}

.toggle-text { flex: 1; }
.toggle-text strong {
    display: block;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 2px;
}

.toggle-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ================================
   CAMPOS ICE (no modal)
================================ */
.ice-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.ice-input-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ice-small-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.ice-tip {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.ice-input-item input {
    text-align: center;
    font-size: 16px !important;
    font-weight: 700;
    padding: 9px 6px !important;
}

.ice-score-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 14px;
    min-width: 68px;
    height: 42px;
}

.ice-score-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.ice-score-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.ice-formula {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ================================
   LEGENDA ICE (no topo)
================================ */
.ice-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: rgba(99, 102, 241, 0.06);
    border-bottom: 1px solid var(--border);
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
}

.ice-legend-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ice-legend-title {
    font-weight: 700;
    color: var(--primary);
}

.ice-legend-formula { color: var(--text); }
.ice-legend-formula strong { color: var(--primary); }

.ice-legend-hint {
    color: var(--text-muted);
    font-size: 11px;
}

.ice-legend-right {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ice-faixa {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.ice-faixa.crit { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.ice-faixa.high { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.ice-faixa.med  { background: rgba(234, 179, 8, 0.12);  color: #facc15; }
.ice-faixa.low  { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

/* ================================
   BADGE DE SCORE ICE NO CARD
================================ */
.card-ice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.card-ice-badge.crit { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.card-ice-badge.high { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.card-ice-badge.med  { background: rgba(234, 179, 8, 0.18);  color: #facc15; }
.card-ice-badge.low  { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

.card-ice-breakdown {
    font-size: 10px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ================================
   TOGGLE VISÃO KANBAN/PRIORIDADE
================================ */
.view-toggle-wrap {
    display: inline-flex;
    gap: 2px;
    margin: 12px 24px 0;
    background: var(--surface);
    padding: 3px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    width: fit-content;
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}

.view-toggle-btn:hover { color: var(--text); }

.view-toggle-btn.active {
    background: var(--primary);
    color: white;
}

/* ================================
   VISÃO LISTA (por prioridade)
================================ */
.priority-list {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.priority-list-row {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border 0.15s, transform 0.08s;
    border-left: 3px solid var(--border-light);
}

.priority-list-row:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.priority-list-row[data-ice="crit"] { border-left-color: #ef4444; }
.priority-list-row[data-ice="high"] { border-left-color: #f59e0b; }
.priority-list-row[data-ice="med"]  { border-left-color: #eab308; }
.priority-list-row[data-ice="low"]  { border-left-color: #94a3b8; }

.priority-rank {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

.priority-main {
    min-width: 0;
}

.priority-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.priority-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    align-items: center;
}

.priority-column-chip {
    padding: 1px 8px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.priority-list-row .card-ice-breakdown {
    white-space: nowrap;
}

.priority-list-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Responsivo */
@media (max-width: 900px) {
    .ice-legend { padding: 10px 14px; }
    .view-toggle-wrap { margin: 10px 14px 0; }
    .priority-list { padding: 14px; }
    .priority-list-row { grid-template-columns: 60px 1fr auto auto; }
    .priority-list-row .priority-assignees-col,
    .priority-list-row .priority-column-chip { display: none; }
}

.card[data-ice="crit"] { border-left-color: #ef4444; }
.card[data-ice="high"] { border-left-color: #f59e0b; }
.card[data-ice="med"]  { border-left-color: #eab308; }
.card[data-ice="low"]  { border-left-color: #94a3b8; }

/* ================================
   MODAL DE LOGS
================================ */
.logs-modal { max-width: 820px; }

.logs-body { padding: 0; display: flex; flex-direction: column; }

.logs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.logs-filters .small-input {
    flex: 0 0 auto;
    min-width: 110px;
    max-width: 180px;
    font-size: 12px !important;
}

.logs-filters #logsSearch { flex: 1 1 200px; max-width: none; }

.logs-summary {
    padding: 10px 20px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.logs-summary strong { color: var(--text); }

.logs-list {
    overflow-y: auto;
    max-height: 60vh;
    padding: 8px 0;
}

.log-entry {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    align-items: start;
}

.log-entry:last-child { border-bottom: none; }
.log-entry:hover { background: var(--surface-hover); }

.log-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    margin-top: 6px;
}

.log-dot.login_success   { background: #10b981; }
.log-dot.login_fail      { background: #ef4444; }
.log-dot.logout          { background: #94a3b8; }
.log-dot.task_create     { background: #10b981; }
.log-dot.task_update     { background: #f59e0b; }
.log-dot.task_move       { background: #6366f1; }
.log-dot.task_delete     { background: #ef4444; }
.log-dot.comment_add     { background: #94a3b8; }
.log-dot.comment_delete  { background: #ef4444; }
.log-dot.attachment_upload { background: #10b981; }
.log-dot.attachment_delete { background: #ef4444; }
.log-dot.project_create  { background: #8b5cf6; }
.log-dot.project_update  { background: #f59e0b; }
.log-dot.project_delete  { background: #ef4444; }
.log-dot.user_create     { background: #10b981; }
.log-dot.user_delete     { background: #ef4444; }

.log-main {
    min-width: 0;
}

.log-summary-text {
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
}

.log-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 3px;
    flex-wrap: wrap;
}

.log-actor {
    font-weight: 600;
    color: var(--text-muted);
}

.log-time {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    text-align: right;
}

.logs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

.logs-pagination button {
    padding: 6px 12px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
}

.logs-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.logs-pagination-info {
    font-size: 12px;
    color: var(--text-muted);
}

/* Chip de ação na descrição */
.log-action-chip {
    display: inline-block;
    padding: 1px 7px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    margin-right: 6px;
    vertical-align: middle;
}

.person-chip.unassigned {
    border-style: dashed;
    color: var(--text-muted);
    gap: 5px;
}

.person-chip.unassigned:hover {
    border-style: solid;
    color: var(--text);
}

.person-chip.unassigned.active {
    border-style: solid;
    color: white;
}

/* ================================
   USUÁRIOS — modal completo
================================ */
.users-modal-full { max-width: 640px; }
.user-edit-modal { max-width: 560px; }

.users-list-full {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border 0.15s, background 0.15s;
}

.user-row:hover {
    border-color: var(--border-light);
    background: var(--bg-2);
}

.user-row.inactive {
    opacity: 0.5;
}

.user-row-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.user-row-info {
    min-width: 0;
}

.user-row-name {
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-row-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-row-email.no-login {
    color: var(--text-dim);
    font-style: italic;
}

.role-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-badge.admin { background: rgba(99,102,241,0.18); color: #a5b4fc; }
.role-badge.editor { background: rgba(16,185,129,0.18); color: #6ee7b7; }
.role-badge.viewer { background: rgba(148,163,184,0.18); color: #cbd5e1; }
.role-badge.person { background: var(--bg-3); color: var(--text-muted); border: 1px dashed var(--border-light); }

.user-row-you {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-soft);
    padding: 2px 7px;
    border-radius: 8px;
    text-transform: uppercase;
}

.user-row-inactive-badge {
    font-size: 10px;
    color: var(--danger);
    font-weight: 700;
    background: rgba(239,68,68,0.15);
    padding: 2px 7px;
    border-radius: 8px;
    text-transform: uppercase;
}

.info-box {
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.25);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 14px;
}

.perms-list {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.perm-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    padding: 4px 0;
}

.perm-item input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--primary);
}

.perm-item label {
    cursor: pointer;
    color: var(--text);
    text-transform: none !important;
    font-weight: normal !important;
    letter-spacing: 0 !important;
    margin-bottom: 0 !important;
}

.perm-item .perm-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    color: var(--text-dim);
    display: block;
    margin-top: 1px;
}

/* Botões readonly (sem permissão) */
.btn-disabled-tip {
    position: relative;
    cursor: not-allowed !important;
    opacity: 0.5;
}

/* Card não-editável: sutilmente cinza */
.card.readonly {
    cursor: pointer;
}

.card.readonly:hover {
    transform: none;
}

/* Indicador "criado por" no modal */
.task-author-line {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

.task-author-line strong { color: var(--text-muted); }

/* Read-only mode no modal */
.modal-body.readonly input,
.modal-body.readonly textarea,
.modal-body.readonly select {
    pointer-events: none;
    opacity: 0.7;
}

.modal-body.readonly .chip,
.modal-body.readonly .tag-chip button,
.modal-body.readonly #tagInput {
    pointer-events: none;
    opacity: 0.6;
}

.readonly-banner {
    background: rgba(148,163,184,0.12);
    border: 1px solid rgba(148,163,184,0.3);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text);
}

.header-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    background: var(--primary);
}

.header-user-name {
    font-weight: 500;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .header-user-name { display: none; }
}

/* ================================
   DESCRIÇÃO RICH TEXT
================================ */
/* TinyMCE em modo escuro — customizações do wrapper */
.tox.tox-tinymce {
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    background: var(--bg) !important;
}

.tox .tox-edit-area__iframe {
    background: var(--bg) !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
    background: var(--bg-2) !important;
    border-color: var(--border) !important;
}

.tox-statusbar {
    background: var(--bg-2) !important;
    border-color: var(--border) !important;
}

/* Render da descrição em modo leitura */
.description-readonly {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
    max-height: 420px;
    overflow-y: auto;
}

.description-readonly :first-child { margin-top: 0; }
.description-readonly :last-child { margin-bottom: 0; }
.description-readonly p { margin: 0 0 8px; }
.description-readonly h1, .description-readonly h2, .description-readonly h3,
.description-readonly h4 { margin: 12px 0 6px; line-height: 1.3; }
.description-readonly h1 { font-size: 20px; }
.description-readonly h2 { font-size: 17px; }
.description-readonly h3 { font-size: 15px; }
.description-readonly h4 { font-size: 14px; }
.description-readonly ul, .description-readonly ol { margin: 6px 0 10px 22px; }
.description-readonly li { margin: 3px 0; }
.description-readonly a { color: var(--primary); text-decoration: underline; }
.description-readonly a:hover { color: var(--primary-hover); }
.description-readonly img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 6px 0;
    display: block;
    cursor: zoom-in;
}
.description-readonly blockquote {
    border-left: 3px solid var(--border-light);
    padding: 4px 0 4px 12px;
    margin: 8px 0;
    color: var(--text-muted);
    font-style: italic;
}
.description-readonly code {
    background: var(--bg-3);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.description-readonly pre {
    background: var(--bg-3);
    padding: 10px 12px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 8px 0;
}
.description-readonly pre code { background: transparent; padding: 0; }
.description-readonly table {
    border-collapse: collapse;
    margin: 8px 0;
    width: 100%;
}
.description-readonly th, .description-readonly td {
    border: 1px solid var(--border);
    padding: 6px 10px;
    font-size: 13px;
}
.description-readonly th { background: var(--bg-3); font-weight: 600; }
.description-readonly hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

/* Checkbox list (TinyMCE lists plugin) */
.description-readonly ul[data-checked="true"],
.description-readonly ul[data-checked="false"] {
    list-style: none;
    margin-left: 4px;
}
.description-readonly ul[data-checked] li {
    padding-left: 22px;
    position: relative;
}
.description-readonly ul[data-checked="true"] li::before,
.description-readonly ul[data-checked="false"] li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 3px;
    background: var(--bg-2);
}
.description-readonly ul[data-checked="true"] li::before {
    background: var(--primary);
    border-color: var(--primary);
}
.description-readonly ul[data-checked="true"] li::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 6px;
    width: 8px;
    height: 4px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}
.description-readonly ul[data-checked="true"] li {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ================================
   LAYOUT DO MODAL DE USUÁRIO
================================ */
/* Grid com 3 colunas: papel, senha, cor */
.form-row-user {
    grid-template-columns: 160px 1fr 180px;
    align-items: start;
}

/* Color picker compacto, em 2 linhas */
.color-picker-compact {
    display: grid;
    grid-template-columns: repeat(5, 24px);
    gap: 6px;
    padding: 6px 0;
}

.color-picker-compact .color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.1s, border-color 0.15s, box-shadow 0.15s;
}

.color-picker-compact .color-swatch:hover {
    transform: scale(1.15);
}

.color-picker-compact .color-swatch.selected {
    border-color: var(--text);
    box-shadow: 0 0 0 2px var(--primary-soft);
}

/* Ajuste responsivo — em telas pequenas, empilha */
@media (max-width: 600px) {
    .form-row-user {
        grid-template-columns: 1fr;
    }
    .color-picker-compact {
        grid-template-columns: repeat(10, 24px);
    }
}

/* ================================
   AJUSTES TEMA CLARO
================================ */
[data-theme="light"] .header-hero {
    background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
    border-bottom-color: var(--border);
}

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle {
    color: var(--text);
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-muted);
}

[data-theme="light"] .header-user-chip {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.2);
}

[data-theme="light"] .sync-indicator {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: #059669;
}

[data-theme="light"] .sync-indicator.saving {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #d97706;
}

[data-theme="light"] .sync-indicator.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #dc2626;
}

[data-theme="light"] .login-screen {
    background: radial-gradient(ellipse at top, #eef2ff 0%, #f1f5f9 55%);
}

[data-theme="light"] .login-logo-img {
    box-shadow: 0 4px 12px rgba(15,23,42,0.08);
    background: white;
}

[data-theme="light"] .column-body.drag-over {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .avatar {
    border-color: var(--bg-2);
}

[data-theme="light"] .project-color-dot {
    border: 1px solid var(--border);
}

[data-theme="light"] .stats-bar,
[data-theme="light"] .controls-bar,
[data-theme="light"] .people-filter {
    background: var(--surface);
}

[data-theme="light"] .btn-icon {
    color: var(--text-muted);
}

[data-theme="light"] .btn-icon:hover {
    color: var(--text);
    background: var(--surface-hover);
}

/* Faixa ICE no tema claro fica mais contrastado */
[data-theme="light"] .ice-faixa.crit { background: rgba(239,68,68,0.1); color: #b91c1c; }
[data-theme="light"] .ice-faixa.high { background: rgba(245,158,11,0.12); color: #b45309; }
[data-theme="light"] .ice-faixa.med  { background: rgba(234,179,8,0.12);  color: #a16207; }
[data-theme="light"] .ice-faixa.low  { background: rgba(148,163,184,0.15); color: #475569; }

[data-theme="light"] .card-ice-badge.crit { background: rgba(239,68,68,0.12); color: #b91c1c; }
[data-theme="light"] .card-ice-badge.high { background: rgba(245,158,11,0.14); color: #b45309; }
[data-theme="light"] .card-ice-badge.med  { background: rgba(234,179,8,0.14); color: #a16207; }
[data-theme="light"] .card-ice-badge.low  { background: rgba(148,163,184,0.2); color: #475569; }

[data-theme="light"] .role-badge.admin { background: rgba(99,102,241,0.12); color: #4338ca; }
[data-theme="light"] .role-badge.editor { background: rgba(16,185,129,0.12); color: #047857; }
[data-theme="light"] .role-badge.viewer { background: rgba(148,163,184,0.15); color: #475569; }

/* Modal no tema claro: overlay menos agressivo */
[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.4);
}

/* ================================
   COLUNAS PROPORCIONAIS
================================ */
.column {
    flex: 1 1 0;       /* expande igualmente */
    min-width: 260px;  /* não aperta demais se tem muitas colunas */
    max-width: 100%;   /* desce o limite antigo de 300px */
}

/* ================================
   ÍCONES E CORES DAS COLUNAS
================================ */
.column-header {
    position: relative;
}

.column-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 12px;
    flex-shrink: 0;
}

/* Barra colorida sutil no topo de cada coluna por tipo */
.column[data-col-type="todo"]   { border-top: 2px solid var(--col-todo); }
.column[data-col-type="doing"]  { border-top: 2px solid var(--col-doing); }
.column[data-col-type="review"] { border-top: 2px solid var(--col-review); }
.column[data-col-type="done"]   { border-top: 2px solid var(--col-done); }

/* Ícones dos tipos ficam com cor correspondente */
.column-icon.todo   { background: rgba(148,163,184,0.15); color: var(--col-todo); }
.column-icon.doing  { background: rgba(59,130,246,0.15);  color: var(--col-doing); }
.column-icon.review { background: rgba(245,158,11,0.15);  color: var(--col-review); }
.column-icon.done   { background: rgba(16,185,129,0.15);  color: var(--col-done); }

[data-theme="light"] .column-icon.todo   { background: rgba(148,163,184,0.18); color: #475569; }
[data-theme="light"] .column-icon.doing  { background: rgba(59,130,246,0.15);  color: #1d4ed8; }
[data-theme="light"] .column-icon.review { background: rgba(245,158,11,0.15);  color: #b45309; }
[data-theme="light"] .column-icon.done   { background: rgba(16,185,129,0.15);  color: #047857; }

/* Toggle de tema no header */
.theme-toggle-btn {
    background: transparent;
    color: var(--text-muted);
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}

.theme-toggle-btn:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.theme-toggle-btn svg {
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(20deg);
}

/* Só mostra um dos dois ícones conforme tema */
.theme-toggle-btn .icon-sun { display: none; }
.theme-toggle-btn .icon-moon { display: inline-block; }
[data-theme="light"] .theme-toggle-btn .icon-sun { display: inline-block; }
[data-theme="light"] .theme-toggle-btn .icon-moon { display: none; }

/* ================================
   MODAL MINHA CONTA
================================ */
.my-account-modal { max-width: 520px; }

.my-account-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.my-account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.my-account-head-info {
    min-width: 0;
    flex: 1;
}

.my-account-head-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-account-head-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.my-account-head-meta .role-badge {
    font-size: 10px;
}

.account-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.account-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.account-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.account-section-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 12px;
    line-height: 1.45;
}

/* Indicador de força de senha */
.account-password-strength {
    font-size: 11px;
    margin-top: 4px;
    min-height: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-password-strength::before {
    content: '';
    display: inline-block;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-3);
    position: relative;
    overflow: hidden;
}

.account-password-strength.weak::before   { background: linear-gradient(to right, #ef4444 33%, var(--bg-3) 33%); }
.account-password-strength.medium::before { background: linear-gradient(to right, #f59e0b 66%, var(--bg-3) 66%); }
.account-password-strength.strong::before { background: linear-gradient(to right, #10b981 100%, var(--bg-3) 100%); }
.account-password-strength.mismatch::before { background: #ef4444; }

.account-password-strength.weak   { color: #fca5a5; }
.account-password-strength.medium { color: #fcd34d; }
.account-password-strength.strong { color: #6ee7b7; }
.account-password-strength.mismatch { color: #fca5a5; }

[data-theme="light"] .account-password-strength.weak   { color: #b91c1c; }
[data-theme="light"] .account-password-strength.medium { color: #b45309; }
[data-theme="light"] .account-password-strength.strong { color: #047857; }
[data-theme="light"] .account-password-strength.mismatch { color: #b91c1c; }

/* Chip do header clicável agora é botão */
button.header-user-chip {
    cursor: pointer;
    font-family: inherit;
}

button.header-user-chip:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
}

[data-theme="light"] button.header-user-chip:hover {
    background: rgba(99,102,241,0.12);
    border-color: rgba(99,102,241,0.25);
}

/* ================================
   VISÃO "TODAS AS TAREFAS" (cross-projeto)
================================ */
.all-tasks-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
    width: 100%;
}

.all-tasks-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-lg);
}

.project-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border 0.15s;
}

.project-group:hover {
    border-color: var(--border-light);
}

.project-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    background: linear-gradient(to right, var(--bg-2) 0%, transparent 50%);
    border-bottom: 1px solid var(--border);
}

.project-group-header:hover {
    background: var(--surface-hover);
}

.project-group-header .caret {
    transition: transform 0.2s;
    color: var(--text-muted);
    flex-shrink: 0;
}

.project-group.collapsed .caret {
    transform: rotate(-90deg);
}

.project-group.collapsed .project-group-header {
    border-bottom: none;
}

.project-group-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.project-group-info {
    min-width: 0;
    flex: 1;
}

.project-group-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.project-group-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.project-group-count {
    padding: 3px 10px;
    background: var(--bg-3);
    color: var(--text);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
}

.project-group-color {
    width: 4px;
    align-self: stretch;
    flex-shrink: 0;
}

.project-group-body {
    padding: 14px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.project-group.collapsed .project-group-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Botão "Ir para o projeto" no header */
.project-group-open-btn {
    padding: 5px 10px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s, color 0.15s, border 0.15s;
    flex-shrink: 0;
}

.project-group-open-btn:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: var(--surface-hover);
}

/* Chip do projeto no card (visão Todas) */
.card-project-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
    max-width: 100%;
}

.card-project-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-project-chip-icon {
    font-size: 11px;
    line-height: 1;
}

.card-project-chip-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Agrupamento por status dentro de cada projeto (quando aplicável) */
.project-group-status-label {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 4px 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-group-status-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Esconde o seletor de projetos durante visão Todas */
.view-mode-all #projectSelector {
    opacity: 0.5;
    pointer-events: none;
}
