/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 14px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
h1 { font: 700 44px/0.95 var(--font-display); letter-spacing: var(--ls-display); text-wrap: balance; }
h2 { font: 700 17px/1.2 var(--font-display); letter-spacing: -0.02em; }
h3 { font-size: 14px; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-s); }
[hidden] { display: none !important; }
.ico { flex: none; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--ink-3); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--ink-inverse); padding: 8px 12px; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }

.row { display: flex; align-items: center; }
.gap { gap: 10px; } .gap-s { gap: 6px; }
.wrap { flex-wrap: wrap; } .end { justify-content: flex-end; } .between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--ink-3); } .sm { font-size: 13px; } .xs { font-size: 12px; } .center { text-align: center; }
.full { width: 100%; }
.link { color: var(--link); text-decoration: none; font-weight: 600; transition: opacity .2s; }
.link:hover { opacity: .6; }
.link-btn { color: var(--ink-3); text-decoration: underline; }
.critical-text { color: var(--critical); } .warning-text { color: var(--warning); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-s); font-weight: 600; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; flex-shrink: 0; border: 1px solid transparent; transition: background .12s, border-color .12s; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 10.5px; letter-spacing: .14em; }
.btn.lg { height: 50px; font-size: 12px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.ghost { border: 0; box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; }
.btn.ghost:hover:not(:disabled) { opacity: .7; }
.btn.soft { background: var(--surface-sunk); }
.btn.soft:hover:not(:disabled) { background: var(--line); }
.btn.danger { background: var(--critical-fill); color: var(--branco); }
.btn.danger-ghost { color: var(--critical); border: 0; box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; }
.btn.danger-ghost:hover { background: var(--critical-soft); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-s); color: var(--ink-2); }
.icon-btn.sm { width: 26px; height: 26px; }
.icon-btn:hover { background: var(--surface-sunk); color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.chip { font-size: 12px; font-weight: 600; }
.chip.static { height: 24px; padding: 0 9px; font-size: 12px; background: var(--surface-2); border-color: var(--line); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--radius-s); font-size: 12px; font-weight: 600; background: var(--surface-sunk); color: var(--ink-2); white-space: nowrap; }
.badge.readonly { background: var(--neutral-soft); color: var(--ink-3); }
.badge.strong { background: var(--ink); color: var(--ink-inverse); }
.tag { margin-left: 8px; padding: 1px 7px; border-radius: var(--radius-s); font-size: 12px; font-weight: 600; }
.tag.late { background: var(--critical-fill); color: var(--branco); } .tag.done { background: var(--good-fill); color: var(--preto); } .tag.soon { background: var(--warning-fill); color: var(--preto); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status.good { color: var(--good); } .status.warning { color: var(--warning); } .status.critical { color: var(--critical); } .status.neutral { color: var(--ink-3); } .status.serious { color: var(--serious); }

.input { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.input.sm { height: 32px; font-size: 13px; padding: 0 9px; }
textarea.input { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.input[readonly] { background: var(--surface-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-size: 11px; font-weight: 600; color: var(--ink-2); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input, input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ceu); }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.form-error { padding: 9px 12px; border-radius: var(--radius-s); background: var(--critical-soft); color: var(--critical); font-size: 13px; font-weight: 500; }
.form-ok { padding: 9px 12px; border-radius: var(--radius-s); background: var(--accent-soft); color: var(--link); font-size: 13px; }
.hint { margin-top: -8px; }
.account-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: var(--radius-s); background: var(--surface-sunk); font-size: 13px; font-weight: 500; align-self: flex-start; }

.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700; letter-spacing: .01em; user-select: none; }
.avatar.more { background: var(--surface-sunk); color: var(--ink-2); }
.avatars { display: inline-flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar + .avatar { margin-left: -6px; }
.squad-dot { width: 12px; height: 12px; border-radius: var(--radius-s); flex: none; display: inline-block; }
.squad-dot.sm { width: 9px; height: 9px; border-radius: var(--radius-s); }
.legacy { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px dashed var(--line-strong); border-radius: var(--radius-s); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.legacy.sm { height: 20px; font-size: 11px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 560px); background: var(--papel); }
.auth-art { background: var(--preto); color: var(--papel); padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand img { width: 40px; height: 40px; }
.auth-brand span { font: 500 12px/1 var(--font-body); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.auth-quote { position: relative; z-index: 1; font: 700 clamp(48px, 6.2vw, 112px)/0.88 var(--font-display); letter-spacing: -0.05em; max-width: 9ch; text-wrap: balance; }
.auth-sub { position: relative; z-index: 1; margin-top: 24px; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--cinza-claro); }
/* The brand arc: quarter ring, inner radius 56% of outer, centre on the corner. */
.arc { position: absolute; width: var(--s); height: var(--s); pointer-events: none; }
.arc.tr { right: 0; top: 0; background: radial-gradient(circle at 100% 0%, transparent calc(var(--s) * .56 - 1px), var(--c) calc(var(--s) * .56) var(--s), transparent calc(var(--s) + 1px)); }
.arc.br { right: 0; bottom: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--s) * .56 - 1px), var(--c) calc(var(--s) * .56) var(--s), transparent calc(var(--s) + 1px)); }
.arc.bl { left: 0; bottom: 0; background: radial-gradient(circle at 0% 100%, transparent calc(var(--s) * .56 - 1px), var(--c) calc(var(--s) * .56) var(--s), transparent calc(var(--s) + 1px)); }
.arc { animation: arc-in 1000ms var(--ease-brand) both; transform-origin: var(--o, 100% 0%); }
@keyframes arc-in { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .arc { animation: none; } }
.auth-panel { display: grid; place-items: center; padding: 40px 28px; background: var(--bg); color: var(--ink); position: relative; }
.auth-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.auth-copy { position: relative; z-index: 1; padding-left: clamp(0px, 8vw, 120px); }
.auth-logo.light { width: 200px; height: auto; margin-bottom: 22px; }
.auth-logo.dark { display: none; align-items: center; gap: 10px; margin-bottom: 22px; font: 800 26px/1 var(--font-display); letter-spacing: -0.03em; text-transform: uppercase; }
.auth-logo.dark img { width: 34px; height: 34px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-logo.light { display: none; } :root:not([data-theme="light"]) .auth-logo.dark { display: flex; } }
:root[data-theme="dark"] .auth-logo.light { display: none; }
:root[data-theme="dark"] .auth-logo.dark { display: flex; }
.auth-card h1 { font-size: 52px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 300px; }
  .auth-quote { font-size: 52px; }
  .auth-panel { place-items: start center; }
}

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; width: 252px; flex: none; display: flex; flex-direction: column; background: var(--side-bg); color: var(--side-ink); padding: 20px 12px 12px; overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 4px 8px 22px; color: inherit; }
.brand-mark { width: 30px; height: 30px; flex: none; display: block; }
.brand-word { font: 800 17px/1 var(--font-display); letter-spacing: -0.03em; text-transform: uppercase; }
.brand-word small { display: block; font: 500 10px var(--font-body); letter-spacing: var(--ls-eyebrow); color: var(--side-ink-2); margin-top: 5px; }
.nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; text-decoration: none; color: var(--cinza-claro); font-weight: 500; position: relative; }
.nav-item:hover { background: var(--side-hover); color: var(--papel); }
.nav-item.active { background: var(--side-hover); color: var(--branco); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--nav-active); }
.nav-item.sub { height: 31px; padding-left: 36px; font-size: 13px; }
.nav-item.sub .ico { color: var(--side-ink-2); }
.nav-squads { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; }
.nav-squads .nav-label { padding-left: 36px; margin-top: 6px; }
.nav-label { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--side-ink-2); padding: 16px 10px 6px; }
.nav-count { min-width: 20px; height: 18px; padding: 0 5px; font: 500 11px/18px var(--font-mono); text-align: center; }
.nav-count.critical { background: var(--calor); color: var(--branco); }
.nav-me { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--cinza-escuro); }
.me-link { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px; flex: 1; min-width: 0; color: inherit; }
.me-link:hover, .me-link.active { background: var(--side-hover); }
.me-link b, .me-link small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-link small { color: var(--side-ink-2); font-size: 12px; }
.sidebar .icon-btn { color: var(--cinza-claro); }
.sidebar .icon-btn:hover { background: var(--side-hover); color: var(--branco); }
.sidebar .avatars .avatar, .sidebar .avatar { box-shadow: none; }
.side-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 0; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--side-ink-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--natureza); }
.live.down i { background: var(--luz); }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main { flex: 1; min-width: 0; outline: none; }
.topbar { display: none; }
.scrim { display: none; }
@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s var(--ease-brand); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(12, 13, 13, .5); z-index: 25; }
  .topbar { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px; background: var(--side-bg); color: var(--side-ink); position: sticky; top: 0; z-index: 20; }
  .topbar .brand { padding: 0; }
  .topbar .icon-btn { color: var(--papel); }
}

