/* Eva Reviewer — design tokens + components. No external fonts or assets.
   Every colour lives in the token blocks below; components only use var(--…). */
:root {
  color-scheme: light;
  --background: #f5f7fa;
  --sidebar-bg: #ffffff;
  --surface: #ffffff;
  --surface-secondary: #f0f3f7;
  --surface-muted: var(--surface-secondary);
  --surface-hover: #f7f9fc;
  --surface-elevated: #ffffff;
  --border: #e3e8ef;
  --border-strong: #cfd7e2;
  --text-primary: #0f1b2d;
  --text-secondary: #5b6878;
  --text-muted: #7c8898;
  --primary: #1f5eff;
  --primary-hover: #1a51de;
  --primary-soft: #eaf0ff;
  --primary-border: #c7d6ff;
  --on-primary: #ffffff;
  --brand: #051274;
  --success: #12805c;
  --success-soft: #e3f5ee;
  --success-border: #b3e2cf;
  --danger: #c8283b;
  --danger-soft: #fdecee;
  --danger-border: #f3b5bd;
  --danger-text: #7a1623;
  --warning: #b35c00;
  --warning-soft: #fff3e0;
  --warning-border: #f6d59b;
  --warning-text: #6b3a00;
  --high: #c2410c;
  --high-soft: #fff4ec;
  --high-border: #fbcfae;
  --high-accent: #ea580c;
  --medium-accent: #d97706;
  --info: #3d5a80;
  --info-soft: #edf2f8;
  --info-border: #cbd6e4;
  --info-text: #1b3a8a;
  --code-background: #f6f8fb;
  --code-text: #1f2a3a;
  --loc: #0b63c9;
  --band-danger: #f3c1c7;
  --band-warning: #f8dcae;
  --band-success: #b9e4d2;
  --marker: #0f1b2d;
  --toggle-knob: #ffffff;
  --logo-plate: transparent;
  --hero-bg: #dbe7fb;
  --auth-bg: #f4f7fc;
  --auth-glow: rgba(31, 94, 255, .10);
  --auth-glow-soft: rgba(31, 94, 255, .06);
  --auth-curve: rgba(31, 94, 255, .14);
  --auth-card: #ffffff;
  --auth-card-border: #d3dcea;
  --auth-card-glow: rgba(31, 94, 255, .07);
  --auth-edge: #d3dcea;
  --auth-text: #0f1b2d;
  --auth-text-secondary: #3f4e66;
  --auth-text-muted: #56657c;
  --auth-divider: #dde4ee;
  --auth-accent: #1f5eff;
  --auth-on-accent: #ffffff;
  --auth-switch-bg: #ffffff;
  --auth-switch-border: #d3dcea;
  --google-bg: #ffffff;
  --google-hover: #f2f5fa;
  --google-border: #747775;
  --google-text: #1f1f1f;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05);
  --shadow-lg: 0 6px 24px rgba(15, 27, 45, .12);
  --shadow-panel: 0 10px 30px rgba(15, 27, 45, .06);
  --overlay-shadow: 0 0 40px rgba(15, 27, 45, .2);
  --radius: 10px;
  --radius-sm: 6px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 232px;
  --content-max: 1480px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b1120;
  --sidebar-bg: #0f172a;
  --surface: #111827;
  --surface-secondary: #151e2e;
  --surface-hover: #1a2436;
  --surface-elevated: #1e293b;
  --border: #263244;
  --border-strong: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #7b8aa0;
  --primary: #5b9bff;
  --primary-hover: #4a86ec;
  --primary-soft: rgba(91, 155, 255, .14);
  --primary-border: rgba(91, 155, 255, .38);
  --on-primary: #0b1120;
  --success: #3fd49b;
  --success-soft: rgba(63, 212, 155, .13);
  --success-border: rgba(63, 212, 155, .35);
  --danger: #ff7b86;
  --danger-soft: rgba(255, 99, 112, .13);
  --danger-border: rgba(255, 99, 112, .38);
  --danger-text: #ffc2c7;
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, .12);
  --warning-border: rgba(251, 191, 36, .35);
  --warning-text: #fde2a2;
  --high: #fb923c;
  --high-soft: rgba(251, 146, 60, .13);
  --high-border: rgba(251, 146, 60, .38);
  --high-accent: #fb923c;
  --medium-accent: #fbbf24;
  --info: #a5b8d4;
  --info-soft: rgba(165, 184, 212, .12);
  --info-border: rgba(165, 184, 212, .32);
  --info-text: #c9d8f2;
  --code-background: #0b1322;
  --code-text: #e2e8f0;
  --loc: #67d4f0;
  --band-danger: rgba(255, 99, 112, .45);
  --band-warning: rgba(251, 191, 36, .42);
  --band-success: rgba(63, 212, 155, .42);
  --marker: #f8fafc;
  --toggle-knob: #f8fafc;
  --logo-plate: #f8fafc;
  --hero-bg: #0d1a36;
  --auth-bg: #081325;
  --auth-glow: rgba(64, 120, 255, .20);
  --auth-glow-soft: rgba(64, 120, 255, .10);
  --auth-curve: rgba(92, 143, 255, .20);
  --auth-card: #101d34;
  --auth-card-border: #34527c;
  --auth-card-glow: rgba(92, 143, 255, .14);
  --auth-edge: #1d3152;
  --auth-text: #f5f7fc;
  --auth-text-secondary: #b0c2df;
  --auth-text-muted: #94a8c7;
  --auth-divider: rgba(148, 168, 199, .18);
  --auth-accent: #5c8fff;
  --auth-on-accent: #ffffff;
  --auth-switch-bg: rgba(16, 29, 52, .72);
  --auth-switch-border: #2c4468;
  --google-bg: #ffffff;
  --google-hover: #eef2f8;
  --google-border: #dadce0;
  --google-text: #1f1f1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-panel: 0 10px 30px rgba(0, 0, 0, .4);
  --overlay-shadow: 0 0 40px rgba(0, 0, 0, .6);
}
/* Wide / 4K: use the width instead of leaving it empty; scale type and chrome on 4K. */
@media (min-width: 1800px) { :root { --content-max: 1840px; } }
@media (min-width: 2400px) {
  :root { --content-max: none; --sidebar: 256px; }
  .content { padding: 28px 40px 48px; }
  body { font-size: 15px; }
  code, pre, .mono { font-size: 13.5px; }
  .kpi .value { font-size: 26px; }
  .review-head h2 { font-size: 28px; }
  .cols { grid-template-columns: minmax(0, 2.4fr) minmax(360px, 1fr); }
}
@media (min-width: 3200px) {
  :root { --sidebar: 300px; }
  .content { padding: 32px 56px 56px; gap: 24px; }
  body { font-size: 18px; }
  code, pre, .mono { font-size: 16px; }
  .kpis { gap: 16px; } .kpi { padding: 16px 18px; }
  .nav a { padding: 9px 12px; }
  svg.i { width: 19px; height: 19px; }
  .brand img { width: 150px; }
  .topbar h1 { font-size: 24px; }
  .kpi .value { font-size: 30px; }
  .card-head h2 { font-size: 18px; }
  table.grid { font-size: 15px; } table.grid th { font-size: 13.5px; }
  .badge { height: 26px; font-size: 13.5px; padding: 0 10px; }
  .search { width: 420px; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--sans); color: var(--text-primary); background: var(--background); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sidebar-bg); border-right: 1px solid var(--border); padding: 18px 12px 12px; }
