/* Harborline Commercial · bop-desk. No external resources: system fonts, CSS only. */
:root {
  --bg: #f5f6f8; --panel: #ffffff; --panel-2: #f9fafb; --ink: #121821; --ink-2: #374151; --muted: #6b7280; --faint: #9ca3af;
  --line: #e5e7eb; --line-2: #eef0f3;
  --brand: #0f2d52; --brand-2: #1d4f8c; --accent: #1d5fd6; --accent-bg: #eaf1fd; --focus: #2563eb;
  --pass: #15803d; --pass-bg: #e8f5ec; --pass-line: #b7e0c4;
  --flag: #a16207; --flag-bg: #fdf6e3; --flag-line: #f1d98f;
  --refer: #c2410c; --refer-bg: #fff1e8; --refer-line: #fbc9a7;
  --decline: #b91c1c; --decline-bg: #fdecec; --decline-line: #f5b5b5;
  --unknown: #475569; --unknown-bg: #eef1f5; --unknown-line: #cbd3de;
  --verified: #0f766e; --verified-bg: #e3f4f1;
  --hl: #fff1a8;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px; --r-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 6px 10px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.topbar-in { max-width: 1480px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(160deg, #5aa2ff 0%, #2b6fd6 45%, #0b3b7a 100%); position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.brand-mark::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 7px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.85); box-shadow: 0 -5px 0 rgba(255,255,255,.55); }
.brand-name { white-space: nowrap; font-size: 16px; letter-spacing: .01em; font-weight: 500; }
.brand-name b { font-weight: 750; }
.demo-note { white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #b9c9e3; border: 1px solid rgba(255,255,255,.22); padding: 2px 7px; border-radius: 99px; }
.nav { display: flex; gap: 4px; margin-left: 20px; }
.nav-link { white-space: nowrap; color: #c9d6ea; padding: 7px 12px; border-radius: 7px; font-weight: 550; font-size: 14px; text-decoration: none !important; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
.who { margin-left: auto; font-size: 12px; color: #b9c9e3; font-family: var(--mono); }
.who a { color: #fff; font-family: var(--sans); }

.view { max-width: 1480px; margin: 0 auto; padding: 24px 24px 80px; outline: none; }

/* ------------------------------------------------------------------ primitives */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 13.5px; padding: 7px 14px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: background .12s, border-color .12s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--panel-2); border-color: #d1d5db; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #174fb5; }
.btn.approve { background: var(--pass); border-color: var(--pass); color: #fff; }
.btn.approve:hover:not(:disabled) { background: #11692f; }
.btn.danger { background: var(--panel); border-color: var(--decline-line); color: var(--decline); }
.btn.danger:hover:not(:disabled) { background: var(--decline-bg); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); padding-left: 6px; padding-right: 6px; }
.btn.ghost:hover:not(:disabled) { background: var(--accent-bg); }
.icon-btn { border: 0; background: transparent; font-size: 16px; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; }
.linkish:hover { text-decoration: underline; }
select, input[type="text"], input[type="password"], input[type="date"], input[type="search"], textarea {
  font: inherit; font-size: 13.5px; color: var(--ink); background: var(--panel); border: 1px solid #d1d5db; border-radius: 8px; padding: 7px 10px; }
textarea { width: 100%; resize: vertical; min-height: 64px; line-height: 1.45; }
select { padding-right: 28px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(37, 99, 235, .35); border-color: var(--focus); outline-offset: 0; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; }
.section + .section { margin-top: 16px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head .kicker { margin-left: auto; }
.section-head.sub { margin: 22px 0 8px; }
.drill-note { margin-bottom: 12px; }
.when-chip { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--refer); white-space: nowrap; }
.pill.inforce { margin-left: 8px; }
.kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; }
.code-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-2); background: #e8eef8; border-radius: 99px; padding: 2px 8px; }
.code-tag.model { color: #6d28d9; background: #f1ebfd; }
.code-tag.human { color: #0f766e; background: #e3f4f1; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; line-height: 1; padding: 5px 9px; border-radius: 99px; border: 1px solid transparent; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.plain::before { display: none; }
.pill.lg { font-size: 13px; padding: 7px 12px; }
.o-pass { color: var(--pass); background: var(--pass-bg); border-color: var(--pass-line); }
.o-flag { color: var(--flag); background: var(--flag-bg); border-color: var(--flag-line); }
.o-refer { color: var(--refer); background: var(--refer-bg); border-color: var(--refer-line); }
.o-decline { color: var(--decline); background: var(--decline-bg); border-color: var(--decline-line); }
.o-unknown { color: var(--unknown); background: var(--unknown-bg); border-color: var(--unknown-line); }
.o-accept, .o-bound, .o-completed, .o-done, .o-ok { color: var(--pass); background: var(--pass-bg); border-color: var(--pass-line); }
.o-accept_with_notes { color: var(--flag); background: var(--flag-bg); border-color: var(--flag-line); }
.o-declined, .o-failed, .o-not_decided, .o-cancelled { color: var(--decline); background: var(--decline-bg); border-color: var(--decline-line); }
.o-running, .o-retrying, .o-starting, .o-queued { color: var(--accent); background: var(--accent-bg); border-color: #c6d8f8; }
.o-awaiting_approval, .o-waiting { color: #7c3aed; background: #f3edfd; border-color: #d9c8fa; }
.o-idle, .o-none { color: var(--muted); background: var(--line-2); border-color: var(--line); }
.o-running::before, .o-retrying::before, .o-starting::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.badge-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--verified); background: var(--verified-bg); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.badge-verified::before { content: "✓"; font-weight: 800; }
.badge-verified.weak { color: var(--flag); background: var(--flag-bg); }
.badge-verified.weak::before { content: "!"; }

.empty { padding: 28px; text-align: center; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--line-2) 0%, #f6f7f9 50%, var(--line-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 6px; height: 14px; }
.skeleton + .skeleton { margin-top: 10px; }
.skeleton.w60 { width: 60%; } .skeleton.w80 { width: 80%; } .skeleton.w40 { width: 40%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { font-size: 13px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.note.info { background: var(--accent-bg); border-color: #c6d8f8; }
.note.warn { background: var(--flag-bg); border-color: var(--flag-line); }
.note.bad { background: var(--decline-bg); border-color: var(--decline-line); color: #7f1d1d; }

/* ------------------------------------------------------------------ desk */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.hero h1 { font-size: 26px; }
.hero .lede { margin-top: 6px; color: var(--ink-2); font-size: 15px; max-width: 760px; }
.pitch { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; font-size: 14px; color: var(--ink-2); max-width: 460px; }
.pitch b { color: var(--ink); }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.case-card { display: flex; flex-direction: column; padding: 18px 18px 14px; gap: 10px; }
.case-card .top { display: flex; align-items: center; gap: 8px; }
.case-card .cid { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: auto; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: #e8eef8; color: var(--brand-2); }
.tag.t-injection { background: #f3edfd; color: #6d28d9; }
.tag.t-control { background: var(--pass-bg); color: var(--pass); }
.tag.t-failclosed { background: var(--unknown-bg); color: var(--unknown); }
.tag.t-money { background: var(--flag-bg); color: var(--flag); }
.tag.t-conflict { background: var(--refer-bg); color: var(--refer); }
.case-card h3 { font-size: 16.5px; }
.case-card .addr { color: var(--muted); font-size: 13px; margin-top: 2px; }
.case-card .cls { font-size: 12.5px; color: var(--ink-2); }
.case-card .shows { font-size: 13px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.cov { display: flex; gap: 6px; flex-wrap: wrap; }
.cov span { font-size: 11.5px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.subs { border-top: 1px solid var(--line-2); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 34px; }
.sub-row { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; font-size: 12.5px; width: 100%; border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; padding: 6px 9px; cursor: pointer; color: var(--ink); font-family: inherit; text-align: left; }
.sub-row:hover { border-color: #c6d8f8; background: var(--accent-bg); }
.sub-row .when { color: var(--muted); margin-left: auto; white-space: nowrap; }
.sub-row .drill { font-size: 11px; color: #6d28d9; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sub-row .pill { flex: none; }
.submit-row { display: flex; gap: 8px; align-items: center; }
.submit-row select { flex: 1; min-width: 0; }
.case-card.guide { background: linear-gradient(180deg, #f3f7fe, var(--panel)); border-style: dashed; }
.guide-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.guide-list .linkish { font-weight: 650; }
.drill-help { font-size: 12px; color: var(--muted); min-height: 18px; }

/* ------------------------------------------------------------------ case view */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 12px; }
.case-head { padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; }
.case-head .title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.case-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.case-head .facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 14px; }
.case-head .cls-line { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.case-head .cls-line .mono { color: var(--brand-2); background: #e8eef8; border-radius: 4px; padding: 1px 6px; margin-right: 4px; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.fact .v { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.drill-chip { font-size: 12px; font-weight: 650; color: #6d28d9; background: #f3edfd; border: 1px solid #d9c8fa; border-radius: 99px; padding: 3px 10px; }
.decision-banner { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 10px; margin-top: 12px; border: 1px solid; }
.decision-banner .big { font-size: 18px; font-weight: 750; text-transform: capitalize; }
.decision-banner.a-bound { background: var(--pass-bg); border-color: var(--pass-line); color: #14532d; }
.decision-banner.a-declined { background: var(--decline-bg); border-color: var(--decline-line); color: #7f1d1d; }
.decision-banner.a-not_decided { background: var(--unknown-bg); border-color: var(--unknown-line); color: #1e293b; }
.decision-banner .meta { font-size: 13px; }
.decision-banner .prem { margin-left: auto; text-align: right; }
.decision-banner .prem b { font-size: 20px; font-variant-numeric: tabular-nums; }

.pipeline { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin: 16px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.stage { position: relative; padding: 12px 10px 12px 14px; border-right: 1px solid var(--line-2); min-height: 74px; display: flex; flex-direction: column; gap: 4px; }
.stage:last-child { border-right: 0; }
.stage .sname { font-size: 12.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.stage .sdot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; font-weight: 800; background: var(--panel); }
.stage .sdetail { font-size: 11.5px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.stage .who-kind { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--faint); }
.stage.s-done .sdot { background: var(--pass); border-color: var(--pass); }
.stage.s-done .sdot::after { content: "✓"; }
.stage.s-running { background: linear-gradient(180deg, var(--accent-bg), var(--panel)); }
.stage.s-running .sdot { border-color: var(--accent); border-right-color: transparent; animation: spin .9s linear infinite; }
.stage.s-waiting { background: linear-gradient(180deg, #f3edfd, var(--panel)); }
.stage.s-waiting .sdot { border-color: #7c3aed; background: #7c3aed; }
.stage.s-waiting .sdot::after { content: "…"; line-height: 1; margin-top: -4px; }
.stage.s-failed .sdot { background: var(--decline); border-color: var(--decline); }
.stage.s-failed .sdot::after { content: "!"; }
.stage.s-warn .sdot { background: var(--refer); border-color: var(--refer); }
.stage.s-warn .sdot::after { content: "↻"; }
.stage.s-todo .sname { color: var(--faint); }
.stage::after { content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: inherit; transform: translateY(-50%) rotate(45deg); z-index: 1; }
.stage:last-child::after { display: none; }

.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.case-side { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; border-radius: var(--r); }

/* gate */
.gate { border: 2px solid #a78bfa; background: linear-gradient(180deg, #faf7ff, var(--panel) 120px); }
.gate .msg { font-size: 15px; color: var(--ink); margin: 4px 0 12px; }
.gate .ctx { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.gate .row { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: end; }
.gate .actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.gate .stepup { display: block; flex: 1; min-width: 260px; font-size: 12px; color: var(--muted); }

/* checks */
.summary-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 14px; }
.summary-bar .dec { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.counts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.count { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 99px; border: 1px solid; font-variant-numeric: tabular-nums; }
.count.zero { opacity: .45; }
.failclosed { font-size: 12.5px; color: var(--unknown); background: var(--unknown-bg); border: 1px dashed var(--unknown-line); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.failclosed b { color: #1e293b; }
.cat { margin-top: 16px; }
.cat:first-of-type { margin-top: 0; }
.cat-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.cat-head h3 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.cat-head .muted { font-size: 12.5px; }
.check { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; background: var(--panel); transition: box-shadow .3s, background .3s; }
.check + .check { margin-top: 6px; }
.check[data-outcome="pass"] { border-left-color: var(--pass); }
.check[data-outcome="flag"] { border-left-color: #eab308; }
.check[data-outcome="refer"] { border-left-color: var(--refer); }
.check[data-outcome="decline"] { border-left-color: var(--decline); }
.check[data-outcome="unknown"] { border-left-color: var(--unknown); border-left-style: dashed; }
.check-top { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.check-top .pill { justify-content: center; }
.check-top .ttl { font-weight: 600; font-size: 13.5px; }
.check-top .cid { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.check-top .chev { color: var(--faint); transition: transform .15s; }
.check.open .chev { transform: rotate(90deg); }
.check-body { padding: 0 14px 14px 116px; display: none; }
.check.open .check-body { display: block; }
.check .finding { font-size: 13.5px; color: var(--ink-2); }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.vs { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--panel-2); min-width: 0; }
.vs .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); }
.vs .v { font-size: 13.5px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.vs .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vs.said { border-color: #dbe3ee; }
.vs.record { background: #f6f9ff; border-color: #c6d8f8; }
.vs.record.mismatch { background: var(--refer-bg); border-color: var(--refer-line); }
.rule { display: flex; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); align-items: baseline; }
.doc-ref { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--brand-2); background: #e8eef8; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.rule q { quotes: "“" "”"; font-style: italic; }
.conflict { margin-top: 12px; border: 1px solid var(--refer-line); background: var(--refer-bg); border-radius: 9px; padding: 12px; }
.conflict .chead { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--refer); margin-bottom: 8px; }
.conflict .docs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.conflict .doc { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.conflict .doc .dn { font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.conflict .doc .role { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.conflict .vsx { align-self: center; font-weight: 800; color: var(--refer); font-size: 12px; }
.conflict .res { margin-top: 8px; font-size: 12.5px; color: #7c2d12; }
.check.flash { box-shadow: 0 0 0 3px rgba(37, 99, 235, .35); background: #f5f9ff; }

/* rating */
.money { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 12px; }
.mbox { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--panel-2); }
.mbox .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.mbox .v { font-size: 28px; font-weight: 750; font-variant-numeric: tabular-nums; margin-top: 4px; letter-spacing: -.02em; }
.mbox .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mbox.diff { background: var(--panel); border-color: var(--line); }
.mbox.diff.pos { background: var(--flag-bg); border-color: var(--flag-line); }
.mbox.diff.pos .v { color: var(--refer); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; }
.tbl tfoot td { border-top: 1px solid var(--line); border-bottom: 0; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.trace-row td { background: var(--panel-2); padding: 0 8px 10px; }
.trace { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 4px; }
.trace td, .trace th { padding: 4px 8px; border-bottom: 1px solid var(--line-2); text-align: left; }
.trace th { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.trace td.f { font-family: var(--mono); font-weight: 700; text-align: right; }
.trace td.key { font-family: var(--mono); color: var(--muted); font-size: 11px; }
.subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.mini h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.mini ul { list-style: none; margin: 0; padding: 0; }
.mini li { font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.mini li:last-child { border-bottom: 0; }
.subst { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.subst .from { text-decoration: line-through; color: var(--muted); }
.subst .to { font-weight: 700; color: var(--refer); }

/* specialists */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lane { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: var(--panel-2); }
.lane-head { display: flex; align-items: center; gap: 8px; }
.lane-head h3 { text-transform: capitalize; font-size: 14px; }
.lane-head .pill { margin-left: auto; }
.feed { list-style: none; margin: 0; padding: 6px 8px; height: 132px; overflow-y: auto; font-family: var(--mono); font-size: 11.5px; background: #0f172a; color: #cbd5e1; border-radius: 7px; line-height: 1.6; }
.feed li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li.call { color: #e2e8f0; }
.feed li.call b { color: #7dd3fc; font-weight: 600; }
.feed li.res { color: #64748b; }
.feed li.turn { color: #a78bfa; }
.feed li.bad { color: #fca5a5; }
.feed li.empty-feed { color: #64748b; font-style: italic; }
.lane .lsum { font-size: 13px; color: var(--ink-2); cursor: pointer; }
.lane .lsum.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.findings details summary { cursor: pointer; list-style: none; line-height: 1.4; }
.findings details summary::-webkit-details-marker { display: none; }
.findings details[open] summary b { color: var(--accent); }
.findings .fdetail { font-size: 12.5px; color: var(--muted); margin: 4px 0 2px; }
.jump { margin-left: auto; }
.lane .tokens { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.findings li { font-size: 12.5px; line-height: 1.45; }
.imp { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }
.imp.high { background: var(--decline-bg); color: var(--decline); }
.imp.medium { background: var(--flag-bg); color: var(--flag); }
.imp.low { background: var(--line-2); color: var(--muted); }
.refused { font-size: 12.5px; color: #7f1d1d; background: var(--decline-bg); border: 1px solid var(--decline-line); border-radius: 7px; padding: 6px 9px; }
.misquote { font-size: 12.5px; color: #7c2d12; background: var(--refer-bg); border: 1px solid var(--refer-line); border-radius: 7px; padding: 6px 9px; }
.claims-list { margin-top: 16px; }
.claims-list h3 { margin-bottom: 8px; }
.claim { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.claim + .claim { margin-top: 6px; }
.claim:hover { border-color: #c6d8f8; background: #f8fbff; }
.claim .n { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-bg); border-radius: 5px; text-align: center; padding: 2px 0; }
.claim .t { font-size: 13px; }
.claim .q { font-size: 12px; color: var(--muted); margin-top: 3px; font-style: italic; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.claim .role { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; }
.claim.flash { box-shadow: 0 0 0 3px rgba(37, 99, 235, .35); }
.claims-more { margin-top: 8px; }
.claims-scroll { max-height: 480px; overflow-y: auto; padding: 2px 4px 2px 2px; border-radius: 8px; }

/* memo */
.memo-rec { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.memo-headline { font-size: 17px; font-weight: 650; line-height: 1.4; margin-bottom: 10px; }
.memo-summary { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.memo-body h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 6px; }
.memo-body p { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.memo-body ol { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.memo-body ol li { padding: 2px 0; }
.cite-n { display: inline-block; font: 700 11px/1 var(--mono); color: var(--accent); background: var(--accent-bg); border: 0; border-radius: 4px; padding: 3px 4px; margin: 0 1px; cursor: pointer; vertical-align: 1px; }
.cite-n:hover { background: #d4e3fb; }
.cite-c { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px/1 var(--sans); border-radius: 99px; padding: 3px 8px 3px 6px; margin: 0 2px; cursor: pointer; border: 1px solid; vertical-align: 1px; }
.cite-c::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.withheld { border: 1px solid var(--decline-line); background: var(--decline-bg); color: #7f1d1d; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.withheld b { display: block; font-size: 15px; margin-bottom: 4px; }
.mcheck { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--panel-2); }
.mcheck-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.rules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rulebox { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 10px; }
.rulebox .rn { font-weight: 700; font-size: 12.5px; text-transform: capitalize; display: flex; align-items: center; gap: 6px; }
.rulebox .rd { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.rulebox.ok .rn::before { content: "✓"; color: var(--pass); font-weight: 900; }
.rulebox.bad { border-color: var(--decline-line); background: var(--decline-bg); }
.rulebox.bad .rn::before { content: "✕"; color: var(--decline); font-weight: 900; }
.attempts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.attempt { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 9px 12px; }
.attempt.bad { border-color: var(--decline-line); }
.attempt.good { border-color: var(--pass-line); }
.attempt .ah { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 650; flex-wrap: wrap; }
.attempt ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: #7f1d1d; }
.attempt-arrow { text-align: center; color: var(--faint); font-size: 12px; }
/* memo diff between attempts (restate-ai-o3s.15) */
.mdiff { margin: 0 0 0 14px; padding: 4px 0 4px 14px; border-left: 2px dashed var(--line); font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.mdiff.memo_check { border-left-color: var(--decline-line); }
.mdiff.review { border-left-color: #9fd3ca; }
.mdiff-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 650; color: var(--ink-2); }
.mdiff .why { line-height: 1.45; }
.mdiff blockquote.fb { margin: 0; padding: 7px 11px; border-left: 3px solid var(--verified); background: var(--verified-bg); border-radius: 0 6px 6px 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.mdiff blockquote.fb .kicker { display: block; margin-bottom: 2px; }
.mdiff .mdiff-rec { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mdiff .fcheck { padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); display: flex; flex-direction: column; gap: 5px; }
.mdiff .fcheck .fch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mdiff .fc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.mdiff .fc-list li { overflow-wrap: anywhere; }
.mdiff .fc-list .badge-verified { margin-right: 6px; }
.mdiff .fc-missing .badge-verified::before { content: "∅"; }
.mdiff details summary { cursor: pointer; color: var(--accent); font-weight: 600; width: fit-content; }
.mdiff details summary .n-ins { color: var(--pass); }
.mdiff details summary .n-del { color: var(--decline); }
.mdiff .dtext { margin-top: 6px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; line-height: 1.6;
  color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }
.dtext del { background: var(--decline-bg); color: #7f1d1d; text-decoration: line-through; text-decoration-color: rgba(185, 28, 28, .45); border-radius: 3px; }
.dtext ins { background: var(--pass-bg); color: #14532d; text-decoration: none; border-radius: 3px; }
.dtext del + ins { margin-left: .3em; }
.dtext b { color: var(--ink); }
.dtext .skip { color: var(--faint); font-style: italic; font-size: 12px; }

/* trust panel */
.trust { padding: 16px; }
.trust-title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.trust-title .shield { width: 18px; height: 20px; background: var(--brand-2); clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%); flex: none; }
.trust .tsub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.guar { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.guar .gi { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; color: #fff; background: var(--faint); margin-top: 1px; }
.guar.ok .gi { background: var(--pass); }
.guar.ok .gi::after { content: "✓"; }
/* caught = the guarantee held and stopped something (a misquote, a rejected memo, a source that failed closed) */
.guar.caught .gi { background: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .18); }
.guar.caught .gi::after { content: "✓"; }
.guar.wait .gi { background: #7c3aed; }
.guar.wait .gi::after { content: "…"; margin-top: -4px; }
.guar.pending .gi { background: var(--line); }
.guar.bad .gi { background: var(--decline); }
.guar.bad .gi::after { content: "✕"; }
.guar .gt { font-size: 13px; font-weight: 650; }
.guar .gv { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.guar .gw { font-size: 11px; color: var(--faint); margin-top: 2px; font-family: var(--mono); }
.chain { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.chain li { position: relative; padding: 0 0 10px 18px; font-size: 12px; }
.chain li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.chain li::after { content: ""; position: absolute; left: 7px; top: 15px; bottom: 0; width: 2px; background: var(--line); }
.chain li:last-child::after { display: none; }
.chain .ck { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.chain .cl { font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere; }
.chain .ce { font-size: 11px; color: var(--muted); }

/* drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 92vw); background: var(--panel); box-shadow: var(--shadow-lg); z-index: 50; transform: translateX(104%); transition: transform .22s ease; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 10px; }
.drawer-head h2 { flex: 1; font-size: 16px; }
.drawer-body { padding: 16px 18px 40px; overflow-y: auto; flex: 1; }
.scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .25); z-index: 40; }
.claim-text { font-size: 15px; font-weight: 550; line-height: 1.5; margin-bottom: 14px; }
.src { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.src-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.src-head .path { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--verified); background: var(--verified-bg); font-size: 13px; white-space: pre-wrap; color: #134e4a; }
.doc-view { margin: 0; padding: 12px 14px; max-height: 360px; overflow: auto; font: 12px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); background: var(--panel); }
.doc-view mark { background: var(--hl); color: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--hl); }
.src-why { font-size: 11.5px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line-2); }

/* toasts */
.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: 420px; }
.toast { background: #1f2937; color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; animation: toastIn .2s ease; }
.toast.err { background: #7f1d1d; }
.toast.ok { background: #14532d; }
.toast b { display: block; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 14px; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

/* ------------------------------------------------------------------ compliance */
.comp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.ask-form { display: flex; flex-direction: column; gap: 10px; }
.ask-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.preset[aria-pressed="true"] { background: var(--accent-bg); border-color: #c6d8f8; color: var(--accent); }
.answer { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--panel); }
.answer + .answer { margin-top: 10px; }
.answer .aq { font-weight: 650; font-size: 14.5px; }
.answer .am { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin: 4px 0 10px; flex-wrap: wrap; }
.answer .at { font-size: 14px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; }
.answer .secs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sec-chip { font: 600 12px var(--mono); border: 1px solid var(--line); background: var(--panel-2); border-radius: 6px; padding: 3px 8px; cursor: pointer; color: var(--brand-2); }
.sec-chip:hover { border-color: #c6d8f8; background: var(--accent-bg); }
.answer .aclaims { margin-top: 10px; }
.snap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.snap .fact .v { font-size: 13px; overflow-wrap: anywhere; }
.change { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.change:last-child { border-bottom: 0; }
.stale { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.stale td, .stale th { padding: 5px 6px; border-bottom: 1px solid var(--line-2); text-align: left; }
.stale th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.explorer-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.explorer-form input[type="text"] { width: 120px; }
.tl-track { position: relative; height: 28px; background: var(--line-2); border-radius: 7px; margin: 14px 0 4px; overflow: hidden; }
.tl-seg { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; background: #c7d7ef; border: 1px solid #9fb8de; }
.tl-seg.on { background: var(--accent); border-color: #174fb5; }
.tl-marker { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--decline); }
.tl-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.tl-list { list-style: none; margin: 10px 0 0; padding: 0; }
.tl-list li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.tl-list li .dot { width: 10px; height: 10px; border-radius: 50%; background: #c7d7ef; margin-top: 4px; }
.tl-list li.on .dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.tl-list .rng { font-family: var(--mono); font-weight: 700; }
.law-text { margin-top: 12px; max-height: 340px; overflow: auto; font-size: 13px; line-height: 1.6; white-space: pre-wrap; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--panel-2); color: var(--ink-2); }

/* ------------------------------------------------------------------ trust page */
.tp-hero { background: linear-gradient(135deg, var(--brand) 0%, #173f73 60%, #1d5fd6 140%); color: #fff; border-radius: 14px; padding: 34px 36px; margin-bottom: 20px; }
.tp-hero h1 { font-size: 30px; max-width: 900px; line-height: 1.2; }
.tp-hero p { color: #c9d6ea; margin-top: 10px; max-width: 820px; font-size: 15px; }
.tp-flow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.tp-flow span { font-size: 12px; font-weight: 650; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.12); }
.tp-flow span.c { background: rgba(90, 162, 255, .35); }
.tp-flow span.m { background: rgba(167, 139, 250, .35); }
.tp-flow span.h { background: rgba(45, 212, 191, .35); }
.tp-flow i { color: #8fa9cf; font-style: normal; }
.tp-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: #c9d6ea; }
.tp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tp-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.tp-legend .c::before { background: rgba(90, 162, 255, .7); }
.tp-legend .m::before { background: rgba(167, 139, 250, .8); }
.tp-legend .h::before { background: rgba(45, 212, 191, .8); }
.layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.layer { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.layer .lnum { font: 700 11px var(--mono); color: var(--muted); }
.layer h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.layer .guarantee { font-size: 14px; color: var(--ink); line-height: 1.55; }
.layer .where { font-size: 12.5px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.layer .where b { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: 2px; }
.layer .demo { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 4px; }
.layer .demo .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .case-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comp-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .stage { padding: 10px 8px 10px 10px; }
  .stage .sname { font-size: 12px; }
}
@media (max-width: 1100px) {
  .who { display: none; }
  .nav { margin-left: 8px; }
  .lanes { grid-template-columns: 1fr; }
  .feed { height: 110px; }
  .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stage::after { display: none; }
  .stage { border-bottom: 1px solid var(--line-2); }
  .check-body { padding-left: 14px; }
  .money { grid-template-columns: 1fr 1fr; }
  .money .diff { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .case-grid, .comp-grid { grid-template-columns: 1fr; }
  .case-side { position: static; max-height: none; order: -1; }
  .versus, .subgrid, .gate .row { grid-template-columns: 1fr; }
  .conflict .docs { grid-template-columns: 1fr; }
  .topbar-in { padding: 0 14px; gap: 10px; }
  .nav { margin-left: 0; }
  .who, .demo-note { display: none; }
  .view { padding: 16px 16px 60px; }
  .layers { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
}

/* law change impact */
.chg-list { display: grid; gap: 12px; }
.chg { border: 1px solid var(--line, #e3e7ee); border-radius: 10px; padding: 12px 14px; background: var(--card, #fff); }
.chg .am { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chg-hits { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.chg-hits li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 13px; }
.chg-ref { color: var(--muted, #5b6474); }
.chg-gate { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--gate-bg, #f6f3ff); }
.chg-gate .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chg-gate input[type=password] { min-width: 200px; }

.drill-label { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.drill-label select { width: 100%; }

/* ask the desk (restate-ai-o3s.22): a docked, non-modal panel; the item asked about stays visible */
.ask-btn { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1 var(--sans); color: var(--accent); background: var(--accent-bg); border: 1px solid #c6d8f8;
  border-radius: 99px; padding: 3px 8px; margin-left: 8px; cursor: pointer; vertical-align: 1px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.ask-btn::before { content: "?"; font-weight: 800; }
.ask-btn:hover { background: #d4e3fb; }
.finding-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.finding-row .ask-btn { margin-top: 2px; }
.claim-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; }
.claim-row + .claim-row { margin-top: 6px; }
.claim-row .ask-btn { margin: 9px 0 0; }
h4.with-ask { display: flex; align-items: center; gap: 4px; }
.ask-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; font: 650 14px/1 var(--sans); color: #fff; background: var(--brand-2); border: 0; border-radius: 99px;
  padding: 12px 18px; box-shadow: var(--shadow-lg); cursor: pointer; }
.ask-fab:hover { background: var(--brand); }
.askpanel { position: fixed; top: 56px; right: 0; bottom: 0; width: min(460px, 96vw); background: var(--panel); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  z-index: 35; transform: translateX(104%); transition: transform .2s ease; display: flex; flex-direction: column; overflow: hidden; }
.askpanel.open { transform: none; }
@media (min-width: 1200px) { body.ask-open .view { margin-right: 460px; } }
.ask-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 4px; }
.ask-head h2 { margin-right: auto; }
.ask-sub { padding: 0 16px 10px; border-bottom: 1px solid var(--line-2); }
.ask-compose { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); display: grid; gap: 8px; }
.ask-compose textarea { width: 100%; font: inherit; font-size: 13.5px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; resize: vertical; }
.ask-focus { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.ask-focus .fk, .thread .fk { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--brand-2); background: #e8eef8; border-radius: 99px; padding: 2px 7px; white-space: nowrap; }
.thread .fk.case { color: var(--muted); background: var(--line-2); }
.ask-focus .fl { font-weight: 600; overflow-wrap: anywhere; }
.ask-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.ask-row.follow { margin-top: 10px; }
.ask-row.follow input { flex: 1; font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; }
.ask-threads { overflow-y: auto; overflow-x: hidden; padding: 10px 16px 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; flex: 1; }
.thread { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 0 12px; min-width: 0; }
.thread[open] { padding-bottom: 12px; }
.thread > summary { display: flex; gap: 8px; align-items: baseline; padding: 10px 0; cursor: pointer; list-style: none; }
.thread > summary::-webkit-details-marker { display: none; }
.thread .tq { flex: 1; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread[open] .tq { white-space: normal; }
.tfocus { margin: -4px 0 8px; overflow-wrap: anywhere; }
.ctraces .trace:not(.ct) { display: block; overflow-x: auto; }
.qa { border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 10px; }
.qa:first-of-type { border-top: 0; margin-top: 0; }
.qq { font-weight: 650; font-size: 13.5px; display: flex; gap: 8px; }
.qk { font: 700 11px/1.6 var(--mono); color: var(--muted); }
.qa .am { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 8px; }
.qa .aa { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.qa .aclaims { margin-top: 10px; }
.qa .aclaims .claim { grid-template-columns: 30px 1fr auto; }
.ctraces { margin-top: 10px; border: 1px solid #dbe3ee; border-radius: 8px; background: #f8fafc; padding: 8px 10px; display: grid; gap: 8px; }
.ct-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ctrace + .ctrace { border-top: 1px dashed var(--line); padding-top: 8px; }
.ctt { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ctt .cid { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.trace.ct { table-layout: fixed; }
.trace.ct td { vertical-align: top; overflow-wrap: anywhere; }
.trace.ct td:nth-child(1) { width: 34%; }
.trace.ct td:nth-child(3) { width: 26%; }
.trace.ct td.tk { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.trace.ct td.tv { font-family: var(--mono); font-size: 11.5px; font-weight: 600; overflow-wrap: anywhere; }
.trace.ct td.tf { font-size: 11px; color: var(--muted); }
.trace.ct tr.lim td.tk, .trace.ct tr.lim td.tv { color: var(--refer); }
.trace.ct tr.srcr td { color: var(--muted); }
.ctb code { font-size: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; display: inline-block; overflow-wrap: anywhere; }
@media (max-width: 900px) { .ask-fab { right: 14px; bottom: 14px; } }
.tactions { margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 8px; display: grid; gap: 8px; }
.amend { display: grid; gap: 8px; border: 1px solid var(--decline-line); background: #fffafa; border-radius: 8px; padding: 10px; }
.amend textarea { width: 100%; font: inherit; font-size: 12.5px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; resize: vertical; }
.amend input[type=password] { flex: 1; font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; }
.amend-sent { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.facts-form { display: grid; gap: 8px; border: 1px solid #c6d8f8; background: #f8fbff; border-radius: 8px; padding: 10px; }
.facts-form textarea, .facts-form input[type=text], .facts-form input[type=password], .facts-form select { width: 100%; font: inherit; font-size: 12.5px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; background: var(--panel); }
.facts-form .field { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); flex: 1; }
.supplied-tag { display: inline-block; font: 700 10px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: #7c3aed; background: #f3edff; border: 1px solid #e2d6fb; border-radius: 99px; padding: 0 7px; margin: 0 4px; vertical-align: 1px; white-space: nowrap; }
.vs.said.corrected { border-color: #e2d6fb; background: #faf7ff; }
.versions { grid-column: 1 / -1; margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 8px; font-size: 12.5px; }
.versions ol { margin: 4px 0; padding-left: 18px; }
.versions li + li { margin-top: 4px; }

/* ---- ask the desk: citations by kind, the live answer (restate-ai-o3s.26) */
.cite-n.k-claim { color: var(--verified); background: var(--verified-bg); }
.cite-n.k-trace { color: var(--ink-2); background: var(--line-2); }
.cite-n.k-rule { color: var(--brand-2); background: #e8eef8; }
.cite-n.k-law { color: #6d28d9; background: #f1ebfd; }
.cite-n.pending { cursor: default; color: var(--muted); background: var(--line-2); }
.kind-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-radius: 99px; padding: 1px 6px; color: var(--accent); background: var(--accent-bg); }
.kind-tag.k-claim { color: var(--verified); background: var(--verified-bg); }
.kind-tag.k-trace { color: var(--ink-2); background: var(--line-2); }
.kind-tag.k-rule { color: var(--brand-2); background: #e8eef8; }
.kind-tag.k-law { color: #6d28d9; background: #f1ebfd; }
.badge-verified.code { color: var(--ink-2); background: var(--line-2); }
.badge-verified.code::before { content: "{}"; }
.qa .live { display: grid; gap: 6px; }
.qa .live-act { margin: 0; }
.qa .aa.streamed { border-left: 3px dashed #c6d8f8; padding-left: 10px; color: var(--ink-2); }
.qa .aa.unverified { border-left: 3px solid var(--decline-line); padding-left: 10px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(185, 28, 28, .35); }
.qa .aa.unverified .pill { text-decoration: none; }
button.doc-ref { border: 0; cursor: pointer; }
button.doc-ref:hover { background: #d4e3fb; }
