/* Boo Hub — identidade BOO sobre a estrutura "Achromatic ledger".
   Chassi em tinta (verde-quase-preto da BOO), o laranja da marca só nos dados principais. */
/* Tema DIA (padrão do CSS) e NOITE ([data-theme="dark"]). Marca: verde-quase-preto + amarelo limão neon. */
:root {
  --ground: #f2f5ec; --surface: #ffffff; --raised: #eaeee0; --active: #e1e8d0;
  --border: #dce2cf; --rule: #e9ede0; --control: #c2cab2;
  --text: #0d110a; --muted: #474f3f; --faint: #636b5a;
  --primary: #d4ff1f; --primary-ink: #0d110a;
  --accent: #c8f51c; --accent-ink: #0d110a; --accent-edge: #5d7b00; --accent-soft: #eefbb4; --accent-text: #4c6600;
  --glow: none;
  --chart-1: #6f9a00; --chart-2: #0d110a; --chart-muted: #c3cab4; --chart-mark: #0d110a;
  --positive: #1b7a45; --negative: #c4242a; --warning: #8a4a06;
  --pill-positive-bg: #e1f7b0; --pill-positive-ink: #2c4300; --pill-neutral-bg: #e9eddf; --pill-neutral-ink: #3b4333;
  --pill-negative-bg: #ffe9e6; --pill-negative-ink: #8a1c1f; --pill-warning-bg: #fff3d6; --pill-warning-ink: #7a4205;
  --grid: #e1e6d6; --axis-ink: #474f3f; --dot: rgba(13, 17, 10, .085);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-title: 26px; --fs-kpi: 28px;
  --sidebar-width: 244px; --pad: 32px; --gap: 16px; --card-pad: 20px;
  --radius-card: 14px; --radius-control: 9px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ground: #070908; --surface: #0e1210; --raised: #151b17; --active: #1b231c;
  --border: #1f2822; --rule: #171e19; --control: #33403a;
  --text: #eef3ea; --muted: #a9b5a6; --faint: #88958a;
  --primary: #d4ff2a; --primary-ink: #0a0d08;
  --accent: #d4ff2a; --accent-ink: #0a0d08; --accent-edge: transparent; --accent-soft: #232d09; --accent-text: #d4ff2a;
  --glow: 0 0 18px rgba(212, 255, 42, .28);
  --chart-1: #d4ff2a; --chart-2: #eef3ea; --chart-muted: #39463d; --chart-mark: #eef3ea;
  --positive: #5fe08f; --negative: #ff6b7a; --warning: #f0b74a;
  --pill-positive-bg: #1d2c0a; --pill-positive-ink: #d4ff2a; --pill-neutral-bg: #1a221c; --pill-neutral-ink: #cfd9cb;
  --pill-negative-bg: #34171b; --pill-negative-ink: #ff8f9b; --pill-warning-bg: #302510; --pill-warning-ink: #f0b74a;
  --grid: #222b25; --axis-ink: #a9b5a6; --dot: rgba(212, 255, 42, .07);
  color-scheme: dark;
}
body { font-feature-settings: "tnum" 0; }
.num, .kpi-value, .lrow .n, td, .gantt, .pace-n { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- barra lateral ---------- */
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; }
.brand img { width: 30px; height: 30px; flex: none; }
.brand > div { min-width: 0; }
.brand b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 18px; }
.brand span { display: block; font-size: 12px; color: var(--faint); line-height: 16px; white-space: nowrap; }
.nav-item { font-weight: 500; cursor: pointer; }
.nav-item .count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-item[aria-current="page"] { font-weight: 600; }
.userrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.userrow:hover { background: var(--raised); }
.userrow b { display: block; font-size: 13px; font-weight: 600; line-height: 16px; }
.userrow span { display: block; font-size: 12px; color: var(--faint); line-height: 16px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #101412; overflow: hidden; line-height: 1; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.avatar.emo { font-size: 16px; } .avatar.sm.emo { font-size: 13px; } .avatar.lg.emo { font-size: 28px; }
.avatar.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.more { background: var(--raised); color: var(--muted); font-size: 10px; }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* barra do celular */
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px 0 4px; background: var(--ground); border-bottom: 1px solid var(--border); }
  .mbar .t { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mbar img { width: 24px; height: 24px; margin-left: 4px; }
  .sidebar { background: var(--ground); padding: 12px 16px; }
  .sidebar .nav-item { height: 44px; font-size: 15px; }
  .iconbtn.close-sheet { display: inline-grid; }
}
.iconbtn.close-sheet { display: none; margin-left: auto; }
.iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--text); }
.iconbtn:hover { background: var(--raised); }
.iconbtn svg { width: 20px; height: 20px; stroke-width: 1.5; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- título, filtros, painéis ---------- */
.canvas { max-width: 1440px; }
.title-row h1 { font-weight: 700; }
.title-row .sub { max-width: 70ch; }
.title-row .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn { font-weight: 600; }
.btn svg { width: 14px; height: 14px; }
.btn.danger { color: var(--negative); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.panel h2 { font-weight: 700; }
.panel > header .tools { display: flex; align-items: center; gap: 8px; }
.cols-8 { grid-column: span 8; } .cols-4 { grid-column: span 4; } .cols-7 { grid-column: span 7; } .cols-5 { grid-column: span 5; } .cols-6 { grid-column: span 6; } .cols-12 { grid-column: 1 / -1; } .cols-3 { grid-column: span 3; } .cols-9 { grid-column: span 9; }
.stack { display: grid; gap: var(--gap); align-content: start; }
.kpi-value { font-weight: 600; }
.kpi.lead .kpi-value { font-size: 32px; }
.kpi .delta .bad { color: var(--negative); font-weight: 600; } .kpi .delta .good { color: var(--positive); font-weight: 600; }
.finding { margin-top: 4px; color: var(--muted); }
.finding b { color: var(--text); font-weight: 600; }
.note { padding: 10px 12px; border: 1px solid var(--pill-warning-ink); background: var(--pill-warning-bg); color: var(--pill-warning-ink); border-radius: 6px; font-size: 12px; line-height: 16px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; }
.tabs { gap: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; font-weight: 600; cursor: pointer; }

/* ---------- listas em linhas ---------- */
.list { display: grid; }
.lhead, .lrow { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 0 16px; padding: 0 var(--card-pad); }
.panel.flush { padding: 0; }
.panel.flush > header { padding: var(--card-pad) var(--card-pad) 0; margin-bottom: 12px; }
.lhead { height: 36px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); }
.lrow { min-height: 52px; padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--rule); position: relative; }
.lhead + .lrow { border-top: 0; }
.lrow.click { cursor: pointer; }
.lrow.click:hover { background: var(--raised); }
.lrow .main { min-width: 0; }
.lrow .main b, .lrow .main .t { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .main .s { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .n, .lhead .n { text-align: right; }
.lrow.done .main .t { color: var(--muted); font-weight: 500; }
.lrow:last-child { border-radius: 0 0 var(--radius-card) var(--radius-card); }
.dash { color: var(--faint); }
.due-late { color: var(--negative); font-weight: 600; }
.pill { height: 22px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chk { width: 22px; height: 22px; flex: none; display: inline-grid; place-items: center; border: 1.5px solid var(--control); border-radius: 50%; background: var(--surface); cursor: pointer; padding: 0; color: transparent; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chk:hover { border-color: var(--accent-edge); }
[data-theme="dark"] .chk:hover { border-color: var(--accent); }
.chk:active { transform: scale(.92); }
.chk svg { width: 12px; height: 12px; stroke-width: 2.2; }
.chk.on { background: var(--accent); border-color: var(--accent-edge); color: var(--accent-ink); }
.chk.doing { border-color: var(--accent-edge); background: var(--accent); box-shadow: inset 0 0 0 6px var(--surface); } /* taste-skill-ignore: anel interno, não é sombra */
.taskline { display: flex; gap: 12px; align-items: center; min-width: 0; }

/* régua de ritmo: o preenchimento é o concluído; a marca de 1px, o prazo já decorrido */
.pace { position: relative; display: block; height: 8px; border-radius: 999px; background: var(--raised); min-width: 80px; }
.pace i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-edge), var(--glow); transform-origin: left; animation: grow .9s var(--ease-out) both; }
.pace b { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--text); }
.pace-cell { display: grid; gap: 4px; }
.pace-n { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.bar-split { display: flex; height: 10px; gap: 2px; width: 100%; }
.bar-split > i { display: block; height: 100%; min-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- linha do tempo (Gantt) ---------- */
.gantt-scroll { overflow-x: auto; margin: 0 calc(var(--card-pad) * -1); padding: 0 var(--card-pad) 4px; }
.gantt { position: relative; min-width: 100%; }
.g-row { display: grid; grid-template-columns: var(--nw, 200px) var(--w); height: 44px; align-items: center; }
.g-row.head { height: 28px; font-size: 12px; color: var(--muted); }
.g-name { position: sticky; left: 0; z-index: 2; background: var(--surface); padding-right: 12px; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--rule); }
.g-row.head .g-name { border-top: 0; }
.g-name b { font-weight: 600; font-size: 13px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-name span { font-size: 12px; color: var(--muted); line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-track { position: relative; height: 100%; border-top: 1px solid var(--rule); }
.g-row.head .g-track { border-top: 0; }
.g-week { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.g-row.head .g-week { background: none; }
.g-week em { font-style: normal; position: absolute; left: 4px; top: 6px; white-space: nowrap; }
.g-bar { position: absolute; top: 12px; height: 20px; border-radius: 6px; background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-edge); min-width: 6px; transform-origin: left; animation: grow .7s var(--ease-out) both; }
.g-bar.todo { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-edge); }
[data-theme="dark"] .g-bar.todo { box-shadow: inset 0 0 0 1px var(--accent); } /* taste-skill-ignore: anel interno, não é sombra */
.g-bar.done { background: var(--control); box-shadow: none; }
.g-bar.late::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; border-radius: 0 4px 4px 0; background: var(--negative); }
.g-today { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text); z-index: 1; pointer-events: none; }
.g-today-label { position: absolute; top: 4px; z-index: 3; transform: translateX(-50%); background: var(--text); color: var(--surface); font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 4px; white-space: nowrap; font-family: var(--mono); }
.g-stage { height: 30px; display: flex; align-items: flex-end; padding-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--text); position: sticky; left: 0; }

