/* Design tokens carried over from the approved direction B (craft transferred from
   Linear). Do not invent colours outside this palette — every one of them is here
   because it was chosen in the direction review, not because it looked right later. */
:root {
  --floor:#050506;
  --srf-0:#08090a; --srf-1:#0f1011; --srf-2:#141516; --srf-3:#18191a; --srf-4:#1f2023;
  --line-1:rgba(255,255,255,.055); --line-2:rgba(255,255,255,.09); --line-3:rgba(255,255,255,.14);
  --ink-0:#f7f8f8; --ink-1:#c8ced8; --ink-2:#9aa2af; --ink-3:#7e8593;
  --acc:#5e6ad2; --acc-ink:#8b93e8; --acc-wash:rgba(94,106,210,.16);
  --ok:#4cb782; --weak:#f2c94c; --no:#eb5757; --unk:#7e8593;
  --ok-wash:rgba(76,183,130,.13); --weak-wash:rgba(242,201,76,.13); --no-wash:rgba(235,87,87,.12);
  --sans:-apple-system,BlinkMacSystemFont,"Inter","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono","Berkeley Mono","JetBrains Mono",Menlo,Consolas,monospace;
  /* Locked: row density = comfortable. */
  --row:34px;
  --nav:44px;
}

* { box-sizing:border-box; margin:0; padding:0; }
html,body { height:100%; }
body {
  background:var(--floor); color:var(--ink-1);
  font:400 14px/1.5 var(--sans);
  /* Locked: proportional numerals. §7 argued for tabular here and §9.5 records the
     tension; the pick is the user's and this is where it lives. */
  font-variant-numeric:proportional-nums;
  -webkit-font-smoothing:antialiased;
}
#app { height:100%; display:flex; flex-direction:column; }
a { color:var(--acc-ink); text-decoration:none; }
button { font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
input,select { font:inherit; color:var(--ink-0); background:var(--srf-2); border:1px solid var(--line-2); border-radius:5px; padding:6px 9px; }
input:focus,select:focus,button:focus-visible { outline:2px solid var(--acc); outline-offset:1px; }
code,.mono { font-family:var(--mono); font-size:12.5px; }

/* ---- top nav (locked: top nav + endpoint switcher, not the draft's left rail) ---- */
.nav { height:var(--nav); flex:0 0 auto; display:flex; align-items:center; gap:14px;
  padding:0 14px; background:var(--srf-0); border-bottom:1px solid var(--line-2); }
.nav .brand { display:flex; align-items:center; gap:8px; font-weight:600; color:var(--ink-0); }
.nav .mark { width:20px; height:20px; border-radius:5px; background:var(--acc); color:#fff;
  font:700 13px/20px var(--mono); text-align:center; }
.nav .tabs { display:flex; gap:2px; }
.nav .tabs button { padding:5px 11px; border-radius:6px; color:var(--ink-2); font-size:13px; }
.nav .tabs button[aria-current="true"] { background:var(--srf-3); color:var(--ink-0); }
.nav .tabs button:hover { color:var(--ink-0); }
.nav .spacer { flex:1; }
.switcher { display:flex; align-items:center; gap:7px; padding:5px 9px; border-radius:6px;
  background:var(--srf-2); border:1px solid var(--line-2); font-size:13px; color:var(--ink-1); }
.switcher select { background:none; border:0; padding:0; font-size:13px; }

main { flex:1; min-height:0; overflow:auto; }
.pad { padding:18px 20px; }
h1 { font:600 17px/1.3 var(--sans); color:var(--ink-0); margin-bottom:3px; }
h2 { font:600 13px/1.3 var(--sans); color:var(--ink-2); text-transform:uppercase; letter-spacing:.07em; margin:20px 0 9px; }
.sub { color:var(--ink-3); font-size:13px; }

/* ---- evidence markers (locked: glyphs) ------------------------------------------
   The four states must be distinguishable without colour. The glyph carries the
   meaning; colour only reinforces it. */
.m { display:inline-block; width:16px; text-align:center; font-family:var(--mono); font-size:13px; }
.m-ok  { color:var(--ok); }
.m-weak{ color:var(--weak); }
.m-no  { color:var(--no); }
.m-unk { color:var(--unk); opacity:.65; }

table.grid { border-collapse:collapse; width:100%; font-size:13px; }
table.grid th { text-align:left; font-weight:500; color:var(--ink-3); font-size:11.5px;
  text-transform:uppercase; letter-spacing:.05em; padding:7px 9px; border-bottom:1px solid var(--line-2);
  position:sticky; top:0; background:var(--srf-0); z-index:1; }
table.grid td { padding:0 9px; height:var(--row); border-bottom:1px solid var(--line-1); color:var(--ink-1); }
table.grid tbody tr:hover td { background:var(--srf-1); }
table.grid tr[aria-selected="true"] td { background:var(--acc-wash); }
td.num { text-align:right; font-family:var(--mono); font-size:12.5px; color:var(--ink-1); }
td.cap { text-align:center; }

.btn { padding:6px 12px; border-radius:6px; background:var(--srf-3); border:1px solid var(--line-2);
  color:var(--ink-0); font-size:13px; }
.btn:hover { background:var(--srf-4); }
.btn-primary { background:var(--acc); border-color:transparent; color:#fff; }
.btn-primary:hover { background:#6b76d8; }
.btn:disabled { opacity:.45; cursor:not-allowed; }

.card { background:var(--srf-1); border:1px solid var(--line-2); border-radius:9px; padding:14px 16px; }
.flag { display:inline-flex; align-items:center; gap:5px; padding:1px 7px; border-radius:4px;
  background:var(--no-wash); color:#f19191; font-size:11.5px; font-family:var(--mono); }
.chip { display:inline-flex; align-items:center; gap:5px; padding:2px 8px; border-radius:5px;
  background:var(--srf-3); color:var(--ink-2); font-size:11.5px; }
.empty { padding:40px 20px; text-align:center; color:var(--ink-3); }
.empty strong { display:block; color:var(--ink-1); margin-bottom:5px; font-weight:500; }
.legend { color:var(--ink-3); font-size:12px; display:flex; gap:14px; align-items:center; }
.bar { height:3px; background:var(--srf-3); border-radius:2px; overflow:hidden; }
/* Driven by transform, not width: this bar animates continuously through a live scan
   while the same screen is streaming events into the DOM, and animating a layout property
   there makes the browser re-lay-out the page on every frame. scaleX composites instead. */
.bar > i { display:block; height:100%; width:100%; background:var(--acc);
  transform-origin:left center; transform:scaleX(0); transition:transform .25s ease; }
.split { display:grid; grid-template-columns:minmax(0,1fr) 420px; gap:0; height:100%; }
.split > .left { min-width:0; overflow:auto; border-right:1px solid var(--line-2); }
.split > .right { min-width:0; overflow:auto; background:var(--srf-0); }
.toolbar { display:flex; gap:8px; align-items:center; padding:9px 14px; border-bottom:1px solid var(--line-2); background:var(--srf-0); position:sticky; top:0; z-index:2; }
.selbar { position:sticky; bottom:0; display:flex; align-items:center; gap:12px; padding:9px 14px;
  background:var(--srf-2); border-top:1px solid var(--line-2); font-size:13px; }

/* ---- S2 scan setup: the estimate rail and the model picker ----------------
   Classes are s2-scoped on purpose: this screen shares app.css with four others
   and a generic `.note`/`.warn` here would silently restyle them. */
.s2-rail { padding:14px; display:flex; flex-direction:column; gap:16px; min-height:100%; }
.tiers { display:flex; gap:2px; background:var(--srf-2); border:1px solid var(--line-2);
  border-radius:7px; padding:2px; }
.tiers button { flex:1; padding:6px 4px; border-radius:5px; color:var(--ink-2); font-size:13px; }
.tiers button[aria-pressed="true"] { background:var(--srf-4); color:var(--ink-0); }
.tiers button:hover { color:var(--ink-0); }
.est { display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  padding:6px 0; border-bottom:1px solid var(--line-1); }
.est:last-of-type { border-bottom:0; }
.est .k { color:var(--ink-3); font-size:12px; }
.est .v { font-family:var(--mono); font-size:15px; color:var(--ink-0); }
.est .v.mute { color:var(--ink-3); font-size:13px; }
/* A caution is not an error: the run still starts, it just stops early. */
.s2-note { color:var(--ink-3); font-size:12px; line-height:1.5; }
.s2-fields { display:grid; grid-template-columns:1fr 1fr; gap:9px 10px; }
.s2-field { display:flex; flex-direction:column; gap:3px; }
.s2-field > span { color:var(--ink-3); font-size:11.5px; }
.s2-field input { width:100%; font-family:var(--mono); font-size:12.5px; }
.s2-field.wide { grid-column:1 / -1; }
.s2-paste { width:100%; font-family:var(--mono); font-size:12.5px; background:var(--srf-2);
  border:1px solid var(--line-2); border-radius:5px; padding:7px 9px; color:var(--ink-0);
  resize:vertical; }
/* The spending gate must stay reachable however long the rail grows. */
.s2-go { position:sticky; bottom:-14px; margin-top:auto; padding:11px 0 13px;
  background:var(--srf-0); box-shadow:0 -1px 0 var(--line-2); }
/* Filtered-out rows stay visible: seeing what a glob removed is the point. */
table.grid tr.out td { opacity:.36; }
td.why { color:var(--ink-3); font-size:11.5px; font-family:var(--mono); text-align:right;
  white-space:nowrap; }

/* ---- S3 scan progress -------------------------------------------------------------
   A scan is mostly silence — only a couple of probes ever log — so everything that
   moves here (elapsed, per-row seconds, spinner) exists to keep quiet from reading
   as hung. Nothing in this block encodes an evidence state; that is marker()'s job. */
.s3 { display:flex; flex-direction:column; height:100%; }
.s3-head { flex-wrap:wrap; }
.s3-head .who { display:flex; flex-direction:column; gap:1px; min-width:0; }
.s3-head .who b { color:var(--ink-0); font-size:13px; font-weight:600; }
.s3-body { flex:1; min-height:0; height:auto; }
.s3-tools { height:48px; padding:0 14px; }
.s3-table thead th { top:48px; }
.s3-strip { display:flex; align-items:baseline; gap:12px; padding:9px 14px; border-bottom:1px solid var(--line-1); }
.s3-strip .k { font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3); }

.counters { display:flex; background:var(--srf-0); border-bottom:1px solid var(--line-2); }
.counter { flex:1; min-width:0; padding:8px 14px; border-right:1px solid var(--line-1); }
.counter:last-child { border-right:0; }
.counter .k { display:block; font-size:10.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3); }
.counter .v { font-size:15px; color:var(--ink-0); }
.counter .v.dim { color:var(--ink-3); }

.bannerslot { display:flex; flex-direction:column; gap:8px; }
.bannerslot:not(:empty) { padding:12px 14px; border-bottom:1px solid var(--line-2); }
.s3-note b, .warnband b, .bannerslot .err b { display:block; color:var(--ink-0); font-weight:600; margin-bottom:2px; }

.spin { display:inline-block; width:9px; height:9px; border-radius:50%; vertical-align:-1px;
  border:1.5px solid var(--line-3); border-top-color:var(--acc-ink); animation:spin .9s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

.s3-state { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; color:var(--ink-3); }
.s3-state.run { color:var(--acc-ink); }
.s3-state.fail { color:#f19191; }
.s3-row td.model { color:var(--ink-0); }
.s3-row.pending td.model { color:var(--ink-2); }
.s3-row.done td, .s3-row.error td { animation:resolve .18s ease-out; }
@keyframes resolve { from { opacity:.35 } to { opacity:1 } }
.s3-detail td { background:var(--srf-1); padding:10px 14px 12px; height:auto; }
.caps { display:flex; gap:11px; flex-wrap:wrap; align-items:center; font-size:12px; color:var(--ink-2); }
.caps .c { display:inline-flex; align-items:center; gap:1px; }

.railhead { position:sticky; top:0; z-index:1; display:flex; align-items:center; gap:8px;
  padding:9px 12px; background:var(--srf-0); border-bottom:1px solid var(--line-2);
  font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-3); }
.lograil { display:flex; flex-direction:column; gap:5px; padding:10px 12px;
  font-family:var(--mono); font-size:11.5px; color:var(--ink-2); }
.logline { display:flex; gap:8px; }
.logline .t { flex:0 0 auto; color:var(--ink-3); }
.logline .who { flex:0 0 auto; color:var(--acc-ink); }

@media (prefers-reduced-motion:reduce) {
  .spin { animation:none; }
  .s3-row.done td, .s3-row.error td { animation:none; }
}

/* ---- S4 capability matrix -------------------------------------------------
   The densest screen in the product: both axes stick, the model column is
   frozen, and hairlines mark where one capability group ends and the next
   begins so a vertical sweep of glyphs stays readable. */
.mx { display:flex; flex-direction:column; height:100%; }
.mx-head { display:flex; align-items:flex-start; gap:18px; flex-wrap:wrap;
  padding:13px 14px 11px; border-bottom:1px solid var(--line-1); }
.mx-meta { display:flex; gap:12px; flex-wrap:wrap; align-items:center; color:var(--ink-3); font-size:12px; margin-top:4px; }
.mx-meta b { color:var(--ink-2); font-weight:500; }
.mx-tools { flex-wrap:wrap; }
.mx-tools input[type="search"] { width:190px; }
.mx-scroll { flex:1; min-height:0; overflow:auto; }
.mx-note { color:var(--ink-3); font-size:12px; line-height:1.5; }
.filters { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }

.tog { padding:4px 9px; border-radius:5px; border:1px solid var(--line-2);
  background:var(--srf-2); color:var(--ink-2); font-size:12px; }
.tog:hover:not(:disabled) { color:var(--ink-0); }
.tog[aria-pressed="true"] { background:var(--acc-wash); border-color:var(--acc); color:var(--ink-0); }
.tog:disabled { opacity:.4; cursor:not-allowed; }

/* Two header rows: the group row is a quiet index over the loud one below it. */
table.mxg thead tr.grp th { top:0; z-index:3; padding:6px 9px 2px; color:var(--ink-3);
  font-size:10px; letter-spacing:.11em; text-align:center; border-bottom:0; opacity:.72; }
table.mxg thead tr.lbl th { top:22px; z-index:3; padding:2px 9px 7px; color:var(--ink-2); }
table.mxg th.caph { text-align:center; }
table.mxg th.numh { text-align:right; }
table.mxg th button { color:inherit; font:inherit; letter-spacing:inherit; text-transform:inherit;
  white-space:nowrap; }
table.mxg th button:hover { color:var(--ink-1); }

/* group separators */
table.mxg th.gs, table.mxg td.gs { border-left:1px solid var(--line-2); }

/* frozen model column — the sticky cell needs an opaque ground of its own */
table.mxg th.mdl, table.mxg td.mdl { position:sticky; left:0; background:var(--srf-0);
  min-width:300px; text-align:left; }
table.mxg th.mdl { z-index:4; }
table.mxg td.mdl { z-index:1; }
table.mxg tbody tr:hover td.mdl { background:var(--srf-1); }
table.mxg tbody tr[aria-selected="true"] td.mdl {
  background:linear-gradient(var(--acc-wash),var(--acc-wash)) var(--srf-0); }
table.mxg tbody tr { cursor:pointer; }
table.mxg tbody tr.cur td { box-shadow:inset 0 1px 0 var(--acc-ink), inset 0 -1px 0 var(--acc-ink); }
.mdl-cell { display:flex; align-items:center; gap:8px; min-width:0; flex-wrap:nowrap; }
.mdl-cell .mname { color:var(--ink-0); font-family:var(--mono); font-size:12.5px; max-width:250px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mdl-cell input[type="checkbox"] { flex:0 0 auto; }
/* a flag never wraps: the row rhythm is what makes a vertical sweep of glyphs readable */
.mdl-cell .flag { flex:0 0 auto; white-space:nowrap; }
table.mxg td.num { white-space:nowrap; }
/* a `~` in front of a number is a qualifier, not a column of its own */
table.mxg td.num .m { width:auto; margin-right:1px; }
/* slack belongs at the right edge, not between a model name and its glyphs */
table.mxg th.fill, table.mxg td.fill { width:100%; border-left:0; padding:0; }

.skel { display:block; height:9px; border-radius:3px; background:var(--srf-3); }
table.skels tbody tr { cursor:default; }

/* ---- S9 selection: model picker left, build manifest right ----------------
   Both panes own their scrolling so the picker's filters and the manifest's
   Copy/Download pair stay put; a sticky thead inside a pane that also scrolls
   its own toolbar would collide with it. */
.sel-left, .sel-right { display:flex; flex-direction:column; overflow:hidden; }
.sel-list { flex:1; min-height:0; overflow:auto; }
.sel-tools { flex-direction:column; align-items:stretch; gap:9px; position:static; }
.sel-row { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.chip-btn { border:1px solid var(--line-2); cursor:pointer; }
.chip-btn:hover:not(:disabled) { color:var(--ink-0); }
.chip-btn[aria-pressed="true"] { background:var(--acc-wash); color:var(--acc-ink); border-color:transparent; }
.chip-btn:disabled { opacity:.4; cursor:not-allowed; }
td.tick, th.tick { width:30px; padding-right:0; }
td.tick input { display:block; margin:0; }
table.grid tbody tr { cursor:pointer; }
.sel-skel { height:var(--row); border-bottom:1px solid var(--line-1); padding:12px 9px; }

.sel-head { flex:0 0 auto; padding:13px 16px 12px; border-bottom:1px solid var(--line-2); }
.sel-head h1 { display:flex; align-items:baseline; gap:8px; }
/* The manifest never blanks while it rebuilds — a stale number with a visible
   "measuring" tell is honest; an empty pane looks like nothing is selected. */
.sel-busy { color:var(--ink-3); font-size:13px; opacity:0; transition:opacity .12s ease; }
.sel-busy[data-on="1"] { opacity:1; }
.sel-actions { display:flex; gap:8px; margin-top:11px; }
.sel-actions .sub { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11.5px; }
.btn[aria-disabled="true"] { opacity:.45; }
.sel-scope { flex:0 0 auto; display:flex; flex-wrap:wrap; gap:3px 12px; padding:8px 16px;
  border-bottom:1px solid var(--line-1); color:var(--ink-3); font-size:11.5px; }
.sel-body { flex:1; min-height:0; overflow:auto; padding:0 16px 26px; }
.sel-body h2 { margin:18px 0 8px; }

.sel-toggles { display:flex; flex-direction:column; }
.sel-toggle { display:grid; grid-template-columns:15px 1fr auto; align-items:center; gap:10px;
  padding:6px 8px; border-radius:6px; font-size:13px; color:var(--ink-1); cursor:pointer; }
.sel-toggle:hover { background:var(--srf-1); }
.sel-toggle input { margin:0; }
.sel-toggle .why { display:block; color:var(--ink-3); font-size:11.5px; }
.sel-toggle .size { font-family:var(--mono); font-size:11.5px; color:var(--ink-2); white-space:nowrap; }
.sel-toggle[data-off="1"] { color:var(--ink-3); }
.sel-toggle[data-off="1"] .size { color:var(--ink-3); opacity:.7; }

.sel-kv { display:grid; grid-template-columns:1fr auto; gap:5px 12px; font-size:13px; }
.sel-kv dt { color:var(--ink-3); }
.sel-kv dd { font-family:var(--mono); font-size:12.5px; color:var(--ink-0); text-align:right; }

/* The artifact surface: high-density content given reading room (§7). */
.sel-sample { background:var(--srf-1); border:1px solid var(--line-2); border-radius:8px;
  padding:11px 13px; font-family:var(--mono); font-size:11.5px; line-height:1.6;
  color:var(--ink-1); white-space:pre-wrap; overflow-wrap:anywhere; max-height:44vh; overflow:auto; }
.sel-fold { border:1px solid var(--line-1); border-radius:8px; padding:7px 11px;
  background:var(--srf-1); font-size:12px; margin-bottom:9px; }
.sel-fold summary { cursor:pointer; color:var(--ink-2); }
.sel-fold pre { margin-top:9px; font-family:var(--mono); font-size:11.5px; line-height:1.6;
  white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink-2); max-height:26vh; overflow:auto; }
.sel-fold + .sel-sample { margin-top:0; }

/* Tablet: the panes stack, Copy/Download still work (§6 parity table). */
@media (max-width:1279px) {
  .split { grid-template-columns:minmax(0,1fr); height:auto; }
  .sel-left, .sel-right { overflow:visible; }
  .sel-list, .sel-body { overflow:visible; }
}

/* ---- S1 endpoints -------------------------------------------------------- */
.ep-head { display:flex; align-items:flex-start; gap:10px; margin-bottom:14px; }
.ep-spacer { flex:1; }
.ep-hero { max-width:780px; margin:38px auto 0; }
.ep-lede { color:var(--ink-2); font-size:13.5px; margin:7px 0 18px; max-width:60ch; }
.ep-add { margin-bottom:16px; }
.ep-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1.1fr) minmax(0,1fr); gap:12px; }
.ep-field { display:flex; flex-direction:column; gap:5px; min-width:0; }
.ep-field > span:first-child { font-size:11px; color:var(--ink-3); text-transform:uppercase; letter-spacing:.06em; }
.ep-field input { width:100%; }
.ep-actions { display:flex; align-items:center; gap:9px; margin-top:12px; }
.ep-note { color:var(--ink-3); font-size:12px; }
.ep-count { margin-right:8px; }
.ep-result { margin-top:13px; padding-top:12px; border-top:1px solid var(--line-1);
  display:flex; flex-direction:column; gap:8px; font-size:13px; }
.ep-kv { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.ep-kv > b { flex:0 0 84px; font-weight:400; font-size:11px; color:var(--ink-3);
  text-transform:uppercase; letter-spacing:.06em; }
.ep-models { display:inline-flex; flex-wrap:wrap; gap:5px; align-items:center; }
.ep-name { color:var(--ink-0); font-weight:500; }
.ep-sub { color:var(--ink-3); font-family:var(--mono); font-size:12px; }
.ep-id { color:var(--ink-3); font-family:var(--mono); font-size:11.5px; }
.ep-gap { margin-left:6px; }
.ep-gapv { margin:6px 0 12px; }
.ep-mini { padding:2px 8px; font-size:12px; }
.ep-row-actions { display:flex; gap:6px; justify-content:flex-end; }
.ep-row-actions .btn { background:none; border-color:transparent; color:var(--ink-3); }
table.grid tr:hover .ep-row-actions .btn, .ep-row-actions .btn:focus-visible {
  background:var(--srf-3); border-color:var(--line-2); color:var(--ink-0); }
table.grid tr:hover .ep-row-actions .ep-danger, .ep-row-actions .ep-danger:focus-visible { color:#f19191; }
table.grid th.num { text-align:right; }
.ep-danger { color:#f19191; }
.ep-danger:hover:not(:disabled) { background:var(--no-wash); border-color:rgba(235,87,87,.4); }
.ep-foot { margin-top:16px; padding-top:11px; border-top:1px solid var(--line-1);
  color:var(--ink-3); font-size:12px; }
.ep-skel { height:10px; border-radius:3px;
  background:linear-gradient(90deg,var(--srf-2),var(--srf-3),var(--srf-2)) 0 0/200% 100%;
  animation:ep-shimmer 1.2s linear infinite; }
@keyframes ep-shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }
.ep-scrim { position:fixed; inset:0; z-index:60; background:rgba(3,3,4,.6);
  display:flex; align-items:center; justify-content:center; }
.ep-modal { width:min(470px,92vw); }
.ep-modal p { font-size:13px; color:var(--ink-1); }
.sel-lede { max-width:58ch; margin:0 auto; }

/* ---- S4 · models the key was refused for -----------------------------------
   Not a fifth evidence state. The cells stay `·` because nothing was measured;
   the badge is what separates "we asked and were turned away" from "nobody ever
   asked". Deliberately grey rather than the red of `.flag`: a refusal is not the
   model misbehaving, it is our key not reaching it. Dimming the glyph cells keeps
   eighteen rows of dots from burying the six that carry an answer. */
.mx-denied { flex:0 0 auto; white-space:nowrap; display:inline-flex; align-items:center;
  padding:1px 7px; border-radius:4px; border:1px solid var(--line-2);
  background:var(--srf-3); color:var(--ink-2); font-size:11.5px; font-family:var(--mono); }
.mx-denied-meta { color:var(--ink-2); }
table.mxg tbody tr.mx-denied-row td.cap, table.mxg tbody tr.mx-denied-row td.num { opacity:.38; }
.mx-abort b { display:block; color:var(--ink-0); font-weight:600; margin-bottom:2px; }
.mx-abort-sub { margin-top:4px; color:#e7a7a7; }

/* ---- S2 · reachability: access, not capability ------------------------------
   A reach result is not a capability verdict, so it gets its own block rather
   than dressing itself up as one. It borrows the four glyphs — the product's
   vocabulary for how sure we are — and always prints its own word beside them,
   because `✗` alone cannot tell "refused this key" from "not callable". */
.s2-reach { margin:12px 14px 0; padding:11px 13px; border:1px solid var(--line-2);
  border-radius:9px; background:var(--srf-1); display:flex; flex-direction:column; gap:8px; }
.s2-reach-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.s2-reach-head b { color:var(--ink-0); font-size:13px; font-weight:600; }
.s2-reach .legend { flex-wrap:wrap; gap:6px 14px; }
.s2-reach-act { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
/* An undetermined pass is information, not a warning — blue, never amber. */
.s2-info b { color:var(--ink-0); font-weight:600; }
td.reach { white-space:nowrap; font-size:12px; color:var(--ink-2); }
td.reach .m { width:auto; margin-right:5px; }
/* A run option is a sentence with a box in front of it, not a numeric field. */
.s2-check { grid-column:1 / -1; display:grid; grid-template-columns:15px 1fr; gap:9px;
  align-items:start; cursor:pointer; }
.s2-check input { margin:2px 0 0; width:auto; }
.s2-check b { display:block; color:var(--ink-1); font-size:12.5px; font-weight:500; margin-bottom:2px; }

/* ---- S3 · refusals and the reachability pre-pass ---------------------------
   A model the key was refused for is not "done" and not "failed": nothing was
   measured, so its capabilities read · exactly like a model nobody probed. The
   only cure is to say why, loudly, wherever those dots appear. */
.s3-state.deny { color:var(--weak); }
.s3-row.refused td.model { color:var(--ink-1); }
.s3-row.refused td.model, .s3-row.refused td:first-child { white-space:nowrap; }
.s3-row.refused td { border-left:0; }
.s3-row.refused td:first-child { box-shadow:inset 2px 0 0 var(--weak); }
.s3-deny-count .v { color:var(--weak); }
.s3-deny-why { display:flex; align-items:center; gap:8px; min-width:0; }
.s3-deny-why .sub { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.s3-deny-list { display:flex; flex-direction:column; gap:4px; margin-top:8px; }
.s3-deny-item { display:flex; align-items:baseline; gap:8px; font-size:12px; min-width:0; }
.s3-deny-item code { flex:0 0 auto; color:var(--ink-0); font-family:var(--mono); font-size:11.5px; }
.s3-deny-item .sub { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.s3-deny-why .flag, .s3-deny-item .flag { flex:0 0 auto; white-space:nowrap; }

/* ---- S6 · flags: the trust screen -------------------------------------------
   Severity is carried by the section header and by the order, never by colour:
   the four glyphs already own the palette, and a red halo around a limit
   disagreement would read as loudly as a substitution. Access refusals sit
   below a rule with their own header, because a refused key is not a lie. */
.s6 { display:flex; flex-direction:column; height:100%; }
.s6-head { display:flex; align-items:flex-start; gap:18px; flex-wrap:wrap;
  padding:14px 16px 12px; border-bottom:1px solid var(--line-2); }
.s6-meta { display:flex; gap:12px; flex-wrap:wrap; align-items:center; color:var(--ink-3); font-size:12px; margin-top:4px; }
.s6-meta b { color:var(--ink-2); font-weight:500; }
.s6-note { color:var(--ink-3); font-size:12px; line-height:1.5; }
.s6-scroll { flex:1; min-height:0; overflow:auto; }
.s6-tools { flex-wrap:wrap; }
.s6-tools input[type="search"] { width:190px; }
.s6-seg { display:flex; gap:2px; background:var(--srf-2); border:1px solid var(--line-2);
  border-radius:7px; padding:2px; }
.s6-seg button { padding:4px 10px; border-radius:5px; color:var(--ink-2); font-size:12.5px; white-space:nowrap; }
.s6-seg button[aria-pressed="true"] { background:var(--srf-4); color:var(--ink-0); }
.s6-seg button:hover { color:var(--ink-0); }

.s6-sec { position:sticky; top:0; z-index:1; display:flex; align-items:baseline; gap:10px;
  padding:9px 16px; background:var(--srf-0); border-bottom:1px solid var(--line-2); }
.s6-sec h2 { font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-1);
  font-weight:600; white-space:nowrap; }
.s6-sec .n { font-family:var(--mono); font-size:11.5px; color:var(--ink-3); white-space:nowrap; }
.s6-sec .why { flex:1; min-width:0; color:var(--ink-3); font-size:12px; line-height:1.45; }
.s6-sep { margin-top:30px; border-top:1px solid var(--line-3); }
.s6-why { padding:11px 16px; color:var(--ink-2); font-size:12.5px; line-height:1.6;
  background:var(--srf-1); border-bottom:1px solid var(--line-1); }

.s6-row { padding:9px 16px; border-bottom:1px solid var(--line-1); cursor:pointer; }
.s6-row:hover { background:var(--srf-1); }
.s6-row.cur { background:var(--srf-2); box-shadow:inset 2px 0 0 var(--acc); }
.s6-row[data-open="1"] { background:var(--srf-1); }
.s6-line { display:flex; align-items:center; gap:9px; flex-wrap:wrap; min-height:20px; }
.s6-model { font-family:var(--mono); font-size:12.5px; color:var(--ink-0); padding:0; }
.s6-model:hover { color:var(--acc-ink); }
.s6-cap { font-family:var(--mono); font-size:11.5px; color:var(--ink-3); }
.s6-say { color:var(--ink-1); font-size:13px; }
.s6-trip { display:flex; flex-wrap:wrap; gap:4px 18px; margin-top:5px; padding-left:25px; }
.s6-kv { display:inline-flex; align-items:baseline; gap:6px; min-width:0; max-width:100%; }
.s6-kv i { flex:0 0 auto; font-style:normal; font-size:10.5px; text-transform:uppercase;
  letter-spacing:.06em; color:var(--ink-3); }
.s6-kv b { font-family:var(--mono); font-size:11.5px; font-weight:400; color:var(--ink-1);
  overflow-wrap:anywhere; }
.s6-detail { margin:9px 0 0 25px; color:var(--ink-2); font-size:12.5px; line-height:1.6; max-width:88ch; }
.s6-raw { margin:9px 0 0 25px; padding:9px 11px; background:var(--srf-2); border:1px solid var(--line-1);
  border-radius:7px; font-family:var(--mono); font-size:11.5px; line-height:1.6; color:var(--ink-2);
  max-height:300px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
.s6-acts { display:flex; gap:8px; margin:10px 0 2px 25px; }
.s6-deny { cursor:default; }
.s6-deny:hover { background:none; }

.s6-empty { padding:26px 16px; }
.s6-empty .card { max-width:760px; margin:0 auto; }
.s6-verdict { color:var(--ink-0); font-size:15px; line-height:1.55; }
.s6-checked { margin-top:14px; display:flex; flex-direction:column; }
.s6-check { display:grid; grid-template-columns:150px minmax(0,1fr); gap:12px;
  padding:8px 0; border-top:1px solid var(--line-1); }
.s6-check > i { font-style:normal; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em;
  color:var(--ink-3); padding-top:2px; }
.s6-check b { display:block; color:var(--ink-1); font-size:12.5px; font-weight:400; line-height:1.55; }
.s6-check .s6-note { display:block; margin-top:2px; }

.s6-foot { margin:30px 0 0; padding:14px 16px 26px; border-top:1px solid var(--line-2);
  color:var(--ink-3); font-size:12px; line-height:1.6; }
.s6-foot b { display:block; color:var(--ink-2); font-weight:500; margin-bottom:3px; }
.s6-miss { margin-top:5px; color:var(--ink-2); }

/* ---- S8 settings ------------------------------------------------------------
   One scrolling column of four titled sections, each with its own dirty state and
   its own Save. Everything is s8-prefixed: five other screens append to this file
   and a generic `.warn` or `.state` here would silently restyle them. */
.s8 { max-width:880px; }
.s8-head { margin-bottom:6px; }
.s8-sec { margin-top:24px; }
.s8-sectop { display:flex; align-items:baseline; gap:10px; }
.s8-sectop h2 { margin:0 0 9px; }
.s8-state { margin-left:auto; font-size:12px; color:var(--ink-3); }
.s8-say { color:var(--ink-2); font-size:12.5px; line-height:1.6; max-width:76ch; }
.s8-say + .s8-say { margin-top:7px; }
.s8-say b { color:var(--ink-1); font-weight:500; }
.s8-hint { display:block; color:var(--ink-3); font-size:11.5px; line-height:1.5; white-space:pre-line; }
.s8-rule { border:0; border-top:1px solid var(--line-1); margin:13px 0; }
.s8-lab { font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-3);
  margin:15px 0 7px; }
.s8-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 14px; }
.s8-f { display:flex; flex-direction:column; gap:4px; min-width:0; }
.s8-f > label { font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-3); }
.s8-f input { width:100%; font-family:var(--mono); font-size:12.5px; }
/* An unusable ceiling is refused at the field, not at save time. */
.s8-f[data-bad="1"] input { border-color:var(--no); }
.s8-f[data-bad="1"] .s8-hint { color:#f19191; }
/* A caveat about a control that will not fire is not an error — it is the thing to read. */
.s8-warn b { display:block; color:#f0dcae; font-weight:600; margin-bottom:2px; }
.s8-acts { display:flex; align-items:center; gap:9px; margin-top:14px; flex-wrap:wrap; }
.s8-tog { display:grid; grid-template-columns:16px minmax(0,1fr); gap:10px; align-items:start;
  padding:11px 0; border-top:1px solid var(--line-1); cursor:pointer; }
.s8-tog input { margin:2px 0 0; }
.s8-tog b { display:block; color:var(--ink-0); font-weight:500; font-size:13px; margin-bottom:2px; }
.s8-src { display:flex; flex-direction:column; }
.s8-srcrow { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding:5px 0;
  border-top:1px solid var(--line-1); font-size:12.5px; color:var(--ink-2); }
.s8-srcrow:first-child { border-top:0; }
.s8-srcrow b { color:var(--ink-0); font-weight:500; font-family:var(--mono); font-size:12px; min-width:96px; }
.s8-srcrow .s8-mono { margin-left:auto; }
.s8-ep { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 14px; align-items:start;
  padding:13px 0; border-top:1px solid var(--line-1); }
.s8-ep:first-child, .s8-rule + .s8-ep { border-top:0; padding-top:2px; }
.s8-name { color:var(--ink-0); font-weight:500; }
.s8-mono { font-family:var(--mono); font-size:11.5px; color:var(--ink-3); overflow-wrap:anywhere; }
.s8-keyrow { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:9px; }
.s8-keyrow input { flex:1 1 260px; min-width:0; font-family:var(--mono); font-size:12.5px; }
.s8-fp { display:inline-flex; align-items:baseline; gap:6px; font-family:var(--mono);
  font-size:11.5px; color:var(--ink-2); }
.s8-fp b { color:var(--ink-0); font-weight:500; }
/* Where the fifth thing gets said: a `·` that is a refusal, not a gap in the work. */
.s8-dots { display:flex; align-items:flex-start; gap:7px; margin-top:9px;
  font-size:12px; line-height:1.55; color:var(--ink-3); }
.s8-dots .m { flex:0 0 auto; }
.s8-kv { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 14px; font-size:12.5px; }
.s8-kv dt { color:var(--ink-3); }
.s8-kv dd { font-family:var(--mono); font-size:12px; color:var(--ink-1); overflow-wrap:anywhere; }
.s8-kv dd .s8-hint { font-family:var(--sans); margin-top:2px; }
.s8-scrim { position:fixed; inset:0; z-index:60; background:rgba(3,3,4,.6);
  display:flex; align-items:center; justify-content:center; }
.s8-modal { width:min(520px,92vw); }
.s8-modal input { width:100%; font-family:var(--mono); font-size:12.5px; }
.s8-skel { height:11px; border-radius:3px; background:var(--srf-3); }
@media (max-width:820px) { .s8-grid { grid-template-columns:1fr; } }

/* ---- S5 model detail ------------------------------------------------------
   The hero screen: one scroll column of evidence with a group rail on the left
   and the probe drawer on the right. Every class is d5-scoped — five other
   screens share this file, and a generic `.row`/`.band` here would restyle them.
   Nothing in this block encodes an evidence state; that is marker()'s job. */
.d5 { display:flex; flex-direction:column; height:100%; }

.d5-head { flex:0 0 auto; padding:11px 16px 0; background:var(--srf-0);
  border-bottom:1px solid var(--line-2); }
.d5-top { display:flex; gap:18px; align-items:flex-start; flex-wrap:wrap; }
.d5-crumb { display:flex; align-items:center; gap:10px; margin-bottom:3px; }
.d5-link { color:var(--ink-3); font-size:12px; }
.d5-link:hover { color:var(--ink-1); }
.d5-jump { display:inline-flex; align-items:center; gap:6px; color:var(--ink-3); font-size:11.5px; }
.d5-jump select { padding:2px 6px; font-size:12px; max-width:260px; }
/* The model id is the title of the page, so it is set in the mono face the ids
   are read in everywhere else — a name copied out of a config, not a heading. */
.d5-id { font:600 16px/1.35 var(--mono); color:var(--ink-0); overflow-wrap:anywhere; }
.d5-meta { display:flex; gap:12px; flex-wrap:wrap; align-items:center; color:var(--ink-3);
  font-size:12px; margin-top:4px; }
.d5-meta b { color:var(--ink-2); font-weight:500; }
.d5-stale { color:#e3cb8c; }
.d5-live { display:inline-flex; align-items:center; gap:6px; color:var(--acc-ink); }
.d5-headright { display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
.d5-actions { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.d5-actions .btn { padding:4px 10px; font-size:12.5px; }

/* headline strip: the five markers, then the two numbers, then the tally */
.d5-headline { display:flex; gap:16px; align-items:center; flex-wrap:wrap;
  padding:9px 0 10px; margin-top:9px; border-top:1px solid var(--line-1); }
.d5-hl { display:inline-flex; align-items:baseline; gap:4px; font-size:12.5px; color:var(--ink-2); }
.d5-hl-tally { margin-left:auto; color:var(--ink-3); font-size:12px; }
/* A measured ceiling and a lower bound must never look alike: the bound keeps its
   `~` marker, prints a `≥`, and is set in the dimmer ink. */
.d5-num { font-family:var(--mono); font-size:12.5px; color:var(--ink-1); }
.d5-num.is-measured { color:var(--ink-0); }
.d5-num.is-bound { color:var(--weak); }
.d5-tag { font-size:10.5px; color:var(--ink-3); text-transform:uppercase; letter-spacing:.06em; }

/* banners: the things a reader must not scroll past */
.d5-bands { flex:0 0 auto; display:flex; flex-direction:column; gap:8px; padding:11px 16px;
  border-bottom:1px solid var(--line-2); }
/* Folded into the shared callout block below — this was a second, independent
   implementation of the same shape, which is how two of them drifted apart. */
.d5-band { font-size:13px; line-height:1.5; }
.d5-band.tight { margin:9px 0; font-size:12.5px; }
.d5-band b { display:block; color:var(--ink-0); font-weight:600; margin-bottom:2px; }
.d5-bandnote { color:var(--ink-2); font-size:12px; margin-top:5px; }
.d5-bandacts { display:flex; gap:8px; flex-wrap:wrap; margin-top:9px; }
.d5-quote { font-family:var(--mono); font-size:12px; }
/* `.d5-band b` is a block heading; the status inside a sentence must stay inline. */
.d5-status { color:var(--ink-0); font-weight:600; }
.d5-conflicts { display:flex; flex-direction:column; gap:3px; margin-top:5px; }
.d5-conflict { text-align:left; font-size:12.5px; color:var(--ink-1); padding:1px 0; }
.d5-conflict:hover { color:var(--ink-0); text-decoration:underline; }
.d5-claim { color:var(--ink-3); font-size:11.5px; }

.d5-tools { flex:0 0 auto; display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  padding:8px 16px; border-bottom:1px solid var(--line-2); background:var(--srf-0); }
.d5-seg { display:flex; gap:2px; background:var(--srf-2); border:1px solid var(--line-2);
  border-radius:7px; padding:2px; }
.d5-seg button { display:inline-flex; align-items:center; gap:6px; padding:4px 11px;
  border-radius:5px; color:var(--ink-2); font-size:12.5px; }
.d5-seg button[aria-pressed="true"] { background:var(--srf-4); color:var(--ink-0); }
.d5-seg button:hover { color:var(--ink-0); }
.d5-segn { font-family:var(--mono); font-size:11px; color:var(--ink-3); }
.d5-note { color:var(--ink-3); font-size:12px; }

.d5-body { flex:1; min-height:0; display:grid; grid-template-columns:150px minmax(0,1fr) 400px; }

.d5-rail { overflow:auto; border-right:1px solid var(--line-1); padding:8px 0 20px;
  background:var(--srf-0); }
.d5-railhead, .d5-railfoot { padding:4px 12px; font-size:10px; text-transform:uppercase;
  letter-spacing:.08em; color:var(--ink-3); }
.d5-railfoot { margin-top:8px; opacity:.7; }
.d5-rail button { display:flex; align-items:center; gap:6px; width:100%; text-align:left;
  padding:5px 12px; font-size:12.5px; color:var(--ink-2); }
.d5-rail button:hover { background:var(--srf-1); color:var(--ink-0); }
.d5-rail button[aria-current="true"] { color:var(--ink-0); box-shadow:inset 2px 0 0 var(--acc); }
.d5-railname { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.d5-railn { font-family:var(--mono); font-size:11px; color:var(--ink-3); }
.d5-railwarn { color:#f19191; font-size:11px; }

.d5-rows { overflow:auto; min-width:0; padding-bottom:40vh; }
.d5-sec { padding:0 0 4px; }
.d5-sechead { position:sticky; top:0; z-index:2; display:flex; align-items:baseline; gap:10px;
  flex-wrap:wrap; padding:9px 14px 7px; background:var(--srf-0);
  border-bottom:1px solid var(--line-2); }
.d5-sechead h2 { margin:0; }
.d5-secnote { color:var(--ink-3); font-size:11.5px; }
.d5-hints { display:flex; gap:8px; flex-wrap:wrap; margin-left:auto; }
.d5-hint { display:inline-flex; align-items:baseline; gap:5px; padding:1px 7px; border-radius:4px;
  background:var(--srf-2); border:1px solid var(--line-1); color:var(--ink-2); font-size:11px; }
.d5-hint b { color:var(--ink-1); font-weight:500; }
.d5-hint.guess { opacity:.75; }
.d5-guess { color:var(--ink-3); font-size:10.5px; font-style:italic; }
.d5-claimok { color:var(--ok); font-size:10.5px; }

table.d5-grid { table-layout:fixed; }
table.d5-grid td { vertical-align:middle; }
table.d5-grid td.cap { width:34px; }
.d5-cap { width:236px; }
.d5-label { color:var(--ink-0); font-size:13px; }
.d5-badge { margin-left:7px; padding:0 5px; border-radius:3px; background:var(--srf-3);
  color:var(--ink-3); font-size:10px; text-transform:uppercase; letter-spacing:.05em; }
/* A table cell must stay a table cell: `display:flex` here silently drops the
   column out of the fixed layout and the meta column falls off the right edge. */
.d5-val { width:132px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d5-val .d5-tag { margin-left:6px; }
.d5-fp { color:var(--ink-2); }
/* Detail placement is locked to the third column for this screen: one clamped line
   in the row, the whole sentence in the drawer and in the tooltip. */
.d5-detail { max-width:0; }
.d5-detailwrap { display:flex; align-items:center; gap:7px; min-width:0; }
.d5-sentence { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; color:var(--ink-2); font-size:12.5px; }
.d5-detailwrap .flag { flex:0 0 auto; white-space:nowrap; }
.d5-metacol { width:162px; text-align:right; font-family:var(--mono); font-size:11px;
  color:var(--ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
tr.d5-row { cursor:pointer; }
tr.d5-row.ghost td { opacity:.45; }
tr.d5-row.open td { background:var(--acc-wash); }
tr.d5-row.cur td { box-shadow:inset 0 1px 0 var(--acc-ink), inset 0 -1px 0 var(--acc-ink); }
tr.d5-row.conflict td.d5-detail { color:#f4b4b4; }
.d5-refused { max-width:58ch; margin:0 auto; }
.d5-solo { flex:1; min-height:0; overflow:auto; display:flex; align-items:flex-start;
  justify-content:center; padding-top:6vh; }
.d5-errwrap { max-width:640px; margin:6vh auto 0; }

.d5-drawer { display:flex; flex-direction:column; min-width:0; overflow:hidden;
  border-left:1px solid var(--line-2); background:var(--srf-0); }
.d5-drawerhead { flex:0 0 auto; display:flex; align-items:flex-start; gap:10px; padding:10px 14px;
  border-bottom:1px solid var(--line-2); }
.d5-drawerhead b { color:var(--ink-0); font-size:13px; }
.d5-drawerid { display:block; color:var(--ink-3); overflow-wrap:anywhere; }
.d5-close { color:var(--ink-3); font-size:13px; margin-left:auto; }
.d5-close:hover { color:var(--ink-0); }
.d5-drawerbody { flex:1; min-height:0; overflow:auto; padding:12px 14px 40px; }
.d5-verdict { display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; }
.d5-verdictword { color:var(--ink-0); font-size:13px; }
.d5-why { color:var(--weak); font-size:12px; }
.d5-drawerdetail { margin-top:8px; color:var(--ink-1); font-size:12.5px; line-height:1.6; }
.d5-drawernote { margin-top:6px; color:var(--ink-3); font-size:12px; line-height:1.5; }
.d5-kvs { display:grid; grid-template-columns:1fr auto; gap:3px 12px; margin-top:12px; font-size:12.5px; }
.d5-kv { display:contents; }
.d5-kvs dt { color:var(--ink-3); }
.d5-kvs dd { font-family:var(--mono); font-size:11.5px; color:var(--ink-1); text-align:right; }
.d5-drawersec { margin-top:16px; }
.d5-drawersec h3 { font:600 10.5px/1.3 var(--sans); text-transform:uppercase; letter-spacing:.08em;
  color:var(--ink-3); margin-bottom:7px; }
.d5-hintrow { padding:6px 0; border-bottom:1px solid var(--line-1); font-size:11.5px; color:var(--ink-2); }
.d5-hintrow .d5-claimok, .d5-hintrow .d5-guess { margin-left:6px; }
.d5-trail { display:flex; flex-direction:column; gap:8px; }
.d5-probe { background:var(--srf-1); border:1px solid var(--line-1); border-radius:7px; padding:8px 10px; }
.d5-probehead { display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; }
.d5-probeid { color:var(--ink-0); }
.d5-probestats { color:var(--ink-3); font-size:11px; font-family:var(--mono); }
.d5-probeage { margin-left:auto; color:var(--ink-3); font-size:11px; }
.d5-probedetail { margin-top:5px; color:var(--ink-2); font-size:12px; line-height:1.5; }
.d5-errclass { margin-top:6px; margin-right:5px; font-family:var(--mono); }
.d5-raw { margin-top:7px; font-size:11.5px; }
.d5-raw summary { cursor:pointer; color:var(--ink-3); }
.d5-raw pre { margin-top:6px; padding:8px; border-radius:6px; background:var(--srf-0);
  border:1px solid var(--line-1); font-family:var(--mono); font-size:11px; line-height:1.55;
  color:var(--ink-2); white-space:pre-wrap; overflow-wrap:anywhere; max-height:40vh; overflow:auto; }
.d5-empty { color:var(--ink-3); font-size:12.5px; line-height:1.6; }
.d5-empty strong { display:block; color:var(--ink-1); font-weight:500; margin-bottom:4px; }
.d5-legendbox { margin-top:16px; padding-top:12px; border-top:1px solid var(--line-1); }
.d5-legendbox .legend { flex-wrap:wrap; gap:10px; }
.d5-legendbox p { margin-top:9px; color:var(--ink-3); font-size:12px; line-height:1.6; }

/* Narrow: the rail folds away and the drawer moves under the rows (§6 parity). */
@media (max-width:1180px) {
  .d5-body { grid-template-columns:minmax(0,1fr); overflow:auto; }
  .d5-rail { display:none; }
  .d5-rows, .d5-drawer { overflow:visible; }
  .d5-drawer { border-left:0; border-top:1px solid var(--line-2); }
}

/* ---- S7 history & diff -----------------------------------------------------
   Two panes: a rail of scans on the left that has to make an aborted run look
   different from a complete one at a glance, and the ranked change list on the
   right. Everything s7-scoped; the only shared classes borrowed here are the
   ones already shared by four screens (.warnband, .s3-note, .spin, .skel). */
.s7 { display:grid; grid-template-columns:320px minmax(0,1fr); height:100%; }
.s7-rail { min-width:0; overflow:auto; border-right:1px solid var(--line-2); background:var(--srf-0); }
.s7-main { min-width:0; display:flex; flex-direction:column; overflow:hidden; }
.s7-solo { max-width:640px; margin:26px auto 0; }

/* rail rows -------------------------------------------------------------- */
.s7-scan { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; align-items:start;
  padding:9px 11px; border-bottom:1px solid var(--line-1); cursor:pointer; }
.s7-scan:hover { background:var(--srf-1); }
.s7-scan[data-role] { background:var(--acc-wash); box-shadow:inset 2px 0 0 var(--acc); }
.s7-ab { display:flex; flex-direction:column; gap:3px; }
.s7-ab button { width:21px; height:21px; border-radius:5px; border:1px solid var(--line-2);
  background:var(--srf-2); color:var(--ink-3); font:600 10px/1 var(--mono); }
.s7-ab button:hover:not(:disabled) { color:var(--ink-0); }
.s7-ab button[aria-pressed="true"] { background:var(--acc); border-color:transparent; color:#fff; }
.s7-ab button:disabled { opacity:.3; cursor:not-allowed; }
.s7-id { color:var(--ink-0); }
.s7-when { color:var(--ink-1); font-size:12.5px; margin-top:2px; }
.s7-sub { display:flex; flex-wrap:wrap; gap:4px 9px; margin-top:3px;
  color:var(--ink-3); font-family:var(--mono); font-size:11px; }

/* A stopped scan must never read as a finished one: diffing against it invents
   removals for every model it never reached. */
.s7-badge { padding:1px 6px; border-radius:4px; font-family:var(--mono); font-size:10.5px; white-space:nowrap; }
.s7-badge.ok { background:var(--srf-3); color:var(--ink-3); }
.s7-badge.run { background:var(--acc-wash); color:var(--acc-ink); }
.s7-badge.abort { background:var(--weak-wash); color:#e3cb8c; }

/* main pane -------------------------------------------------------------- */
.s7-head { display:flex; align-items:flex-start; gap:18px; flex-wrap:wrap;
  padding:13px 14px 11px; border-bottom:1px solid var(--line-1); }
.s7-pair { display:flex; align-items:center; gap:9px; margin-top:4px; font-size:13px; }
.s7-pair code { color:var(--ink-0); font-size:13px; }
.s7-tools { flex-wrap:wrap; }
.s7-tools input[type="search"] { width:230px; }
.s7-body { flex:1; min-height:0; overflow:auto; }
.s7-foot { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:8px 14px;
  background:var(--srf-2); border-top:1px solid var(--line-2); font-size:12px; color:var(--ink-3); }
.s7-note { color:var(--ink-3); font-size:12px; line-height:1.5; }

/* bands ------------------------------------------------------------------ */
.s7-band { border:1px solid var(--line-2); border-radius:9px; background:var(--srf-1); overflow:hidden; }
.s7-band-pad { margin:12px 14px; }
.s7-band > header { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
  padding:9px 12px 8px; border-bottom:1px solid var(--line-1); }
.s7-band > header b { color:var(--ink-0); font-size:13px; font-weight:600; }
.s7-band-foot { padding:8px 12px; border-top:1px solid var(--line-1); }
/* The shared banner rule covers .s3-note/.warnband headings but not a bare .err. */
.err.s7-band-pad b { display:block; color:var(--ink-0); font-weight:600; margin-bottom:2px; }
.s7-band-actions { padding:10px 12px; border-top:1px solid var(--line-1); }
/* The evidence downgrade is the change this screen exists for; it gets the
   warning ground, and it is the only band that does. */
.s7-band.down { background:var(--weak-wash); border-color:rgba(242,201,76,.4); }
.s7-band.down > header b { color:#f0d795; }
.s7-band.down > header, .s7-band.down .s7-band-foot, .s7-band.down .s7-band-actions { border-color:rgba(242,201,76,.22); }

.s7-refusals { display:flex; flex-direction:column; }
.s7-refusal { display:flex; align-items:baseline; gap:9px; flex-wrap:wrap; padding:6px 12px;
  border-bottom:1px solid var(--line-1); }
.s7-refusal:last-child { border-bottom:0; }
.s7-refusal code { color:var(--ink-0); }

.s7-presences { display:flex; flex-wrap:wrap; gap:6px; padding:10px 12px; }
.s7-presence { display:inline-flex; align-items:center; gap:6px; padding:2px 9px; border-radius:5px;
  font-family:var(--mono); font-size:12px; border:1px solid var(--line-2); background:var(--srf-2); }
.s7-presence b { font-family:var(--mono); }
.s7-presence.in { color:var(--ink-0); border-color:rgba(76,183,130,.38); background:var(--ok-wash); }
.s7-presence.out { color:var(--ink-0); border-color:rgba(235,87,87,.34); background:var(--no-wash); }

/* the change table ------------------------------------------------------- */
table.s7g { table-layout:fixed; }
table.s7g th { background:var(--srf-0); }
table.s7g th.s7-caph { width:36%; }
table.s7g th.s7-sideh { width:22%; }
table.s7g th.s7-arrh { width:22px; }
table.s7g th.s7-tagh { width:104px; }
table.s7g th.s7-exph { width:26px; }
table.s7g tbody tr.s7-row { cursor:pointer; }
table.s7g tbody tr.s7-row.cur td { box-shadow:inset 0 1px 0 var(--acc-ink), inset 0 -1px 0 var(--acc-ink); }
/* A model header is a quiet index over the loud rows below it. */
table.s7g tr.s7-grp th { position:sticky; top:29px; z-index:2; padding:7px 9px 5px;
  background:var(--srf-2); border-bottom:1px solid var(--line-2); text-transform:none;
  letter-spacing:0; display:table-cell; }
table.s7g.s7g-band tr.s7-grp th { top:0; }
.s7-gname { color:var(--ink-0); font-family:var(--mono); font-size:12.5px; margin-right:10px; }
table.s7g tr.s7-grp th .s7-badge { margin-left:9px; }

td.s7-cap { overflow:hidden; padding-top:5px; padding-bottom:5px; }
/* The band cuts across models, so its rows name one — on its own line, because a model id
   and a capability id fighting for the same line is how this column started wrapping. */
.s7-inline-model { color:var(--ink-2); font-family:var(--mono); font-size:11.5px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:1px; }
.s7-capline { display:flex; align-items:baseline; gap:8px; min-width:0; }
.s7-cap-label { color:var(--ink-0); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.s7-cap-id { color:var(--ink-3); font-family:var(--mono); font-size:11px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
td.s7-side { white-space:nowrap; overflow:hidden; }
.s7-sidecell { display:inline-flex; align-items:baseline; gap:4px; max-width:100%; }
.s7-word { color:var(--ink-2); font-size:12.5px; }
.s7-value { color:var(--ink-0); font-family:var(--mono); font-size:12px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
td.s7-arr { color:var(--ink-3); text-align:center; padding:0; }
.s7-delta { margin-left:8px; font-family:var(--mono); font-size:11px; }
.s7-delta.up { color:var(--ok); }
.s7-delta.down { color:#f19191; }
td.s7-tag { text-align:right; }
.s7-kind { padding:1px 7px; border-radius:4px; font-family:var(--mono); font-size:11px;
  background:var(--srf-3); color:var(--ink-2); white-space:nowrap; }
.s7-kind.k-downgrade { background:var(--weak-wash); color:#f0d795; }
.s7-kind.k-lost { background:var(--no-wash); color:#f19191; }
.s7-kind.k-upgrade, .s7-kind.k-gained { background:var(--ok-wash); color:#8fd7b4; }
td.s7-exp { text-align:right; color:var(--ink-3); }
.s7-caret { font-size:10px; }

/* the "why did it move" trail */
tr.s7-exprow td { height:auto; padding:0; background:var(--srf-1); }
.s7-probes { display:grid; grid-template-columns:1fr 1fr; gap:0; }
.s7-probeside { padding:10px 12px 12px; border-right:1px solid var(--line-1); min-width:0; }
.s7-probeside:last-child { border-right:0; }
.s7-probehead { display:flex; align-items:center; color:var(--ink-3); font-size:11px;
  text-transform:uppercase; letter-spacing:.07em; margin-bottom:7px; }
.s7-probehead code { text-transform:none; letter-spacing:0; margin-left:5px; color:var(--ink-2); }
.s7-probe { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; padding:4px 0;
  border-bottom:1px solid var(--line-1); }
.s7-probe:last-child { border-bottom:0; }
.s7-probe-id { color:var(--acc-ink); }
.s7-probe-detail { flex:1 0 100%; color:var(--ink-2); font-size:12px; line-height:1.5; }

/* Tablet: the rail stacks above the diff (§6 parity table — read-only either way). */
@media (max-width:1023px) {
  .s7 { grid-template-columns:minmax(0,1fr); height:auto; }
  .s7-rail { border-right:0; border-bottom:1px solid var(--line-2); max-height:40vh; }
  .s7-main { overflow:visible; }
  .s7-body { overflow:visible; }
  .s7-probes { grid-template-columns:1fr; }
}

/* ---- auth: sign in, first-run onboarding, the identity end of the nav -------
   One centred card on the app's own ground — no nav above it, because every tab
   on that nav leads to a 401 and an endpoint switcher over a sign-in form
   advertises exactly what it will not show you. Everything au-prefixed: six
   other screens share this file. */
.au-wrap { max-width:560px; margin:0 auto; padding:8vh 20px 40px; }
.au-card { padding:26px 28px 24px; }
.au-card h1 { font-size:19px; margin-bottom:6px; }
.au-brand { display:flex; align-items:center; gap:8px; margin-bottom:18px;
  font-weight:600; color:var(--ink-0); }
/* `.mark` is styled under `.nav`; off the nav it needs its own tile. */
.au-brand .mark { width:20px; height:20px; border-radius:5px; background:var(--acc); color:#fff;
  font:700 13px/20px var(--mono); text-align:center; }
.au-lede { color:var(--ink-2); font-size:13px; line-height:1.6; max-width:56ch; }
.au-say { color:var(--ink-2); font-size:12.5px; line-height:1.65; max-width:62ch; margin-top:11px; }
.au-say b { color:var(--ink-1); font-weight:500; }
.au-note { display:block; color:var(--ink-3); font-size:11.5px; line-height:1.55; }
.au-quiet { margin-top:10px; color:var(--ink-2); }
.au-gapv { margin:12px 0; }
.au-pre { margin-top:8px; padding:10px 12px; border-radius:7px; background:var(--srf-0);
  border:1px solid var(--line-1); font-family:var(--mono); font-size:11.5px; line-height:1.7;
  color:var(--ink-2); white-space:pre-wrap; overflow-wrap:anywhere; }

/* The passkey is the prominent path; the password is the fallback under the rule.
   The order is the security argument, made in layout. */
.au-passkey { margin-top:20px; }
.au-big { width:100%; padding:11px 14px; font-size:14px; }
.au-passkey .au-note { margin-top:8px; max-width:52ch; }
.au-nokey { margin-top:20px; padding:9px 12px; border-radius:6px; background:var(--srf-2);
  border:1px solid var(--line-1); color:var(--ink-2); font-size:12px; line-height:1.55; }

.au-or { display:flex; align-items:center; gap:12px; margin:20px 0 16px; color:var(--ink-3);
  font-size:10.5px; text-transform:uppercase; letter-spacing:.09em; }
.au-or::before, .au-or::after { content:""; flex:1; height:1px; background:var(--line-2); }

.au-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.au-say + .au-fields, .au-lede + .au-fields { margin-top:16px; }
.au-fields.au-one { grid-template-columns:1fr; }
.au-field { display:flex; flex-direction:column; gap:5px; min-width:0; }
.au-field > span:first-child { font-size:11px; color:var(--ink-3);
  text-transform:uppercase; letter-spacing:.06em; }
.au-field input { width:100%; }
.au-field .au-note { margin-top:1px; }
.au-acts { display:flex; align-items:center; gap:10px; margin-top:16px; flex-wrap:wrap; }
.au-err { margin-top:14px; }
.au-err .au-note { margin-top:7px; max-width:60ch; }
.au-skel { height:11px; border-radius:3px; margin-top:14px;
  background:linear-gradient(90deg,var(--srf-2),var(--srf-3),var(--srf-2)) 0 0/200% 100%;
  animation:ep-shimmer 1.2s linear infinite; }
.au-foot { max-width:56ch; margin:16px auto 0; color:var(--ink-3); font-size:12px; line-height:1.6; }
.au-link { color:var(--acc-ink); font-size:inherit; padding:0; }
.au-link:hover { text-decoration:underline; }

/* Identity in the nav: unobtrusive on purpose. It answers "who am I signed in as"
   and offers the way out; it is not a menu and it is not a feature. */
.au-who { display:flex; align-items:center; gap:9px; padding-left:12px;
  border-left:1px solid var(--line-2); }
.au-user { color:var(--ink-2); font-size:12.5px; max-width:150px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.au-out { color:var(--ink-3); font-size:12.5px; padding:4px 6px; border-radius:5px; }
.au-out:hover { color:var(--ink-0); background:var(--srf-3); }

@media (max-width:640px) { .au-fields { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .au-skel { animation:none; } }

/* Callouts.
   §6 of the spec requires severity to be readable without colour — the same reason the
   capability markers are glyphs rather than coloured dots. That was previously carried by
   a coloured rule down the left edge, which works but is also the most recognisable tell
   of a generated interface. A leading glyph does the same job strictly better: it survives
   greyscale, it survives colour-blindness, and it reads aloud to a screen reader, which a
   border never did. The glyph is attached per class, so no markup changed. */
.err, .s2-warn, .s3-note, .warnband, .s2-info, .s8-warn, .s8-note, .d5-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  background: var(--srf-2);
  border: 1px solid var(--line-2);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-1);
}
.err::before, .s2-warn::before, .s3-note::before, .warnband::before,
.s2-info::before, .s8-warn::before, .s8-note::before, .d5-band::before {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  opacity: .9;
}
.err::before,
.d5-band.bad::before  { content: '✗'; color: var(--no); }
.s2-warn::before,
.warnband::before,
.s8-warn::before,
.d5-band.warn::before { content: '!'; color: var(--weak); }
.s3-note::before,
.s2-info::before,
.s8-note::before      { content: 'i'; color: var(--acc-ink); }
/* A plain .d5-band with neither modifier is a neutral statement, not a warning. */
.d5-band::before      { content: '·'; color: var(--ink-3); }

.err,
.d5-band.bad  { background: var(--no-wash);   border-color: rgba(235,87,87,.28);  color: #f4b4b4; }
.s2-warn,
.warnband,
.s8-warn,
.d5-band.warn { background: var(--weak-wash); border-color: rgba(242,201,76,.26); color: #e6d09a; }
.s3-note,
.s2-info,
.s8-note      { background: var(--acc-wash);  border-color: rgba(94,106,210,.30); }
