/* =========================================================
   ProjectNox — identidade Lequinox (navy + emerald)
   ========================================================= */

:root {
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --sidebar-w: 252px;
    --topbar-h: 60px;
    --ease: cubic-bezier(.2, .8, .2, 1);

    --bg: #eef2f6;
    --surface: #ffffff;
    --surface-2: #f7f9fb;
    --surface-3: #e4ebf2;
    --hover: rgba(18, 32, 48, 0.05);
    --border: rgba(18, 32, 48, 0.14);
    --border-strong: rgba(18, 32, 48, 0.22);
    --text: #12202e;
    --text-2: #4e5d6c;
    --muted: #4e5d6c;

    --primary: #178a60;
    --primary-hover: #136e4c;
    --primary-soft: #e8f8f1;
    --primary-text: #136e4c;
    --on-primary: #ffffff;

    --success: #1a7a56;
    --success-soft: #e8f8f1;
    --warning: #b8860b;
    --warning-soft: #fff8e1;
    --danger: #c03535;
    --danger-soft: #ffebee;
    --info: #0284c7;
    --info-soft: #e5f4fb;

    --column-bg: #e4ebf2;
    --shadow-sm: 0 1px 2px rgba(18, 32, 48, .06);
    --shadow: 0 16px 40px rgba(18, 32, 48, .12);
    --shadow-lg: 0 18px 48px rgba(18, 32, 48, .16);
    --overlay: rgba(15, 23, 34, .42);
}

[data-theme='dark'] {
    --bg: #070e16;
    --surface: #121c2a;
    --surface-2: #151f2d;
    --surface-3: #1a2433;
    --hover: rgba(230, 238, 243, 0.06);
    --border: rgba(140, 150, 163, 0.22);
    --border-strong: rgba(140, 150, 163, 0.35);
    --text: #e6eef3;
    --text-2: #8c96a3;
    --muted: #8c96a3;

    --primary: #31c48d;
    --primary-hover: #3dd49a;
    --primary-soft: color-mix(in srgb, #31c48d 14%, #0b1420);
    --primary-text: #3dd49a;
    --on-primary: #062016;

    --success: #86efac;
    --success-soft: #14532d;
    --warning: #fbbf24;
    --warning-soft: #3f3419;
    --danger: #ff8a8a;
    --danger-soft: #3f1d1d;
    --info: #38bdf8;
    --info-soft: #0f2533;

    --column-bg: #0b1420;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 18px 48px rgba(0, 0, 0, .4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .55);
    --overlay: rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-text); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
svg.icon { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm svg.icon, svg.icon.sm { width: 15px; height: 15px; }
::selection { background: var(--primary-soft); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.boot { height: 100vh; display: grid; place-items: center; }
.boot-logo { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #31c48d, #178a60); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .6; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
}
.btn:hover { background: var(--hover); border-color: var(--border-strong); }
.btn:focus-visible, .input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); border-color: var(--primary); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary, #fff); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.95); background: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); color: var(--text); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
    width: 100%; height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }

.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; position: relative; }
.color-swatch.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.primary { background: var(--primary-soft); color: var(--primary-text); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 500; background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--text)); }
.prio { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; }
.prio svg { width: 14px; height: 14px; }
.prio-urgent { color: var(--danger); }
.prio-high { color: #ea580c; }
.prio-medium { color: var(--warning); }
.prio-low { color: var(--muted); }
.prio-planned { color: var(--info); }

/* ---------- Avatares ---------- */
.avatar { --size: 28px; width: var(--size); height: var(--size); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--c, #31c48d); color: #fff; font-size: calc(var(--size) * .4); font-weight: 600; letter-spacing: 0; line-height: 1; position: relative; user-select: none; text-align: center; overflow: hidden; }
.avatar-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-initials { display: block; line-height: 1; letter-spacing: 0; transform: translateY(calc(var(--size) * .045)); }
.avatar.xs { --size: 20px; }
.avatar.sm { --size: 24px; }
.avatar.lg { --size: 40px; }
.avatar.xl { --size: 56px; }
.avatar.online::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 30%; height: 30%; border-radius: 50%; background: var(--success); border: 2px solid var(--surface); z-index: 1; }
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -7px; }
.avatar-more { background: var(--surface-3) !important; color: var(--text-2) !important; }

/* ---------- Layout principal ---------- */
.shell { --sidebar-rail: 64px; display: grid; grid-template-columns: var(--sidebar-w) 1fr; height: 100vh; overflow: hidden; transition: grid-template-columns .2s var(--ease); }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.nav-item .label, .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-backdrop { display: none; }
.brand .nav-toggle { flex-shrink: 0; margin-left: -6px; color: var(--text-2); }
.brand { display: flex; align-items: center; gap: 10px; height: var(--topbar-h); padding: 0 18px; border-bottom: 1px solid var(--border); }
 .brand-mark { width: 30px; height: 30px; border-radius: 8px; background: url('../favicon.svg') center / cover; }