/* ---------- formulários ---------- */
.field { min-width: 0; }
.input, select.input, textarea.input { width: 100%; border-color: var(--control); }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus-visible { outline-offset: 0; border-color: var(--text); }
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.switchrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switchrow b { display: block; font-weight: 600; } .switchrow span { color: var(--muted); font-size: 13px; }
.readonly-link { display: flex; }
.readonly-link .input { border-radius: 6px 0 0 6px; background: var(--raised); font-size: 13px; min-width: 0; }
.readonly-link .btn { border-radius: 0 6px 6px 0; border-left: 0; flex: none; }
.err { color: var(--negative); font-size: 13px; min-height: 18px; }
.seg-wrap { overflow-x: auto; max-width: 100%; }
.search { position: relative; }
.search .input { height: var(--control-height); padding-left: 32px; width: 240px; }
.search svg { position: absolute; left: 10px; top: 8px; color: var(--faint); width: 14px; height: 14px; }

/* ---------- diálogos e avisos (flutuam: ganham sombra) ---------- */
dialog.dlg { border: 0; padding: 0; border-radius: 16px; width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 24px); background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 24px 64px rgba(0,0,0,.35); } /* taste-skill-ignore: elemento que flutua */
dialog.dlg::backdrop { background: rgba(4,6,3,.6); backdrop-filter: blur(3px); }
dialog.dlg.wide { width: min(860px, calc(100vw - 24px)); }
.dlg > form { display: flex; flex-direction: column; max-height: calc(100svh - 24px); }
.dlg header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.dlg header h2 { font-size: 16px; font-weight: 700; }
.dlg .body { padding: 20px; overflow: auto; }
.dlg footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.menu { position: absolute; z-index: 30; min-width: 220px; padding: 4px; background: var(--surface); border-radius: 8px; box-shadow: 0 8px 28px rgba(16,20,18,.2), 0 0 0 1px var(--border); } /* taste-skill-ignore: elemento que flutua */
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; font-weight: 500; }
.menu button:hover { background: var(--raised); }
.menu hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 0; }
#toasts { position: fixed; z-index: 100; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 8px; font-weight: 500; box-shadow: 0 8px 24px rgba(16,20,18,.3); animation: rise var(--t-ui) var(--ease-out); } /* taste-skill-ignore: elemento que flutua */
.toast.error { background: var(--negative); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- entrar ---------- */
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--surface); }
.auth-side { background: #101412; color: #e9efe9; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-side img { width: 72px; height: 72px; }
.auth-side h2 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; max-width: 14em; color: #fff; }
.auth-side ul { display: grid; gap: 12px; padding: 0; margin: 24px 0 0; list-style: none; color: #b7c6bc; font-size: 15px; max-width: 34em; }
.auth-form { display: grid; place-items: center; padding: 32px 24px; }
.auth-form form { width: min(380px, 100%); display: grid; gap: 16px; }
.auth-form h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.auth-form .logo-m { display: none; width: 44px; height: 44px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent-edge); flex: none; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-form .logo-m { display: block; } .auth-form { place-items: start center; padding-top: 48px; } }

/* ---------- tela pequena ---------- */
@media (max-width: 860px) {
  .cols-8, .cols-4, .cols-7, .cols-5, .cols-6, .cols-3, .cols-9 { grid-column: 1 / -1; }
  .title-row { margin-bottom: 16px; }
  .title-row .actions { width: 100%; }
  .title-row .actions .btn { flex: 1; min-height: 40px; }
  .btn { min-height: 40px; } .btn.sm { min-height: 36px; }
  .search { flex: 1; min-width: 0; } .search .input { width: 100%; }
  .filters { gap: 8px; }
  .gantt { --nw: 148px; }
  .kpi { padding: 14px 16px; } .kpi.lead .kpi-value { font-size: 28px; }
}
@media (max-width: 640px) {
  .lhead { display: none; }
  .lrow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding-top: 12px; padding-bottom: 12px; }
  .lrow .main { flex: 1 1 calc(100% - 120px); }
  .lrow .end { margin-left: auto; }
  .lrow .sec { font-size: 13px; color: var(--muted); flex: none; text-align: left; }
  .lrow .sec.hide-m { display: none; }
  .lrow .pace-cell { flex: 1 1 100%; }
  .form .two { grid-template-columns: 1fr; }
  .input, select.input { height: 44px; }
  dialog.dlg { width: calc(100vw - 16px); }
  .panel { padding: 16px; } .panel.flush { padding: 0; } .panel.flush > header { padding: 16px 16px 0; } .lrow { padding-left: 16px; padding-right: 16px; }
}
.table-wrap table th:first-child, .table-wrap table td:first-child { position: sticky; left: 0; background: var(--surface); }