.brand { padding: 2px 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.brand img { display: block; width: 132px; height: auto; }
.brand .name { margin-top: 12px; font-weight: 650; font-size: 14px; }
.brand .tag { color: var(--text-secondary); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 500; }
.nav a:hover { background: var(--surface-hover); color: var(--text-primary); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.side-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.health { display: flex; gap: 8px; padding: 0 8px; font-size: 12px; color: var(--text-secondary); }
.health .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--success); }
.health.warn .dot { background: var(--warning); }
.health b { color: var(--text-primary); font-weight: 600; display: block; }
.user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 600; font-size: 12px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user .who { min-width: 0; line-height: 1.3; }
.user .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user .who span { display: block; font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user form { margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); cursor: pointer; }
.icon-btn:hover { background: var(--surface-hover); border-color: var(--border); color: var(--text-primary); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 3; }
.topbar .titles { min-width: 0; }
.topbar h1 { font-size: 20px; line-height: 1.25; margin: 0; font-weight: 650; }
.topbar p { margin: 2px 0 0; color: var(--text-secondary); font-size: 13px; }
.topbar .spacer { flex: 1; }
.search { position: relative; width: 300px; max-width: 40vw; }
.search svg { position: absolute; left: 10px; top: 9px; color: var(--text-muted); }
.search input { width: 100%; height: 34px; padding: 0 44px 0 32px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-muted); font: inherit; color: inherit; }
.search input:focus { background: var(--surface); border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.search kbd { position: absolute; right: 8px; top: 7px; font: 11px var(--mono); color: var(--text-muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; background: var(--surface); }
.menu-toggle { display: none; }
.content { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: var(--content-max); }

/* ---------- cards / kpis ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 16px; margin: 0; font-weight: 650; }
.card-head .sub { color: var(--text-secondary); font-size: 13px; }
.card-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { padding: 12px 14px; }
.kpi .label { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 12.5px; }
.kpi .value { font-size: 22px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .note { color: var(--text-muted); font-size: 12px; }
.kpi.tone-danger .label svg { color: var(--danger); } .kpi.tone-success .label svg { color: var(--success); } .kpi.tone-info .label svg { color: var(--primary); }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.toolbar label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 12.5px; }
select, .btn, .toolbar input[type=search] { height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-primary); font: inherit; font-size: 13px; padding: 0 10px; }
select { padding-right: 24px; min-width: 96px; max-width: 170px; }
.toolbar input[type=search] { flex: 1 1 200px; min-width: 180px; max-width: 320px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 13px; }
.btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; text-decoration: none; }
.btn:hover { background: var(--surface-hover); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); }
.toolbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.switch input { width: 30px; height: 18px; appearance: none; background: var(--border-strong); border-radius: 10px; position: relative; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--toggle-knob); transition: left .12s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { left: 14px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th { position: sticky; top: 0; background: var(--surface-muted); color: var(--text-secondary); font-weight: 600; font-size: 12px; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.grid td { padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
table.grid tbody tr:hover td { background: var(--surface-hover); }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tr.clickable { cursor: pointer; }
table.grid .num { font-variant-numeric: tabular-nums; text-align: right; }
th a.sort { color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.muted { color: var(--text-secondary); }
.faint { color: var(--text-muted); }
.hash { display: inline-flex; align-items: center; gap: 4px; }
.copy { border: 1px solid transparent; background: transparent; color: var(--text-muted); border-radius: 4px; padding: 2px 4px; cursor: pointer; display: inline-flex; font-size: 12px; }
.copy:hover { color: var(--primary); border-color: var(--border); background: var(--surface); }
.copy.done { color: var(--success); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge svg.i { width: 12px; height: 12px; stroke-width: 2.4; }
.badge.running { background: var(--primary-soft); color: var(--primary); }
.badge.passed, .badge.success { background: var(--success-soft); color: var(--success); }
.badge.failed, .badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.error, .badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.superseded, .badge.neutral { background: var(--surface-muted); color: var(--text-secondary); }
.sev { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; border: 1px solid; }
.sev.Critical { color: var(--danger); border-color: var(--danger-border); background: var(--danger-soft); }
.sev.High { color: var(--high); border-color: var(--high-border); background: var(--high-soft); }
.sev.Medium { color: var(--warning); border-color: var(--warning-border); background: var(--warning-soft); }
.sev.Low { color: var(--info); border-color: var(--info-border); background: var(--info-soft); }

/* ---------- review detail ---------- */
.crumbs { font-size: 13px; color: var(--text-secondary); }
.review-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.review-head h2 { font-size: 24px; margin: 0; font-weight: 650; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-head .meta { color: var(--text-secondary); font-size: 13px; margin-top: 4px; word-break: break-all; }
.review-head .actions { margin-left: auto; display: flex; gap: 8px; }
details.more { position: relative; }
details.more > summary { list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more .menu { position: absolute; right: 0; top: 36px; background: var(--surface-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 200px; padding: 4px; z-index: 4; }
details.more .menu a, details.more .menu button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 7px 10px; border: 0; background: none; font: inherit; color: var(--text-primary); border-radius: 4px; cursor: pointer; text-align: left; }
details.more .menu a:hover, details.more .menu button:hover { background: var(--surface-hover); text-decoration: none; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0; }
.strip > div { padding: 12px 16px; border-right: 1px solid var(--border); min-width: 0; }
.strip > div:last-child { border-right: 0; }
.strip dt { color: var(--text-secondary); font-size: 12px; margin-bottom: 4px; }
.strip dd { margin: 0; font-weight: 600; word-break: break-word; }
.strip > div { border-bottom: 1px solid var(--border); }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); padding: 0 4px; }
.tabs a { padding: 10px 2px; color: var(--text-secondary); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--text-primary); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.tabs .count { background: var(--surface-muted); color: var(--text-secondary); border-radius: 9px; padding: 0 6px; font-size: 11.5px; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }

.progress { display: flex; gap: 0; margin-top: 12px; }
.progress li { list-style: none; flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); position: relative; padding-right: 12px; }
.progress li::after { content: ""; flex: 1; height: 2px; background: var(--border); }
.progress li:last-child::after { display: none; }
.progress .step { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--surface); flex: none; }
.progress .done { color: var(--success); } .progress .done .step { border-color: var(--success); background: var(--success); color: var(--surface); }
.progress .current { color: var(--primary); font-weight: 600; } .progress .current .step { border-color: var(--primary); }
.progress .current .step::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.progress ol { display: flex; padding: 0; margin: 0; width: 100%; }