/* ---------- page ---------- */
.page { padding: 40px clamp(20px, 3vw, 48px) 64px; max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .muted { margin-top: 6px; max-width: 620px; }
.eyebrow { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--ink-3); margin-bottom: 12px; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.section-title h2 { font: 700 26px/1 var(--font-display); letter-spacing: var(--ls-display); }
.group-title { font: 700 22px/1 var(--font-display); letter-spacing: -0.03em; margin: 6px 0 14px; }
.tabs { display: flex; gap: 4px; padding: 3px; background: var(--surface-sunk); border-radius: var(--radius-s); flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: var(--radius-s); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-panel), 0 0 0 1px var(--line); font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 20px; box-shadow: var(--shadow-panel); min-width: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.empty { padding: 26px 12px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.all-clear { display: flex; align-items: center; gap: 8px; padding: 16px; border-radius: var(--radius-s); background: var(--good-soft); color: var(--good); font-weight: 600; border-left: 4px solid var(--natureza); }
@media (max-width: 720px) { .page { padding: 20px 16px 40px; } h1 { font-size: 25px; } }

/* ---------- dashboards ---------- */
.dash { display: flex; flex-direction: column; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-panel); }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.kpi-value { font: 700 44px/0.95 var(--font-display); letter-spacing: var(--ls-display); font-variant-numeric: tabular-nums; margin-top: 6px; }
.kpi-hint { font-size: 12px; color: var(--ink-3); }
.kpi.critical { box-shadow: inset 4px 0 0 var(--critical-fill); }
.kpi.good { box-shadow: inset 4px 0 0 var(--good-fill); }
.kpi.warning { box-shadow: inset 4px 0 0 var(--warning-fill); }
.kpi.critical .kpi-label { color: var(--critical); }
.kpi.warning .kpi-label { color: var(--warning); }
.kpi.good .kpi-label { color: var(--good); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.span-2 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 720px) { .dash-grid { grid-template-columns: 1fr; } }

.attention { display: flex; flex-direction: column; gap: 8px; }
.att-group { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); }
.att-group summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; font-weight: 600; }
.att-group summary::-webkit-details-marker { display: none; }
.att-group summary::after { content: ''; width: 7px; height: 7px; border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; margin-left: 2px; }
.att-group[open] summary::after { transform: rotate(45deg); }
.status-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-s); }
.status-ico.critical { background: var(--critical-fill); color: var(--branco); }
.status-ico.warning { background: var(--warning-fill); color: var(--preto); }
.status-ico.serious { background: var(--serious-fill); color: var(--preto); }
.status-ico.neutral { background: var(--neutral-soft); color: var(--ink-2); }
.count { min-width: 28px; height: 22px; padding: 0 7px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font: 500 12px var(--font-mono); }
.att-items { padding: 0 6px 8px; display: flex; flex-direction: column; }
.more-line { padding: 6px 10px 0; }
.row-card { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius-s); }
.row-card:hover { background: var(--surface); }
.row-title { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-extra, .row-extra-in { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.att-group.critical .row-extra { color: var(--critical); font-weight: 600; }

.upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.up { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: var(--radius-s); }
.up[onclick], .up.entrega { cursor: pointer; }
.up:hover { background: var(--surface-2); }
.up-date { display: flex; flex-direction: column; align-items: center; width: 40px; flex: none; font-size: 10px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; border-left: 3px solid var(--ceu); }
.up.entrega .up-date { border-left-color: var(--calor); }
.up-date b { font: 700 22px/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); }

.progress-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-s); text-decoration: none; }
.progress-row:hover { background: var(--surface-2); }
.progress-row b { display: block; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feed.compact { gap: 2px; }
.feed .act { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.feed.compact .act { align-items: center; padding: 6px 6px; border-radius: var(--radius-s); cursor: pointer; }
.feed.compact .act:hover { background: var(--surface-2); }
.feed.compact .act p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- charts ---------- */
.chart-wrap { width: 100%; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { stroke: var(--chart-grid); stroke-width: 1; }
.chart .bar, .spark .bar { fill: var(--chart-1-soft); }
.chart .bar.strong, .spark .bar.strong { fill: var(--chart-1); }
.chart .bar.zero, .spark .bar.zero { fill: var(--line); }
.chart .val { font: 600 12px var(--font-body); fill: var(--ink); }
.chart .lab { font: 500 11px var(--font-body); fill: var(--ink-3); }
.chart .hit { fill: transparent; }
.chart .area-fill { fill: var(--chart-1); opacity: .12; }
.chart .area-line { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--chart-1); stroke: var(--surface); stroke-width: 2; }
.chart-tip { position: fixed; z-index: 200; pointer-events: none; display: none; padding: 6px 9px; border-radius: var(--radius-s); background: var(--ink); color: var(--ink-inverse); font-size: 12px; font-weight: 500; white-space: nowrap; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 40%) 1fr 32px; align-items: center; gap: 10px; font-size: 13px; }
.hbar-lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.hbar-track { height: 12px; background: var(--surface-sunk); border-radius: var(--radius-s); overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--chart-1); border-radius: var(--radius-s); }
.hbar-fill.muted { background: var(--ink-3); opacity: .55; }
.hbar-fill.good { background: var(--natureza); }
.hbar-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ring-track { fill: none; stroke: var(--surface-sunk); stroke-width: 5; }
.ring-fill { fill: none; stroke: var(--chart-1); stroke-width: 5; stroke-linecap: round; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--font-mono); font-size: 13px; }
.table tr.dim { opacity: .55; }
.person { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.person b { display: block; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.squad-name { display: inline-flex; align-items: center; gap: 8px; font: 700 22px var(--font-display); letter-spacing: -0.03em; text-decoration: none; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.mini-kpis span { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-3); }
.mini-kpis b { font: 700 26px/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); }
.mini-kpis .critical-text b { color: var(--critical); } .mini-kpis .warning-text b { color: var(--warning); }

/* ---------- board (Trello-like) ---------- */
.board { display: flex; flex-direction: column; background: var(--board-bg); border-radius: var(--radius-s); min-height: 0; }
.board-page .board { height: calc(100vh - 56px); border-radius: var(--radius-s); }
.board-page { max-width: none; padding-bottom: 20px; }
.board.embedded { height: 640px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.board-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board-name { font: 700 26px/1 var(--font-display); letter-spacing: -0.04em; text-decoration: none; }
a.board-name:hover { text-decoration: underline; }
.board-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.board-tools .input { width: 180px; }
.board-canvas { flex: 1; display: flex; align-items: flex-start; gap: 12px; padding: 4px 14px 14px; overflow-x: auto; overflow-y: hidden; min-height: 0; }
.list { flex: 0 0 272px; max-height: 100%; display: flex; flex-direction: column; background: var(--list-bg); border-radius: var(--radius-s); padding: 0 0 8px; }
.list.kind-done { background: color-mix(in srgb, var(--good-soft) 60%, var(--list-bg)); }
.list.kind-hold { background: color-mix(in srgb, var(--neutral-soft) 70%, var(--list-bg)); }
.list-head { display: flex; align-items: center; gap: 6px; padding: 10px 8px 6px 14px; cursor: grab; }
.list-name { flex: 1; min-width: 0; font: 700 15px/1.2 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; cursor: text; }
.list-rename { height: 30px; flex: 1; font-weight: 600; }
.list-count { font: 500 12px var(--font-mono); color: var(--ink-3); }
.kind-tag { display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--radius-s); }
.kind-tag.done { background: var(--good-fill); color: var(--preto); }
.kind-tag.hold { background: var(--ink-3); color: #fff; }
.list-cards { flex: 1; min-height: 6px; overflow-y: auto; padding: 2px 8px; display: flex; flex-direction: column; gap: 8px; }
.add-card { display: flex; align-items: center; gap: 6px; margin: 4px 8px 0; padding: 7px 8px; border-radius: var(--radius-s); color: var(--ink-2); font-weight: 500; text-align: left; }
.add-card:hover { background: var(--surface-sunk); color: var(--ink); }
.composer { padding: 4px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.composer textarea { box-shadow: var(--card-shadow); border-color: transparent; resize: none; }
.add-list { background: transparent; padding: 0; }
.add-list-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--ink) 8%, transparent); font-weight: 600; color: var(--ink-2); }
.add-list-btn:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.add-list:has(input) { background: var(--list-bg); padding: 8px; display: flex; flex-direction: column; gap: 8px; }