.panel > header h2 { flex: none; white-space: nowrap; }
.panel > header .meta { min-width: 0; text-align: right; }

/* =====================================================================
   v2 — interface mais tecnológica: grade de pontos, números em mono,
   neon limão, animações e as novas visões de tarefas
   ===================================================================== */
body { background-color: var(--ground); background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px; background-attachment: fixed; }
html.theming *, html.theming *::before, html.theming *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important; }
.kpi-value, .pace-n, .count, .stamp, .g-week em, .lrow .n, .lhead .n, td.n, th.n, .chart-tip { font-family: var(--mono); letter-spacing: -0.02em; }
.kpi-value { font-weight: 500; }
.kpi-label, .group-label, .lhead span, th { text-transform: uppercase; letter-spacing: .07em; font-size: 11px !important; font-weight: 600; }
.panel, .kpis { border-radius: var(--radius-card); transition: border-color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease; }
.panel:hover { border-color: color-mix(in srgb, var(--accent-edge, var(--accent)) 45%, var(--border)); }
[data-theme="dark"] .panel:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); }
.panel h2 { letter-spacing: -0.01em; }
.panel.flush { overflow: hidden; }
.title-row h1 { font-weight: 800; letter-spacing: -0.03em; }
.title-row h1::after { content: ""; display: inline-block; width: .42ch; height: .82em; margin-left: 10px; background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-edge), var(--glow); vertical-align: -.08em; border-radius: 1px; animation: blink 1s steps(2, jump-none) 5; }
.lrow.click:hover, .lrow:has(.main[data-act]):hover { background: var(--raised); }
.btn { border-radius: var(--radius-control); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border: 1px solid var(--accent-edge); font-weight: 700; box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.06); background: var(--primary); box-shadow: var(--glow), 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn:active { transform: scale(.97); }
.input:focus-visible, select.input:focus-visible, textarea.input:focus-visible { border-color: var(--accent-edge); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); outline: none; }
:focus-visible { outline-color: var(--accent-edge); }
[data-theme="dark"] :focus-visible { outline-color: var(--accent); }
.switch:checked { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-edge); }
.switch:checked::after { background: var(--accent-ink); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent-edge), var(--glow); }
.tabs a[aria-selected="true"] { color: var(--text); }
.tabs a[aria-selected="true"]::after { background: var(--accent); box-shadow: var(--glow); height: 3px; border-radius: 3px 3px 0 0; }
.pill.pos i, .pill i { box-shadow: 0 0 0 0 currentColor; }
.pill.pos i { animation: ping 2.2s ease-out infinite; }