.score { display: flex; align-items: baseline; gap: 6px; }
.score .big { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.scale-svg { display: block; width: 100%; height: 12px; margin: 12px 0 4px; }
blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--border); }
.scale-svg .band-danger { fill: var(--band-danger); } .scale-svg .band-warning { fill: var(--band-warning); } .scale-svg .band-success { fill: var(--band-success); } .scale-svg .marker-bar { fill: var(--marker); }
.scale-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--text-secondary); } .kv dd { margin: 0; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
ul.plain li:last-child { border-bottom: 0; }

/* gates */
.gate-out pre, .code pre { margin: 0; padding: 10px 12px; background: var(--code-background); color: var(--code-text); border: 1px solid var(--border); border-radius: var(--radius-sm); white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; }
.line-fail { color: var(--danger); font-weight: 600; background: var(--danger-soft); display: inline; }
.line-warn { color: var(--warning); }
.loc { color: var(--loc); }
details.expand summary { cursor: pointer; color: var(--primary); font-size: 12.5px; margin-top: 6px; }
table.grid td.wrap { white-space: normal; }

/* findings */
.findings { display: flex; flex-direction: column; gap: 12px; }
.finding-fix { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--success-border); background: var(--success-soft); border-radius: var(--radius-sm); }
.finding .finding-fix h4 { margin-top: 0; }
.finding-fix p { margin: 0; }
.finding { border: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; }
.finding.Critical { border-left-color: var(--danger); } .finding.High { border-left-color: var(--high-accent); }
.finding.Medium { border-left-color: var(--medium-accent); } .finding.Low { border-left-color: var(--info); }
.finding .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.finding .fid { font: 600 12px var(--mono); color: var(--text-secondary); }
.finding h3 { margin: 6px 0 8px; font-size: 15px; font-weight: 600; }
.finding .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 8px; }
.finding .facts code { color: var(--text-primary); }
.finding h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); margin: 10px 0 4px; }
.finding p { margin: 0; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters a { padding: 4px 10px; border: 1px solid var(--border); border-radius: 14px; font-size: 12.5px; color: var(--text-secondary); }
.filters a[aria-current="true"] { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-border); }