.kcard { background: var(--card-bg); border-radius: var(--radius-s); box-shadow: var(--card-shadow); cursor: pointer; flex: none; overflow: hidden; user-select: none; touch-action: none; }
.kcard:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.kcover { height: 32px; }
.kbody { padding: 8px 10px 9px; display: flex; flex-direction: column; gap: 5px; }
.klabels { display: flex; flex-wrap: wrap; gap: 4px; }
.klabel { min-width: 40px; height: 16px; padding: 0 7px; border-radius: var(--radius-s); font-size: 10.5px; font-weight: 600; line-height: 16px; color: var(--preto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kclient { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ktitle { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.kfoot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: 2px; }
.kbadges { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.kbadge { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink-3); height: 22px; }
.kbadge.due { padding: 0 5px; border-radius: var(--radius-s); margin-left: -5px; }
.kbadge.due.late { background: var(--critical-fill); color: var(--branco); }
.kbadge.due.soon { background: var(--warning-fill); color: var(--preto); }
.kbadge.due.done { background: var(--good-fill); color: var(--preto); }
.kbadge.complete { color: var(--good); font-weight: 600; }
.kbadge.prio.p-high { color: var(--critical); font-weight: 600; }
.kbadge.prio.p-mid { color: var(--warning); }
.kcard.placeholder { background: color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: none; outline: 0; }
.list.placeholder { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; box-shadow: 0 0 0 2px var(--ink), 8px 8px 0 var(--status, var(--luz)); opacity: .97; }
.drag-ghost.kcard { outline: 0; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }

/* ---------- modal & popover ---------- */
.backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(12, 13, 13, .6); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 520px; background: var(--surface); border-radius: var(--radius-s); box-shadow: var(--shadow-pop); position: relative; }
.modal.wide { max-width: 780px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.modal-head h2 { font: 700 24px/1 var(--font-display); letter-spacing: -0.03em; }
.modal-body { padding: 16px 18px 20px; }
.card-modal { background: var(--surface-2); }
.card-modal .modal-body { padding: 0; }
.card-close { position: absolute; right: 10px; top: 10px; z-index: 2; background: var(--surface); }
.card-cover { height: 96px; border-radius: var(--radius-s); }
.archived-bar { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--luz); color: var(--preto); font-weight: 600; }
.card-layout { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 20px; padding: 20px 20px 24px; }
.card-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.card-head { display: flex; gap: 12px; padding-right: 30px; }
.card-head > .ico { margin-top: 8px; color: var(--ink-2); }
.card-head > div { flex: 1; min-width: 0; }
.card-title { width: 100%; resize: none; border: 0; background: transparent; font: 700 26px/1.05 var(--font-display); letter-spacing: -0.03em; padding: 4px 6px; margin-left: -6px; border-radius: var(--radius-s); overflow: hidden; }
.card-title:focus { outline: none; background: var(--surface); box-shadow: 0 0 0 2px var(--focus); }
.card-head .muted { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.card-head .muted a { color: var(--ink-2); }
.card-meta { display: flex; flex-wrap: wrap; gap: 16px 22px; padding-left: 32px; }
.meta-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.meta-block h4 { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.meta-block .input { width: 170px; }
.round-add { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-sunk); color: var(--ink-2); }
.round-add:hover { background: var(--line); }
.label-pill { display: inline-flex; align-items: center; height: 32px; min-width: 48px; padding: 0 12px; border-radius: var(--radius-s); font-weight: 600; font-size: 13px; color: #1d2125; }
.due-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--radius-s); background: var(--surface-sunk); font-weight: 500; }
.card-sec { display: flex; flex-direction: column; gap: 10px; }
.sec-head { display: flex; align-items: center; gap: 12px; }
.sec-head h3 { flex: 1; font-size: 16px; }
.sec-head > .ico { color: var(--ink-2); }
.card-sec > :not(.sec-head) { margin-left: 32px; }
.desc-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; cursor: text; }
.desc-text a { color: var(--link); }
.desc-empty { width: 100%; text-align: left; min-height: 60px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-sunk); color: var(--ink-2); }
.desc-editor { display: flex; flex-direction: column; gap: 8px; }
.progress { display: flex; align-items: center; gap: 10px; }
.progress .pct { width: 32px; font-size: 12px; color: var(--ink-3); }
.progress .bar { flex: 1; height: 8px; background: var(--surface-sunk); border-radius: var(--radius-s); overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--ceu); border-radius: var(--radius-s); transition: width .2s; }
.progress .bar span.full { background: var(--natureza); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: var(--radius-s); }
.checklist li:hover { background: var(--surface-sunk); }
.checklist li span { flex: 1; overflow-wrap: anywhere; }
.checklist li.done span { text-decoration: line-through; color: var(--ink-3); }
.checklist li .icon-btn { opacity: 0; }
.checklist li:hover .icon-btn { opacity: 1; }
.add-item { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.comment-box { display: flex; gap: 10px; }
.comment-box .grow { display: flex; flex-direction: column; gap: 8px; }
.comment { display: flex; gap: 10px; font-size: 13.5px; }
.bubble { margin-top: 4px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble a { color: var(--link); }
.card-side { display: flex; flex-direction: column; gap: 18px; padding-top: 38px; }
.side-group { display: flex; flex-direction: column; gap: 6px; }
.side-group h4 { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.side-btn { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: var(--radius-s); background: var(--surface-sunk); font-weight: 500; font-size: 13.5px; text-align: left; }
.side-btn:hover { background: var(--line); }
.side-btn.danger { background: var(--calor); color: var(--branco); }
@media (max-width: 720px) {
  .backdrop { padding: 0; }
  .modal { border-radius: var(--radius-s); min-height: 100%; }
  .card-layout { grid-template-columns: 1fr; padding: 16px; }
  .card-side { padding-top: 0; order: -1; flex-direction: row; flex-wrap: wrap; }
  .card-side .side-group { flex-direction: row; flex-wrap: wrap; }
  .card-side h4 { width: 100%; }
  .card-meta, .card-sec > :not(.sec-head) { padding-left: 0; margin-left: 0; }
}

.popover { position: fixed; z-index: 250; width: 304px; background: var(--surface); border-radius: var(--radius-s); border: 1px solid var(--ink); }
.popover header { display: flex; align-items: center; justify-content: center; position: relative; padding: 12px 36px; font-size: 11px; font-weight: 600; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ink-2); }
.popover header .icon-btn { position: absolute; right: 6px; top: 6px; }
.pop-body { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.pick-list { display: flex; flex-direction: column; gap: 2px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--radius-s); text-align: left; }
.pick:hover { background: var(--surface-sunk); }
.pick.on { font-weight: 600; }
.label-row { display: flex; align-items: center; gap: 8px; }
.label-edit { flex: 1; height: 32px; border: 0; border-radius: var(--radius-s); padding: 0 10px; font-weight: 600; color: #1d2125; }
.label-edit::placeholder { color: rgba(29, 33, 37, .55); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 44px; height: 30px; border-radius: var(--radius-s); }
.swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatch { border: 1px solid rgba(12, 13, 13, .12); }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: var(--radius-s); text-align: left; }
.menu-item:hover { background: var(--surface-sunk); }
.menu-item.on { font-weight: 600; }
.menu-item.danger { color: var(--critical); }
.ico-space { width: 14px; flex: none; }
.menu-sep { height: 1px; background: var(--line); margin: 2px 0; }
.menu-label { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 2px 10px; }

#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 10px 16px; border-radius: var(--radius-s); background: var(--ink); color: var(--ink-inverse); font-weight: 500; box-shadow: var(--shadow-pop); transition: opacity .3s, transform .3s; max-width: 90vw; }
.toast.error { background: var(--calor); color: var(--branco); }
.toast.ok { background: var(--natureza); color: var(--preto); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- agenda ---------- */
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .agenda-layout { grid-template-columns: 1fr; } }
.cal { padding: 14px; }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.month-title { font: 700 26px var(--font-display); letter-spacing: -0.04em; text-transform: capitalize; min-width: 190px; text-align: center; }
.cal-head .btn { margin-left: auto; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; padding: 0 4px 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { min-height: 104px; padding: 6px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; text-align: left; overflow: hidden; }
.cal-day:hover { border-color: var(--line-strong); }
.cal-day.out { opacity: .45; }
.cal-day.today .num { background: var(--ink); color: var(--ink-inverse); }
.cal-day.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cal-day .num { align-self: flex-start; min-width: 24px; height: 24px; padding: 0 5px; display: grid; place-items: center; border-radius: var(--radius-s); font-weight: 600; font-size: 13px; }
.evs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev { font-size: 11.5px; padding: 1px 6px; border-radius: var(--radius-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; }
.ev.personal { background: var(--accent-soft); border-color: var(--ceu); }
.ev.team { background: var(--neutral-soft); border-color: var(--ink-2); }
.ev.delivery { background: var(--warning-soft); border-color: var(--luz); }
.ev.delivery.late { background: var(--critical-soft); border-color: var(--calor); }
.ev.delivery.done { background: var(--good-soft); border-color: var(--natureza); text-decoration: line-through; }
.ev.more { border: 0; color: var(--ink-3); background: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ev-dot { width: 10px; height: 10px; border-radius: var(--radius-s); display: inline-block; }
.ev-dot.personal { background: var(--ceu); } .ev-dot.team { background: var(--ink-2); } .ev-dot.delivery { background: var(--luz); } .ev-dot.late { background: var(--calor); }
.day-panel { position: sticky; top: 16px; }
.day-panel .panel-head h2 { text-transform: capitalize; }
.day-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.day-item { display: flex; gap: 10px; padding: 9px 10px; border-radius: var(--radius-s); background: var(--surface-2); border-left: 3px solid var(--ceu); }
.day-item.team { border-left-color: var(--ink-2); }
.day-item.delivery { border-left-color: var(--luz); cursor: pointer; }
.day-item.delivery.late { border-left-color: var(--calor); }
.day-item.delivery.done { border-left-color: var(--natureza); }
.day-item b { display: block; }
.day-item p { margin-top: 4px; }
.time { width: 62px; flex: none; font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mini-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 6px 0 8px; }
@media (max-width: 720px) {
  .cal-day { min-height: 56px; padding: 4px; }
  .ev { font-size: 0; height: 5px; padding: 0; border-left-width: 0; }
  .month-title { min-width: 0; font-size: 17px; }
  .form-grid.three { grid-template-columns: 1fr 1fr; }
}

/* ---------- onboarding & educação ---------- */
.progress-big { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.progress-big b { display: block; font: 700 26px/1 var(--font-display); letter-spacing: -0.04em; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.step .muted { margin-top: 3px; }
.step.done b { text-decoration: line-through; color: var(--ink-3); }
.step-check { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: #fff; margin-top: -2px; }
.step-check:hover { border-color: var(--ink); }
.step.done .step-check { background: var(--natureza); border-color: var(--natureza); }
.tools { flex: none; }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.edu { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.edu.done { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.edu h3 { font: 700 19px/1.1 var(--font-display); letter-spacing: -0.03em; }
.edu-top { display: flex; align-items: center; gap: 8px; }
.edu-top .tools { margin-left: auto; }
.edu-foot { margin-top: auto; padding-top: 6px; }
.progress-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; }
.progress-person { display: flex; align-items: center; gap: 10px; padding: 4px 0; }

/* ---------- quadros, pessoas, perfil ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.board-tile { display: flex; flex-direction: column; gap: 14px; min-height: 160px; padding: 18px; border-radius: var(--radius-s); text-decoration: none; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .2s; }
.board-tile::after { content: ''; position: absolute; right: 0; bottom: 0; width: 72px; height: 72px; background: radial-gradient(circle at 100% 100%, transparent 39px, var(--squad) 40px 72px, transparent 73px); }
.board-tile:hover { border-color: var(--ink); }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tile-top h3 { font: 700 26px/1 var(--font-display); letter-spacing: -0.04em; }
.tile-stats { display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); margin-top: auto; }
.tile-stats b { color: var(--ink); font-size: 15px; }
.tile-stats .critical-text b { color: var(--critical); }
.invite-form { display: flex; flex-direction: column; gap: 16px; }
.squad-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.squad-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.squad-row b { display: block; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.profile-grid .panel > .row { margin-bottom: 20px; align-items: center; }
.profile-grid .panel > .row b { display: block; }

/* =========================================================================
   Interaction layer — monday-inspired patterns inside the Catarino's rules
   (square corners, flat colour, brand easing).
   ========================================================================= */

/* ---------- entrances ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
.page > * { animation: rise 700ms var(--ease-brand) both; }
.page > :nth-child(2) { animation-delay: 60ms; }
.page > :nth-child(3) { animation-delay: 120ms; }
.page > :nth-child(4) { animation-delay: 180ms; }
.page > :nth-child(n+5) { animation-delay: 240ms; }
.kpis > * { animation: rise 600ms var(--ease-brand) both; }
.kpis > :nth-child(2) { animation-delay: 50ms; } .kpis > :nth-child(3) { animation-delay: 100ms; }
.kpis > :nth-child(4) { animation-delay: 150ms; } .kpis > :nth-child(5) { animation-delay: 200ms; } .kpis > :nth-child(6) { animation-delay: 250ms; }
.head-summary { margin-top: 12px; font-size: 16px; color: var(--ink-2); max-width: 640px; }
.home .page-head { position: relative; }

/* ---------- micro-interactions ---------- */
.btn, .chip, .side-btn, .icon-btn, .tab, .status-pill, .prio-pill { transition: transform 120ms var(--ease-brand), opacity 200ms, background 150ms, color 150ms; }
.btn:active:not(:disabled), .chip:active, .side-btn:active, .status-pill:active, .prio-pill:active { transform: scale(.96); }
.nav-item { transition: background 150ms, color 150ms; }
.nav-item.active::before { animation: grow-bar 400ms var(--ease-brand); }
@keyframes grow-bar { from { transform: scaleY(0); } }
.kcard { transition: transform 160ms var(--ease-brand), box-shadow 160ms; }
.kcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--ink), 0 6px 0 -2px var(--status, var(--ink)); outline: 0; }
.kcard.settle { animation: settle 520ms var(--ease-brand); }
@keyframes settle { 0% { transform: scale(1.04) rotate(1.5deg); box-shadow: 0 0 0 2px var(--status, var(--ink)); } 100% { transform: none; } }
.kpi { transition: transform 200ms var(--ease-brand); }
.kpi:hover { transform: translateY(-2px); }
.row-card, .feed.compact .act, .up { transition: background 120ms, transform 160ms var(--ease-brand); }
.row-card:hover { transform: translateX(3px); }
.att-group[open] .att-items { animation: rise 380ms var(--ease-brand); }

/* ---------- status colours on the kanban ---------- */
.list { border-top: 4px solid var(--status, transparent); }
.list-name::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--status); vertical-align: 1px; }

/* ---------- board head: view switch + battery ---------- */
.board-title { flex-wrap: wrap; }
.view-switch { display: inline-flex; margin-left: 10px; border: 1px solid var(--line-strong); background: var(--surface); }
.view-switch button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); position: relative; }
.view-switch button.on { color: var(--ink); }
.view-switch button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); animation: grow-x 300ms var(--ease-brand); }
@keyframes grow-x { from { transform: scaleX(0); } }
.battery { display: flex; gap: 2px; height: 6px; margin: 0 14px 10px; }
.battery span { display: block; min-width: 4px; animation: grow-x 700ms var(--ease-brand) both; transform-origin: left; }

/* ---------- tabela (monday main table) ---------- */
.board-table { flex: 1; overflow: auto; padding: 4px 14px 18px; display: flex; flex-direction: column; gap: 22px; }
.mgroup { animation: rise 500ms var(--ease-brand) both; }
.mgroup-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mgroup-head h3 { font: 700 19px/1 var(--font-display); letter-spacing: -0.03em; color: var(--status); }
.mgroup-count { font: 500 12px var(--font-mono); color: var(--ink-3); }
.mgroup-head .chev { color: var(--status); }
.mgroup-head .chev .ico { transition: transform 220ms var(--ease-brand); transform: rotate(90deg); }
.mgroup.closed .chev .ico { transform: none; }
.mgroup.closed .mgroup-head { padding: 10px 8px; background: var(--surface); border-left: 6px solid var(--status); }
.mtable { min-width: 1060px; border-left: 6px solid var(--status); background: var(--surface); }
.mrow { display: grid; grid-template-columns: minmax(280px, 2.6fr) 140px 110px 160px 110px 120px minmax(130px, 1fr); border-bottom: 1px solid var(--line); min-height: 42px; }
.mrow:not(.mhead):not(.madd):hover { background: var(--surface-2); }
.mhead { min-height: 34px; background: var(--surface); }
.mhead .mcell { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); justify-content: center; }
.mhead .mcell.item { justify-content: flex-start; }
.mcell { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border-right: 1px solid var(--line); min-width: 0; text-align: center; font-size: 13.5px; }
.mcell:last-child { border-right: 0; }
.mcell.item { justify-content: flex-start; text-align: left; gap: 10px; }
.mtitle { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mcomments { display: inline-flex; align-items: center; gap: 3px; font: 500 12px var(--font-mono); color: var(--ink-3); }
.mopen { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); opacity: 0; transition: opacity 150ms; }
.mrow:hover .mopen { opacity: 1; }
.mcell.editable:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.mcell.status, .mcell.prio { padding: 4px; }
.mcell.status .status-pill, .mcell.prio .prio-pill { width: 100%; height: 100%; min-height: 34px; }
.mcell.due { font: 500 13px var(--font-mono); }
.mcell.due.late { color: var(--critical); font-weight: 600; }
.mcell.due.done { color: var(--good); text-decoration: line-through; }
.due-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--calor); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.mcell-input { width: 100%; height: 34px; border: 0; background: transparent; padding: 0 6px; font-size: 13.5px; text-align: inherit; }
.mcell-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--focus); background: var(--surface); }
.mcell.client .mcell-input { text-align: center; }
.madd { grid-template-columns: 1fr; }
.madd .mcell { border-right: 0; }
.madd .mcell-input { text-align: left; color: var(--ink-2); }
.avatar-empty { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px dashed var(--line-strong); color: var(--ink-3); }