/* barra lateral */
.sidebar { background: var(--ground); border-right: 1px solid var(--border); }
.brand img { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 40%, transparent)); transition: transform .5s var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav-item { position: relative; border-radius: 10px; transition: background-color .15s ease, color .15s ease, transform .2s var(--ease-out); }
.nav-item:hover { background: var(--raised); color: var(--text); transform: translateX(2px); }
.nav-item[aria-current="page"] { background: var(--active); color: var(--text); }
.nav-item[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: var(--glow), 0 0 0 .5px var(--accent-edge); animation: grow-y .35s var(--ease-out); }
.nav-item[aria-current="page"] .ic { color: var(--accent-text); }
.sidebar .bottom { display: grid; gap: 8px; }
.theme-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.theme-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.theme-seg button .ic { width: 14px; height: 14px; }
.theme-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-edge); }
.mbar { background: var(--ground); }
.mbar .iconbtn.theme { margin-left: auto; }

/* avatares */
.avatar { box-shadow: 0 0 0 2px var(--surface); }
.astack { display: inline-flex; align-items: center; }
.astack .avatar + .avatar { margin-left: -8px; }
.astack .avatar { transition: transform .2s var(--ease-out); }
.astack:hover .avatar { transform: translateY(-2px); }
.userrow .avatar { box-shadow: 0 0 0 2px var(--accent-edge); }
[data-theme="dark"] .userrow .avatar { box-shadow: 0 0 0 2px var(--accent); }
.rowtop { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rowtop b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { position: relative; cursor: pointer; }
.pchip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pchip > span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 12px 4px 5px; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: 13px; transition: border-color .15s ease, background-color .15s ease, transform .15s var(--ease-out); }
.pchip > span.none { padding-left: 12px; }
.pchip:hover > span { border-color: var(--accent-edge); transform: translateY(-1px); }
.pchip input:checked + span { background: var(--accent-soft); border-color: var(--accent-edge); font-weight: 700; box-shadow: var(--glow); }
.pchip input:focus-visible + span { outline: 2px solid var(--accent-edge); outline-offset: 2px; }
.avpick { display: grid; gap: 12px; }
.avpick-head { display: flex; align-items: center; gap: 14px; }
.avpick-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; max-height: 148px; overflow: auto; padding: 2px; }
.emojis button { height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 20px; cursor: pointer; transition: transform .15s var(--ease-out), border-color .15s ease; }
.emojis button:hover { transform: scale(1.12); border-color: var(--accent-edge); }
.emojis button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-edge); box-shadow: var(--glow); }