.brand-name { font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: -3px; }
.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; border: 0; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-text); }
.nav-item .count { margin-left: auto; font-size: 11.5px; padding: 0 7px; height: 19px; line-height: 19px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.nav-item.active .count { background: var(--primary); color: var(--on-primary, #fff); }
.nav-section { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nav-projects { flex: 1; overflow-y: auto; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 1px; }
.nav-project { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 13.5px; }
.nav-project:hover { background: var(--hover); color: var(--text); }
.nav-project.active { background: var(--hover); color: var(--text); font-weight: 500; }
.nav-project .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex-shrink: 0; }
.nav-project span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer { border-top: 1px solid var(--border); padding: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius); width: 100%; border: 0; background: none; text-align: left; }
.user-chip:hover { background: var(--hover); }
.user-chip .meta { min-width: 0; flex: 1; }
.user-chip .name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-photo { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.profile-photo .avatar.xl { --size: 96px; }

/* Menu recolhido (desktop): faixa só com ícones */
@media (min-width: 961px) {
    .shell.nav-collapsed { grid-template-columns: var(--sidebar-rail) 1fr; }
    .shell.nav-collapsed .brand { padding: 0; justify-content: center; }
    .shell.nav-collapsed .brand .nav-toggle { margin-left: 0; }
    .shell.nav-collapsed .brand-mark,
    .shell.nav-collapsed .brand-text,
    .shell.nav-collapsed .nav-item .label,
    .shell.nav-collapsed .nav-item .count,
    .shell.nav-collapsed .nav-project span:not(.dot),
    .shell.nav-collapsed .nav-section > span,
    .shell.nav-collapsed .nav-projects > .muted,
    .shell.nav-collapsed .user-chip .meta,
    .shell.nav-collapsed .user-chip > .icon { display: none; }
    .shell.nav-collapsed .nav { padding: 12px 8px; }
    .shell.nav-collapsed .nav-item { justify-content: center; padding: 0; }
    .shell.nav-collapsed .nav-section { justify-content: center; padding: 14px 0 6px; }
    .shell.nav-collapsed .nav-projects { padding: 0 8px 10px; }
    .shell.nav-collapsed .nav-project { justify-content: center; padding: 0; }
    .shell.nav-collapsed .nav-project .dot { width: 12px; height: 12px; }
    .shell.nav-collapsed .sidebar-footer { padding: 10px 8px; }
    .shell.nav-collapsed .user-chip { justify-content: center; padding: 6px 0; }
}

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { height: var(--topbar-h); flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 15px; }
.topbar-title .crumb { color: var(--muted); font-weight: 500; }
.topbar-title .crumb:hover { color: var(--text); }
.topbar-spacer { flex: 1; }
.search-trigger { display: flex; align-items: center; gap: 8px; height: 36px; width: 280px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); white-space: nowrap; overflow: hidden; }
.search-trigger:hover { border-color: var(--border-strong); }
.search-trigger .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.search-trigger kbd { margin-left: auto; flex-shrink: 0; }
kbd { font-family: var(--font); font-size: 11px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.icon-btn { position: relative; }
.icon-btn .dot-count { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.content { flex: 1; overflow: auto; min-height: 0; }
.view { display: contents; }
.page { padding: 24px 28px 40px; max-width: 1480px; margin: 0 auto; animation: fadeIn .2s ease; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }
.page-head p { color: var(--text-2); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Cards / painéis ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.panel-head h3 { font-size: 14.5px; }
.panel-head .sub { color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.panel-body { padding: 16px 18px 18px; }
.grid { display: grid; gap: 16px; }
.grid-kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1500px) { .grid-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-2 { grid-template-columns: 2fr 1fr; }
.grid-2-eq { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }

.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-2); font-size: 13px; font-weight: 500; }
.kpi-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.kpi-value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi-foot { font-size: 12.5px; color: var(--muted); }
.kpi-foot b { font-weight: 600; }
.kpi-foot .up { color: var(--success); }
.kpi-foot .down { color: var(--danger); }

.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 210px; }
.chart-box.lg { height: 300px; }

.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; width: var(--v, 0%); background: var(--c, var(--primary)); border-radius: inherit; transition: width .4s var(--ease); }
.progress.lg { height: 8px; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty .empty-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.empty .empty-icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.empty p { max-width: 380px; margin: 0 auto 16px; }
.empty.compact { padding: 24px 12px; }

.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--hover) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--surface-2); }
.cell-title { font-weight: 500; }
.cell-muted { color: var(--text-2); }
.proj-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.proj-cell .proj-icon { width: 30px; height: 30px; font-size: 13px; }

/* ---------- Saúde de projetos ---------- */
.health { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.health::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.health-ok { color: var(--success); }
.health-risk { color: var(--warning); }
.health-late { color: var(--danger); }
.health-done { color: var(--info); }
.health-paused { color: var(--muted); }

/* ---------- Listas ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item.clickable { cursor: pointer; border-radius: var(--radius-sm); padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.list-item.clickable:hover { background: var(--surface-2); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.proj-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); display: inline-block; flex-shrink: 0; }

.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 10px; padding: 9px 0; }
.feed-item .text { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.feed-item .text b { color: var(--text); font-weight: 600; }
.feed-item .time { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.feed-day { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 14px 0 4px; }

/* ---------- Projetos ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: var(--surface-3); }
.segmented button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.project-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s; position: relative; overflow: hidden; }
.project-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.project-card .top { display: flex; align-items: flex-start; gap: 12px; }
.proj-icon { --size: 38px; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--c); flex-shrink: 0; line-height: 1; letter-spacing: 0; }
.project-card h3 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-card .desc { color: var(--text-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.project-card .stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.project-card .stats span { display: inline-flex; align-items: center; gap: 5px; }
.project-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.project-actions { display: flex; gap: 2px; flex-shrink: 0; margin: -4px -6px 0 0; }
.project-actions .btn { color: var(--muted); }
.project-actions .btn:hover { color: var(--text); }
.project-actions .btn.danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.project-card .project-actions { opacity: 0; transition: opacity .15s; }
.project-card:hover .project-actions, .project-card:focus-within .project-actions { opacity: 1; }
.table .project-actions { margin: 0; justify-content: flex-end; }
@media (hover: none) { .project-card .project-actions { opacity: 1; } }
.progress-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.progress-row .progress { flex: 1; }

/* ---------- Página do projeto ---------- */
.project-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 28px 0; }
.project-header .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.project-header h1 { font-size: 20px; }
.project-header .meta { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; flex-wrap: wrap; margin-top: 2px; }
.tabs { display: flex; gap: 4px; margin-top: 14px; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 0; background: none; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary-text); border-bottom-color: var(--primary); }
.project-body { padding: 18px 28px 28px; }
.project-body.board-mode { padding: 14px 0 0; height: 100%; display: flex; flex-direction: column; min-height: 0; }
.project-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.project-page .project-scroll { flex: 1; overflow: auto; min-height: 0; }