/* report */
.report section { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.report section:last-child { border-bottom: 0; }
.report h2.sec { font-size: 16px; margin: 0 0 8px; }
.report h3, .report h4 { font-size: 14px; margin: 12px 0 6px; }
.report p { margin: 6px 0; }
.report ul, .report ol { margin: 6px 0; padding-left: 20px; }
.report li { margin: 3px 0; }
.report code { background: var(--surface-muted); padding: 1px 4px; border-radius: 4px; }
.report pre code { background: none; padding: 0; }
table.md { border-collapse: collapse; font-size: 12.5px; margin: 8px 0; }
table.md th, table.md td { border: 1px solid var(--border); padding: 5px 9px; text-align: left; vertical-align: top; }
table.md th { background: var(--surface-muted); }
.code { margin: 8px 0; }
.code-bar { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--text-muted); padding: 0 2px 4px; }
.toc { position: sticky; top: 84px; }
.toc a { display: block; padding: 4px 0; font-size: 13px; color: var(--text-secondary); }

/* states */
.state { text-align: center; padding: 40px 16px; color: var(--text-secondary); }
.state svg.i { width: 28px; height: 28px; color: var(--text-muted); margin-bottom: 8px; }
.state h3 { color: var(--text-primary); margin: 0 0 4px; font-size: 15px; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13px; }
.alert.danger { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger-text); }
.alert.warning { background: var(--warning-soft); border-color: var(--warning-border); color: var(--warning-text); }
.alert.info { background: var(--primary-soft); border-color: var(--primary-border); color: var(--info-text); }

/* auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .panel { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-panel); padding: 32px; text-align: center; }
.auth img { width: 150px; height: auto; margin: 0 auto 22px; display: block; }
.auth h1 { font-size: 22px; margin: 0; }
.auth .kicker { color: var(--text-secondary); font-size: 13px; margin: 2px 0 18px; }
.auth p { color: var(--text-secondary); margin: 0 0 20px; }
.auth .btn { width: 100%; justify-content: center; height: 40px; font-size: 14px; }
.auth .fine { font-size: 12px; color: var(--text-muted); margin: 16px 0 0; }
.auth .alert { text-align: left; margin-bottom: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 20; left: 0; top: 0; width: var(--sidebar); transform: translateX(-100%); transition: transform .15s; box-shadow: var(--overlay-shadow); }
  body.nav-open .sidebar { transform: none; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 12px 16px; } .content { padding: 16px; }
  .search { width: 200px; }
}
@media (max-width: 720px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search, .topbar p { display: none; }
  .toolbar input[type=search] { width: 100%; }
  table.grid.cards thead { display: none; }
  table.grid.cards, table.grid.cards tbody, table.grid.cards tr, table.grid.cards td { display: block; width: 100%; }
  table.grid.cards tr { border-bottom: 1px solid var(--border); padding: 8px 4px; }
  table.grid.cards td { border: 0; padding: 3px 12px; display: flex; justify-content: space-between; gap: 12px; white-space: normal; text-align: right; }
  .toolbar .right { margin-left: 0; width: 100%; justify-content: space-between; }
  select { max-width: none; flex: 1; }
  table.grid.cards td::before { content: attr(data-label); color: var(--text-secondary); font-size: 12px; }
  .review-head .actions { margin-left: 0; }
  .progress ol { flex-direction: column; gap: 8px; } .progress li::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* vertical progress for narrow side cards */
.progress.vertical ol { flex-direction: column; gap: 10px; }
.progress.vertical li::after { display: none; }

/* ---------- theme ---------- */
.brand .logo { display: inline-block; background: var(--logo-plate); border-radius: 6px; padding: 0; }
:root[data-theme="dark"] .brand .logo, :root[data-theme="dark"] .auth .logo { padding: 6px 9px; }
.auth .logo { display: inline-block; background: var(--logo-plate); border-radius: 8px; margin: 0 auto 22px; }
.auth .logo img { margin: 0; }
select, input, textarea { color-scheme: inherit; }
.theme-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-secondary); }
.theme-switch button { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.theme-switch button:hover { color: var(--text-primary); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text-primary); box-shadow: var(--shadow); }
.theme-switch svg.i { width: 14px; height: 14px; }
.auth-theme { position: fixed; top: 16px; right: 16px; }
/* Theme change: short colour transition only while switching (never on load). */
:root.theme-switching, :root.theme-switching * { transition: background-color .18s ease, border-color .18s ease, color .18s ease, fill .18s ease !important; }
@media (max-width: 720px) { .theme-switch button span { display: none; } .theme-switch button { padding: 0 7px; } }
@media (prefers-reduced-motion: reduce) { :root.theme-switching, :root.theme-switching * { transition: none !important; } }

/* ---------- motion hooks (Anime.js drives the movement; CSS only holds states) ---------- */
.btn, .icon-btn, .theme-switch button { will-change: transform; }
.btn[aria-busy="true"], .icon-btn[aria-busy="true"] { cursor: progress; opacity: .75; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.copy.failed { color: var(--danger); }
.motion-enter [data-enter] { opacity: 0; }
.js-ink .tabs { position: relative; }
.tab-ink { position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--primary); border-radius: 2px; pointer-events: none; }
.js-ink .tabs a[aria-current="page"] { border-bottom-color: transparent; }
.nav { position: relative; }
.nav a { position: relative; z-index: 1; }
.nav-ink { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--primary-soft); border-radius: var(--radius-sm); z-index: 0; pointer-events: none; }
.js-ink .nav a[aria-current="page"] { background: transparent; }

/* ---------- split-screen sign-in ----------
   Artwork is a CSS background so phones (<768px, artwork hidden) never download it.
   /static is cached immutable: give a changed image a new file name. */