/* visões de tarefas */
.vswitch { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); gap: 2px; }
.vswitch button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.vswitch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-edge), var(--glow); }
.vswitch .ic { width: 14px; height: 14px; }
.tgroup { margin-bottom: 22px; }
.tgroup > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); }
.tgroup > h3 .cnt { font-family: var(--mono); background: var(--raised); color: var(--text); border-radius: 999px; padding: 0 8px; line-height: 20px; }
.tgroup > h3.late { color: var(--negative); }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.tcard { position: relative; display: grid; gap: 10px; align-content: start; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .25s var(--ease-out), border-color .2s ease, box-shadow .25s ease; animation: rise-in .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms); }
.tcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--control); }
.tcard.doing::before { background: var(--accent); box-shadow: var(--glow); }
.tcard.late::before { background: var(--negative); }
.tcard.done::before { background: var(--control); }
.tcard:hover { transform: translateY(-3px); border-color: var(--accent-edge); box-shadow: 0 10px 30px rgba(0,0,0,.12), var(--glow); }
.tcard.done .ttitle { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--control); }
.tcard .trow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 11px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.late { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.chip.soon { background: var(--accent-soft); color: var(--accent-text); }
.chip .ic { width: 12px; height: 12px; }
.ttitle { appearance: none; border: 0; background: none; padding: 0; text-align: left; font: inherit; font-weight: 700; font-size: 15px; line-height: 20px; color: var(--text); cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tmeta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: -6px; }
.tfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); min-width: 0; }
.tfoot .who { font-size: 12px; color: var(--muted); }
.tact { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; flex: none; transition: background-color .15s ease, transform .15s var(--ease-out), border-color .15s ease; }
.tact .ic { width: 12px; height: 12px; }
.tact:hover { background: var(--accent); border-color: var(--accent-edge); color: var(--accent-ink); transform: scale(1.04); }
.tact:active { transform: scale(.94); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.bcol { display: grid; gap: 10px; align-content: start; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface) 55%, transparent); min-height: 160px; transition: border-color .2s ease, background-color .2s ease; }
.bcol.over { border-color: var(--accent-edge); background: var(--accent-soft); border-style: dashed; }
.bcol > header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 2px; font-weight: 700; font-size: 13px; }
.bcol > header i { width: 8px; height: 8px; border-radius: 50%; background: var(--control); }
.bcol[data-s="doing"] > header i { background: var(--accent); box-shadow: var(--glow); animation: ping 2.2s ease-out infinite; }
.bcol[data-s="done"] > header i { background: var(--positive); }
.bcol > header .cnt { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bcol .tcard { cursor: grab; }
.bcol .tcard.dragging { opacity: .4; transform: scale(.97); cursor: grabbing; }
.bcol .empty { min-height: 72px; font-size: 13px; }
.bcol .more { font-size: 12px; color: var(--muted); text-align: center; padding: 4px; }
.hint-dnd { font-size: 12px; color: var(--faint); }

/* animações */
@keyframes in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
#view[data-anim] > .title-row, #view[data-anim] > .crumb { animation: in .5s var(--ease-out) both; }
#view[data-anim] > .kpis { animation: in .55s var(--ease-out) .06s both; }
#view[data-anim] > .filters, #view[data-anim] > .tabs { animation: in .5s var(--ease-out) .1s both; }
#view[data-anim] .grid > *, #view[data-anim] > .panel, #view[data-anim] > .stack > *, #view[data-anim] #tab > * { animation: in .55s var(--ease-out) both; }
#view[data-anim] .grid > *:nth-child(1) { animation-delay: .12s; } #view[data-anim] .grid > *:nth-child(2) { animation-delay: .18s; } #view[data-anim] .grid > *:nth-child(3) { animation-delay: .24s; } #view[data-anim] .grid > *:nth-child(4) { animation-delay: .3s; } #view[data-anim] .grid > *:nth-child(n+5) { animation-delay: .36s; }
#view[data-anim] > .panel, #view[data-anim] #tab > * { animation-delay: .16s; }
#view[data-anim] .lrow { animation: in .45s var(--ease-out) both; }
#view[data-anim] .lrow:nth-child(2) { animation-delay: .2s; } #view[data-anim] .lrow:nth-child(3) { animation-delay: .24s; } #view[data-anim] .lrow:nth-child(4) { animation-delay: .28s; } #view[data-anim] .lrow:nth-child(5) { animation-delay: .32s; } #view[data-anim] .lrow:nth-child(n+6) { animation-delay: .36s; }
.chart svg rect, .chart svg path.bar { transform-box: fill-box; transform-origin: bottom; animation: bar-up .7s var(--ease-out) both; }
@keyframes bar-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chk.on svg { animation: pop .35s var(--ease-out); }
dialog.dlg[open] { animation: rise-in .28s var(--ease-out); }
dialog.dlg[open]::backdrop { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.menu { animation: rise-in .16s var(--ease-out); transform-origin: top right; }
.toast { border-left: 3px solid var(--accent); }
.skeleton { background: linear-gradient(90deg, var(--raised) 25%, var(--active) 45%, var(--raised) 65%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* login */
.auth-side { background: #070908; background-image: radial-gradient(rgba(212,255,42,.14) 1px, transparent 1.2px); background-size: 22px 22px; color: #e9efe9; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; bottom: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(212,255,42,.28), transparent); animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-30px, -24px); } }
.auth-side h2 em { font-style: normal; color: #d4ff2a; }
.auth, .auth-form { background: var(--ground); }
.auth-form .theme-seg { width: 200px; }

/* responsivo das novas peças */
@media (max-width: 1000px) { .board { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(82vw, 340px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; } .bcol { scroll-snap-align: start; } }
@media (max-width: 860px) { :root { --pad: 16px; } .vswitch button span { display: none; } .vswitch button { padding: 0 12px; } .tcards { grid-template-columns: 1fr; } .nav-item[aria-current="page"]::before { left: -16px; } }
@media (max-width: 640px) { .title-row h1::after { display: none; } .tgroup > h3 { margin-top: 4px; } }
@media (hover: none) { .hint-dnd { display: none; } }
@media (max-width: 860px) { .filters .search { flex: 1 1 100%; } .filters .search .input { width: 100%; } }
/* logo da BOO em limão neon */
.brand img, .mbar img, .auth-side img, .auth-form .logo-m, .pub-top img { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 35%, transparent)); }

/* =====================================================================
   v3 — etiquetas, nichos, rosca, carga da equipe e telas maiores
   ===================================================================== */
:root { --fs-body: 15px; --fs-title: 30px; --pad: clamp(20px, 2.4vw, 44px); --gap: clamp(14px, 1.4vw, 24px); --card-pad: clamp(18px, 1.7vw, 28px); --sidebar-width: 248px; }
body { font-size: 15px; line-height: 22px; }
.canvas { max-width: 1840px; }
.kpi { padding: 22px var(--card-pad); }
.kpi-value { font-size: clamp(24px, 2vw, 38px); line-height: 1.25; white-space: nowrap; }
.kpi.lead .kpi-value { font-size: clamp(28px, 2.5vw, 46px); }
.lrow .n, .lhead .n { white-space: nowrap; }
.kpi-label { margin-bottom: 4px; }
.panel h2 { font-size: 17px; }
.lrow { min-height: 64px; }
.lrow .main b, .lrow .main .t { font-size: 15px; }
.lhead { height: 42px; }
.nav-item { height: 40px; font-size: 15px; }
.btn { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.sm { height: 30px; padding: 0 12px; }
.input, select.input { height: 42px; font-size: 15px; }
.filters .input, .filters select.input { height: 38px !important; }
.vswitch button, .theme-seg button { height: 34px; }
.avatar { width: 34px; height: 34px; } .avatar.sm { width: 28px; height: 28px; font-size: 12px; } .avatar.emo { font-size: 18px; } .avatar.sm.emo { font-size: 15px; } .avatar.lg { width: 64px; height: 64px; }
.tcard { padding: 18px 20px 14px; gap: 12px; } .ttitle { font-size: 16px; line-height: 22px; }
.tcards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.board { gap: 18px; } .bcol { padding: 14px; gap: 14px; min-height: 360px; border-radius: 18px; }
.chip { height: 24px; font-size: 12px; } .tact { height: 32px; font-size: 13px; }
.chart { min-height: 220px; }
.pace { height: 10px; }
.g-row { height: 52px; } .g-bar { top: 15px; height: 22px; }
.dlg header h2 { font-size: 18px; }
dialog.dlg { width: min(620px, calc(100vw - 24px)); }
.title-row { margin-bottom: 26px; } .title-row h1 { font-size: 32px; }
.grid { gap: var(--gap); }
.panel { min-height: 0; }
#view { min-height: calc(100svh - 2 * var(--pad)); }

/* etiquetas */
.tags { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; vertical-align: middle; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: color-mix(in srgb, var(--tc) 72%, var(--text)); background: color-mix(in srgb, var(--tc) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tc) 34%, transparent); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--tc); }
.tag.sm { height: 19px; font-size: 10.5px; margin-right: 4px; } .tag.lg { height: 30px; font-size: 14px; padding: 0 14px 0 11px; }
.tag.more { background: var(--raised); color: var(--muted); border-color: transparent; padding: 0 7px; }
.tcard .tags { margin-top: -2px; }
.pchip.tagc > span { padding: 4px 14px 4px 10px; gap: 8px; color: color-mix(in srgb, var(--tc) 72%, var(--text)); }
.pchip.tagc > span i { width: 9px; height: 9px; border-radius: 50%; background: var(--tc); }
.pchip.tagc input:checked + span { background: color-mix(in srgb, var(--tc) 20%, var(--surface)); border-color: var(--tc); box-shadow: 0 0 0 1px var(--tc); }
.newtag { display: flex; gap: 8px; margin-top: 10px; } .newtag .input { height: 36px; flex: 1; }
.taglist { display: grid; gap: 8px; margin-top: 14px; }
.tagrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s ease, transform .2s var(--ease-out); }
.tagrow:hover { border-color: var(--accent-edge); transform: translateX(3px); }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 320px; }
.swatches label { position: relative; cursor: pointer; } .swatches input { position: absolute; opacity: 0; inset: 0; }
.swatches span { display: block; height: 36px; border-radius: 10px; transition: transform .15s var(--ease-out); }
.swatches label:hover span { transform: scale(1.08); }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text); }
.swatches input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 4px; }