.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 28px 12px; }
.filters .input-icon { width: 240px; }
.filters .input { height: 34px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px dashed var(--border-strong); background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; }
.chip-btn:hover { color: var(--text); background: var(--hover); }
.chip-btn.active { border-style: solid; border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }

/* ---------- Kanban ---------- */
.board { flex: 1; display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 4px 28px 20px; min-height: 0; align-items: flex-start; }
.column { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; max-height: 100%; background: var(--column-bg); border-radius: var(--radius-lg); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.column.drag-over { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--column-bg)); }
.column.over-limit .column-count { background: var(--danger-soft); color: var(--danger); }
.column-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 14px; }
.column-head .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex-shrink: 0; }
.column-head h3 { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.column-count { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface); border-radius: 999px; padding: 0 8px; height: 20px; line-height: 20px; }
.column-head .done-mark { color: var(--success); display: inline-flex; }
.column-head .spacer { flex: 1; }
.column-head .btn-icon { width: 26px; height: 26px; color: var(--muted); }
.column-cards { flex: 1; overflow-y: auto; padding: 4px 8px 4px; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.column-foot { padding: 6px 8px 10px; }
.add-card-btn { width: 100%; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-2); font-weight: 500; }
.add-card-btn:hover { background: var(--hover); color: var(--text); }
.quick-add { background: var(--surface); border: 1px solid var(--primary); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.quick-add textarea { width: 100%; border: 0; resize: none; background: none; outline: none; min-height: 52px; }
.quick-add .actions { display: flex; gap: 6px; justify-content: flex-end; }
.add-column { width: 280px; flex-shrink: 0; height: 46px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: transparent; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; }
.add-column:hover { background: var(--surface); color: var(--text); }

.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 12px; cursor: pointer; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s, transform .15s; display: flex; flex-direction: column; gap: 8px; position: relative; }
.kcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.kcard.dragging { opacity: .4; }
.kcard.is-done .kcard-title { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--muted); }
.kcard-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.kcard-title { font-weight: 600; line-height: 1.35; word-break: break-word; }
.kcard-excerpt { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcard-meta { display: flex; align-items: center; gap: 8px 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.kcard-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.kcard-meta svg.icon { width: 14px; height: 14px; }
.kcard-meta .spacer { flex: 1; }
.kcard-foot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kcard-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 500; color: var(--text-2); }
.kcard-who.muted { color: var(--muted); font-weight: 400; }
.kcard-who .ellipsis { min-width: 0; }
.kcard-updated { margin-left: auto; flex-shrink: 0; font-size: 11.5px; color: var(--muted); }
.kcard-delete { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); opacity: 0; transition: opacity .15s, color .15s, background .15s; cursor: pointer; z-index: 2; }
.kcard:hover .kcard-delete, .kcard:focus-within .kcard-delete { opacity: 1; }
.kcard-delete:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
@media (hover: none) { .kcard-delete { opacity: 1; } }
.save-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.save-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.save-status.is-saved { color: var(--success); }
.save-status.is-dirty { color: var(--warning); font-weight: 600; }
.save-status.is-saving { color: var(--primary); }
@media (max-width: 760px) { .save-status { display: none; } }
.btn-danger-ghost:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.kcard-cover { margin: -11px -12px 0; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden; background: var(--surface-3); max-height: 150px; }
.kcard-cover img { display: block; width: 100%; height: 100%; max-height: 150px; object-fit: cover; pointer-events: none; }
.due { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 5px; font-weight: 500; }
.due.overdue { background: var(--danger-soft); color: var(--danger); }
.due.soon { background: var(--warning-soft); color: var(--warning); }
.due.done { background: var(--success-soft); color: var(--success); }
.drop-placeholder { height: 64px; border-radius: var(--radius); border: 2px dashed color-mix(in srgb, var(--primary) 50%, transparent); background: color-mix(in srgb, var(--primary) 6%, transparent); flex-shrink: 0; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; animation: fadeIn .15s ease; overflow-y: auto; }
.modal { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: slideUp .2s var(--ease); display: flex; flex-direction: column; max-height: 84vh; }
.modal.wide { max-width: 760px; }
.modal.sm { max-width: 420px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-head h2 { font-size: 17px; }
.modal-head p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.modal-foot .left { margin-right: auto; }

.drawer-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 90; animation: fadeIn .15s ease; }
/* Card aberto: modal centralizado (tela cheia no celular) */
.drawer { position: fixed; top: 5vh; left: 0; right: 0; margin: 0 auto; width: min(920px, calc(100vw - 32px)); max-height: 90vh; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 91; display: flex; flex-direction: column; overflow: hidden; animation: slideUp .2s var(--ease); }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 28px 32px; }
.modal.card-form { max-width: 920px; position: relative; }
.modal.card-form .modal-body { padding-top: 6px; }
.modal.card-form.drop-active::after { content: 'Solte os arquivos para anexar ao card'; position: absolute; inset: 10px; display: grid; place-items: center; border: 2px dashed var(--primary); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 88%, var(--primary)); color: var(--primary-text); font-weight: 600; font-size: 15px; z-index: 5; pointer-events: none; }
.card-form-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; }
.card-form-note .icon { flex-shrink: 0; margin-top: 1px; color: var(--muted); }
@media (min-width: 761px) {
    .drawer .props, .card-form .props { grid-template-columns: 120px minmax(0, 1fr) 120px minmax(0, 1fr); column-gap: 16px; }
    .drawer .props .prop-wide, .card-form .props .prop-wide { grid-column: 1; }
    .drawer .props .prop-wide + *, .card-form .props .prop-wide + * { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
    .drawer { top: 0; bottom: 0; width: 100vw; max-height: none; border-radius: 0; border: 0; }
    .drawer-body { padding: 16px 16px 28px; }
}
.drawer-title { width: 100%; border: 1px solid transparent; background: none; font-size: 20px; font-weight: 600; padding: 4px 8px; margin-left: -8px; border-radius: var(--radius-sm); resize: none; line-height: 1.35; overflow: hidden; }
.drawer-title:hover { background: var(--hover); }
.drawer-title:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.props { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; align-items: center; margin: 16px 0 22px; }
.props .prop-label { color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 8px; height: 34px; }
.props .prop-label svg { width: 15px; height: 15px; color: var(--muted); }
.props .input, .props .select { height: 34px; border-color: transparent; background-color: transparent; }
.props .input:hover, .props .select:hover { background-color: var(--hover); }
.props .input:focus, .props .select:focus { background-color: var(--surface); border-color: var(--primary); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; margin: 22px 0 10px; }
.section-title .sub { font-weight: 500; font-size: 12.5px; color: var(--muted); }

.tag-input { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 34px; padding: 4px 8px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.tag-input:hover { background: var(--hover); }
.tag-input:focus-within { border-color: var(--primary); background: var(--surface); }
.tag-input input { border: 0; outline: none; background: none; flex: 1; min-width: 90px; height: 24px; }
.tag-input .tag button { border: 0; background: none; padding: 0 0 0 4px; color: inherit; opacity: .7; line-height: 1; }

.checklist { display: flex; flex-direction: column; gap: 2px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); }
.check-item:hover { background: var(--hover); }
.check-item input[type='checkbox'] { width: 16px; height: 16px; accent-color: var(--success); flex-shrink: 0; }
.check-item .text { flex: 1; min-width: 0; cursor: text; }
.check-item.done .text { text-decoration: line-through; color: var(--muted); }
.check-item input[data-edit-item] { flex: 1; min-width: 0; height: 30px; padding: 4px 8px; font-size: inherit; }
.check-item .btn-icon { opacity: 0; }
.check-item:hover .btn-icon { opacity: 1; }

.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment .bubble { flex: 1; min-width: 0; }
.comment .who { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.comment .who b { font-weight: 600; }
.comment .who time { color: var(--muted); font-size: 12px; }
.comment .body { margin-top: 3px; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.comment .body .mention { color: var(--primary-text); font-weight: 500; background: var(--primary-soft); padding: 0 3px; border-radius: 4px; }
.composer { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.composer .box { flex: 1; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.composer .box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; background: none; padding: 10px 12px 4px; min-height: 60px; }
.composer .bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px 12px; font-size: 12px; color: var(--muted); }
.mention-menu { position: fixed; z-index: 220; max-height: 240px; overflow-y: auto; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.mention-item { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; color: var(--text); }
.mention-item.active, .mention-item:hover { background: var(--hover); }
.mention-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mention-text b { font-size: 13px; font-weight: 600; }
.mention-text span { font-size: 12px; color: var(--muted); }
.mention-empty { padding: 8px 10px; font-size: 12.5px; color: var(--muted); }

/* Anexos */
.attachments { display: flex; flex-direction: column; gap: 6px; }
.attachment { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background .15s; }
.attachment:hover { border-color: var(--border-strong); background: var(--surface-2); }
.attachment.uploading { border-style: dashed; }
.att-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.att-thumb { width: 56px; height: 40px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-info { flex: 1; min-width: 0; }
.att-name { display: block; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.att-name:hover { color: var(--primary-text); text-decoration: underline; }
.att-meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.att-meta .badge { height: 18px; font-size: 11px; padding: 0 6px; }
.att-actions { display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.attachment:hover .att-actions { opacity: 1; }
.dropzone { margin-top: 8px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2); font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--primary); background: var(--primary-soft); outline: none; }
.dropzone > svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.drawer.drop-active::after { content: 'Solte os arquivos para anexar ao card'; position: absolute; inset: 10px; display: grid; place-items: center; border: 2px dashed var(--primary); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 88%, var(--primary)); color: var(--primary-text); font-weight: 600; font-size: 15px; z-index: 5; pointer-events: none; }

/* Destinatários do e-mail */
.recipients { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; }
.recipient { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.recipient:hover { background: var(--hover); }
.recipient[hidden] { display: none; }
.recipient input { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.recipient .info { display: flex; flex-direction: column; min-width: 0; }
.recipient .n { font-weight: 500; display: flex; align-items: center; gap: 6px; }
.recipient .n .badge { height: 18px; font-size: 11px; }
.recipient .e { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cronômetro */
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.timer-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex-shrink: 0; animation: pulseDot 1.4s ease-in-out infinite; margin-right: 5px; vertical-align: middle; }
.timer-pill { display: inline-flex; align-items: center; height: 34px; border-radius: 999px; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); max-width: 320px; overflow: hidden; }
.timer-pill.hidden { display: none; }
.timer-pill button { border: 0; background: none; color: var(--text); height: 100%; display: inline-flex; align-items: center; gap: 6px; }
.timer-open { padding: 0 6px 0 12px; min-width: 0; font-size: 13px; }
.timer-open b { font-variant-numeric: tabular-nums; color: var(--danger); font-weight: 700; }
.timer-open .ellipsis { max-width: 170px; color: var(--text-2); }
.timer-stop { padding: 0 12px 0 8px; color: var(--danger) !important; border-left: 1px solid color-mix(in srgb, var(--danger) 25%, transparent) !important; }
.timer-stop:hover, .timer-open:hover { background: color-mix(in srgb, var(--danger) 12%, transparent) !important; }
.timer-badge { background: var(--danger-soft); color: var(--danger); }
.kcard-timing { color: var(--danger); font-weight: 600; font-variant-numeric: tabular-nums; }
.btn-timer-on { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-timer-on:hover { background: color-mix(in srgb, var(--danger) 88%, #000); }
.btn-timer-on b { font-variant-numeric: tabular-nums; }
.btn.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }

/* Seção de tempo do card */
.time-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.time-log { display: grid; grid-template-columns: 1fr 160px; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.time-log .full { grid-column: 1 / -1; }
.time-log .input { height: 34px; }

/* Campo de horas (H:MM) com −/+ e tempos prontos */
.hours-input { display: flex; align-items: stretch; height: 38px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.hours-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.hours-input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.hours-input.disabled { opacity: .7; }
.hours-field { flex: 1; min-width: 0; border: 0; background: none; padding: 0 6px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; letter-spacing: .02em; color: var(--text); }
.hours-field:focus { outline: none; }
.hours-field::placeholder { color: var(--muted); font-weight: 400; }
.hours-btn { flex-shrink: 0; width: 32px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.hours-btn:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.hours-btn:disabled { cursor: default; }
.hours-btn[data-hours-presets] { border-left: 1px solid var(--border); }
.time-log .hours-input, .props .hours-input { height: 34px; }
.props .hours-input { border-color: transparent; background: transparent; }
.props .hours-input:hover { background: var(--hover); }
.props .hours-input:focus-within { background: var(--surface); }
.props .hours-input.invalid { border-color: var(--danger); }
.hours-menu { min-width: 170px; }
.time-split { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.time-split > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.time-split .label { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; min-width: 78px; }
.time-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 4px; border-radius: 999px; background: var(--surface-3); font-size: 12px; color: var(--text-2); }
.time-chip:not(:has(.avatar)) { padding-left: 9px; }
.time-chip b { color: var(--text); font-weight: 600; }
.time-entries { display: flex; flex-direction: column; margin-top: 10px; border-top: 1px solid var(--border); }
.time-entry { display: flex; align-items: flex-start; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--border); }
.time-entry .avatar { margin-top: 2px; }
.time-entry .grow { flex: 1; min-width: 0; }
.time-entry .btn-icon { opacity: .5; }
.time-entry:hover .btn-icon { opacity: 1; }
.time-amount { min-width: 58px; font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 1px; display: inline-flex; align-items: center; }
.time-entries > .btn { align-self: flex-start; margin-top: 6px; }

/* Barras horizontais */
.hbar-list { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 92px; align-items: center; gap: 12px; }
.hbar-label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.hbar-label .ellipsis { min-width: 0; }
.hbar-label .muted { flex-shrink: 0; }
.hbar-track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hbar-track > span { display: block; height: 100%; width: var(--v); background: var(--c); border-radius: inherit; transition: width .4s var(--ease); }
.hbar-value { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; font-variant-numeric: tabular-nums; font-size: 13px; }
.stage-group { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.stage-group:first-child { padding-top: 0; }
.stage-group:last-child { border-bottom: 0; padding-bottom: 0; }

/* Administração */
.admin-tabs { margin: 0 0 18px; border-bottom: 1px solid var(--border); }
.admin-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 16px; }
.admin-filters .input, .admin-filters .select { height: 34px; }
.admin-filters .select { width: auto; min-width: 190px; max-width: 260px; }
.admin-filters input[type="date"] { width: 150px; }
.source-track { display: flex; gap: 2px; height: 8px; width: var(--w); min-width: 6px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.source-track > span { display: block; height: 100%; min-width: 3px; }
.source-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.source-legend span { display: inline-flex; align-items: center; gap: 5px; }
.source-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.hours-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 0 18px 12px; }
.hours-note .icon { flex: none; margin-top: 2px; }
.op-chevron { display: inline-flex; color: var(--muted); transition: transform .15s; }
tr.expanded .op-chevron { transform: rotate(90deg); }
tr.expanded > td { background: var(--hover); }
.op-filter { margin-left: auto; opacity: .55; }
.op-filter:hover { opacity: 1; }
.op-detail > td { padding: 0 !important; background: var(--surface-2); }
.op-detail-inner { padding: 14px 18px 16px 44px; max-height: 520px; overflow: auto; border-bottom: 1px solid var(--border); }
.op-detail-head { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); }
.op-detail-note { margin: 6px 0 10px; max-width: 900px; }
.op-detail-table { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.op-detail-table td, .op-detail-table th { vertical-align: top; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td .hbar-track { min-width: 80px; }
.table a { color: var(--primary-text); font-weight: 500; }
.table a:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }
.row-inactive td { opacity: .55; }
.grid-kpi.grid-kpi-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-kpi.grid-kpi-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Chamados ---------- */
.ticket-page .page-head { margin-bottom: 16px; }
.ticket-service-toggle { font-weight: 600; }
.ticket-approver-chips {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    min-height: 28px; margin: 6px 0 8px;
}
.ticket-modal [data-service-block][hidden],
.ticket-modal [data-free-block][hidden],
.public-ticket [data-service-block][hidden],
.public-ticket [data-free-block][hidden] { display: none !important; }
.ticket-filter-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 14px 16px 12px;
    margin: 16px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ticket-filter-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ticket-search { flex: 1 1 240px; min-width: 200px; max-width: none; }
.ticket-search .input,
.ticket-mine,
.ticket-sort .select,
.ticket-filter-grid .select,
.ticket-filter-period .select,
.ticket-filter-period .input { height: 34px; }
.ticket-mine[hidden] { display: none !important; }
.ticket-mine.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.ticket-mine-count:not(:empty) {
    margin-left: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--hover); font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.ticket-mine.active .ticket-mine-count { background: rgba(255, 255, 255, .25); }
.ticket-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    min-width: 0;
}
.ticket-sort > span {
    font-size: 11px; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.ticket-sort .select { width: 168px; }
.ticket-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.ticket-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ticket-field > span {
    font-size: 11px; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted);
    line-height: 1.2;
}
.ticket-field .select, .ticket-field .input { width: 100%; }
.ticket-filter-period {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}
.ticket-period-label {
    font-size: 11px; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted);
    flex: 0 0 auto; min-width: 52px;
}
.ticket-filter-period .select[data-filter="campoData"] { width: 140px; flex: 0 0 auto; }
.ticket-filter-period .input[type="date"] { width: 148px; flex: 0 0 auto; }
.ticket-dates-sep { color: var(--muted); font-size: 13px; flex: 0 0 auto; line-height: 1; }
.ticket-date-presets { display: inline-flex; gap: 2px; flex: 0 0 auto; margin-left: 4px; }
.ticket-date-presets .btn { height: 34px; padding: 0 10px; color: var(--text-2); }
.ticket-filter-period [data-clear-dates][hidden] { display: none; }
.ticket-filter-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 10px; border-top: 1px solid var(--border);
}
.ticket-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 28px; flex: 1; }
.ticket-chip {
    display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 10px;
    border-radius: 999px; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
    background: var(--primary-soft); color: var(--primary-text);
    font-size: 12px; font-weight: 600; cursor: pointer;
}
.ticket-chip:hover { border-color: var(--primary); }
.ticket-chip svg { width: 12px; height: 12px; opacity: .7; }
.ticket-filter-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kpi-action { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.kpi-action:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.kpi-action.is-active { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent); }
.kpi-action:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[data-body].is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.ticket-list-panel { overflow: hidden; }
.ticket-table td { vertical-align: middle; }
.ticket-table th, .ticket-table td { padding-left: 10px; padding-right: 10px; }
.ticket-table tbody tr.ticket-row-late { box-shadow: inset 3px 0 0 var(--danger); }
.ticket-table tbody tr.clickable:hover { background: var(--hover); }
.ticket-code { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; color: var(--text-2); }
.ticket-code-inner { display: inline-flex; align-items: center; gap: 8px; }
.prio-dot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; font-weight: 700; line-height: 1; flex-shrink: 0; }
.ticket-when { white-space: nowrap; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ticket-subject { width: 30%; max-width: 0; min-width: 200px; }
.ticket-subject .ellipsis { display: block; }
.ticket-status { min-width: 110px; max-width: 150px; }
.ticket-person { min-width: 160px; max-width: 210px; font-size: 12.5px; line-height: 1.35; }
.ticket-group { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.ticket-group svg { width: 12px; height: 12px; flex-shrink: 0; }
.ticket-prop .ticket-group { margin-top: 0; font-size: 12px; }
.grp-sistemas { color: #2563eb; }
.grp-sms { color: #7c3aed; }
.grp-suporte { color: #0f766e; }
.grp-bi { color: #ca8a04; }
.grp-predial { color: #c2410c; }
.ticket-acts { white-space: nowrap; font-size: 12.5px; color: var(--text-2); }
.ticket-clip { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; color: var(--muted); }
.ticket-clip svg { width: 13px; height: 13px; }
.sla-when { display: flex; align-items: center; gap: 5px; }
.sla-mode { display: inline-flex; align-items: center; flex-shrink: 0; }
.sla-mode svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.sla-running, .sla-paused { color: #1d4ed8; }
.sla-scheduled { color: var(--muted); }
.sla-scheduled svg { fill: none; stroke: currentColor; }
.sla-state { display: inline-block; margin-top: 2px; font-size: 11.5px; font-weight: 600; }
.sla-state::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.sla-state.ok { color: var(--success); }
.sla-state.warn { color: var(--warning); }
.sla-state.urgent { color: #ea580c; }
.sla-state.late { color: var(--danger); }
.ticket-table .badge { white-space: normal; height: auto; min-height: 22px; padding: 2px 9px; line-height: 1.35; }
.ticket-table .due { white-space: normal; }
.ticket-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--border); }
@media (max-width: 1100px) {
    .ticket-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ticket-sort { margin-left: 0; }
}
@media (max-width: 760px) {
    .ticket-filter-grid { grid-template-columns: 1fr 1fr; }
    .ticket-filter-period { flex-wrap: wrap; }
    .ticket-filter-period .select[data-filter="campoData"],
    .ticket-filter-period .input[type="date"] { width: auto; flex: 1 1 140px; min-width: 130px; }
    .ticket-sort { width: 100%; }
    .ticket-sort .select { flex: 1; width: auto; }
}
.ticket-props { grid-template-columns: 130px minmax(0, 1fr) 130px minmax(0, 1fr); margin-top: 4px; }
.ticket-prop { min-height: 34px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; }
.ticket-description { white-space: pre-wrap; word-break: break-word; line-height: 1.55; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.ticket-description img { display: block; max-width: 100%; max-height: 420px; margin: 8px 0; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.ticket-files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.ticket-files li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border-top: 1px solid var(--border); }
.ticket-files li:first-child { border-top: 0; }
.ticket-files svg { color: var(--muted); flex-shrink: 0; }
.ticket-file-name { font-weight: 500; font-size: 13.5px; overflow-wrap: anywhere; }
.ticket-files-hint { margin: 6px 2px 0; }
.ticket-service-list { max-height: 220px; overflow: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: var(--radius); }
.ticket-service-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.ticket-service-list button:last-child { border-bottom: 0; }
.ticket-service-list button:hover, .ticket-service-list button.active { background: var(--hover); }
.ticket-feed { display: flex; flex-direction: column; gap: 10px; }
.ticket-feed article { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.ticket-feed article p { margin: 6px 0 0; white-space: pre-wrap; }
.ticket-interact { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.ticket-interact-foot { margin-top: 14px; gap: 12px; flex-wrap: wrap; }
.ticket-approval { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; background: var(--surface-2, transparent); }
.ticket-approval p { margin: 8px 0 0; white-space: pre-wrap; }
.ticket-files, .ticket-tasks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.ticket-file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ticket-file a { display: inline-flex; align-items: center; gap: 4px; }
.ticket-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
@media (max-width: 760px) {
    .ticket-props { grid-template-columns: 110px 1fr; }
    .ticket-interact .form-grid { grid-template-columns: 1fr; }
    .ticket-search { width: 100%; }
}
@media (max-width: 640px) {
    .task-row { flex-wrap: wrap; row-gap: 6px; }
    .task-row .grow { flex: 1 1 calc(100% - 44px); }
    .task-row .grow + * { margin-left: 34px; }
    .timer-open .ellipsis { display: none; }
    .topbar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    .hbar { grid-template-columns: minmax(90px, 38%) 1fr 70px; gap: 8px; }
    .time-log { grid-template-columns: 1fr; }
}

.menu { position: fixed; z-index: 200; min-width: 200px; max-width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 5px; animation: slideUp .12s var(--ease); max-height: 70vh; overflow-y: auto; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: none; text-align: left; color: var(--text); font-size: 13.5px; }
.menu-item:hover, .menu-item.focus { background: var(--hover); }
.menu-item.danger { color: var(--danger); }
.menu-item .check-mark { margin-left: auto; color: var(--primary-text); }
.menu-sep { height: 1px; background: var(--border); margin: 5px 0; }
.menu-label { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 6px 10px 4px; text-transform: uppercase; letter-spacing: .05em; }
.menu-search { padding: 4px 4px 6px; }
.menu-search .input { height: 32px; }

.notif-panel { width: 380px; max-width: calc(100vw - 24px); padding: 0; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif { display: flex; gap: 10px; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--border); position: relative; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.notif.unread::after { content: ''; position: absolute; right: 14px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.notif .text { font-size: 13px; padding-right: 14px; }
.notif time { font-size: 12px; color: var(--muted); }

.palette { max-width: 620px; padding: 0; overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.palette-input input { flex: 1; height: 54px; border: 0; outline: none; background: none; font-size: 16px; }
.palette-results { max-height: 420px; overflow-y: auto; padding: 6px; }
.palette-results .menu-item { height: 40px; }
.palette-results .menu-item .sub { margin-left: auto; color: var(--muted); font-size: 12px; }

#toast-root { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 12px 14px; border-radius: var(--radius); background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); animation: slideUp .2s var(--ease); font-size: 13.5px; }
.toast.success svg { color: #4ade80; }
.toast.error svg { color: #f87171; }
.toast.info svg { color: #a5b4fc; }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: all .2s; }

/* ---------- Seletor de pessoas ---------- */
.people-picker .results { max-height: 260px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: var(--radius); }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--border); }
.person:last-child { border-bottom: 0; }
.person:hover { background: var(--surface-2); }
.person.selected { background: var(--primary-soft); }
.person .info { flex: 1; min-width: 0; }
.person .info .n { font-weight: 500; font-size: 13.5px; }
.person .info .e { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selected-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.person-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 3px; border-radius: 999px; background: var(--surface-3); font-size: 12.5px; font-weight: 500; }
.person-chip button { border: 0; background: none; color: var(--muted); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.person-chip button:hover { background: var(--hover); color: var(--text); }

.member-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.member-row:last-child { border-bottom: 0; }
.member-row .info { flex: 1; min-width: 0; }
.member-row .select { width: 150px; height: 32px; }

.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.template { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; cursor: pointer; background: var(--surface); text-align: left; }
.template:hover { border-color: var(--border-strong); }
.template.active { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.template .t-name { font-weight: 600; font-size: 13px; }
.template .t-cols { display: flex; gap: 3px; margin-top: 8px; }
.template .t-cols span { height: 22px; flex: 1; border-radius: 3px; background: color-mix(in srgb, var(--c) 30%, transparent); }
.template .t-desc { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Equipe ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.person-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.person-card .info { flex: 1; min-width: 0; }
.person-card .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-card .e { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Tarefas ---------- */
.task-group { margin-bottom: 22px; }
.task-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: var(--surface-2); }
.task-row .grow { flex: 1; min-width: 0; }
.task-row .title { font-weight: 500; }
.task-row.done .title { text-decoration: line-through; color: var(--muted); }
.round-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); background: none; display: grid; place-items: center; color: transparent; flex-shrink: 0; padding: 0; }
.round-check:hover { border-color: var(--success); color: var(--success); }
.round-check.checked { background: var(--success); border-color: var(--success); color: #fff; }
.round-check svg { width: 12px; height: 12px; stroke-width: 3; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero { position: relative; overflow: hidden; color: #e6eef3; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(800px 420px at 0% 0%, color-mix(in srgb, #31c48d 18%, transparent), transparent 55%), linear-gradient(180deg, #0b1420, #070e16); }
.login-hero .brand-big { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.login-hero .brand-big .brand-mark { width: 40px; height: 40px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.login-hero h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.03em; max-width: 520px; }
.login-hero h1 span { background: linear-gradient(90deg, #e6eef3, #31c48d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-hero p.lead { margin-top: 16px; font-size: 16px; color: rgba(255,255,255,.78); max-width: 480px; }
.hero-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; margin-top: 36px; }
.hero-feature { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.hero-feature .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.14); flex-shrink: 0; }
.hero-feature b { display: block; font-size: 13.5px; }
.hero-feature span { font-size: 12.5px; color: rgba(255,255,255,.72); }
.hero-mock { position: absolute; right: -60px; top: 120px; display: flex; gap: 10px; opacity: .14; transform: rotate(-8deg); pointer-events: none; }
.hero-mock div { width: 120px; height: 260px; border-radius: 12px; background: #fff; }
.login-foot { font-size: 12.5px; color: rgba(255,255,255,.6); }
.login-form-wrap { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.login-form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 26px; letter-spacing: -.02em; }
.login-form .lead { color: var(--text-2); margin: 6px 0 28px; }
.login-form .input { height: 44px; }
.login-form .input-icon > .input { padding-left: 40px; }
.login-form .input-icon > svg { left: 13px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert.success { background: var(--success-soft); color: var(--success); }
.login-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin: 0 0 18px; border-radius: 10px; background: var(--surface-3); }
.login-mode { height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-weight: 500; font-size: 13px; }
.login-mode.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.login-form .hint { margin-top: 6px; }
.ad-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }

/* ---------- Utilitários ---------- */
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 12.5px; }
.bold { font-weight: 600; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.danger-zone { margin-top: 8px; padding: 14px; border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.danger-zone b { color: var(--danger); }

/* ---------- Responsivo ---------- */
.mobile-only { display: none; }
@media (max-width: 1200px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
/* Insights */
.insights-list { display: grid; gap: 12px; }
.insight-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: var(--surface-2);
    border-left: 3px solid var(--border-strong);
}
.insight-card.severity-high { border-left-color: var(--danger); }
.insight-card.severity-medium { border-left-color: var(--warning); }
.insight-card.severity-low { border-left-color: var(--success); }
.insight-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.insight-top h4 { font-size: 14.5px; margin: 0; }
.insight-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.45; margin: 0; }
.insight-action { margin-top: 8px !important; color: var(--text) !important; }

@media (max-width: 960px) {
    .login { grid-template-columns: 1fr; }
    .login-hero { display: none; }
    .shell, .shell.nav-collapsed { grid-template-columns: 1fr; }
    .sidebar { position: fixed; z-index: 80; inset: 0 auto 0 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .2s var(--ease); }
    .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
    .shell.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 79; background: var(--overlay); animation: fadeIn .15s ease; }
    .mobile-only { display: inline-flex; }
    .search-trigger { width: auto; }
    .search-trigger .label, .search-trigger kbd { display: none; }
    .grid-2-eq, .grid-3 { grid-template-columns: 1fr; }
    .page { padding: 18px 16px 32px; }
    .project-header, .filters { padding-left: 16px; padding-right: 16px; }
    .board { padding-left: 16px; padding-right: 16px; }
    .project-body { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .props { grid-template-columns: 110px 1fr; }
}