.auth.split { display: grid; grid-template-columns: minmax(0, 42.5fr) minmax(0, 57.5fr); place-items: stretch; padding: 0; min-height: 100vh; min-height: 100dvh; }
.auth-art { background: var(--hero-bg) center / cover no-repeat; border-left: 1px solid var(--auth-edge); }
@media (min-width: 1024px) { .auth-art { background-image: url("login-art.jpg"); background-position: 80% 50%; } }
.auth-side { position: relative; isolation: isolate; overflow: clip; min-width: 0; display: grid; grid-template-rows: auto 1fr auto;
  padding: max(24px, env(safe-area-inset-top)) max(48px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 48px;
  color: var(--auth-text);
  background: radial-gradient(60% 42% at 0% 100%, var(--auth-glow), transparent 72%),
              radial-gradient(45% 30% at 100% 0%, var(--auth-glow-soft), transparent 70%), var(--auth-bg); }
.auth-curves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: var(--auth-curve); stroke-width: 1.2; }
.auth-curves path { vector-effect: non-scaling-stroke; }
.auth-top { display: flex; justify-content: flex-end; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.auth-side .panel { width: 100%; max-width: 496px; text-align: left; background: none; border: 0; box-shadow: none; padding: 0; }
.auth-intro { padding-inline: 22px; }
.auth-logo { display: block; width: 228px; max-width: 100%; margin: 0 0 36px; line-height: 0; }
.auth-logo img { display: block; width: 100%; height: auto; margin: 0; }
.auth-logo .on-dark, :root[data-theme="dark"] .auth-logo .on-light { display: none; }
:root[data-theme="dark"] .auth-logo .on-dark { display: block; }
.auth-side h1 { font-size: 42px; line-height: 1.12; font-weight: 700; letter-spacing: -.015em; color: var(--auth-text); margin: 0; }
.auth-side .kicker { margin: 10px 0 20px; font-size: 17.5px; line-height: 1.45; font-weight: 500; color: var(--auth-text-secondary); }
.auth-side .lead { margin: 0 0 32px; font-size: 16px; line-height: 1.6; color: var(--auth-text-secondary); }
.auth-side .signin { padding: 30px; border: 1px solid var(--auth-card-border); border-radius: 12px;
  background: radial-gradient(70% 60% at 100% 100%, var(--auth-card-glow), transparent 70%), var(--auth-card); }
.auth-side .signin > p { margin: 0 0 20px; font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--auth-text); }
.auth-side .signin .alert { margin: 0 0 20px; }
.auth-side .btn.google { width: 100%; height: 50px; justify-content: center; gap: 12px; padding: 0 16px; border: 1px solid var(--google-border); border-radius: 8px;
  background: var(--google-bg); color: var(--google-text); font-size: 15.5px; font-weight: 500; letter-spacing: .01em; white-space: normal; text-align: center; line-height: 1.2; }
.auth-side .btn.google .g-logo { width: 20px; height: 20px; flex: none; }
@media (hover: hover) and (pointer: fine) { .auth-side .btn.google:hover { background: var(--google-hover); } }
.auth-side .btn.google:active { background: var(--google-hover); }
.auth-side .signin-status { display: block; min-height: 18px; margin-top: 10px; font-size: 13px; color: var(--auth-text-secondary); }
.auth-side .signin-status:empty { min-height: 0; margin: 0; }
.auth-side .access-note { display: flex; align-items: flex-start; gap: 10px; margin: 30px 0 0; padding-inline: 4px; font-size: 13.5px; line-height: 1.5; color: var(--auth-text-muted); text-align: left; }
.auth-side .access-note svg.i { width: 17px; height: 17px; margin-top: 1px; }
.auth-foot { width: 100%; max-width: 496px; margin: 0 auto; padding-top: 18px; border-top: 1px solid var(--auth-divider); }
.auth-foot p { margin: 0; font-size: 13px; color: var(--auth-text-muted); }
/* pill theme control: blue ink slides under the chosen option (motion.js glides it) */
.theme-switch.pill { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 186px; height: 40px; padding: 3px; border-radius: 999px;
  border-color: var(--auth-switch-border); background: var(--auth-switch-bg); }
