/* NullPoint Signal Deck — project-owned design system.
   Not a zinc/Twitter clone: forest-ink field, brass brand rail,
   corner-bracket panels, mesh atmosphere. No purple. No CDN fonts. */

:root {
  --ink: #0b100e;
  --field: #101612;
  --panel: #141c17;
  --panel-2: #1a241e;
  --rail: #24302a;
  --line: #2a3a32;
  --line-strong: #3d5246;
  --text: #e8f0ea;
  --muted: #8fa398;
  --faint: #5e7368;
  --brass: #c4a574;
  --brass-dim: #9a7d52;
  --signal: #2ec27e;
  --signal-dim: #1f9a62;
  --danger: #e85d5d;
  --warn: #e0a84a;
  --safe: #2ec27e;
  --radius: 3px;
  /* Distinctive system stack — no Inter/Geist/Roboto, no font CDN */
  --font: "Avenir Next", "Futura", "Trebuchet MS", "Segoe UI", sans-serif;
  --mono: "SF Mono", "Menlo", "Consolas", "Cascadia Mono", monospace;
  --frame: 1px solid var(--line);
}

/* ------------------------------------------------------------------ themes
   Default (no attribute) = Signal Deck: forest ink + brass + signal green.
   data-theme="standard"  = legacy NullPointVector console: light surface,
                            blue command accents, red/gold/green stat colors.
   data-theme="terminal"  = green-phosphor console (the "green terminal" look).
   data-theme="blackout"  = pure black, minimal chrome.
   Switcher lives in the sidebar foot; choice persists in localStorage. */
body[data-theme="standard"] {
  --ink: #eef2f7;
  --field: #f7f9fc;
  --panel: #ffffff;
  --panel-2: #f2f6fa;
  --rail: #e3eaf2;
  --line: #d5deea;
  --line-strong: #b3c3d6;
  --text: #16233a;
  --muted: #5d6b80;
  --faint: #8a97a8;
  --brass: #1668e3;
  --brass-dim: #0d4fb8;
  --signal: #1f9d55;
  --signal-dim: #157a41;
  --danger: #e02020;
  --warn: #f0a500;
  --safe: #1f9d55;
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(22,104,227,.08), transparent 55%),
    radial-gradient(700px 420px at 92% 8%, rgba(31,157,85,.06), transparent 50%);
  background-size: auto, auto;
}
body[data-theme="standard"] ::selection { background: rgba(22,104,227,.25); color: #16233a; }
/* Primary filled buttons stay white-on-signal; secondary must NOT inherit white
   (was invisible white-on-white on Standard panels until hover). */
body[data-theme="standard"] .btn { color: #ffffff; }
body[data-theme="standard"] .btn.secondary {
  color: #16233a;
  background: #ffffff;
  border-color: #b3c3d6;
}
body[data-theme="standard"] .btn.secondary:hover {
  color: #1668e3;
  border-color: #1668e3;
}

body[data-theme="terminal"] {
  --ink: #030804;
  --field: #041008;
  --panel: #05130a;
  --panel-2: #07190d;
  --rail: #0a2413;
  --line: #10361d;
  --line-strong: #1c5730;
  --text: #b8ffd1;
  --muted: #55d886;
  --faint: #2c7c4c;
  --brass: #35f57d;
  --brass-dim: #23af58;
  --signal: #35f57d;
  --signal-dim: #23af58;
  --danger: #ff5f56;
  --warn: #ffbd2e;
  --safe: #35f57d;
  --font: var(--mono);
  background-image:
    linear-gradient(rgba(53,245,125,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,245,125,.05) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
}
body[data-theme="terminal"] ::selection { background: rgba(53,245,125,.35); color: #030804; }

body[data-theme="blackout"] {
  --ink: #000000;
  --field: #050505;
  --panel: #0a0a0a;
  --panel-2: #101010;
  --rail: #161616;
  --line: #1f1f1f;
  --line-strong: #333333;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --faint: #5c5c5c;
  --brass: #d8d8d8;
  --brass-dim: #8f8f8f;
  --signal: #2ec27e;
  --signal-dim: #1f9a62;
  --danger: #e85d5d;
  --warn: #e0a84a;
  --safe: #2ec27e;
  background-image: none;
}
body[data-theme="blackout"] ::selection { background: rgba(255,255,255,.25); color: #000; }

.theme-switch { display: flex; gap: 4px; margin-bottom: 10px; }
.theme-opt {
  appearance: none; flex: 1; border: 1px solid var(--line); background: transparent;
  color: var(--faint); font-family: inherit; font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 0; cursor: pointer;
}
.theme-opt:hover { color: var(--muted); border-color: var(--line-strong); }
.theme-opt.active { color: var(--brass); border-color: var(--brass); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(46,194,126,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,194,126,.03) 1px, transparent 1px),
    radial-gradient(900px 480px at 12% -8%, rgba(196,165,116,.09), transparent 55%),
    radial-gradient(700px 420px at 92% 8%, rgba(46,194,126,.07), transparent 50%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Page text must stay selectable (Cmd/Ctrl+A/C). Do not set user-select:none on body. */
  -webkit-user-select: text;
  user-select: text;
}
.main, .inbox-row, .inbox-main, .hint, .msg-preview, .msg-body, .explain-panel {
  -webkit-user-select: text;
  user-select: text;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(196,165,116,.35); color: #0b100e; }

/* ----------------------------------------------------------------- shell */
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, var(--field) 0%, var(--ink) 100%);
  border-right: var(--frame);
  border-left: 4px solid var(--brass);
  padding: 20px 14px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 22px; }
.brand .mark {
  width: 36px; height: 36px; flex: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(145deg, var(--brass), var(--signal-dim));
  display: grid; place-items: center;
  color: #0b100e; font-weight: 800; font-size: 13px; letter-spacing: -.04em;
}
.brand .name {
  font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
}
.brand .sub {
  font-size: 10px; color: var(--brass); letter-spacing: .18em; text-transform: uppercase;
  margin-top: 2px;
}

.nav-label {
  font-size: 10px; color: var(--faint); letter-spacing: .16em;
  text-transform: uppercase; padding: 16px 8px 8px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 10px; color: var(--muted); font-weight: 500; font-size: 13.5px;
  border-left: 2px solid transparent; margin-left: 2px;
  transition: color .15s, border-color .15s, background .15s;
}
.nav-item:hover { color: var(--text); background: rgba(46,194,126,.04); }
.nav-item.active {
  color: var(--text); border-left-color: var(--signal);
  background: linear-gradient(90deg, rgba(46,194,126,.1), transparent);
}
.nav-item .dot {
  width: 6px; height: 6px; background: var(--line-strong);
  transform: rotate(45deg); flex: none;
}
.nav-item.active .dot { background: var(--signal); }
.sidebar .foot { margin-top: auto; padding: 12px 8px; font-size: 11px; color: var(--faint); }
.health-pill { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .06em; text-transform: uppercase; }
.health-pill .led {
  width: 7px; height: 7px; background: var(--signal);
  box-shadow: 0 0 0 3px rgba(46,194,126,.15);
}

/* ----------------------------------------------------------------- main */
.main {
  min-width: 0;
  width: 100%;
  max-width: 1180px;
  justify-self: center;
  padding: 28px 32px 72px;
  box-sizing: border-box;
}
.topbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 26px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 0;
  line-height: 1.1;
}
.topbar .desc { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 42ch; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.mode-switch {
  display: inline-flex; border: var(--frame); background: var(--panel);
  padding: 3px;
}
.mode-opt {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 8px 12px; cursor: pointer;
}
.mode-opt.active { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-strong); }

.grid { display: grid; grid-template-columns: 1.2fr .95fr; gap: 18px; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-left-width: 4px; }
  .grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .main { max-width: none; padding: 20px 16px 56px; }
}

/* Corner-bracket panel (unique framing — not soft SaaS cards) */
.card, .panel {
  position: relative;
  background: var(--panel);
  border: var(--frame);
  border-radius: var(--radius);
}
.card::before, .card::after, .panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--brass); border-style: solid; pointer-events: none;
}
.card::before, .panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.card::after, .panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.card .hd, .panel .hd {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card .hd h2, .panel .hd h2 {
  font-size: 12px; font-weight: 700; margin: 0;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brass);
}
.card .bd, .panel .bd { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.account-sessions-card { margin-bottom: 18px; }
.account-session-list { display: grid; gap: 8px; }
.account-session-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); background: var(--panel-2);
}
.account-session-row > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account-session-row strong { font-size: 13px; }
.account-session-row div > span { color: var(--muted); font: 11px var(--mono); }
.account-session-alert {
  padding: 12px 14px; border-left: 3px solid var(--danger);
  background: var(--panel-2); color: var(--danger); font-size: 13px;
}
@media (max-width: 620px) {
  .account-session-row { align-items: flex-start; flex-direction: column; }
}
.hint { font-size: 12px; color: var(--faint); margin-top: 4px; font-family: var(--mono); }