/* ---------- pills (status & priority) ---------- */
.status-pill, .prio-pill { display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; height: 26px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-pill { background: var(--status); color: var(--status-ink, #fff); }
.card-head .status-pill { height: 24px; font-size: 12px; }
.card-head .muted.sm { gap: 8px; }
.prio-pill.p-high { background: var(--calor); color: var(--branco); }
.prio-pill.p-mid { background: var(--luz); color: var(--preto); }
.prio-pill.p-low { background: var(--ceu); color: var(--branco); }
.prio-pill.empty { background: var(--surface-sunk); color: var(--ink-3); }
.status-grid { display: grid; gap: 6px; }
.status-pill.big, .prio-pill.big { height: 36px; width: 100%; font-size: 13px; }
.status-pill.big:hover, .prio-pill.big:hover { filter: brightness(1.06); transform: translateX(3px); }
.status-pill.current { box-shadow: inset 0 0 0 2px var(--ink); }
.swatches.sm .swatch { width: 28px; height: 22px; }

/* ---------- item panel (drawer) ---------- */
.backdrop { animation: fade 220ms ease both; }
.backdrop.leaving { animation: fade 220ms ease reverse forwards; }
.backdrop.drawer { justify-content: flex-end; align-items: stretch; padding: 0; }
.modal.drawer { max-width: 820px; height: 100vh; overflow-y: auto; animation: drawer-in 420ms var(--ease-brand) both; border-left: 1px solid var(--ink); }
.backdrop.leaving .modal.drawer { animation: drawer-in 240ms var(--ease-brand) reverse forwards; }
@keyframes drawer-in { from { transform: translateX(60px); opacity: 0; } }
.modal:not(.drawer) { animation: rise 320ms var(--ease-brand) both; }
.card-modal .card-cover { border-radius: var(--radius-s); height: 120px; }

/* ---------- confetti, toasts, skeletons ---------- */
.confetti { position: fixed; z-index: 500; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 14px; animation: rise 300ms var(--ease-brand); }
.toast-action { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--luz); }
.toast.ok .toast-action { color: var(--preto); text-decoration: underline; }
.skel { background: linear-gradient(90deg, var(--surface-sunk) 0%, var(--surface) 50%, var(--surface-sunk) 100%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skel-kpi { height: 108px; } .skel-panel { height: 220px; } .skel-panel.wide { height: 180px; }
.skel-title { width: 220px; height: 30px; }
.skel-list { gap: 8px; padding: 12px 8px; border-top-color: var(--line); }
.skel-card { height: 74px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* =========================================================================
   Rounded layer — softer, monday-like shapes on top of the brand palette.
   ========================================================================= */
.panel, .kpi, .board, .board-tile, .edu, .step, .progress-big, .squad-row, .cal, .att-group, .modal:not(.drawer) { border-radius: var(--radius-l); }
.panel.flush, .board-tile, .mtable, .table-wrap { overflow: hidden; }
.kpi { box-shadow: var(--shadow-panel); border-color: var(--line); }
.kpi.critical, .kpi.good, .kpi.warning { box-shadow: var(--shadow-panel); }
.kpi.critical::before, .kpi.good::before, .kpi.warning::before { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--critical-fill); }
.kpi.good::before { background: var(--good-fill); } .kpi.warning::before { background: var(--warning-fill); }
.kpi { position: relative; }
.btn { border-radius: var(--radius-pill); }
.btn.sm { padding: 0 14px; }
.input, .mcell-input:focus, .label-edit, .desc-empty, .bubble { border-radius: var(--radius-s); }
.chip, .badge, .tag, .count, .nav-count, .account-chip, .klabel, .label-pill, .due-pill, .kbadge.due, .prio-pill, .status-pill, .mgroup-count { border-radius: var(--radius-pill); }
.status-pill.big, .prio-pill.big { border-radius: var(--radius-s); }
.mcell.status .status-pill, .mcell.prio .prio-pill { border-radius: 6px; }
.list { border-radius: var(--radius); border-top: 0; box-shadow: inset 0 4px 0 var(--status, transparent); }
.list-name::before { border-radius: 50%; }
.kcard { border-radius: 10px; }
.kcover { border-radius: 10px 10px 0 0; }
.kcard:hover { box-shadow: 0 0 0 1px var(--ink), 0 8px 18px -8px rgba(12, 13, 13, .35); }
.drag-ghost { border-radius: 10px; }
.add-card, .add-list-btn, .side-btn, .menu-item, .pick, .row-card, .up, .progress-row, .nav-item, .me-link, .feed.compact .act, .tab, .day-item, .ev, .cal-day { border-radius: var(--radius-s); }
.nav-item.active::before { border-radius: 0 3px 3px 0; }
.tabs { border-radius: var(--radius-pill); }
.tab { border-radius: var(--radius-pill); }
.view-switch { border-radius: var(--radius-pill); padding: 2px; }
.view-switch button { border-radius: var(--radius-pill); }
.view-switch button.on { background: var(--ink); color: var(--ink-inverse); }
.view-switch button.on::after { display: none; }
.battery { border-radius: var(--radius-pill); overflow: hidden; height: 8px; }
.battery span { min-width: 6px; }
.hbar-track, .hbar-fill, .progress .bar, .progress .bar span { border-radius: var(--radius-pill); }
.mtable { border-radius: var(--radius); border-left-width: 6px; }
.mgroup.closed .mgroup-head { border-radius: var(--radius); }
.popover { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.modal.drawer { border-radius: var(--radius-l) 0 0 var(--radius-l); border-left: 0; box-shadow: var(--shadow-pop); }
.card-cover { border-radius: var(--radius-l) 0 0 0; }
.toast { border-radius: var(--radius-pill); padding: 11px 20px; }
.swatch { border-radius: 50%; width: 34px; height: 34px; }
.swatches.sm .swatch { width: 24px; height: 24px; }
.squad-dot { border-radius: 50%; }
.status-ico { border-radius: 50%; }
.step-check, .avatar, .round-add { border-radius: 50%; }
.skel { border-radius: var(--radius); }
.form-error, .form-ok, .all-clear, .archived-bar { border-radius: var(--radius-s); }
.cal-day.today .num { border-radius: 50%; }
.table th:first-child { border-top-left-radius: var(--radius-l); }
.board-tile::after { border-radius: 0; }

/* ---------- donut charts ---------- */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { position: relative; flex: none; }
.donut svg { display: block; transform: rotate(-90deg); }
.donut .seg { fill: none; transition: stroke-width 160ms; cursor: default; animation: donut-in 1100ms var(--ease-brand) both; }
.donut .seg:hover { stroke-width: 22; }
@keyframes donut-in { from { stroke-dasharray: 0 999; } }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center b { font: 700 30px/1 var(--font-display); letter-spacing: -0.04em; }
.donut-center span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.legend { display: flex; flex-direction: column; gap: 7px; min-width: 150px; flex: 1; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; list-style: none; }
.legend ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend .v { margin-left: auto; font: 500 12.5px var(--font-mono); color: var(--ink-2); }
.ring-kpi { display: flex; align-items: center; gap: 14px; }
.dash-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .dash-grid.two { grid-template-columns: 1fr; } }
.squad-panel .donut-wrap { gap: 16px; }
.squad-panel .legend li { font-size: 12.5px; }

/* ---------- top bar + theme switch ---------- */
.topbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 clamp(20px, 3vw, 48px); position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.topbar .mobile-only { display: none; }
.theme-switch { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 64px; height: 32px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface-sunk); border: 1px solid var(--line); color: var(--ink-3); }
.theme-switch .ts-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 16px; transition: color 300ms; }
.theme-switch .ts-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--luz); box-shadow: 0 2px 6px rgba(12, 13, 13, .25); transition: transform 220ms var(--ease-brand), background 220ms; }
.theme-switch .sun { color: var(--preto); }
.theme-switch[aria-checked="true"] .ts-knob { transform: translateX(32px); background: var(--ceu); }
.theme-switch[aria-checked="true"] .sun { color: var(--ink-3); }
.theme-switch[aria-checked="true"] .moon { color: var(--branco); }
.theme-switch:hover .ts-knob { box-shadow: 0 0 0 4px color-mix(in srgb, var(--luz) 30%, transparent); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
.theme-switch .ts-knob { will-change: transform; }
.page { padding-top: 20px; }
.board-page .board { height: calc(100vh - 56px - 40px); }
@media (max-width: 960px) {
  .topbar { background: var(--side-bg); color: var(--side-ink); padding: 0 12px; border-bottom: 0; }
  .topbar .mobile-only { display: flex; }
}

/* ---------- course platform (Onboarding / Educação) ---------- */
.course-body { display: flex; flex-direction: column; gap: 34px; }
.course-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 22px; border-radius: 24px; background: var(--preto); color: var(--papel); animation: rise 700ms var(--ease-brand) both; }
.course-hero .eyebrow { color: var(--luz); margin-bottom: 10px; }
.course-hero h2 { font: 700 clamp(28px, 3.2vw, 44px)/0.98 var(--font-display); letter-spacing: -0.04em; margin-bottom: 12px; }
.course-hero .muted { color: var(--cinza-claro); }
.course-hero.done { grid-template-columns: 1fr; padding: 40px; min-height: 200px; }
.hero-module { font-size: 13px; color: var(--cinza-claro); margin-bottom: 8px; }
.hero-copy { display: flex; flex-direction: column; gap: 6px; padding-right: 12px; position: relative; z-index: 1; }
.hero-copy .btn.primary { background: var(--luz); color: var(--preto); margin-top: 14px; }
.hero-progress { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.hero-progress .bar { flex: 1; max-width: 280px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.hero-progress .bar span { display: block; height: 100%; background: var(--luz); border-radius: 99px; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-thumb, .vthumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--grafite) center / cover no-repeat; border-radius: 16px; overflow: hidden; }
.hero-thumb::after, .vthumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12, 13, 13, .55)); transition: background 250ms; }
.vthumb:hover::after, .hero-thumb:hover::after { background: linear-gradient(180deg, rgba(12, 13, 13, .15), rgba(12, 13, 13, .6)); }
.play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--preto); transform: scale(.88); transition: transform 300ms var(--ease-brand), background 200ms; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.play .ico { margin-left: 3px; fill: currentColor; }
.play.big { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.vthumb:hover .play, .hero-thumb:hover .play { transform: scale(1.06); background: var(--luz); }
.vdur { position: absolute; z-index: 1; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: rgba(12, 13, 13, .72); color: var(--branco); font: 500 11.5px var(--font-mono); }
.vdone { position: absolute; z-index: 1; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: var(--natureza); color: var(--preto); font-size: 11.5px; font-weight: 700; }
.module { animation: rise 600ms var(--ease-brand) both; }
.module-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.module-head .eyebrow { margin-bottom: 6px; }
.module-head h2 { font: 700 26px/1 var(--font-display); letter-spacing: -0.04em; }
.module-progress { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.module-progress .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-sunk); overflow: hidden; }
.module-progress .bar span { display: block; height: 100%; background: var(--natureza); border-radius: 99px; transition: width 600ms var(--ease-brand); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; }
.vcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vcard .vthumb { transition: transform 300ms var(--ease-brand), box-shadow 300ms; }
.vcard:hover .vthumb { transform: translateY(-4px); box-shadow: 0 14px 28px -12px rgba(12, 13, 13, .45); }
.vmeta { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.vkind { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.vtools { display: flex; gap: 2px; opacity: 0; transition: opacity 150ms; }
.vcard:hover .vtools { opacity: 1; }
.vtitle { font: 700 17px/1.2 var(--font-display); letter-spacing: -0.02em; cursor: pointer; }
.vtitle:hover { color: var(--link); }
.vcheck { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 4px 0; }
.vcheck .box { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: background 200ms, border-color 200ms; }
.vcheck.on { color: var(--good); }
.vcheck.on .box { background: var(--natureza); border-color: var(--natureza); color: var(--preto); }
.vcard.done .vthumb { opacity: .78; }
.player-modal { max-width: 960px; overflow: hidden; background: var(--surface); }
.player-modal .modal-body { padding: 0; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--preto) center / cover no-repeat; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.poster { display: grid; place-items: center; }
.player.poster::before { content: ''; position: absolute; inset: 0; background: rgba(12, 13, 13, .45); }
.player.poster > * { position: relative; }
.poster-note { color: var(--papel); font-weight: 600; }
.player-info { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.player-info h2 { font: 700 28px/1 var(--font-display); letter-spacing: -0.04em; }
.player-text { white-space: pre-wrap; color: var(--ink-2); line-height: 1.6; }
.player-modal .card-close { background: rgba(255, 255, 255, .9); color: var(--preto); border-radius: 50%; }
.skel-hero { height: 300px; border-radius: 24px; }
.skel-video { aspect-ratio: 16 / 9; border-radius: 16px; }
@media (max-width: 860px) { .course-hero { grid-template-columns: 1fr; padding: 14px; } .hero-copy { padding: 4px 8px 12px; } }

/* ---------- kanban: filled status headers (monday style) ---------- */
.list { box-shadow: none; padding-top: 6px; }
.list-head { margin: 0 6px 6px; padding: 9px 8px 9px 12px; border-radius: 10px; background: var(--status); color: var(--status-ink, #fff); }
.list-head .list-name { color: inherit; }
.list-head .list-name::before { display: none; }
.list-head .list-count { color: inherit; opacity: .85; background: rgba(255, 255, 255, .22); padding: 1px 8px; border-radius: 99px; }
.list-head .icon-btn { color: inherit; }
.list-head .icon-btn:hover { background: rgba(255, 255, 255, .2); color: inherit; }
.list-head .kind-tag { background: rgba(255, 255, 255, .25); color: inherit; border-radius: 50%; }
.list-rename { color: var(--ink); }
.list.kind-done, .list.kind-hold { background: var(--list-bg); }
.skel-list { padding-top: 12px; }

/* ---------- people sheet ---------- */
.sheet-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sheet-search { width: 240px; border-radius: var(--radius-pill); padding-left: 14px; }
.tab-count { margin-left: 6px; font: 500 11px var(--font-mono); opacity: .7; }
.sheet-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: auto; box-shadow: var(--shadow-panel); }
.sheet { min-width: 930px; }
.srow { display: grid; grid-template-columns: minmax(230px, 2fr) minmax(130px, 1fr) 130px minmax(170px, 1.4fr) 150px 116px 52px; align-items: stretch; border-bottom: 1px solid var(--line); min-height: 58px; animation: rise 450ms var(--ease-brand) both; transition: background 120ms; }
.srow:not(.shead):hover { background: var(--surface-2); }
.srow.dim { opacity: .55; }
.shead { min-height: 40px; background: var(--surface-2); animation: none; }
.shead .scell { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.scell { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-right: 1px solid var(--line); min-width: 0; text-align: left; font-size: 13.5px; flex-wrap: wrap; }
.scell:last-child { border-right: 0; }
.scell.person { flex-wrap: nowrap; gap: 12px; }
.scell.person .grow { display: flex; flex-direction: column; }
.scell.actions { justify-content: center; }
.pick-cell { cursor: pointer; }
.pick-cell:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); border-radius: 10px; }
.sheet-input { width: 100%; min-width: 0; height: 32px; padding: 0 8px; margin-left: -8px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 13.5px; }
.scell.person .sheet-input { font-weight: 700; font-size: 14.5px; height: 28px; }
.sheet-input:hover { border-color: var(--line-strong); }
.sheet-input:focus { outline: none; border-color: var(--focus); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.sheet-input::placeholder { color: var(--ink-3); }
.role-pill, .state-pill { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 14px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.role-pill.leader { background: var(--preto); color: var(--papel); }
.role-pill.member { background: var(--accent-soft); color: var(--link); }
.role-pill.big { height: 38px; width: 100%; border-radius: 10px; }
.role-pill.current { box-shadow: inset 0 0 0 2px var(--ceu); }
:root[data-theme="dark"] .role-pill.leader { background: var(--papel); color: var(--preto); }
.state-pill.good { background: var(--good-soft); color: var(--good); }
.state-pill.warning { background: var(--warning-soft); color: var(--warning); }
.state-pill.neutral { background: var(--neutral-soft); color: var(--ink-3); }
.state-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; }
.squad-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--ink); }
.squad-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.sadd { width: 100%; grid-template-columns: 1fr; min-height: 48px; color: var(--ink-3); font-weight: 600; animation: none; }
.sadd .scell { border-right: 0; }
.sadd:hover { color: var(--ink); }
.squad-row { box-shadow: var(--shadow-panel); }

/* ---------- chart system: one look for every chart ---------- */
.chart-wrap { position: relative; }
.chart .gridline { stroke: var(--chart-grid); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .axis { stroke: var(--line-strong); }
.chart .lab { font: 500 10.5px var(--font-mono); fill: var(--ink-3); }
.chart .val { font: 600 11.5px var(--font-mono); fill: var(--ink); }
.chart .area-fill { opacity: .14; }
.chart-empty { position: absolute; inset: 0 0 22px 28px; display: grid; place-items: center; font-size: 13px; color: var(--ink-3); pointer-events: none; }
.chart-empty::before { content: ''; }
.panel { display: flex; flex-direction: column; }
.panel-head { min-height: 22px; }
.panel-head h2 { font-size: 17px; }
.dash-grid { align-items: stretch; }
.dash-grid > .panel { min-height: 100%; }
.donut-wrap { flex: 1; align-items: center; justify-content: center; gap: 24px; }
.donut .seg:hover { stroke-width: 22; }
.donut-center b { font-size: 28px; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 190px; max-width: 320px; display: flex; flex-direction: column; gap: 8px; }
.legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 42px; align-items: center; gap: 8px; font-size: 13px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend .lname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.legend .v { font: 600 12.5px var(--font-mono); color: var(--ink); text-align: right; margin: 0; }
.legend .pct { font: 500 12px var(--font-mono); color: var(--ink-3); text-align: right; }
.squad-panel .donut-wrap { justify-content: flex-start; }
.squad-panel .legend { min-width: 170px; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.kpi { min-height: 118px; justify-content: space-between; }
.kpi-label { min-height: 28px; align-items: flex-start; }
.table th.num { font: 600 10.5px var(--font-body); letter-spacing: .14em; }
.mini-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }

/* =========================================================================
   Agenda — Google Agenda-style layout
   ========================================================================= */
.gcal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; height: calc(100vh - 56px); }
.gcal-side { padding: 18px 16px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; border-right: 1px solid var(--line); }
.gcal-create { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 24px 0 18px; border-radius: 18px; background: var(--surface); box-shadow: 0 1px 3px rgba(12, 13, 13, .2), 0 4px 10px rgba(12, 13, 13, .08); font-weight: 600; font-size: 14.5px; transition: box-shadow 200ms, transform 150ms var(--ease-brand); }
.gcal-create .ico { color: var(--ceu); }
.gcal-create:hover { box-shadow: 0 2px 6px rgba(12, 13, 13, .25), 0 8px 18px rgba(12, 13, 13, .12); }
.gcal-create:active { transform: scale(.97); }
.mini-cal { user-select: none; }
.mini-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px 6px; }
.mini-head b { font-size: 13.5px; text-transform: capitalize; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; }
.mini-wd { font-size: 10.5px; color: var(--ink-3); font-weight: 600; padding: 4px 0; }
.mini-day { width: 28px; height: 28px; margin: 0 auto; border-radius: 50%; font-size: 12px; font-weight: 500; color: var(--ink); }
.mini-day:hover { background: var(--surface-sunk); }
.mini-day.out { color: var(--ink-3); }
.mini-day.inrange { background: var(--accent-soft); border-radius: 0; width: 100%; }
.mini-day.today { background: var(--ceu); color: var(--branco); border-radius: 50%; width: 28px; }
.mini-day.sel:not(.today) { background: color-mix(in srgb, var(--ceu) 25%, transparent); border-radius: 50%; width: 28px; }
.cal-list { display: flex; flex-direction: column; gap: 2px; }
.cal-list .nav-label { color: var(--ink-3); padding: 0 6px 6px; }
.cal-toggle { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.cal-toggle:hover { background: var(--surface-sunk); }
.cal-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cal-box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--c, var(--ink-3)); display: grid; place-items: center; color: #fff; flex: none; }
.cal-toggle input:checked + .cal-box { background: var(--c, var(--ink-2)); }
.cal-toggle.plain { --c: var(--ink-2); margin-top: 6px; }
.cal-toggle:has(input:focus-visible) { outline: 2px solid var(--focus); }
.g-card { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.g-card.on { border-color: color-mix(in srgb, var(--natureza) 50%, var(--line)); }
.g-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.g-logo { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font-display); color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.gcal-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gcal-bar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gcal-nav { display: flex; }
.gcal-title { font: 600 21px/1.2 var(--font-body); letter-spacing: -0.01em; }
.gcal-title::first-letter { text-transform: uppercase; }

/* time grid */
.timegrid { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tg-head, .tg-allday { display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(0, 1fr)); padding-right: 12px; }
.tg-head { padding-top: 8px; }
.tg-gutter { position: relative; }
.tz { position: absolute; bottom: 4px; right: 8px; font-size: 10px; color: var(--ink-3); }
.tg-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 8px; }
.tg-day .wd { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tg-day .dn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font: 500 24px var(--font-body); color: var(--ink-2); transition: background 150ms; }
.tg-day:hover .dn { background: var(--surface-sunk); }
.tg-day.today .wd { color: var(--ceu); }
.tg-day.today .dn { background: var(--ceu); color: var(--branco); }
.timegrid.dia .tg-day { align-items: flex-start; padding-left: 10px; }
.tg-allday { border-bottom: 1px solid var(--line); min-height: 26px; }
.tg-adcell { border-left: 1px solid var(--line); padding: 2px 3px 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tg-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.tg-body { position: relative; display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(0, 1fr)); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 48px; }
.tg-hours { position: relative; }
.tg-hour { height: 48px; position: relative; }
.tg-hour span { position: absolute; top: -8px; right: 10px; font-size: 10.5px; color: var(--ink-3); font-family: var(--font-mono); background: var(--bg); padding: 0 2px; }
.tg-col { position: relative; border-left: 1px solid var(--line); cursor: cell; }
.tg-col.today { background: color-mix(in srgb, var(--ceu) 4%, transparent); }
.now-line { position: absolute; left: -1px; right: 0; height: 2px; background: var(--calor); z-index: 3; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--calor); }
.ev-block { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 1px; padding: 4px 8px; border-radius: 8px; background: var(--c); color: #fff; font-size: 12px; line-height: 1.25; overflow: hidden; text-align: left; cursor: pointer; box-shadow: 0 0 0 1px var(--bg); transition: box-shadow 150ms, filter 150ms; }
.ev-block b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-block span { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-block.short { flex-direction: row; gap: 6px; align-items: center; padding-top: 1px; padding-bottom: 1px; }
.ev-block:hover { filter: brightness(1.05); box-shadow: 0 0 0 1px var(--bg), 0 6px 16px -6px rgba(12, 13, 13, .45); z-index: 4; }
.ev-block.pending { background: var(--surface); color: var(--c); border: 1.5px dashed var(--c); }
.ev-block.declined { opacity: .5; text-decoration: line-through; }
.ev-block.dragging { z-index: 6; box-shadow: 0 0 0 2px var(--ink), 0 12px 28px -8px rgba(12, 13, 13, .5); cursor: grabbing; }
.ev-block.ghost-new { opacity: .85; pointer-events: none; }
.ev-block.delivery { background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--ink); border-left: 4px solid var(--c); }
.ev-block.delivery.late { border-left-color: var(--calor); }
.ev-block.delivery.done { opacity: .6; text-decoration: line-through; }
.ev-meet { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; }
.ev-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.ev-chip { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; padding: 2px 6px; border-radius: 6px; font-size: 12px; text-align: left; color: var(--ink); }
.ev-chip:hover { background: var(--surface-sunk); }
.ev-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.ev-chip .t { color: var(--ink-3); flex: none; font-size: 11.5px; }
.ev-chip.filled { background: var(--c); color: #fff; font-weight: 600; }
.ev-chip.pending { border: 1px dashed var(--c); }
.ev-chip.delivery { background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--ink); font-weight: 600; }
.ev-chip.delivery.late { box-shadow: inset 3px 0 0 var(--calor); }
.ev-chip.delivery.done { opacity: .55; text-decoration: line-through; }

/* month */
.month { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.month-wd { display: grid; grid-template-columns: repeat(7, 1fr); }
.month-wd span { text-align: center; padding: 8px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line); }
.month-grid { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(96px, 1fr)); }
.month-cell { border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding: 4px 4px 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: cell; }
.month-cell.out { background: color-mix(in srgb, var(--surface-sunk) 40%, transparent); }
.month-cell.out .month-num { color: var(--ink-3); }
.month-num { align-self: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.month-num:hover { background: var(--surface-sunk); }
.month-cell.today .month-num { background: var(--ceu); color: var(--branco); }
.month-more { font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-align: left; padding: 2px 6px; border-radius: 6px; }
.month-more:hover { background: var(--surface-sunk); }

/* list */
.list-view { flex: 1; overflow-y: auto; padding: 8px 20px 24px; }
.lv-day { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lv-date { display: flex; align-items: baseline; gap: 8px; }
.lv-date b { font: 600 24px var(--font-body); }
.lv-date span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lv-day.today .lv-date b { color: var(--ceu); }
.lv-items { display: flex; flex-direction: column; }
.lv-item { display: grid; grid-template-columns: 12px 140px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-align: left; }
.lv-item:hover { background: var(--surface-sunk); }
.lv-item i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.lv-time { font-size: 13px; color: var(--ink-2); }
.lv-meet { font-size: 11px; font-weight: 700; color: var(--ceu); }

/* event card (popover) */
.popover.ev-card { width: 420px; border-radius: 18px; }
.popover.ev-card header { padding: 6px 8px 0; min-height: 38px; }
.ev-card .pop-body { gap: 14px; padding: 0 22px 20px; }
.evc-tools { position: absolute; top: 6px; right: 40px; display: flex; gap: 2px; }
.evc-title { display: grid; grid-template-columns: 16px 1fr; gap: 14px; align-items: start; }
.evc-title i { width: 16px; height: 16px; border-radius: 5px; margin-top: 6px; }
.evc-title h3 { font: 600 21px/1.25 var(--font-body); }
.evc-row { display: grid; grid-template-columns: 16px 1fr; gap: 14px; align-items: start; font-size: 13.5px; }
.evc-row > .ico { margin-top: 2px; color: var(--ink-3); }
.meet-btn { background: var(--ceu) !important; color: #fff !important; }
.evc-people { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.evc-people li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; }
.evc-people small { color: var(--ink-3); }
.avatar.ext { background: var(--surface-sunk); color: var(--ink-2); }
.resp { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.resp.yes { background: var(--natureza); color: #fff; } .resp.no { background: var(--calor); color: #fff; } .resp.maybe, .resp.pending { background: var(--surface-sunk); color: var(--ink-3); }
.evc-desc { white-space: pre-wrap; color: var(--ink-2); max-height: 160px; overflow: auto; }
.evc-rsvp { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.evc-rsvp span { margin-right: auto; }
.quick-title { font-size: 17px; height: 44px; border-width: 0 0 2px; border-radius: 0; padding: 0 2px; }
.quick-title:focus { box-shadow: none; border-color: var(--ceu); }
.quick-when { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }

/* editor */
.ev-editor { max-width: 980px; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 28px; }
.ed-main, .ed-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.title-in { font: 600 22px var(--font-body); height: 52px; border-width: 0 0 2px; border-radius: 0; padding: 0 2px; }
.title-in:focus { box-shadow: none; border-color: var(--ceu); }
.ed-row { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; }
.ed-row > .ico { margin-top: 10px; color: var(--ink-3); }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.ed-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-when .input { width: auto; }
.meet-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meet-toggle { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 8px; border-radius: 99px; background: color-mix(in srgb, var(--ceu) 12%, transparent); color: var(--link); font-weight: 600; font-size: 13.5px; transition: background 150ms; }
.meet-toggle .meet-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ceu); color: #fff; }
.meet-toggle.on { background: var(--ceu); color: #fff; }
.meet-toggle.on .meet-ico { background: #fff; color: var(--ceu); }
.meet-toggle:disabled { opacity: .5; }
.meet-row.suggest .meet-toggle:not(:disabled) { animation: pulse-ring 1.6s ease-out 2; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ceu) 50%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.guest-box { position: relative; }
.guest-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; }
.guest-sugg:empty { display: none; }
.guest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.guest-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 4px; border-radius: 99px; background: var(--surface-sunk); font-size: 12.5px; font-weight: 500; animation: rise 250ms var(--ease-brand); }
.guest-chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.guest-chip button:hover { background: var(--line); color: var(--ink); }
.swatch.auto { background: var(--surface-sunk); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.ed-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .gcal { grid-template-columns: 1fr; height: auto; }
  .gcal-side { display: none; }
  .timegrid { height: calc(100vh - 140px); }
  .ed-grid { grid-template-columns: 1fr; }
  .gcal-title { font-size: 17px; }
}

/* donut: compact, centred block (no stretched legend, no empty band on the right) */
.donut-wrap { display: grid; grid-template-columns: auto minmax(0, 280px); justify-content: center; align-items: center; gap: 32px; flex: 1; }
.legend { width: 100%; max-width: 280px; min-width: 0; }
.legend li { grid-template-columns: 10px minmax(0, 1fr) 40px 40px; gap: 10px; }
.donut .ring-track { stroke: var(--surface-sunk); }
.donut .seg:hover { stroke-width: 22; }
.squad-panel .donut-wrap { grid-template-columns: auto minmax(0, 1fr); gap: 20px; justify-content: stretch; }
@media (max-width: 560px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } }
.kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* donut + tile legend: ring on the left, tiles fill the rest of the panel */
.donut-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); justify-content: stretch; align-items: center; gap: 24px; }
.legend.tiles { max-width: none; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.legend.tiles li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c) 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)); }
.legend.tiles .lname { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend.tiles .lname i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.legend.tiles .lnum { display: flex; align-items: baseline; gap: 8px; }
.legend.tiles .lnum b { font: 700 26px/1 var(--font-display); letter-spacing: -0.04em; }
.legend.tiles .lnum small { font: 500 12px var(--font-mono); color: var(--ink-3); }
.legend.tiles .lbar { height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--c) 15%, transparent); overflow: hidden; }
.legend.tiles .lbar span { display: block; height: 100%; border-radius: 99px; background: var(--c); min-width: 3px; animation: grow-x 900ms var(--ease-brand) both; transform-origin: left; }
.squad-panel .legend.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.squad-panel .legend.tiles li { padding: 9px 11px; gap: 4px; }
.squad-panel .legend.tiles .lnum b { font-size: 20px; }
@media (max-width: 640px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } }
.squad-panel .donut-wrap { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
.squad-panel .legend.tiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); width: 100%; }
.squad-panel .legend.tiles .lname { font-size: 11.5px; }
.squad-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---------- squad cards: fixed, aligned structure ---------- */
.squad-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.squad-card { gap: 16px; padding: 20px; }
.sq-head { display: flex; align-items: center; justify-content: space-between; height: 28px; }
.sq-head .squad-name { font-size: 20px; }
.sq-head .squad-dot { background: var(--sq); }
.sq-open { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: background 150ms, color 150ms; }
.sq-open:hover { background: var(--surface-sunk); color: var(--ink); opacity: 1; }
.sq-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sq-stats div { display: flex; flex-direction: column; gap: 4px; }
.sq-stats b { font: 700 28px/1 var(--font-display); letter-spacing: -0.04em; }
.sq-stats span { font-size: 12px; color: var(--ink-3); }
.sq-stats .is-critical b { color: var(--critical); }
.sq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sq-chips span { height: 26px; padding: 0 10px; border-radius: 99px; background: var(--surface-sunk); font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.sq-chips b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.sq-chips .is-warning { background: var(--warning-soft); color: var(--warning); }
.sq-ring { display: flex; justify-content: center; padding: 4px 0; }
.sq-ring .donut-center b { font-size: 30px; }
.sq-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sq-stages li { position: relative; display: grid; grid-template-columns: 9px minmax(0, 1fr) 28px 36px; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px; overflow: hidden; font-size: 13px; }
.sq-stages li::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: color-mix(in srgb, var(--c) 14%, transparent); border-radius: 8px; transition: width 600ms var(--ease-brand); }
.sq-stages li > * { position: relative; }
.sq-stages i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.sq-stages .sn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.sq-stages b { font: 600 13px var(--font-mono); text-align: right; }
.sq-stages small { font: 500 11.5px var(--font-mono); color: var(--ink-3); text-align: right; }
.sq-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sq-chips span { height: auto; padding: 7px 10px; border-radius: 10px; flex-direction: column; align-items: flex-start; gap: 1px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-chips b { font: 600 15px/1.1 var(--font-mono); color: var(--ink); }
.sq-chips .is-warning b { color: var(--warning); }
.auth-quote { font-size: clamp(36px, 4.4vw, 104px); overflow-wrap: break-word; hyphens: auto; }

/* =========================================================================
   Projetos
   ========================================================================= */
.ptag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 7px; border-radius: 99px; background: color-mix(in srgb, var(--pc) 14%, var(--surface)); color: color-mix(in srgb, var(--pc) 70%, var(--ink)); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); font: 600 11px/1 var(--font-mono); letter-spacing: .02em; text-decoration: none; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ptag::before { content: '#'; opacity: .6; margin-right: -3px; }
.ptag i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); flex: none; order: -1; }
.ptag.sm { height: 19px; font-size: 10px; align-self: flex-start; }
.ptag.xs { height: 17px; font-size: 9.5px; padding: 0 6px 0 5px; margin-right: 6px; }
.ptag.lg { height: 28px; font-size: 13px; padding: 0 12px 0 9px; }
a.ptag:hover { opacity: .8; }
.proj-pick { width: 100%; height: 30px; border-radius: 99px; border: 1px dashed var(--line-strong); background: var(--surface); padding: 0 10px; font: 600 12px var(--font-mono); color: var(--ink-3); }
.proj-pick.set { border-style: solid; border-color: color-mix(in srgb, var(--pc) 45%, transparent); background: color-mix(in srgb, var(--pc) 12%, var(--surface)); color: color-mix(in srgb, var(--pc) 70%, var(--ink)); }
.proj-filter { width: 190px; }
.proj-opt { display: grid; grid-template-columns: 9px auto 1fr; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; text-align: left; background: color-mix(in srgb, var(--pc) 10%, var(--surface)); font-size: 13px; }
.proj-opt i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); }
.proj-opt b { font: 600 12px var(--font-mono); }
.proj-opt span { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-opt:hover { transform: translateX(3px); }
.proj-opt.current { box-shadow: inset 0 0 0 2px var(--pc); }
.mcell.proj { padding: 4px 8px; }

/* list */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.pempty { grid-column: 1 / -1; }
.skel-pcard { height: 290px; border-radius: 20px; }
.pcard { display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-panel); transition: transform 220ms var(--ease-brand), box-shadow 220ms; animation: rise 500ms var(--ease-brand) both; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(12, 13, 13, .35); opacity: 1; }
.pcard-band { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 64px; padding: 0 18px; background: color-mix(in srgb, var(--pc) 16%, var(--surface)); overflow: hidden; }
.pcard-band::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 72px; height: 72px; background: radial-gradient(circle at 100% 100%, transparent 39px, var(--pc) 40px 72px, transparent 73px); opacity: .9; }
.pcard-band .state-pill { position: relative; z-index: 1; margin-right: 52px; }
.pcard-band .ptag { background: var(--surface); }
.pcard-body { display: flex; flex-direction: column; gap: 16px; padding: 18px; flex: 1; }
.pcard-title { display: flex; gap: 12px; align-items: center; }
.pcard-title h3 { font: 700 21px/1.1 var(--font-display); letter-spacing: -0.03em; }
.pcard-ring { position: relative; width: 58px; height: 58px; flex: none; }
.pcard-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 13px var(--font-mono); }
.pcard .ring-fill { stroke: var(--pc); }
.pcard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pcard-stats span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 11.5px; color: var(--ink-3); }
.pcard-stats b { font: 700 20px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.pcard-stats .is-critical b { color: var(--critical); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.pdue { display: inline-flex; align-items: center; gap: 5px; font: 500 12px var(--font-mono); color: var(--ink-3); }
.pdue.soon { color: var(--warning); } .pdue.late { color: var(--critical); }
.pcard-heat { display: flex; flex-direction: column; gap: 7px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.pcard-heat p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; height: 26px; padding: 0 10px 0 4px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.heat b { font: 600 12px var(--font-mono); opacity: .75; }
.heat-ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.heat.good { background: var(--good-soft); color: var(--good); } .heat.good .heat-ico { background: var(--natureza); color: #fff; }
.heat.warning { background: var(--warning-soft); color: var(--warning); } .heat.warning .heat-ico { background: var(--luz); color: var(--preto); }
.heat.critical { background: var(--critical-soft); color: var(--critical); } .heat.critical .heat-ico { background: var(--calor); color: #fff; }
.heat.paused, .heat.empty, .heat.done { background: var(--neutral-soft); color: var(--ink-2); } .heat.paused .heat-ico, .heat.empty .heat-ico, .heat.done .heat-ico { background: var(--ink-3); color: #fff; }
.heat.big { height: 34px; font-size: 15px; padding-right: 14px; } .heat.big .heat-ico { width: 26px; height: 26px; }
.heat-meter { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--calor), var(--luz) 55%, var(--natureza)); opacity: .25; position: relative; overflow: hidden; }
.heat-meter span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--calor), var(--luz) 55%, var(--natureza)); background-size: 100cqw 100%; }
.pcard-heat .heat-meter { opacity: 1; background: var(--surface-sunk); }
.pcard.heat-good .heat-meter span { background: var(--natureza); } .pcard.heat-warning .heat-meter span { background: var(--luz); } .pcard.heat-critical .heat-meter span { background: var(--calor); }
.pcard.heat-critical { border-color: color-mix(in srgb, var(--calor) 35%, var(--line)); }

/* project page */
.phero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 30px; border-radius: 24px; background: color-mix(in srgb, var(--pc) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--pc) 25%, var(--line)); animation: rise 600ms var(--ease-brand) both; }
.phero::after { content: ''; position: absolute; right: -1px; top: -1px; width: 160px; height: 160px; background: radial-gradient(circle at 100% 0%, transparent 89px, var(--pc) 90px 160px, transparent 161px); opacity: .85; pointer-events: none; }
.phero-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; z-index: 1; }
.phero h1 { font-size: clamp(32px, 4vw, 52px); }
.back { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; margin-right: 6px; }
.phero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); }
.phero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.phero-ring { position: relative; width: 132px; height: 132px; margin-right: 70px; z-index: 1; }
.phero-ring .ring-fill { stroke: var(--pc); }
.phero-ring .ring-track { stroke: color-mix(in srgb, var(--pc) 15%, var(--surface)); }
.phero-ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.phero-ring-label b { font: 700 30px/1 var(--font-display); letter-spacing: -0.04em; }
.phero-ring-label span { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.heat-panel { flex-direction: row; align-items: center; gap: 28px; border-width: 1px; }
.heat-panel.critical { background: color-mix(in srgb, var(--calor) 6%, var(--surface)); border-color: color-mix(in srgb, var(--calor) 30%, var(--line)); }
.heat-panel.warning { background: color-mix(in srgb, var(--luz) 9%, var(--surface)); border-color: color-mix(in srgb, var(--luz) 40%, var(--line)); }
.heat-panel.good { background: color-mix(in srgb, var(--natureza) 6%, var(--surface)); }
.heat-panel h2 { margin: 2px 0 10px; }
.heat-panel .eyebrow { margin-bottom: 6px; }
.gauge { position: relative; width: 190px; height: 104px; flex: none; }
.gauge-arc { position: absolute; inset: 0; border-radius: 190px 190px 0 0; background: conic-gradient(from 270deg at 50% 100%, var(--calor) 0deg, var(--luz) 90deg, var(--natureza) 180deg, transparent 180deg); -webkit-mask: radial-gradient(circle at 50% 100%, transparent 62px, #000 63px); mask: radial-gradient(circle at 50% 100%, transparent 62px, #000 63px); opacity: .25; }
.gauge-arc::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(from 270deg at 50% 100%, var(--calor) 0deg, var(--luz) 90deg, var(--natureza) 180deg, transparent 180deg); -webkit-mask: conic-gradient(from 270deg at 50% 100%, #000 var(--a), transparent var(--a)); mask: conic-gradient(from 270deg at 50% 100%, #000 var(--a), transparent var(--a)); }
.gauge { isolation: isolate; }
.gauge-arc { opacity: 1; background: none; }
.gauge-arc::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--surface-sunk); }
.gauge-label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; }
.gauge-label b { font: 700 38px/1 var(--font-display); letter-spacing: -0.04em; }
.gauge-label span { font-size: 11px; color: var(--ink-3); }
.heat-reasons { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.heat-reasons li { display: flex; gap: 8px; font-size: 14px; }
.heat-reasons li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-top: 8px; opacity: .5; flex: none; }
.pair-legend { display: flex; gap: 16px; margin-bottom: 6px; font-size: 12.5px; color: var(--ink-2); }
.pair-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pair-legend i { width: 10px; height: 10px; border-radius: 3px; }
.pgrid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.pcol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ptext { white-space: pre-wrap; line-height: 1.65; color: var(--ink-2); font-size: 14.5px; }
.ptext a, .defs a { color: var(--link); }
.defs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.defs li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.5; }
.def-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--natureza); color: #fff; display: grid; place-items: center; flex: none; margin-top: 1px; }
.miro-logo { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #ffd02f; color: #050038; font: 800 15px var(--font-display); margin-right: 8px; vertical-align: -3px; }
.miro-panel h2 { display: flex; align-items: center; }
.miro-embed { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--surface-sunk); }
.miro-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ptasks { display: flex; flex-direction: column; gap: 2px; max-height: 520px; overflow: auto; }
.ptask { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-align: left; }
.ptask:hover { background: var(--surface-2); }
.ptask.done .row-title { text-decoration: line-through; color: var(--ink-3); }
.state-pill.critical-pill { background: var(--critical-soft); color: var(--critical); }
.pkpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pkpi { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.pkpi-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pkpi-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pkpi-num b { font: 700 26px/1 var(--font-display); letter-spacing: -0.04em; }
.pkpi-num span { font-size: 11.5px; color: var(--ink-3); }
.pkpi-bar { height: 6px; border-radius: 99px; background: var(--surface-sunk); overflow: hidden; }
.pkpi-bar span { display: block; height: 100%; border-radius: 99px; background: var(--ceu); }
.pkpi-bar span.full { background: var(--natureza); }
.pblock + .pblock { margin-top: 14px; }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plist li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.plist li b { display: block; }
.plist.small li { font-size: 12.5px; gap: 8px; }
.plinks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plinks a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); text-decoration: none; transition: background 150ms, transform 150ms var(--ease-brand); }
.plinks a:hover { background: var(--surface-sunk); transform: translateX(3px); opacity: 1; }
.plinks .row-sub { max-width: 260px; }
.lk-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font: 700 13px var(--font-display); flex: none; }
.pedit { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tag-in { font-family: var(--font-mono); text-transform: uppercase; }
.member-pick { display: flex; flex-direction: column; gap: 4px; max-height: 230px; overflow: auto; padding-right: 4px; }
.member-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.member-row .input { width: 130px; }
.rep { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.rep > .btn { align-self: flex-start; }
.rep-row { display: grid; gap: 6px; align-items: center; }
@media (max-width: 1100px) { .pgrid-2, .pedit { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .phero { grid-template-columns: 1fr; } .phero-ring { margin: 0 auto; } .heat-panel { flex-direction: column; align-items: flex-start; } }
.phero::after { top: auto; bottom: -1px; width: 110px; height: 110px; background: radial-gradient(circle at 100% 100%, transparent 61px, var(--pc) 62px 110px, transparent 111px); }
.phero-ring { margin-right: 0; }
.phero-ring .ring-track { stroke: color-mix(in srgb, var(--pc) 22%, var(--surface)); }
.sort-sel { width: auto; min-width: 220px; }