.theme-switch.pill button { position: relative; z-index: 1; justify-content: center; height: 32px; padding: 0 10px; gap: 6px; border-radius: 999px; font-size: 14px; color: var(--auth-text-secondary); }
.theme-switch.pill button span { display: inline; }
.theme-switch.pill button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.theme-switch.pill button:hover { color: var(--auth-text); }
:root:not([data-theme="dark"]) .theme-switch.pill [data-theme-set="light"], :root[data-theme="dark"] .theme-switch.pill [data-theme-set="dark"] { color: var(--auth-on-accent); }
.theme-switch.pill svg.i { width: 16px; height: 16px; }
.theme-ink { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--auth-accent); pointer-events: none; }
:root[data-theme="dark"] .theme-ink { transform: translateX(100%); }
@media (max-width: 1279px) {
  .auth.split { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
  .auth-side { padding-inline: 40px; }
}
@media (max-width: 1023px) {
  .auth.split { grid-template-columns: minmax(0, 1fr); grid-template-rows: 200px auto; }
  .auth-art { order: -1; border-left: 0; border-bottom: 1px solid var(--auth-edge); }   /* banner stays on top */
  .auth-side { padding-top: 20px; }
  .auth-main { padding: 32px 0 40px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .auth-art { background-image: url("login-art-banner.jpg"); background-position: 68% 50%; } }
@media (max-width: 767px) {
  .auth.split { grid-template-rows: auto; }
  .auth-art { display: none; }
  .auth-side { padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .auth-main { padding: 28px 0 36px; }
  .auth-intro { padding-inline: 2px; }
  .auth-logo { width: 180px; margin-bottom: 28px; }
  .auth-side h1 { font-size: 32px; }
  .auth-side .kicker { font-size: 16.5px; }
  .auth-side .lead { margin-bottom: 26px; }
  .auth-side .signin { padding: 22px; }
  .auth-side .access-note { margin-top: 24px; }
}

/* ---------------------------------------------------------------- charts & reports */
.chart { margin: 0; padding: 12px 16px 14px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg .grid-line { stroke: var(--border); stroke-width: 1; }
.chart-svg .axis { fill: var(--text-muted); font-size: 11px; font-family: inherit; }
.chart-svg .axis.name { fill: var(--text-secondary); font-size: 12px; }
.chart-svg rect { transition: opacity 140ms ease-out; }
.chart-svg rect:hover { opacity: .8; }
.c-passed { fill: var(--success); background: var(--success); }
.c-failed { fill: var(--danger); background: var(--danger); }
.c-errors { fill: var(--warning); background: var(--warning); }
.c-superseded { fill: var(--text-muted); background: var(--text-muted); }
.c-running { fill: var(--primary); background: var(--primary); }
.c-primary { fill: var(--primary); background: var(--primary); }
.c-empty { fill: var(--border-strong); }
.c-score { background: var(--text-primary); }
.chart-svg .score-line { fill: none; stroke: var(--text-primary); stroke-width: 2; stroke-linejoin: round; opacity: .75; }
.chart-svg .score-dot { fill: var(--surface); stroke: var(--text-primary); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--text-secondary); font-size: 12.5px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .swatch.c-score { height: 2px; border-radius: 1px; width: 14px; }
.section-title { font-size: 14px; font-weight: 600; margin: 4px 0 -4px; color: var(--text-secondary); }
.author { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.title-cell { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-head .inline-search { margin-left: auto; height: 32px; width: min(320px, 100%); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-primary); font: inherit; font-size: 13px; padding: 0 10px; }
.card-head a.sub { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
/* flex children default to min-width:auto and would grow to their widest nowrap cell (mobile overflow) */
.content > *, .cols > * { min-width: 0; }
.chart-svg.ranked { max-width: 760px; }
@media (max-width: 720px) {
  table.grid.cards td > * { min-width: 0; overflow-wrap: anywhere; }
  table.grid.cards td .author, table.grid.cards td.title-cell { white-space: normal; }
  table.grid.cards td.title-cell { max-width: none; }
  .card-head { flex-wrap: wrap; }
  .card-head .inline-search { margin-left: 0; width: 100%; }
}
.tag-stack { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 9px; font-size: 11px; line-height: 18px; background: var(--info-soft); color: var(--info-text); border: 1px solid var(--info-border); white-space: nowrap; }

/* ---------------------------------------------------------------- Requests */
.req-form { display: grid; gap: 16px; max-width: 760px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { font-weight: 600; color: var(--text-primary); }
.field textarea, .field input:not([type=radio]):not([type=checkbox]), .field select, .answer textarea, .comments + form textarea {
  width: 100%; font: inherit; color: var(--text-primary); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 9px 11px; }
.field textarea:focus, .field input:focus, .field select:focus, .answer textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.field-row .grow { flex: 1 1 260px; }
.hint { color: var(--text-secondary); font-size: 13px; margin: 0; }
.choice { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
.choice input { accent-color: var(--primary); width: 16px; height: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.actions.secondary { margin-top: 12px; }
form.inline { display: inline; }
.req-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.messages { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.msg { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-secondary); max-width: 92%; }
.msg.employee { justify-self: end; background: var(--primary-soft); border-color: var(--primary-border); }
.msg.original { justify-self: stretch; max-width: none; background: var(--surface); }
.msg.pending { opacity: .7; }
.msg .who { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.msg .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .q { margin: 8px 0 0; font-weight: 600; color: var(--text-primary); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.choices .chip { cursor: pointer; font: inherit; }
.typing { color: var(--text-secondary); font-style: italic; }
.typing::after { content: " ●●●"; letter-spacing: 2px; animation: req-pulse 1.2s ease-in-out infinite; }
@keyframes req-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .typing::after { animation: none; } }
.comments, .history, ul.plain { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.comment.internal { border-left: 3px solid var(--warning); padding-left: 10px; }
.comment .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.history li { font-size: 13px; }
.summary textarea[readonly] { background: var(--surface-secondary); }
.reviewer h3, .card-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); margin: 14px 0 6px; }
@media (max-width: 1100px) { .req-cols { grid-template-columns: minmax(0, 1fr); } .msg { max-width: 100%; } }
.alert.success { background: var(--success-soft); border-color: var(--success-border); color: var(--success); }
.badge.completed { background: var(--success-soft); color: var(--success); }
.badge.queued, .badge.stale, .badge.canceled { background: var(--surface-muted); color: var(--text-secondary); }
.field-row input:not([type=checkbox]):not([type=radio]), .field-row select { font: inherit; color: var(--text-primary); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.field-row .grow, .field-row input.grow { flex: 1 1 220px; }
ol.steps li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* ---------- pager ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.pager .pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager .btn { min-width: 36px; justify-content: center; }
.pager [aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pager .gap { color: var(--text-muted); padding: 0 2px; }

/* ---------- live output (running review) / run log ---------- */
.live-log .log-lines { list-style: none; margin: 0; padding: 10px 0; max-height: 460px; overflow-y: auto; background: var(--code-background);
  color: var(--code-text); font: 12.5px/1.55 var(--mono); border-top: 1px solid var(--border); }
.live-log .log-lines li { display: grid; grid-template-columns: 64px 16px minmax(0, 1fr); gap: 8px; padding: 1px 16px; }
.live-log .log-lines time { color: var(--text-muted); }
.live-log .log-icon { color: var(--text-muted); text-align: center; }
.live-log .log-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.live-log .log-stage .log-text { font-weight: 600; }
.live-log .log-ai .log-icon, .live-log .log-claude .log-icon, .live-log .log-stage .log-icon { color: var(--primary); }
.live-log .log-tool .log-text { color: var(--text-secondary); }
.live-log .log-error .log-text, .live-log .log-error .log-icon { color: var(--danger); }
.live-log .log-empty { color: var(--text-muted); padding: 8px 16px; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--success);
  vertical-align: middle; animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* ---------- system map ---------- */
.matrix td, .matrix thead th { text-align: center; vertical-align: top; }
.matrix tbody th { text-align: left; white-space: nowrap; }
.matrix td .hint { font-size: 11.5px; white-space: nowrap; }
/* ---------- review collaboration ---------- */
.finding.dim { opacity: .6; }
.triage { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.triage .state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.triage .actions, .msg .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.thread > summary { cursor: pointer; color: var(--text-secondary); font-size: 13px; }
details.edit { display: inline-block; }
details.edit[open] { display: block; width: 100%; }
.composer, details.edit form { display: grid; gap: 6px; margin-top: 8px; }
.composer textarea, details.edit textarea { font: inherit; color: var(--text-primary); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px; width: 100%; }
.msg.status { color: var(--text-muted); font-size: 12.5px; }
.mention { color: var(--primary); font-weight: 600; }
.badge.pending, .badge.queued { background: var(--warning-soft); color: var(--warning); }
.badge.declined { background: var(--danger-soft); color: var(--danger); }