/* rosca */
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 6px 0; }
.donut { position: relative; flex: none; }
.donut svg { width: 100%; height: 100%; display: block; overflow: visible; }
.donut .seg { animation: donut-in 1.1s var(--ease-out) both; stroke-linecap: butt; }
@keyframes donut-in { from { stroke-dasharray: 0 100; } }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c b { font-family: var(--mono); font-size: 34px; line-height: 38px; font-weight: 500; letter-spacing: -0.03em; }
.donut-c span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 150px; }
.donut-legend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.donut-legend i { width: 12px; height: 12px; border-radius: 4px; } .donut-legend b { font-family: var(--mono); font-weight: 600; }

/* carga da equipe: verde → amarelo → vermelho */
.loadlist { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 22px; }
.loadlist li { display: grid; grid-template-columns: auto 1fr 56px; align-items: center; gap: 16px; }
.lmid { min-width: 0; } .lt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lt b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbadge { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--tone); }
.ltrack { position: relative; height: 14px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.ltrack::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #2fd673, #f2d02b 55%, #ff4a4a); opacity: .16; }
.ltrack i { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, #2fd673, #f2d02b 55%, #ff4a4a); clip-path: inset(0 calc(100% - var(--p)) 0 0 round 999px); animation: gauge 1.5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--delay, 0ms); box-shadow: 0 0 14px color-mix(in srgb, var(--tone) 55%, transparent); }
@keyframes gauge { from { clip-path: inset(0 100% 0 0 round 999px); } }
.lnum { font-family: var(--mono); font-size: 30px; line-height: 1; font-weight: 500; text-align: right; color: var(--tone); letter-spacing: -0.04em; }
.tagbars { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 16px; }
.tagbars li { display: grid; grid-template-columns: minmax(96px, auto) 1fr 32px; align-items: center; gap: 14px; }
.tagbars .tb { height: 10px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.tagbars .tb i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--tc); animation: grow 1s var(--ease-out) both; animation-delay: var(--delay); transform-origin: left; }
.tagbars b { font-family: var(--mono); text-align: right; font-size: 16px; }
@media (max-width: 1100px) { :root { --pad: 28px; } }
@media (max-width: 860px) { :root { --pad: 16px; --card-pad: 18px; } .kpi-value { font-size: 28px; line-height: 34px; } .kpi.lead .kpi-value { font-size: 32px; } .title-row h1 { font-size: 26px; } .lnum { font-size: 24px; } .donut-wrap { gap: 18px; } .loadlist li { gap: 12px; } }
.tagrow .tag { justify-self: start; }