/* ----------------------------------------------------------------- form */
label.fld, .fld > label {
  display: block; font-size: 11px; color: var(--muted); margin: 0 0 7px;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.input, textarea, select {
  width: 100%; background: var(--ink); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px 13px; font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.input:focus, textarea:focus, select:focus {
  border-color: var(--signal); box-shadow: 0 0 0 2px rgba(46,194,126,.12);
}
.btn {
  appearance: none; cursor: pointer; border: 1px solid var(--signal-dim);
  background: var(--signal); color: #06140e;
  font-weight: 700; font-size: 13px; font-family: inherit;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 12px 18px; border-radius: var(--radius);
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.secondary {
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
.btn.secondary:hover { border-color: var(--brass); color: var(--brass); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ----------------------------------------------------------------- verdict */
.verdict { display: flex; flex-direction: column; gap: 14px; }
.verdict.empty { color: var(--faint); font-size: 13.5px; text-align: center; padding: 26px 8px; }
.verdict-head { display: flex; align-items: center; gap: 14px; }
.gauge {
  --p: 0; --tone: var(--safe);
  width: 72px; height: 72px; flex: none; position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: conic-gradient(var(--tone) calc(var(--p) * 1%), var(--rail) 0);
  display: grid; place-items: center;
}
.gauge::after {
  content: ""; position: absolute; inset: 8px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--panel);
}
.gauge span { position: relative; font-weight: 750; font-size: 16px; font-family: var(--mono); }
.tone-safe   { --tone: var(--safe); }
.tone-warn   { --tone: var(--warn); }
.tone-danger { --tone: var(--danger); }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid; border-radius: var(--radius);
}
.badge.tone-safe   { color: var(--safe);   border-color: rgba(46,194,126,.4);  background: rgba(46,194,126,.08); }
.badge.tone-warn   { color: var(--warn);   border-color: rgba(224,168,74,.4);  background: rgba(224,168,74,.08); }
.badge.tone-danger { color: var(--danger); border-color: rgba(232,93,93,.4);   background: rgba(232,93,93,.08); }
.verdict-meta { color: var(--muted); font-size: 13px; }
.verdict-meta b { color: var(--text); font-weight: 650; }

.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 110px; background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 12px;
}
.stat .k { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.stat .v { font-size: 16px; font-weight: 700; margin-top: 3px; font-family: var(--mono); }

.signals { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sig {
  display: flex; gap: 11px; align-items: flex-start; background: var(--ink);
  border: 1px solid var(--line); border-left: 3px solid var(--line-strong);
  padding: 11px 12px; font-size: 13.5px;
}
.sig-danger { border-left-color: var(--danger); }
.sig-warn { border-left-color: var(--warn); }
.sig-dot { width: 7px; height: 7px; margin-top: 5px; flex: none; background: var(--line-strong); transform: rotate(45deg); }
.sig-danger .sig-dot { background: var(--danger); }
.sig-warn .sig-dot { background: var(--warn); }
.sig-detail { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.model-says {
  margin-top: 12px; font-size: 12.5px; color: var(--faint);
  border-top: 1px dashed var(--line); padding-top: 10px; font-family: var(--mono);
}

.tech { margin-top: 12px; border: 1px solid var(--line); background: var(--ink); }
.tech > summary {
  cursor: pointer; padding: 11px 14px; font-size: 12px; font-weight: 600;
  color: var(--brass); list-style: none; user-select: none; letter-spacing: .06em; text-transform: uppercase;
}
.tech > summary::-webkit-details-marker { display: none; }
.tech > summary::before { content: "+ "; font-weight: 800; }
.tech[open] > summary::before { content: "− "; }
.tech-bd { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.tech-k { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; margin: 14px 0 7px; }
.tech-pipe { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.tech-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tech-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tech-tbl td:first-child { color: var(--muted); }
.tech-tbl td.kbd { text-align: right; }
.tech-meta { margin-top: 12px; font-size: 11.5px; color: var(--faint); font-family: var(--mono); }

/* ----------------------------------------------------------------- feed */
.feed { display: flex; flex-direction: column; }
.feed-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: none; }
.feed-item .sev { width: 8px; height: 8px; flex: none; transform: rotate(45deg); }
.sev.danger { background: var(--danger); }
.sev.warn { background: var(--warn); }
.feed-item .txt { flex: 1; min-width: 0; }
.feed-item .sn { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .mt { font-size: 11.5px; color: var(--faint); font-family: var(--mono); }
.feed-item .ch {
  font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid var(--line); padding: 3px 8px;
}
.feed-empty { color: var(--faint); font-size: 13px; text-align: center; padding: 22px 8px; }
.feed-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feed-filters { display: flex; gap: 6px; }
.feed-filter {
  font-size: 11px; padding: 5px 10px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; font-family: inherit;
  letter-spacing: .06em; text-transform: uppercase;
}
.feed-filter.active, .feed-filter:hover {
  border-color: var(--signal); color: var(--signal); background: rgba(46,194,126,.08);
}
.feed-item.hidden { display: none; }

.spin {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid var(--line-strong); border-top-color: var(--signal);
  border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -2px;
}
@keyframes sp { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.kbd { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.result-slot { margin-top: 16px; }
.panel-live[hidden], .panel-manual[hidden] { display: none !important; }

/* ----------------------------------------------------------------- sms */
.sms-preview {
  background: var(--ink); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 16px;
}
.sms-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
.sms-from { font-weight: 700; }
.sms-time { color: var(--faint); font-family: var(--mono); }
.sms-bubble {
  display: inline-block; max-width: 92%;
  background: rgba(46,194,126,.08); border: 1px solid rgba(46,194,126,.22);
  border-left: 3px solid var(--signal); padding: 11px 14px; font-size: 14px;
  line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}

/* ----------------------------------------------------------------- call screen */
.call-action {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px;
  padding: 12px 14px; border: 1px solid;
}
.call-action.tone-safe   { border-color: rgba(46,194,126,.35); background: rgba(46,194,126,.06); }
.call-action.tone-warn   { border-color: rgba(224,168,74,.35); background: rgba(224,168,74,.06); }
.call-action.tone-danger { border-color: rgba(232,93,93,.35);  background: rgba(232,93,93,.06); }
.call-action-label { font-size: 22px; font-weight: 800; letter-spacing: .08em; font-family: var(--mono); }
.call-action.tone-safe .call-action-label { color: var(--safe); }
.call-action.tone-warn .call-action-label { color: var(--warn); }
.call-action.tone-danger .call-action-label { color: var(--danger); }
.call-action-sub { font-size: 13px; color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check-row input { accent-color: var(--signal); }

/* ----------------------------------------------------------------- pricing */
.billing-toggle {
  display: flex; gap: 3px; background: var(--panel); border: var(--frame); padding: 3px;
}
.bill-opt {
  font-size: 12px; padding: 7px 14px; border: none; cursor: pointer; font-family: inherit;
  background: transparent; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.bill-opt.active { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-strong); }
.bill-badge { font-size: 10px; color: var(--brass); margin-left: 4px; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px;
}
.price-card {
  position: relative; background: var(--panel); border: var(--frame);
  padding: 24px 20px; display: flex; flex-direction: column; border-radius: var(--radius);
}
.price-card.featured {
  border-color: var(--signal-dim);
  background: linear-gradient(180deg, rgba(46,194,126,.08), var(--panel) 40%);
}
.price-popular {
  position: absolute; top: -11px; left: 16px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  background: var(--brass); color: #0b100e; padding: 4px 10px; white-space: nowrap;
}
.price-card h3 { font-size: 20px; margin: 0 0 6px; letter-spacing: -.02em; }
.price-desc { font-size: 13px; color: var(--muted); margin: 0 0 16px; min-height: 38px; }
.price-amt { margin-bottom: 18px; }
.price-val { font-size: 36px; font-weight: 800; letter-spacing: -.03em; font-family: var(--mono); }
.price-val::before { content: "$"; font-size: 18px; vertical-align: super; margin-right: 2px; color: var(--brass); }
.price-val.price-sales-only { font-size: 28px; letter-spacing: -.02em; }
.price-val.price-sales-only::before { content: none; }
.price-talk { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 10px; white-space: nowrap; }
.price-talk-arrow {
  /* Inline to the right of "Let's Talk", tip points down. */
  display: block; width: 0; height: 0; flex-shrink: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--brass);
}
.price-per { font-size: 13px; color: var(--faint); }
.price-feats {
  list-style: none; margin: 0 0 20px; padding: 0; flex: 1;
  display: flex; flex-direction: column; gap: 9px; font-size: 13.5px;
}
.price-feats li::before { content: "▸ "; color: var(--signal); font-weight: 700; }
.price-cta { width: 100%; margin-top: auto; }
.compare-card { margin-top: 28px; margin-bottom: 48px; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-tbl { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; }
.compare-tbl th, .compare-tbl td {
  padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.compare-tbl th {
  color: var(--brass); font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
}
.compare-tbl td:first-child { color: var(--muted); font-weight: 600; min-width: 150px; }
.compare-tbl tbody tr:hover td { background: rgba(46,194,126,.04); }

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .billing-toggle { align-self: stretch; justify-content: center; }
  .kpi-row, .dash-grid, .identity-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-line { grid-template-columns: 56px 32px 1fr; }
  .log-meta, .log-geo { display: none; }
}
@media (max-width: 560px) {
  .price-val { font-size: 30px; }
  .topbar h1 { font-size: 22px; }
  .theme-switch { flex-wrap: wrap; }
  .theme-opt { min-width: calc(50% - 2px); }
  .kpi-row { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- toasts */
.toast-root { position: fixed; bottom: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 220px; max-width: 360px; padding: 12px 16px;
  border: 1px solid var(--line); background: var(--panel); font-size: 13px;
  border-left: 3px solid var(--brass); animation: toast-in .25s ease;
}
.toast-danger { border-left-color: var(--danger); }
.toast-warn { border-left-color: var(--warn); }
.toast-safe { border-left-color: var(--safe); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.connect-note {
  margin-top: 12px; padding: 12px; border: 1px dashed var(--line-strong);
  font-size: 12.5px; color: var(--muted); background: var(--ink);
}
.connect-note strong { color: var(--brass); font-weight: 600; }

/* ----------------------------------------------------------------- auth */
.auth-body {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.auth-shell { width: min(420px, 100%); display: flex; flex-direction: column; gap: 20px; }
.auth-brand { text-align: center; }
.auth-brand .mark {
  width: 48px; height: 48px; margin: 0 auto 12px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(145deg, var(--brass), var(--signal-dim));
  display: grid; place-items: center; color: #0b100e; font-weight: 800;
}
.auth-brand h1 { margin: 0; letter-spacing: .08em; text-transform: uppercase; font-size: 22px; }
.auth-brand p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.auth-card { width: 100%; }
.auth-card .btn {
  width: 100%; display: block; text-align: center; text-decoration: none;
  box-sizing: border-box;
}
.auth-error {
  border: 1px solid rgba(232,93,93,.4); background: rgba(232,93,93,.08);
  color: var(--danger); padding: 10px 12px; font-size: 13px;
}
.auth-signup {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line);
}
.auth-signup-label {
  color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.auth-signup-btn {
  flex: 1; max-width: 180px; display: inline-block; text-align: center;
}
.auth-back { font-size: 12px; color: var(--brass); }

/* ----------------------------------------------------------------- dashboard */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 14px 16px; }
.kpi-k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.kpi-v { font-size: 28px; font-weight: 800; font-family: var(--mono); margin-top: 6px; letter-spacing: -.02em; }
.kpi-v.tone-danger { color: var(--danger); }
.kpi-v.tone-warn { color: var(--warn); }
.kpi-v.tone-safe { color: var(--safe); }
.dash-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 16px; }
.terminal-log {
  font-family: var(--mono); font-size: 12px; max-height: 360px; overflow: auto;
  background: var(--ink); border: 1px solid var(--line); padding: 8px;
}
.log-line {
  display: grid; grid-template-columns: 64px 36px 1fr auto auto; gap: 10px;
  padding: 6px 8px; border-bottom: 1px solid rgba(42,58,50,.6); align-items: center;
}
.log-line.threat { background: rgba(232,93,93,.06); }
.log-ts { color: var(--faint); }
.log-mark { color: var(--safe); font-weight: 700; }
.log-line.threat .log-mark { color: var(--danger); }
.log-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-meta, .log-geo { color: var(--muted); }
.geo-field {
  position: relative; height: 280px; background: var(--ink); border: 1px solid var(--line);
  overflow: hidden;
}
.geo-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,194,126,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,194,126,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .7;
}
.geo-ping {
  position: absolute; width: 12px; height: 12px; transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--brass); background: rgba(196,165,116,.35);
  box-shadow: 0 0 0 6px rgba(196,165,116,.08);
}
.geo-ping.danger { background: rgba(232,93,93,.55); border-color: var(--danger); }
.geo-ping.warn { background: rgba(224,168,74,.5); border-color: var(--warn); }
.geo-legend {
  position: absolute; left: 10px; bottom: 10px; display: flex; gap: 12px;
  font-size: 11px; color: var(--muted); align-items: center;
}
.geo-legend .sev { display: inline-block; width: 8px; height: 8px; margin-right: 4px; transform: rotate(45deg); vertical-align: middle; }

/* ----------------------------------------------------------------- inbox */
.inbox-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 14px;
}
.inbox-search { flex: 1; min-width: 180px; }
.inbox-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.inbox-tab {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-family: inherit; font-size: 12px; padding: 7px 12px; cursor: pointer; letter-spacing: .04em;
  text-transform: uppercase; font-weight: 600;
}
.inbox-tab.active { border-color: var(--signal); color: var(--text); background: rgba(46,194,126,.08); }
.inbox-list { display: flex; flex-direction: column; }
.inbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 0;
  align-items: start;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.inbox-row:last-child { border-bottom: none; }
.inbox-avatar {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  background: var(--rail); color: var(--brass); font-weight: 700; font-size: 13px;
  border: 1px solid var(--line-strong);
  grid-column: 1;
  grid-row: 1;
}
.inbox-avatar.threat { color: var(--danger); border-color: rgba(232,93,93,.45); }
.inbox-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
}
.inbox-title { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-sub { font-size: 12px; color: var(--faint); font-family: var(--mono); margin-top: 2px; }
/* Full-bleed under avatar+main — same width as each other */
.tag-band,
.inbox-extra,
.inbox-foot {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}
.inbox-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: 0; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.inbox-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-report {
  appearance: none; background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 12px; color: var(--faint);
  padding: 6px 2px; margin-left: auto;
}
.btn-report:hover { color: var(--muted); }
.btn-report:focus-visible { outline: 1px solid var(--brass); outline-offset: 2px; }
.tag-band {
  margin: 0;
  padding: 12px 0 4px;
  border-top: 1px solid var(--line);
}
/* Pills: shrink-to-fit, wrap left-to-right. Width is capped so a long label can
   never render as a full-row bar; the full text stays in the title tooltip. */
.reason-tags,
.tag-band .reason-tags,
.reason-tags.tag-cats {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
}
.reason-tag,
.tag-band .reason-tag,
.reason-tags .reason-tag,
.reason-tags span.reason-tag {
  flex: 0 0 auto !important;
  float: none !important;
  width: max-content !important;
  max-width: min(100%, 28ch) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 10px !important;
  line-height: 1.6;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  margin: 0 !important;
  border: 1px solid rgba(201,162,39,.35);
  color: var(--brass);
  background: rgba(201,162,39,.08);
  text-align: left !important;
  cursor: default;
}
.inbox-extra { padding-top: 4px; }
.act-allow, .act-quarantine, .act-archive,
.act-block, .act-unsure, .act-safe {
  appearance: none; border: 1px solid var(--line); background: transparent;
  font-family: inherit; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 12px; cursor: pointer; color: var(--muted); font-weight: 700;
}
.act-allow { border-color: rgba(46,194,126,.65); color: var(--signal); }
.act-quarantine { border-color: rgba(232,93,93,.65); color: var(--danger); }
.act-block { border-color: rgba(232,93,93,.65); color: var(--danger); }
.act-block:hover { background: rgba(232,93,93,.12); }
.act-unsure { border-color: rgba(224,168,74,.65); color: var(--warn); }
.act-unsure:hover { background: rgba(224,168,74,.12); }
.act-safe { border-color: rgba(46,194,126,.65); color: var(--signal); }
.act-safe:hover { background: rgba(46,194,126,.12); }
.act-block[disabled], .act-unsure[disabled], .act-safe[disabled] { opacity: .4; cursor: progress; }

/* Brand OAuth (login / checkout / connectors) — always readable */
.oauth-stack { display: grid; gap: 10px; margin: 14px 0; }
.oauth-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  font-family: inherit; text-decoration: none; cursor: pointer; box-sizing: border-box;
  border: 1px solid transparent; letter-spacing: 0; text-transform: none;
}
.oauth-btn svg { flex: none; }
.oauth-google { background: #ffffff; color: #1a1a1a !important; border-color: #e5e5e5; }
.oauth-google:hover { filter: brightness(0.97); color: #1a1a1a !important; }
.oauth-microsoft { background: #2f2f2f; color: #f5f5f5 !important; border-color: #5a5a5a; }
.oauth-microsoft:hover { filter: brightness(1.08); color: #fff !important; }
.oauth-x { background: #000000; color: #f5f5f5 !important; border-color: #333; }
.oauth-x:hover { color: #fff !important; filter: brightness(1.1); }
.oauth-meta {
  background: linear-gradient(135deg, #2e4fae 0%, #7b2fbf 100%);
  color: #ffffff !important; border-color: #3156d3;
}
.oauth-meta:hover { color: #fff !important; filter: brightness(1.05); }
.oauth-or {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  color: var(--faint); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.oauth-or::before, .oauth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
body[data-theme="standard"] .oauth-microsoft {
  background: #f3f3f3; color: #1a1a1a !important; border-color: #c8c8c8;
}
body[data-theme="standard"] .oauth-btn.oauth-google,
body[data-theme="standard"] a.oauth-google { color: #1a1a1a !important; }
.row-graded { opacity: .45; transition: opacity .35s ease; }
.row-bubble-out {
  transform: translateX(28px) scale(0.96);
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    opacity .28s ease,
    max-height .28s ease,
    margin .28s ease,
    padding .28s ease;
  will-change: transform, opacity;
}
.btn.danger-ghost {
  background: transparent; border-color: rgba(232,93,93,.45); color: var(--danger);
}

/* quarantine / call log */
a.kpi-link { text-decoration: none; color: inherit; display: block; }
a.kpi-link:hover { border-color: var(--brass); }
.call-transcript {
  margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--line-strong);
  background: var(--ink); font-family: var(--mono); font-size: 12px;
  color: var(--muted); white-space: pre-wrap; max-height: 180px; overflow-y: auto;
}
.call-transcript.hidden { display: none; }
.hidden { display: none; }
.acct { margin-bottom: 10px; }
.acct-name { font-weight: 700; font-size: 13px; color: var(--text); }
.acct-meta { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.acct-meta a { color: var(--brass); text-decoration: none; }
.acct-meta a:hover { text-decoration: underline; }
.inline-logout { display: inline; }
.logout-link { padding: 0; border: 0; background: none; color: var(--brass); cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.logout-link:hover { text-decoration: underline; }
.tz-picker {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 8px;
  color: var(--faint); font-size: 11px;
}
.tz-picker select {
  flex: 1; min-width: 0; max-width: 100%;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); padding: 4px 6px; font-size: 11px;
}

.tag-cat { border-color: var(--brass); color: var(--brass); }
.steps-list {
  margin: 0 0 14px; padding-left: 1.2rem; color: var(--muted); font-size: 13px; line-height: 1.55;
}
.steps-list li { margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.field input, .field select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  padding: 8px 10px; font-size: 13px;
}

.np-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.72);
}
.np-modal.hidden { display: none; }
.np-modal-panel {
  width: min(560px, 92vw); max-height: 80vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--brass);
  padding: 18px 20px; box-shadow: 0 0 0 1px var(--line);
}
.np-modal-panel h3 {
  margin: 0 0 8px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--brass);
}
.cascade-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 40vh; overflow: auto; }
.cascade-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--text); padding: 6px 0; border-bottom: 1px solid var(--line);
}
.cascade-actions-bar { display: flex; gap: 8px; margin-top: 8px; }
.np-modal-foot {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px;
}

/* Report modal styles live in /static/npr-report.css (npr-* namespace). */

/* ----------------------------------------------------------------- identity */
.identity-page { max-width: 1440px; }
.identity-page [hidden] { display: none !important; }
.identity-page p { margin: 0; line-height: 1.65; }
.identity-page a { overflow-wrap: anywhere; }
.identity-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 18px; align-items: stretch; }
.identity-grid > .card { min-width: 0; }
.identity-scope { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 17px 0 21px; margin-bottom: 18px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.identity-eyebrow { color: var(--brass); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; line-height: 1.9; }
.identity-scope p { max-width: 80ch; font-size: 13px; color: var(--muted); }
.identity-notice, .identity-error { padding: 13px 15px; margin-bottom: 18px; background: var(--panel-2); border-left: 3px solid var(--brass); font-size: 13px; line-height: 1.6; }
.identity-error { border-color: var(--danger); color: var(--text); }
.identity-notice:focus, .identity-error:focus { outline: 2px solid var(--brass); outline-offset: 3px; }
.identity-page .card .hd { min-height: 57px; flex-wrap: wrap; }
.identity-page .hint, .identity-page .identity-meta { color: var(--muted); }
.identity-page .hint a { color: var(--brass); text-decoration: underline; text-underline-offset: .16em; }
.identity-page .stack { gap: 17px; }
.identity-page .badge { white-space: normal; line-height: 1.4; }
.identity-copy { color: var(--muted); font-size: 13px; }
.identity-meta { display: block; color: var(--muted); font: 11px/1.65 var(--mono); overflow-wrap: anywhere; }
.identity-email { display: block; font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; margin-bottom: 8px; }
.identity-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.identity-page .btn { min-height: 42px; white-space: normal; line-height: 1.4; }
.identity-page .btn:disabled { opacity: .55; cursor: not-allowed; }
.identity-page .btn:focus-visible, .identity-view:focus-visible, .identity-controls summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.identity-source-list { display: grid; gap: 13px; }
.identity-source { display: grid; gap: 3px; padding-top: 11px; border-top: 1px solid var(--line); }
.identity-source strong { font-size: 13px; }
.identity-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.identity-fieldset legend { font: 11px var(--mono); color: var(--brass); margin-bottom: 12px; }
.identity-provider-options { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 10px; }
.identity-page input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 17px; }
.identity-page .check-row { align-items: flex-start; line-height: 1.6; }
.identity-page .check-row input { margin-top: 3px; }
.identity-page .check-row:has(input:disabled) { cursor: default; }
.identity-disclosure { padding: 14px 15px; border: 1px solid var(--line-strong); background: var(--ink); font-size: 13px; color: var(--text); }
.identity-disclosure .identity-meta { padding-top: 10px; font-size: 10px; }
.identity-controls { padding-top: 14px; border-top: 1px solid var(--line); }
.identity-controls summary { cursor: pointer; color: var(--brass); font-size: 12px; padding: 4px 0; }
.identity-controls p { color: var(--muted); font-size: 12px; margin: 12px 0; }
.identity-delete-confirm { padding: 12px; margin-top: 14px; border: 1px solid var(--danger); }
.identity-delete-confirm p { margin-top: 0; }
.identity-audit-summary { font-size: 14px; line-height: 1.75; color: var(--text); }
.identity-job-list { display: grid; }
.identity-job { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.identity-job strong { color: var(--brass); font-size: 13px; }
.identity-evidence { margin-top: 18px; }
.identity-evidence .hd > .btn { font-size: 10px; min-height: 34px; padding: 7px 12px; }
.identity-view-switch { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.identity-view { appearance: none; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 10px 13px; font: 600 12px var(--font); cursor: pointer; text-align: left; }
.identity-view:hover { color: var(--text); border-color: var(--line); }
.identity-view.active { border-color: var(--brass-dim); color: var(--brass); background: var(--panel-2); }
.identity-records { display: grid; gap: 12px; }
.identity-empty { padding: 22px 16px; border: 1px dashed var(--line-strong); background: var(--ink); color: var(--muted); font-size: 13px; }
.identity-record { padding: 17px 18px; background: var(--ink); border: 1px solid var(--line); display: grid; gap: 9px; }
.identity-record-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.identity-record h3 { margin: 0; font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.identity-remediation { margin: 3px 0 0; padding-left: 19px; font-size: 13px; color: var(--text); line-height: 1.8; }
.identity-relationship { border-left: 2px solid var(--brass-dim); background: var(--ink); padding: 14px 16px; display: grid; gap: 7px; }
.identity-relationship strong { font-size: 13px; overflow-wrap: anywhere; }
.identity-more { margin-top: 14px; }
.identity-boundary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 23px 0 8px; }
.identity-boundary strong { color: var(--text); font-size: 13px; }
.identity-boundary p { color: var(--muted); font-size: 12px; margin-top: 5px; max-width: 76ch; }
.identity-steps { display: grid; gap: 23px; padding-left: 22px; margin: 0 0 22px; color: var(--brass); }
.identity-steps strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 5px; }
.identity-steps span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.identity-disabled h2 { font-size: 23px; font-weight: 600; line-height: 1.4; margin: 0; }
@media (max-width: 980px) {
  .identity-grid { grid-template-columns: minmax(0, 1fr); }
  .identity-scope { grid-template-columns: minmax(0, 1fr); gap: 7px; }
}
@media (max-width: 480px) {
  .identity-page .topbar h1 { font-size: 28px; }
  .identity-page .card .hd { align-items: flex-start; }
  .identity-page .card .bd { padding: 15px; }
  .identity-actions { align-items: stretch; }
  .identity-actions .btn { flex: 1 1 auto; }
  .identity-view { padding: 10px 8px; font-size: 11px; }
  .identity-record { padding: 14px; }
}

/* ----------------------------------------------------------------- checkout / bench / reason */
.checkout-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 16px;
}
@media (max-width: 800px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.checkout-form input {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; font: inherit; border-radius: var(--radius);
}
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 8px; }
.order-total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.success-panel { font-size: 15px; line-height: 1.5; }

.explain-panel { margin-top: 8px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.explain-panel summary { cursor: pointer; color: var(--text); font-weight: 600; }
.explain-panel p,
.explain-panel li,
.evidence-list code { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.msg-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.msg-link:hover { color: var(--brass, #c4a35a); }
/* Long tracking URLs have no spaces — must break inside the card, not blow the border */
.hint,
.msg-preview,
.why-line {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.msg-preview {
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.msg-body {
  white-space: pre-wrap; word-break: break-word;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(196,163,90,0.2);
  padding: 14px 16px; border-radius: 4px; font-size: 13px; line-height: 1.45;
  max-height: 60vh; overflow: auto; margin: 12px 0;
}

.bench-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bench-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--line); background: var(--panel);
}
.bench-pill.tone-phish { border-color: rgba(232,93,93,.4); color: var(--danger); }
.bench-pill.tone-smish { border-color: rgba(224,168,74,.4); color: var(--warn); }
.bench-pill.tone-vish { border-color: rgba(46,194,126,.4); color: var(--safe); }
.bench-snapshot {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 900px) { .bench-snapshot { grid-template-columns: 1fr; } }
.bench-col h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bench-score { font-size: 36px; font-weight: 800; font-family: var(--mono); margin-bottom: 12px; }
.bench-score .unit { font-size: 14px; color: var(--muted); margin-left: 4px; }
.bench-bar-row { display: grid; grid-template-columns: 72px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 6px; }
.bench-bar { height: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.bench-bar i { display: block; height: 100%; background: var(--signal); }
.bench-bar.danger i { background: var(--danger); }
.assist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 800px) { .assist-grid { grid-template-columns: 1fr; } }
.assist-card { border: var(--frame); padding: 14px; background: var(--panel-2); }
.assist-name { font-weight: 700; margin-bottom: 8px; }
a.price-cta { text-align: center; text-decoration: none; display: inline-block; box-sizing: border-box; }

.evidence-list { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
.evidence-list code { color: var(--brass); font-size: 11px; }
.bench-chart-wrap { overflow-x: auto; }
.bench-svg { width: 100%; max-width: 720px; height: auto; display: block; }
.svg-grid { stroke: var(--line); stroke-width: 1; }
.svg-label { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.bar-acc { fill: var(--signal); }
.bar-prec { fill: var(--brass); }
.bar-rec { fill: #6bb3a0; }
.bar-fpr { fill: var(--danger); }
.bench-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.bench-legend .lg { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: middle; }
.bench-legend .lg.acc { background: var(--signal); }
.bench-legend .lg.prec { background: var(--brass); }
.bench-legend .lg.rec { background: #6bb3a0; }
.bench-legend .lg.fpr { background: var(--danger); }
.ops-bars { max-width: 640px; }

/* ------------------------------------------------------- model control */
.model-control-state {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: -8px 0 18px; color: var(--muted); font-size: 13px;
}
.model-summary-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 18px;
}
.model-summary { padding: 16px; display: flex; flex-direction: column; gap: 5px; }
.model-summary strong { font-family: var(--mono); font-size: 24px; }
.model-pipeline { margin-bottom: 22px; scroll-margin-top: 18px; }
.model-pipeline-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.model-pipeline-heading h2 { margin: 0 0 6px; font-size: 18px; }
.model-pipeline-heading p { margin: 0; max-width: 82ch; }
.model-pipeline-heading > a { flex: 0 0 auto; }
.model-pipeline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.model-pipeline-grid > .card { margin-top: 0; min-width: 0; }
.model-pipeline-card .hd { flex-wrap: wrap; gap: 8px; }
.model-pipeline-card h3 { margin: 0; font-size: 15px; }
.model-pipeline-card .bd > p { margin: 0; }
.model-pipeline-card details summary { cursor: pointer; min-height: 44px; box-sizing: border-box; padding: 12px 0; line-height: 20px; color: var(--brass); }
.model-pipeline .quiet-link { display: inline-flex; align-items: center; min-height: 44px; }
.model-pipeline-facts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0; font-size: 12px; }
.model-pipeline-facts dt { color: var(--muted); }
.model-pipeline-facts dd { margin: 0; text-align: right; font-family: var(--mono); overflow-wrap: anywhere; }
.model-pipeline-receipts { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.model-pipeline-receipts li { min-width: 0; overflow-wrap: anywhere; }
.model-pipeline-receipts p { margin: 4px 0 0; }
.model-pipeline-receipts dl { margin-top: 8px; }
.model-pipeline-note { margin: 10px 0 0; }
@media (max-width: 1000px) {
  .model-pipeline-grid { grid-template-columns: 1fr; }
  .model-pipeline-heading { align-items: flex-start; }
}
@media (max-width: 480px) {
  .model-pipeline-heading { flex-direction: column; gap: 8px; }
}
.tone-danger-text { color: var(--danger); }
.tone-safe-text { color: var(--safe); }
.model-workspace-nav {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px;
  padding: 8px; border: 1px solid var(--line); background: var(--panel-2);
}
.model-workspace-nav a {
  color: var(--muted); text-decoration: none; padding: 7px 10px;
  border: 1px solid transparent; font: 11px var(--mono); letter-spacing: .05em;
  text-transform: uppercase;
}
.model-workspace-nav a:hover, .model-workspace-nav a:focus-visible {
  color: var(--text); border-color: var(--line-strong); outline: none;
}
.model-channel-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px;
}
.model-channel-tab {
  appearance: none; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font: inherit; font-size: 12px; font-weight: 700;
  padding: 9px 12px; cursor: pointer; text-transform: uppercase;
  letter-spacing: .06em;
}
.model-channel-tab:hover, .model-channel-tab.active {
  color: var(--text); border-color: var(--line-strong); background: var(--panel-2);
}
.model-channel-tab:focus-visible, .model-node:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}
.model-tab-state { display: block; margin-top: 2px; font-size: 9px; }
.model-gate-reason { margin: 0 0 14px; color: var(--danger); font-weight: 600; }
.model-lineage {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr) auto minmax(112px, 1fr) auto minmax(112px, 1fr) auto minmax(112px, 1fr) auto minmax(112px, 1fr);
  align-items: stretch; gap: 6px; overflow-x: auto; padding: 3px 2px 10px;
}
.model-node {
  appearance: none; min-width: 112px; min-height: 112px; padding: 12px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  font: inherit; text-align: left; cursor: pointer; display: flex;
  flex-direction: column; gap: 7px;
}
.model-node:hover, .model-node[aria-expanded="true"] { border-color: var(--brass); }
.model-node.node-ok { border-top: 3px solid var(--safe); }
.model-node.node-blocked { border-top: 3px solid var(--danger); }
.model-node.node-neutral { border-top: 3px solid var(--warn); }
.model-node-step { color: var(--faint); font: 10px var(--mono); letter-spacing: .12em; }
.model-node strong { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.model-node > span:last-child { color: var(--muted); font-size: 11px; }
.model-edge { align-self: center; color: var(--faint); font-family: var(--mono); }
.model-node-details {
  min-height: 88px; margin-top: 10px; padding: 13px 15px;
  border-left: 3px solid var(--brass); background: var(--panel-2);
  overflow-wrap: anywhere;
}
.model-node-details > div > p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.model-node-details code { color: var(--brass); word-break: break-all; }
.model-anchor { position: relative; top: -16px; }
.model-metrics-card { margin-top: 14px; }
.model-metric-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.model-metric-grid > div {
  display: flex; flex-direction: column; gap: 5px; padding: 13px;
  background: var(--panel-2);
}
.model-metric-grid span { color: var(--muted); font-size: 11px; }
.model-metric-grid strong { font: 22px var(--mono); }
.model-metrics-detail {
  display: grid; grid-template-columns: minmax(260px, .75fr) minmax(320px, 1.25fr);
  gap: 18px; margin-top: 18px;
}
.model-metrics-detail h3 {
  margin: 0 0 9px; color: var(--muted); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
}
.model-confusion { width: 100%; border-collapse: collapse; font-size: 12px; }
.model-confusion th, .model-confusion td { border: 1px solid var(--line); padding: 9px; text-align: center; }
.model-confusion th { color: var(--muted); font-weight: 600; background: var(--panel-2); }
.model-confusion td strong { display: block; font: 18px var(--mono); }
.model-confusion td span { color: var(--faint); font: 10px var(--mono); }
.model-evidence-facts dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.model-evidence-facts dl > div { background: var(--panel-2); padding: 10px 12px; }
.model-evidence-facts dt { color: var(--muted); font-size: 11px; }
.model-evidence-facts dd { margin: 4px 0 0; font: 12px var(--mono); }
.model-metrics-disclaimer { margin: 15px 0 0; }
.model-work-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.model-gap-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.model-gap-list li + li { margin-top: 8px; }
.model-tuning-card { margin-top: 18px; scroll-margin-top: 12px; }
.model-tuning-form {
  display: grid; grid-template-columns: minmax(150px, .6fr) minmax(150px, .6fr) minmax(260px, 1.4fr);
  gap: 12px; align-items: end;
}
.model-tuning-form .field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.model-tuning-form input, .model-tuning-form select, .model-tuning-form textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); padding: 10px 11px; font: inherit; border-radius: var(--radius);
}
.model-tuning-form input:focus, .model-tuning-form select:focus, .model-tuning-form textarea:focus {
  outline: 2px solid var(--brass); outline-offset: 1px;
}
.model-tuning-contract {
  min-height: 39px; border: 1px solid var(--line); padding: 9px 11px;
  display: flex; flex-direction: column; gap: 3px; background: var(--panel-2);
}
.model-tuning-contract span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.model-tuning-contract strong { font: 11px var(--mono); }
.model-tuning-dataset { grid-column: 1 / -1; }
.model-tuning-dataset textarea { min-height: 154px; resize: vertical; font-family: var(--mono); font-size: 12px; }
.model-form-actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.model-form-actions .hint { flex: 1; min-width: 220px; }
.model-tuning-result { margin-top: 16px; }
.model-tuning-output { border: 1px solid var(--line); background: var(--panel-2); padding: 15px; }
.model-tuning-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.model-tuning-head > div { display: flex; align-items: center; gap: 9px; }
.model-tuning-compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  align-items: stretch; margin: 14px 0;
}
.model-tuning-metrics { border: 1px solid var(--line); padding: 13px; background: var(--panel); }
.model-tuning-metrics h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.model-tuning-metrics dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 0; font-size: 12px; }
.model-tuning-metrics dt { color: var(--muted); }
.model-tuning-metrics dd { margin: 0; font-family: var(--mono); }
.model-tuning-arrow { align-self: center; color: var(--faint); font: 18px var(--mono); }
.model-tuning-deltas { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.model-tuning-deltas span { border: 1px solid var(--line); padding: 6px 8px; font: 11px var(--mono); }
.model-receipt { margin-top: 14px; }
.model-receipt summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.model-receipt-actions { display: flex; justify-content: flex-end; margin: 8px 0 5px; }
.model-receipt pre {
  max-height: 300px; overflow: auto; margin: 0; padding: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.55 var(--mono);
}
.model-promotion-block {
  margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--danger);
  background: var(--panel);
}
.model-promotion-block ul { margin: 7px 0 0; padding-left: 19px; color: var(--muted); font-size: 12px; }
.model-promotion-block li + li { margin-top: 5px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.model-trace-card { margin-top: 18px; }
.model-trace-form {
  display: grid; grid-template-columns: minmax(150px, .6fr) minmax(220px, 1fr) auto;
  gap: 12px; align-items: end;
}
.model-trace-form .field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.model-trace-form input, .model-trace-form select, .model-trace-form textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); padding: 10px 11px; font: inherit; border-radius: var(--radius);
}
.model-trace-form input:focus, .model-trace-form select:focus, .model-trace-form textarea:focus {
  outline: 2px solid var(--brass); outline-offset: 1px;
}
.model-trace-content { grid-column: 1 / -1; }
.model-trace-content textarea { min-height: 116px; resize: vertical; }
.model-trace-result { margin-top: 16px; }
.model-trace-output { border: 1px solid var(--line); background: var(--panel-2); padding: 15px; }
.model-trace-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.model-trace-head > div { display: flex; align-items: center; gap: 9px; }
.model-trace-head code { color: var(--faint); }
.model-trace-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: 14px 0; background: var(--line);
}
.model-trace-grid > div { background: var(--panel); padding: 11px; display: flex; flex-direction: column; gap: 4px; }
.model-trace-grid span { color: var(--muted); font-size: 11px; }
.model-trace-grid strong { font-family: var(--mono); }
.model-trace-path { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font: 11px var(--mono); }
.model-trace-path span { border: 1px solid var(--line); padding: 5px 7px; }
.model-trace-path b { color: var(--faint); align-self: center; }
.model-trace-reasons { margin-top: 14px; }
.model-trace-reasons ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
@media (max-width: 1200px) and (min-width: 901px) {
  .model-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .model-summary-grid, .model-work-grid, .model-trace-grid, .model-metric-grid,
  .model-metrics-detail, .model-tuning-form, .model-tuning-compare { grid-template-columns: 1fr; }
  .model-trace-form { grid-template-columns: 1fr; }
  .model-trace-content, .model-tuning-dataset, .model-form-actions { grid-column: auto; }
  .model-lineage { grid-template-columns: 1fr; overflow: visible; }
  .model-node { min-width: 0; min-height: 0; }
  .model-edge { transform: rotate(90deg); justify-self: center; }
  .model-tuning-arrow { transform: rotate(90deg); justify-self: center; }
}

/* Release workspace: Signal Deck across desktop and handheld screens. */
:root {
  --brass: #eac28b;
  --brass-dim: #b89868;
  --signal: #79e3ab;
  --signal-dim: #3b9e6e;
  --safe: #79e3ab;
  --danger: #f49887;
  --muted: #a2b4a9;
  --faint: #81978a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 8px;
}
body { background-image: none; }
[hidden] { display: none !important; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 300; top: 8px; left: 8px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--brass); border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.mobile-header, .mobile-dock, .nav-close-row, .nav-scrim { display: none; }
.sidebar { background: var(--field); border-left: 0; padding: 22px 16px; scrollbar-width: thin; }
.brand { padding: 4px 10px 18px; gap: 11px; }
.brand .name { font-size: 14px; letter-spacing: .095em; }
.brand .sub { font: 9px var(--mono); letter-spacing: .16em; margin-top: 4px; }
.brand .mark { width: 34px; height: 38px; font-size: 17px; }
.workspace-links { display: block; }
.nav-label { color: var(--faint); font-size: 9px; padding: 18px 12px 7px; letter-spacing: .15em; }
.nav-item { min-height: 44px; padding: 10px 12px; font-size: 13px; margin-left: 0; border-radius: 5px; }
.nav-item.active { color: var(--brass); border-left-color: var(--brass); background: var(--panel-2); }
.nav-item.active .dot { background: var(--brass); }
.sidebar .foot { padding: 20px 8px 0; margin-top: 22px; border-top: 1px solid var(--line); }
.theme-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.theme-opt { min-width: 0; min-height: 44px; border-radius: 5px; color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.acct-name { overflow-wrap: anywhere; }
.logout-link { min-height: 44px; display: inline-flex; align-items: center; }
.tz-picker { min-width: 0; flex-wrap: wrap; }
.tz-picker select { min-width: 0; min-height: 44px; }
.health-pill { font: 8px/1.7 var(--mono); letter-spacing: .02em; margin-top: 14px; }
.main { padding: 38px 38px 60px; max-width: 1260px; outline: none; }
.topbar { align-items: flex-start; padding-bottom: 23px; margin-bottom: 26px; }
.topbar h1 { font-size: clamp(29px,3vw,38px); font-weight: 650; letter-spacing: -.045em; }
.topbar .desc { max-width: 680px; line-height: 1.75; margin-top: 10px; font-size: 14px; }
.eyebrow { margin: 0 0 11px; color: var(--faint); font: 9px/1.6 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.topbar-actions { justify-content: flex-end; padding-top: 5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; background: var(--brass); border-color: var(--brass); color: var(--ink); border-radius: 6px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.btn.secondary { background: var(--panel); color: var(--text); border-color: var(--line-strong); }
.btn[aria-disabled="true"] { cursor: default; opacity: .6; }
body[data-theme="standard"] .btn { color: #fff; }
body[data-theme="standard"] .btn.secondary { color: var(--text); }
.quiet-link { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 10px; color: var(--brass); font-size: 12px; line-height: 1.6; font-weight: 550; }
.quiet-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card::before,.card::after,.panel::before,.panel::after { display: none; }
.card .hd,.panel .hd { padding: 16px 20px; }
.card .hd h2,.panel .hd h2 { color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.02em; text-transform: none; }
.card .bd,.panel .bd { padding: 20px; }
.hint { font-family: var(--font); font-size: 13px; color: var(--muted); line-height: 1.75; }
.kbd { color: var(--muted); }
.input,select,input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
button:not(.npr-chip):not(.npr-yn-btn) { touch-action: manipulation; }
.bill-opt,.mode-opt,.inbox-tab,.feed-filter,.act-safe,.act-block,.act-unsure,.btn-report,.model-channel-tab { min-height: 44px; }
.snapshot-alert { margin: -5px 0 22px; border-style: solid; border-left: 3px solid var(--warn); border-radius: 6px; padding: 14px 18px; }
.deck-overview { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin-bottom: 18px; }
.snapshot-hero { position: relative; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); border-radius: 10px; padding: 31px; }
.snapshot-hero::after { content: ''; pointer-events: none; position: absolute; inset: 0 0 0 60%; background-image: linear-gradient(var(--line) 1px, transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size: 30px 30px; opacity: .22; mask-image: linear-gradient(90deg,transparent,#000); }
.snapshot-hero .eyebrow { color: var(--brass); position: relative; z-index: 1; }
.snapshot-hero h2 { position: relative; z-index: 1; font-size: clamp(29px,3vw,40px); line-height: 1.16; font-weight: 560; letter-spacing: -.04em; margin: 22px 0 16px; }
.snapshot-hero > p:not(.eyebrow) { max-width: 410px; color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 23px; }
.snapshot-hero .btn { position: relative; z-index: 1; }
.hero-scope { display: flex; align-items: center; min-height: 44px; width: fit-content; margin-top: 12px; padding-block: 5px; color: var(--faint); font: 10px/1.7 var(--mono); }
.hero-scope:hover { color: var(--brass); }
.review-next { border: 1px solid var(--line); border-radius: 10px; background: var(--field); padding: 28px; }
.review-next .eyebrow { color: var(--brass); }
.review-next h2 { margin: 19px 0 13px; font-size: 25px; font-weight: 550; line-height: 1.25; letter-spacing: -.035em; }
.review-next p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 17px; }
.review-next > .btn { width: 100%; }
.review-next > .quiet-link { font-size: 11px; margin-top: 9px; }
.deck-metrics { gap: 13px; margin: 0 0 28px; }
.deck-metrics .kpi { padding: 19px; border-radius: 8px; }
.kpi-link:hover { background: var(--panel-2); border-color: var(--line-strong); }
.deck-metrics .kpi-k { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; font-family: var(--mono); letter-spacing: .04em; }
.deck-metrics .kpi-k span { color: var(--faint); }
.deck-metrics .kpi-v { font-size: 31px; font-weight: 500; margin-top: 12px; }
.deck-metrics p { margin: 7px 0 0; font-size: 10px; color: var(--faint); }
.deck-work-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: start; gap: 19px; }
.stored-detections > .bd { padding: 0; max-height: 600px; overflow-y: auto; }
.stored-detections .hd { min-height: 70px; padding-block: 12px; }
.stored-row { display: grid; grid-template-columns: 35px minmax(0,1fr) auto 7px; align-items: center; gap: 11px; padding: 18px; min-height: 83px; border-top: 1px solid var(--line); }
.stored-row:first-child { border-top: 0; }
.stored-row:hover { background: var(--panel-2); }
.stored-channel { display: grid; place-items: center; width: 34px; height: 38px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); color: var(--brass); font: 11px var(--mono); }
.stored-main { min-width: 0; }
.stored-main strong { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.stored-main small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.stored-assessment { display: grid; justify-items: end; gap: 4px; }
.stored-assessment > span { color: var(--muted); font-size: 10px; }
.stored-row.threat .stored-assessment > span { color: var(--danger); }
.stored-assessment small { color: var(--faint); font: 9px var(--mono); }
.stored-arrow { color: var(--faint); }
.snapshot-foot { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.snapshot-foot a { color: var(--brass); text-decoration: underline; }
.deck-empty { padding: 38px 23px; text-align: center; }
.empty-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 22px; border: 1px solid var(--line); background: var(--field); color: var(--brass); font-size: 25px; border-radius: 12px; }
.deck-empty h3 { font-size: 18px; font-weight: 550; letter-spacing: -.02em; margin: 0 0 11px; }
.deck-empty p { max-width: 360px; margin: 0 auto 10px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.deck-guidance-stack { display: grid; gap: 17px; }
.scope-facts { margin: -4px 0 13px; }
.scope-facts > div { display: flex; align-items: start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 11px 0; font-size: 11px; }
.scope-facts dt { color: var(--muted); }
.scope-facts dd { font: 10px/1.7 var(--mono); text-align: right; margin: 0; }
.scope-card .hint { font-size: 12px; }
.guidance-card h2 { font-size: 24px; line-height: 1.3; font-weight: 550; margin: 14px 0 11px; letter-spacing: -.035em; }
.guidance-card p:not(.eyebrow) { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0 0 13px; }
.guidance-card a { display: flex; min-height: 44px; border-top: 1px solid var(--line); padding-block: 6px; }
.deck-channel-section { margin-top: 33px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.section-title h2 { font-size: 18px; margin: 0; font-weight: 550; letter-spacing: -.025em; }
.deck-channel-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.deck-channel-links > a { display: flex; align-items: center; gap: 11px; min-height: 103px; padding: 18px; background: var(--panel); }
.deck-channel-links > a + a { border-left: 1px solid var(--line); }
.deck-channel-links > a:hover { background: var(--panel-2); }
.channel-symbol { display: grid; place-items: center; width: 32px; height: 36px; border: 1px solid var(--line); border-radius: 6px; color: var(--brass); font: 10px var(--mono); flex: none; }
.deck-channel-links strong { display: block; font-size: 12px; font-weight: 550; }
.deck-channel-links small { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 5px; }
.deck-channel-links > a > span:last-child { margin-left: auto; color: var(--brass); }
.workspace-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); }
.workspace-foot a { font-size: 11px; }
.guide-back { margin: -6px 0 12px; justify-content: flex-start; }
.guide-intro { padding: 28px 0 35px; max-width: 660px; }
.guide-intro .eyebrow { color: var(--brass); }
.guide-intro h2 { font-size: clamp(30px,4vw,43px); font-weight: 550; line-height: 1.2; letter-spacing: -.045em; margin: 17px 0; }
.guide-intro > p:last-child { font-size: 14px; line-height: 1.8; color: var(--muted); }
.guide-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.guide-topic { display: flex; align-items: start; gap: 16px; padding: 23px; }
.guide-topic:hover { border-color: var(--line-strong); background: var(--panel-2); }
.guide-topic-number { color: var(--brass); font: 11px var(--mono); margin-top: 5px; }
.guide-topic h2 { font-size: 19px; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 11px; }
.guide-topic p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0; }
.guide-topic > span:last-child { color: var(--brass); margin-left: auto; }
.guide-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(250px,1fr); gap: 20px; align-items: start; }
.guide-body { display: grid; gap: 15px; }
.guide-section { scroll-margin-top: 25px; }
.guide-section h2,.guide-next h2,.guide-recovery h2 { font-size: 23px; font-weight: 550; line-height: 1.35; letter-spacing: -.03em; margin: 14px 0; }
.guide-section p:not(.eyebrow),.guide-next p:not(.eyebrow),.guide-recovery p,.guide-copy { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 11px 0; }
.guide-next { position: sticky; top: 24px; }
.guide-next .eyebrow { font-size: 8px; }
.guide-next > .bd > .btn { width: 100%; margin: 15px 0 5px; }
.guide-next .quiet-link { margin-top: 7px; }
.guide-action { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--brass); border-top: 1px solid var(--line); padding: 13px 0; min-height: 52px; font-size: 13px; }
.guide-action:hover { color: var(--text); }
.plan-scope .price-feats { margin: 15px 0; }
.plan-scope + .guide-next { margin: 0; }
.guide-layout + .guide-section { margin-top: 20px; }
.guide-recovery .quiet-link { display: flex; width: fit-content; }
.pricing-grid { align-items: stretch; }
.price-card { border-radius: 9px; }
.price-card .price-cta { display: flex; }
.price-feats li::before { color: var(--brass); }
.msg-link { min-height: 28px; display: inline-flex; align-items: center; }
.connect-note a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1180px) and (min-width: 981px) {
  .shell { grid-template-columns: 220px minmax(0,1fr); }
  .main { padding-inline: 27px; }
  .deck-overview { grid-template-columns: 1.4fr 1fr; }
  .snapshot-hero { padding: 25px; }
  .review-next { padding: 23px; }
  .snapshot-hero h2 { font-size: 31px; }
  .deck-work-grid { grid-template-columns: 1fr; }
  .deck-guidance-stack { grid-template-columns: 1fr 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-next { position: static; }
  .deck-channel-links > a { padding: 14px 11px; }
}
@media (max-width: 980px) {
  .shell { display: block; min-height: 100dvh; }
  .mobile-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; background: var(--ink); padding: calc(10px + env(safe-area-inset-top)) 19px 10px; border-bottom: 1px solid var(--line); }
  .command-toggle,.command-close,.header-help { display: grid; place-items: center; appearance: none; width: 44px; min-height: 44px; padding: 0; background: var(--field); color: var(--brass); border: 1px solid var(--line); border-radius: 8px; font: 22px var(--font); cursor: pointer; }
  .header-help { font-size: 16px; }
  .mobile-wordmark { display: flex; align-items: center; justify-content: center; gap: 9px; width: fit-content; justify-self: center; font-size: 13px; font-weight: 750; line-height: 1.2; letter-spacing: .08em; }
  .mobile-wordmark small { display: block; color: var(--brass); font: 8px/1 var(--mono); letter-spacing: .15em; margin-top: 5px; }
  .mobile-mark { display: grid; place-items: center; width: 31px; height: 35px; background: var(--brass); color: var(--ink); font-size: 17px; clip-path: polygon(50% 0%,96% 25%,96% 75%,50% 100%,4% 75%,4% 25%); }
  .sidebar { display: none; position: fixed; z-index: 102; inset: 0 auto 0 0; width: min(340px,88vw); height: 100dvh; border: 0; border-right: 1px solid var(--line); padding: calc(12px + env(safe-area-inset-top)) 16px calc(25px + env(safe-area-inset-bottom)); background: var(--field); border-radius: 0 12px 12px 0; overscroll-behavior: contain; }
  .sidebar.is-open { display: flex; }
  .nav-close-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 11px; margin-bottom: 14px; }
  .nav-close-row h2 { font-size: 13px; font-weight: 550; color: var(--muted); margin: 0; }
  .command-close { font-size: 26px; }
  .nav-scrim:not([hidden]) { display: block; position: fixed; z-index: 101; inset: 0; background: #000b; }
  body.navigation-open { overflow: hidden; }
  .main { padding: 27px 24px calc(100px + env(safe-area-inset-bottom)); }
  .main .topbar { flex-direction: column; align-items: stretch; gap: 15px; }
  .topbar-actions { justify-content: flex-start; }
  .topbar h1 { font-size: 34px; }
  .mobile-dock { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); position: fixed; z-index: 32; inset: auto 0 0; background: var(--field); border-top: 1px solid var(--line); padding: 6px 10px calc(7px + env(safe-area-inset-bottom)); }
  .mobile-dock a { min-height: 48px; display: flex; flex-direction: column; gap: 3px; justify-content: center; align-items: center; font-size: 10px; color: var(--muted); border-radius: 6px; }
  .mobile-dock a > span { font-size: 19px; line-height: 1.2; }
  .mobile-dock a[aria-current="page"] { color: var(--brass); background: var(--panel-2); }
  .deck-work-grid { grid-template-columns: 1fr; }
  .deck-guidance-stack { grid-template-columns: 1fr 1fr; }
  .deck-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
  .deck-metrics .kpi { padding: 16px 12px; }
  .snapshot-hero { padding: 26px; }
  .snapshot-hero h2 { font-size: 34px; }
  .review-next { padding: 25px; }
  .guide-layout { grid-template-columns: minmax(0,1.6fr) minmax(230px,1fr); gap: 15px; }
  .guide-next { position: static; }
  .guide-index { gap: 12px; }
  .toast-root { bottom: calc(86px + env(safe-area-inset-bottom)); left: 20px; right: 20px; align-items: center; }
  .toast { min-width: 0; max-width: min(440px,100%); }
  .guide-section { scroll-margin-top: 96px; }
}
@media (max-width: 640px) {
  .main { padding-inline: 19px; }
  .topbar h1 { font-size: 31px; }
  .topbar .desc { font-size: 14px; }
  .topbar-actions { gap: 12px; }
  .topbar-actions > .btn { max-width: 100%; }
  .deck-overview { grid-template-columns: 1fr; gap: 13px; }
  .snapshot-hero { padding: 26px 24px; }
  .snapshot-hero h2 { font-size: 36px; margin-top: 21px; }
  .snapshot-hero > p:not(.eyebrow) { font-size: 14px; }
  .snapshot-hero .btn { width: 100%; }
  .hero-scope { font-size: 9px; line-height: 1.8; }
  .review-next { padding: 24px; }
  .review-next h2 { font-size: 27px; margin-top: 14px; }
  .review-next p { font-size: 14px; }
  .deck-metrics { grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
  .deck-metrics .kpi { padding: 18px; min-height: 145px; }
  .deck-metrics .kpi-k { font-size: 9px; }
  .deck-metrics p { font-size: 10px; }
  .deck-work-grid { gap: 16px; }
  .deck-guidance-stack { grid-template-columns: 1fr; }
  .stored-detections .hd { padding-inline: 17px; gap: 9px; }
  .stored-detections .hd h2 { font-size: 14px; }
  .stored-detections .hd .quiet-link { font-size: 11px; }
  .stored-row { grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; padding: 17px 13px; }
  .stored-channel { width: 30px; height: 34px; }
  .stored-main strong { font-size: 12px; }
  .stored-main small { font-size: 9px; }
  .stored-assessment > span { font-size: 9px; }
  .stored-assessment small { font-size: 8px; }
  .stored-arrow { display: none; }
  .deck-channel-links { grid-template-columns: 1fr; }
  .deck-channel-links > a + a { border-left: 0; border-top: 1px solid var(--line); }
  .deck-channel-links > a { min-height: 86px; }
  .deck-channel-links strong { font-size: 14px; }
  .deck-channel-links small { font-size: 12px; }
  .section-title { flex-direction: column; align-items: flex-start; gap: 4px; }
  .guide-index,.guide-layout { grid-template-columns: 1fr; }
  .guide-topic { padding: 22px 19px; gap: 13px; }
  .guide-intro { padding: 15px 0 24px; }
  .guide-intro h2 { font-size: 34px; }
  .guide-section h2 { font-size: 23px; }
  .guide-next { order: 2; }
  .card .hd,.panel .hd,.card .bd,.panel .bd { padding-inline: 18px; }
  .inbox-toolbar { gap: 10px; }
  .inbox-tabs { width: 100%; display: flex; min-width: 0; flex-wrap: wrap; }
  .inbox-tab { flex: 1; padding-inline: 8px; font-size: 11px; }
  .inbox-main { min-width: 0; overflow-wrap: anywhere; }
  .account-session-row { min-width: 0; }
  .account-session-row span { overflow-wrap: anywhere; }
  .billing-toggle { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.analyst-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 18px;
}
.analyst-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.analyst-table th, .analyst-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.analyst-table th {
  font: 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--brass);
}
.analyst-receipt {
  margin: 0; max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 12px var(--mono); color: var(--text);
}
@media (max-width: 800px) {
  .analyst-grid { grid-template-columns: 1fr; }
  .analyst-table { display: block; overflow-x: auto; }
}
