/* ═══════════════════════════════════════════════════════════════════════
   PAGE ARCHETYPES — the layout layer
   Consumes tokens.reference.css. Read PATTERNS.md for the rules behind
   each block; this file is the implementation, that file is the contract.

   Nothing here is page-specific. If you find yourself adding a
   .credentials-* or .pir-* rule to this file, it belongs in the page —
   and if three pages need it, it belongs in PATTERNS.md first.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. CHROME BAR ─────────────────────────────────────────────────── */
/* ⚠ THE BAR'S HEIGHT WAS AN ACCIDENT OF ITS CONTENTS, three heights across the
   app. PATTERNS §2 fixes the PADDING (11px) and lets the height fall out of
   whatever is tallest inside, so the bar measured:

     34px  11px type only
     37px  once `.pa-chrome-div`, the deliberate 14px meta separator, appeared
     47px  once a 24px `.pa-btn` landed in the actions slot — which 24 of the
           55 templates fill, and §2 explicitly provides for ("secondary
           buttons → one primary button")

   Three heights is not a rounding error: /admin/audit_log and /admin/ai-evals
   sat 10px taller than /admin/worker_tasks and /system-health, on pages that
   share a nav and read as one surface. Reported 5 Aug.

   So the HEIGHT is the constant now and the padding follows from it:
   `--chrome-h` (shared.css, beside --gutter and --band-y), with the vertical
   padding dropped because `align-items: center` already centres every child
   inside whatever height the bar has. A fixed height rather than a min-height
   on purpose — §16 of PATTERNS is explicit that headers and detail bands wrap
   while "rows and chrome clip", so the bar holding its height IS the specified
   behaviour, not a risk to work around. */
.pa-chrome {
  display: flex; align-items: center; gap: 16px;
  height: var(--chrome-h);
  padding: 0 var(--gutter);
  background: var(--void-2);
  border-bottom: 1px solid var(--rule);
}
.pa-chrome-name {
  font: 600 var(--text-xs)/1 var(--font-mono);
  letter-spacing: .24em; text-transform: uppercase;
}
.pa-chrome-div { width: 1px; height: 14px; background: var(--rule-strong); }
.pa-chrome-meta { font: var(--text-xs)/1 var(--font-mono); color: var(--ink-4); }
/* The nav route, ahead of the page name and quieter than it. §2 fixes the
   name as the bar's first strong element; the route is context for it, so it
   is the same face a step down in ink and carries its own separator rather
   than borrowing the 1px divider that belongs after the name. */
.pa-chrome-route {
  font: var(--text-xs)/1 var(--font-mono);
  letter-spacing: .24em; text-transform: uppercase; color: var(--ink-4);
}
.pa-chrome-route::after { content: '\00a0\203a'; color: var(--ink-4); }
/* The one line saying what the page is for. It outlived the title band, and
   sits under the chrome rule rather than in the bar: it is a sentence, and a
   sentence in an 11px tracked mono row is unreadable. */
.pa-chrome-sub {
  font-size: var(--text-md); color: var(--ink-3);
  margin: 0; padding: 14px var(--gutter) 0;
}
.pa-flex-spacer { flex: 1; }

/* Freshness: a 6px SQUARE, never a circle, always followed by words.
   `flex: none` alone was the fossil of an assumption that the dot is a direct
   flex child of .pa-chrome. It never is — all 19 emitters nest it inside
   `<span class="pa-chrome-meta">`, where it computes to display:inline, and an
   inline element ignores width and height entirely. The square was drawn at
   zero by nine templates before anyone measured it. */
.pa-dot { display: inline-block; vertical-align: middle;
  width: 6px; height: 6px; flex: none; background: var(--ok);
  margin-inline-end: var(--space-1); }
.pa-dot--warn { background: var(--sev-high); }
.pa-dot--down { background: var(--sev-critical); }

/* ── 2. PAGE HEADER — deleted, deliberately. ─────────────────────────
   There is no title band. §2 puts the page name in the chrome bar and the
   lede's 2px amber rule is meant to open the page directly beneath it; a 26px
   header between them pushed that rule down and printed the name twice. The
   subtitle went with it — the lede's first line is the same sentence, with a
   number in it. Owner decision 2026-07-29, enforced by
   tests/test_chrome_and_order_contract.
   .pa-head / .pa-head-sub / .pa-head-actions and their entries in the link
   rule below are gone with the markup; a rule with no emitter is drift. */

/* ── 3. EYEBROWS ───────────────────────────────────────────────────── */
.pa-eyebrow {
  display: block;
  font: var(--t-eyebrow);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 12px;
}
/* ⚠ THE `-text` VARIANT, AND THE LINE BELOW HAS ALWAYS SAID SO. `--danger`
   never appears here: the danger eyebrow took `--sev-critical-text` from the
   day it was written, because a coloured eyebrow is a WORD and the fill token
   is held to the 3.0 UI ratio. The accent eyebrow was the one that never got
   the same reading — it took `--amber`, which measures 3.67:1 on the light
   ground, and it is the opening line of 50 blocks across 26 templates: every
   lede band, every section head, every pane head.

   `--amber` stays registered at 3.0 for what it is registered FOR — the lede
   band's 2px rule, the blind-spot numerals' edge, dots and fills. Not for the
   word on top of them. See shared.css's --amber-text note for the value and
   the measurements; scripts/lint_contrast pins both pairs.

   Nothing changes on dark: --amber-text resolves to --amber there. */
.pa-eyebrow--accent { color: var(--amber-text); }
.pa-eyebrow--danger { color: var(--sev-critical-text); }
/* An eyebrow opening a SECOND block inside one pane section — the AI writeup
   under "what to do". It needs air above it that the first eyebrow in a
   section does not. A class rather than an inline margin so the next page to
   render a sub-block cannot pick a different number. */
.pa-eyebrow--spaced { margin-top: var(--space-3h); }

/* ── 4. THE LEDE BAND ──────────────────────────────────────────────── */
/* The ONLY band with --void-2 ground AND a 2px amber top rule. Reserved. */
.pa-lede-band {
  display: grid;
  grid-template-columns: 1fr var(--side-col);
  gap: var(--side-gap);
  align-items: stretch;
  padding: var(--band-y-lg) var(--gutter) var(--band-y);
  background: var(--void-2);
  border-top: 2px solid var(--amber);
  border-bottom: 2px solid var(--rule-strong);
}
.pa-lede-band--wide { grid-template-columns: 1fr; }

/* ── Mobile: the band is a COLUMN, not two. ─────────────────────────────────
   `--side-col` is a fixed 340px, so the band demands 340 + 48 + the lede's
   measure regardless of the box it is given. Measured 2026-09-01 at a 375px
   viewport: 20 of 23 pages rendered 659-1206px wide, the Feed 47% off-screen
   with `.pa-signature` starting at x=374 — the whole provenance panel outside
   the viewport, reachable only by dragging the page sideways.

   992px, not 768: it matches `.cn-layout` and `.pa-canvas-grid`, this file's
   other two-column collapses, and 768 is too late anyway — at that width the
   1fr track still only gets ~316px and `.pa-lede` sets 38px type into about
   eight characters a line.

   `minmax(0, 1fr)` rather than a bare `1fr`, for the reason spelled out at the
   `.cn-layout` override below: a track's automatic minimum is its content's
   min-content width, so `1fr` is a floor and not a cap, and one long
   unbreakable value re-opens the very overflow this rule closes.

   `.pa-signature` moves its rule from the inline-start edge to the top: once
   stacked, a left hairline is a rule pointing at nothing. */
@media (max-width: 992px) {
  .pa-lede-band { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .pa-signature {
    border-inline-start: 0; padding-inline-start: 0;
    border-top: 1px solid var(--rule); padding-top: var(--space-6);
  }
}
.pa-lede-main { display: flex; flex-direction: column; }

.pa-lede {
  font: var(--t-lede);
  letter-spacing: -.015em;
  color: var(--paper);
  max-width: 17em;
  text-wrap: pretty;
  margin: 0 0 18px;
}
.pa-lede-support {
  font: var(--t-prose-tight); color: var(--ink-2);
  max-width: var(--measure-prose); text-wrap: pretty; margin: 0 0 20px;
}

/* The three figures. Three. Not four. */
.pa-because {
  display: flex; gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: auto;       /* pins the row to the bottom of the band */
}
.pa-because > * {
  flex: 1; padding: 14px 20px;
  border-inline-end: 1px solid var(--rule);
}
.pa-because > *:first-child { padding-inline-start: 0; }
.pa-because > *:last-child { padding-inline-end: 0; border-inline-end: 0; }

/* ── Mobile: the three figures stack. ───────────────────────────────────────
   Three cells share the band's content box, so on a phone they measured 92,
   128 and 91px on the Feed — a figure plus a full explanatory sentence in
   about twelve characters a line. Nothing is clipped and the page does not
   overflow; it is simply unreadable at that measure.

   This is the SAME change `.pa-signature .pa-because` already makes, and
   deliberately so — that block's comment is "`.pa-because` keeps its identity;
   only its axis changes." A second, different mobile treatment would give one
   component two stacked forms. The signature variant is more specific and
   keeps its own padding where both apply.

   640px, not the 560px both row systems restructure at: those are CONTAINER
   widths, and this is a viewport query, so it takes a value from the canonical
   set in CLAUDE.md §10.7. It is also where the measure actually fails — at
   480px the cells are still only ~139px, which is the same defect one step
   less severe. */
@media (max-width: 640px) {
  .pa-because { flex-direction: column; }
  .pa-because > * {
    flex: none; padding: var(--space-3) 0;
    border-inline-end: 0; border-bottom: 1px solid var(--rule);
  }
  .pa-because > *:last-child { border-bottom: 0; padding-bottom: 0; }
}
.pa-fig { font: var(--t-figure); color: var(--ink); }
.pa-fig--crit { color: var(--sev-critical-text); }
.pa-fig--warn { color: var(--sev-high-text); }
/* The key under a toned figure row (templates/_fig_key.html, 2026-10-12):
   what red and amber mean, because each page sets its own thresholds and no
   page said so. The swatches are the figures' own text tokens, drawn as the
   item's ::before so no empty element sits in the band. */
.pa-fig-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3);
  margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--ink-3); }
.pa-fig-key-i { display: inline-flex; align-items: center; gap: var(--space-1h); }
.pa-fig-key-i--crit::before, .pa-fig-key-i--warn::before { content: ''; width: 8px; height: 8px; flex: none; }
.pa-fig-key-i--crit::before { background: var(--sev-critical-text); }
.pa-fig-key-i--warn::before { background: var(--sev-high-text); }
.pa-fig-note { font-size: var(--text-sm); line-height: 1.45; color: var(--ink-3); margin-top: 6px; max-width: var(--measure-note); }
/* The denominator, when a figure is a SHARE and printing only the numerator
   would overstate it. "18/680" is a different claim from "18". Set smaller and
   at --ink-4 so the numerator still carries the glance. */
.pa-fig-sub { font-size: 0.5em; color: var(--ink-4); letter-spacing: 0; }

/* The signature column: ONE figure, ending in a Reading: sentence. */
.pa-signature { border-inline-start: 1px solid var(--rule); padding-inline-start: 28px; }
.pa-signature-note {
  font: var(--t-note); color: var(--ink-3);
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule);
  display: inline-block; max-width: var(--measure-note);
}

/* The funnel: many→few. Last row is the number that costs something. */
.pa-funnel-row { display: grid; grid-template-columns: 1fr 62px; gap: 10px;
  align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rule); }
/* ⚠ THE TRACK AND THE RAMP WERE LITERALS AND THE TRACK WAS WHITE. On the light
   theme `rgba(255,255,255,.14)` is white-on-white — the unfilled part of every
   funnel bar vanished, so a 0.4% step and a 100% step looked equally long
   because only the fill was visible and the fill is what you are comparing it
   against. Mixed from --ink / --amber instead, both of which flip. (color-mix
   in a normal declaration resolves per element, so it does NOT hit the
   baked-derived-token trap in CLAUDE.md §10.6 — that is about custom
   properties declared on :root.)

   /vulnerabilities narrows FIVE times and the ramp had four levels. The new
   one is `--0`, extended DOWNWARD from the faint end — deepening the ramp at
   the top would have moved `--4` off --sev-critical, and seven pages use --4
   as the terminal "this is the row that costs you an afternoon" red. --1 and
   --2 are the same colours they were (#D97706 IS rgb(217,119,6), so the
   color-mix is the identical value in dark and a correct one in light). */
.pa-funnel-bar { height: 12px;
  background: color-mix(in srgb, var(--ink) 12%, transparent); }
.pa-funnel-bar--0 { background: color-mix(in srgb, var(--amber) 18%, transparent); }
.pa-funnel-bar--1 { background: color-mix(in srgb, var(--amber) 35%, transparent); }
.pa-funnel-bar--2 { background: color-mix(in srgb, var(--amber) 60%, transparent); }
.pa-funnel-bar--3 { background: var(--amber); }
.pa-funnel-bar--4 { background: var(--sev-critical); }
.pa-funnel-val { font: var(--t-value-lg); text-align: end; color: var(--ink-3); }
/* ── THE FUNNEL DRAWS ITSELF (2026-10-11) — the Command Centre's chart entry,
   in CSS, on the eighteen pages whose reading hero carries a funnel. Each bar
   grows from its start edge, top row first, --stagger-step apart and capped,
   exactly as the kit staggers a chart's marks. It is the most-seen data mark
   in the app and it is plain markup, so no script is involved.
     · `cyn-same-route` (set before first paint in app.py's head script) means
       a filter, a page turn or a reload: the bars are simply there. Replaying
       the entrance on every filter click is what the motion rule forbids.
     · Reduced motion and print: no animation; the bar is drawn at its width. */
@keyframes cyn-bar-grow { from { transform: scaleX(0); } }
.pa-funnel-bar { transform-origin: left center;
  animation: cyn-bar-grow var(--dur-enter) var(--ease-out-quart) both; }
[dir="rtl"] .pa-funnel-bar { transform-origin: right center; }
.pa-funnel-row:nth-child(2 of .pa-funnel-row) .pa-funnel-bar { animation-delay: calc(var(--stagger-step) * 1); }
.pa-funnel-row:nth-child(3 of .pa-funnel-row) .pa-funnel-bar { animation-delay: calc(var(--stagger-step) * 2); }
.pa-funnel-row:nth-child(4 of .pa-funnel-row) .pa-funnel-bar { animation-delay: calc(var(--stagger-step) * 3); }
.pa-funnel-row:nth-child(5 of .pa-funnel-row) .pa-funnel-bar { animation-delay: calc(var(--stagger-step) * 4); }
.pa-funnel-row:nth-child(6 of .pa-funnel-row) .pa-funnel-bar { animation-delay: calc(var(--stagger-step) * 5); }
.pa-funnel-row:nth-child(7 of .pa-funnel-row) .pa-funnel-bar { animation-delay: calc(var(--stagger-step) * 6); }
.pa-funnel-row:nth-child(n+8 of .pa-funnel-row) .pa-funnel-bar { animation-delay: var(--stagger-cap); }
.cyn-same-route .pa-funnel-bar { animation: none; }
@media (prefers-reduced-motion: reduce) { .pa-funnel-bar { animation: none; } }
@media print { .pa-funnel-bar { animation: none; } }
.pa-funnel-cap { font-size: var(--text-xs); color: var(--ink-4); padding-bottom: 8px; display: inline-block; max-width: var(--measure-note); }

/* ── 5. SECTIONS ───────────────────────────────────────────────────── */
.pa-section { border-top: 2px solid var(--rule-strong); }
.pa-section-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px var(--gutter) 12px;
  /* Wraps rather than widening the page: /techniques's head carried enough
     filter buttons to run 53px past a 1440 viewport (2026-10-11). Unchanged
     wherever the row fits. */
  flex-wrap: wrap; row-gap: var(--space-2);
}
.pa-section-head .pa-eyebrow { margin-bottom: 0; }
/* A long sub-line WRAPS ITS TEXT instead of taking the whole line and pushing
   the head's controls onto a row of their own (the head wraps, see above, and
   a flex line breaks on each item's basis — so the sub's max-content width
   decided it). The basis is a 32ch floor; the high grow factor gives it the
   free space ahead of `.pa-flex-spacer` (flex: 1), up to its measure, so a
   sub that fits still reads on one line.
   ⚠ 32ch is MEASURED, on the 17 pages whose heads carry controls, at 1024,
   1280 and 1440: no width wraps more controls than with no rule, and no sub
   runs past two lines. 24ch seated /lab's sub in a 184px column at 1024 (four
   lines, a taller head); 40ch and up wrapped MORE controls at 1024 than no
   rule. Wide screens only: at 375 any floor seats the sub beside the label
   and a 4-line sub becomes 6 — there it is better on a row of its own. */
@media (min-width: 993px) {
  .pa-section-head > .pa-section-sub { flex: 999 1 32ch; min-width: min(32ch, 100%); }
  /* A sub AFTER a spacer is meant to sit flush right (the story page's
     timeline and CVE heads); growing, it would take the spacer's room and
     start its text beside the label. */
  .pa-section-head > .pa-flex-spacer ~ .pa-section-sub { flex: 0 1 auto; min-width: 0; }
}
.pa-section-sub { font: var(--t-note); color: var(--ink-4); display: inline-block; max-width: var(--measure-note); }

/* ── Mobile: the section head WRAPS, and its controls come with it. ─────────
   `.pa-section-head` is a nowrap flex row, and on 15 pages it carries more
   than a label: a `.seg` toggle (210-432px), and on the toolbar pages a run of
   `.pa-select` filters. Measured 2026-09-01 at a 375px viewport, once the lede
   band and the orders row were collapsed this was the ONLY remaining cause of
   page overflow — attack_techniques asked for 1175px of children in a 301px
   box (five selects, a search field and a button), ground_truth 951px.

   ⚠ `.pa-section-sub` is NOT the offender, though it is the element that ends
   up furthest right and the one a naive "widest right edge" probe reports. It
   is 33-67px wide; it is PUSHED there by `.seg`. Widening the diagnostic to
   look at every child's own width, rather than the row's furthest edge, is
   what found the real cause.

   `.seg` wraps its own options rather than scrolling: a segmented control is a
   short list of states, and a hidden-scrollbar scroller is the defect already
   recorded against `.pa-chrome`, not a pattern to copy.

   The selects get `flex: 1 1 160px` so they are full-width on a phone and
   two-up once there is room, instead of shrinking to a width that truncates
   the option text — the failure `.cn-field` still has at 101px.

   `.pa-flex-spacer` is hidden: its whole job is to push a control cluster to
   the right of a single line, and once the row wraps it would claim a row of
   its own. */
@media (max-width: 992px) {
  .pa-section-head { flex-wrap: wrap; row-gap: var(--space-2h); }
  .pa-section-head > .pa-flex-spacer { display: none; }
  .seg { flex-wrap: wrap; }
  .pa-section-head > .pa-select,
  .pa-section-head > .pa-search { flex: 1 1 160px; min-width: 0; }
}
.pa-section-note { font-size: var(--text-sm); line-height: 1.55; color: var(--ink-3);
  margin: 0 var(--gutter) 14px; max-width: var(--measure-note); }

/* ⚠ THE GUTTER IS PER-ELEMENT HERE, NOT ON THE SECTION — `.pa-section` itself
   has no padding, because ledgers and charts inside it are deliberately
   full-bleed. `.pa-section-head` and `.pa-section-note` each carry
   `var(--gutter)` of their own, so anything ELSE dropped straight into a
   section renders flush at 0 and hangs 32px left of the label above it and
   the note below it.

   Measured on /profiles/<id>: the eyebrow and the note sat at x=32 while the
   malware pills and the activity tabs sat at x=0 — read as "the tabs and the
   pill boxes are misaligned", and correctly so. They were the only two
   section-level elements in the app without the inset.

   DIRECT children only. The same classes are used inside preview panes,
   where the pane supplies the inset and a second one would double it. */
.pa-section > .pa-chips,
.pa-section > .seg { margin-inline: var(--gutter); }

/* ── 6. ORDERS — the ranked few. Max three, or omit the band. ──────── */
.pa-order {
  display: grid;
  grid-template-columns: 74px 1fr 250px 178px;
  align-items: center;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--rule);
}
.pa-order-num { font: var(--t-order-num); color: var(--amber); }
/* ⚠ THE EMPTY STATE IS ONE CHILD IN A FOUR-COLUMN GRID, and it landed in the
   74px NUMERAL column. §9 says "rank at most three things, or rank nothing",
   and every page that takes the second branch writes a lone `.pa-order-body`
   with no numeral and no action — there is nothing to number and nothing to
   do. A grid child with no explicit placement goes in column one, so
   "Nothing is both stopped and holding work" wrapped one word per line down a
   74px ribbon with the other 90% of the row blank.

   Five pages had it: collection, dashboard, trends, attack_techniques,
   detection_engineering. So it is fixed HERE, and by the shape of the row
   rather than by a modifier class — `:only-child` IS the empty state, and a
   sixth page cannot forget to add it. */
.pa-order > .pa-order-body:only-child { grid-column: 1 / -1; padding-inline-end: 0; }
.pa-order-body { padding-inline-end: 32px; }
.pa-order-title { font: var(--t-row-title); margin-bottom: 5px; }
/* An order with no pills has three children — numeral, body, action, as on
   the Command Centre — and left the 250px pills track empty between the
   reason and the button. The body spans that track, and the action sits flush
   with the trailing edge (2026-10-14).
   ⚠ SCOPED TO THAT ROW SHAPE. Written as `.pa-order-act:last-child` it also
   matched every four-child row — /feed, /vulnerabilities, /techniques — and
   moved their buttons too, on pages that were never previewed. The sibling
   chain keeps it to the row whose body spans the empty track. */
.pa-order > .pa-order-body:nth-child(2):nth-last-child(2) { grid-column: 2 / 4; }
.pa-order > .pa-order-body:nth-child(2):nth-last-child(2) + .pa-order-act {
  justify-self: end; align-items: flex-end; }
/* Says WHY this is number one. Never repeats the title. */
.pa-order-why { font: var(--t-secondary); color: var(--ink-3); max-width: var(--measure-note); }
.pa-order-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pa-order-act { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.pa-order-state { font: var(--text-xs)/1 var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-4); }
/* "Not checked since 14 Jul" — the row still ranks, but the reading behind
   its claim is old. ⚠ The `-text` variant, not the fill token: this is a
   WORD and needs the 4.5:1 text ratio, which is the split the handoff calls
   out and which `--sev-high` alone does not guarantee at 10px. */
.pa-order-state--stale { color: var(--sev-high-text); }

/* ── Mobile: the ranked row is a STACK, not four columns. ───────────────────
   74 + 250 + 178 is 502px of fixed track before the title gets anything.
   Measured 2026-09-01 at a 375px viewport: once the lede band collapsed this
   became the widest offender on 12 of the 20 pages that still overflowed,
   with `.pa-order-act` landing at 811px on detection_engineering.

   The restructure is the one `.lrow` already performs at its 560px container
   gate — the numeral and the title pair up, and everything after them drops to
   a full-width row indented under the title. Keeping both row systems on one
   idiom is the point; a second shape here would be a third way to draw a row.

   The numeral track is `auto` rather than a smaller fixed value, because
   `--t-order-num` is a 40px display face and the content is zero-padded to two
   digits — the column has to size to its text, not to a number picked once.

   `.pa-order > .pa-order-body:only-child` keeps its `grid-column: 1 / -1` from
   above: the empty state is still one body spanning the row, and must stay
   that way (test_an_orders_band_with_nothing_to_rank_spans_the_row). It is
   never matched by `:nth-child(n+3)`, so the two rules cannot collide. */
@media (max-width: 992px) {
  .pa-order {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    row-gap: var(--space-3);
    column-gap: var(--space-4);
  }
  .pa-order-body,
  .pa-order > .pa-order-body:nth-child(2):nth-last-child(2) {
    grid-column: auto; padding-inline-end: 0; }
  .pa-order > :nth-child(n+3) { grid-column: 2 / -1; }
  .pa-order-act,
  .pa-order > .pa-order-body:nth-child(2):nth-last-child(2) + .pa-order-act {
    justify-self: start; flex-direction: row; flex-wrap: wrap; align-items: center; }
}

/* ── 7. THE LEDGER — ONE row system. ──────────────────────────────── */
.lrow-wrap { padding: 0 var(--gutter); }
.lrow-head, .lrow {
  display: grid;
  grid-template-columns: var(--lrow-cols);
  gap: 0 var(--col-gap);
}
/* The indent is load-bearing: it clears the severity spine. The HEADER
   MUST CARRY IT TOO or every label sits 11px left of its values. */
.lrow-head {
  padding: 8px 0 8px var(--row-indent);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.lrow-head > * {
  font: var(--t-colhead); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4);
}
.lrow {
  padding: var(--row-y) 0 var(--row-y) var(--row-indent);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;          /* never center — mixed sizes share a line */
  /* A ledger's density must not depend on what its CONTAINER sets for prose.
     Dropped into a .do-section (which sets 14px/21px for body copy) the rows
     inherited a 21px line-height and ran 47px against the 36px lock — with
     every cell measuring 11-13px, so nothing in the row explained it. The
     ledger states its own metric; the cell classes set their own from there. */
  line-height: 1;
}
.lrow:hover { background: var(--hover-bg); }

/* ⚠ THE SELECT CELL IS A <label>, AND THIS IS WHAT MAKES THAT WORTH ANYTHING.
   A label toggles the input it contains, so the whole cell becomes the hit
   area — but only if the cell actually fills its column. The checkbox itself
   stays 12px and nothing moves visually; the tap area goes from 12x44 to
   28x44 at phone width. The checkbox already PASSED 2.5.8 on spacing; this is
   a usability change, made deliberately and on request. */
.lrow > label,
.lrow-head > label {
  display: inline-flex; align-items: center; justify-content: center;
  /* ⚠ `width: max-content` IS LOAD-BEARING, NOT TIDINESS. A grid item stretches
     to its column, and under 480px `.lrow` collapses to ONE column — so a
     stretching label covered 96% of the row (268px of 279px, measured) and,
     carrying `data-action="stop"`, swallowed every tap meant to OPEN the row.
     Sized to its content it is 24px at every width: 28px column at desktop,
     collapsed row at phone, same target either way. */
  width: max-content; min-width: 24px; min-height: 24px;
  justify-self: start; margin: 0; cursor: pointer;
}

/* ── SEEN ──────────────────────────────────────────────────────────────────
   A row the current analyst has already opened or marked. Three ledgers carry
   per-user state — articles (`user_article_read`), CVEs (`user_cve_review`)
   and indicators (`user_ioc_review`) — and until now ALL THREE wrote it and
   NONE read it back: the tables held 182, 12 and 52 real rows put there by v1,
   and every v2 page rendered a reviewed row identically to an untouched one.
   One treatment here rather than three, per §5's one-row-system rule.

   ⚠ RECEDES, NEVER HIDES. This is a bookmark, not a filter: the row keeps its
   place, its severity spine and its full text. Dropping it out of the list
   would change what the page counts, and a ledger whose length depends on who
   is looking cannot be compared with anybody else's.

   ⚠ THE SPINE AND THE SEVERITY ARE EXEMPT. `--sev-*` text and the critical
   spine carry the one judgement on the row that is not the reader's own, and
   dimming a critical row because somebody glanced at it is the failure mode
   this whole treatment risks. Only the neutral ink recedes.

   ⚠ THE HEADLINE ONLY — DIMMING THE METADATA CELLS BREAKS §10'S FLOOR.
   `opacity` composites the whole element, so it MULTIPLIES an ink that is
   already part-transparent. Measured against `--void`: the title is a solid
   paper and goes 17.08:1 → 6.82:1, comfortably clear. `.lrow-val` is already
   `rgba(237,234,226,.58)` and the same 0.62 takes it 5.88:1 → **2.9:1**, well
   under the 4.5:1 floor — an accessibility regression introduced by a reading
   aid, which is the worst way to acquire one.
   So only the loud element recedes. That is enough: the headline is what draws
   the eye down a ledger, and the mark below carries the state on its own. */
/* ⚠ .70, NOT .62, AND THE REASON IS THE LIGHT SHELL. The figures above were
   taken on dark, where .62 leaves the title at 6.82:1. On paper the same
   factor takes the .89 ink to 4.04:1 (measured live 2026-09-05 on /feed and
   /indicators) — under the floor, so the reading aid was an AA regression in
   one theme only. .70 is the first step that clears it on paper (5.06:1)
   while still visibly receding on dark (7.9:1). */
.lrow[data-read] .lrow-id,
.lrow[data-read] .lrow-title,
.lrow[data-read] .lrow-prose { opacity: .70; }
.lrow[data-read]:hover .lrow-id,
.lrow[data-read]:hover .lrow-title,
.lrow[data-read]:hover .lrow-prose { opacity: 1; }
/* The mark itself: a filled square in the indent, where an unread row has
   nothing. Sits in the gutter the severity spine uses, so it costs no column
   and cannot push the row's height. */
.lrow[data-read]::after {
  content: ''; position: absolute; inset-inline-start: 4px;
  inset-block-start: calc(50% - 2px); width: 4px; height: 4px;
  background: var(--ink-4);
}
.lrow[data-read] { position: relative; }
/* The keyboard's cursor. Cyntel.enableTableNav marks the active row
   `.kbd-active`, and shared.css styles that class for `.data-table tbody tr`
   ONLY — so on a v2 ledger the highlight had nowhere to land and j/k moved an
   invisible selection. Distinct from :hover on purpose: the pointer and the
   keyboard can be on different rows at the same time, and a highlight that
   cannot be told from a hover is not a cursor. color-mix rather than a flat
   wash so it survives the light theme, where the white hover is invisible. */
.lrow.kbd-active {
  background: color-mix(in srgb, var(--amber) 9%, transparent);
  box-shadow: inset 2px 0 0 var(--amber);
}
/* THE PROSE CELL, and it is a ledger cell — which it was not before.
   It used to be `--t-row` (13.5px/1.4, a ~19px line box) with no wrap control,
   so it did two things a row cell must never do:
     1. It WRAPPED. A CVE summary is 60-140 characters against a 400px column,
        so /vulnerabilities rendered alternating 42px and 55px rows — density
        depending on how long the sentence happened to be. Truncating in the
        template does not fix it; no character count is right for a fluid
        column. The full text is in the preview pane, where overflow belongs.
     2. Even unwrapped it was the TALLEST BOX in the track — 19px against the
        11-12.5px of every mono cell — so it set the row height to 42px against
        the system's 36px (11 + 11 + 12.5 + 1).
   Now `--t-row-prose`: 12.5px/1, the SAME line box as .lrow-id, so a ledger
   with a title column is exactly as tall as one without. tests/
   test_v2_ledger_contract asserts all three properties; it used to ban the
   class outright, which is why every page that needed prose in a row either
   broke the lock or built the cell in JS where the scan could not see it. */
.lrow-title { font: var(--t-row-prose); color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow-val { font: var(--t-value); color: var(--ink-3); max-width: var(--measure-mono); }
.lrow-id { font: var(--t-value-lg); color: var(--paper); }  /* NOT blue */
/* The row's leading cell when it is PROSE (`lrow-id lrow-title`: a case or
   alert title, a source name) is Inter, not mono. `.lrow-id` above sits later
   at equal specificity, so it used to win the font and every title on /cases
   and /alerts rendered in JetBrains Mono, truncating at about 170px. Same
   12.5/1 line box as the identifier, so the row stays 36px (2026-10-11).
   ⚠ An IDENTIFIER that needs truncating (an indicator, an artefact path, a
   resource id) is `lrow-id lrow-clip`, never `lrow-id lrow-title`: the pair
   means prose, and it sets the cell in Inter. */
.lrow-id.lrow-title { font: var(--t-row-prose); }
.lrow-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A ledger whose title is the row's reason to exist lets it take TWO lines
   instead of cutting it at ~25 characters (/cases, re-audit N7, 2026-10-12).
   The row keeps its baseline alignment, so the other cells sit on the
   title's first line and the ledger still reads across. Beyond two lines
   the clamp ends in an ellipsis and the cell's title attribute has the rest. */
.lrow-wrap--titles2 .lrow-id.lrow-title {
  white-space: normal; text-overflow: clip; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  line-height: 1.35;
}
/* State and severity in a ledger row are COLOURED TEXT, not pills.
   A pill is a box: at 3px 7px padding it stands 18px tall, and on a row that
   aligns to the baseline that box sets the row height — 59px against the 41px
   the padding and line-height actually specify. Every row grew by nearly half
   to carry one word. The mockups colour the word instead, which is also why
   §7 lists four pill roles and "status" is not among them. */
.lrow-state { font: var(--t-value); color: var(--ink-2); }
.lrow-state--new  { color: var(--amber-text); }
/* ⚠ --success-text, NOT --ok. --ok is the FILL token — the dot, the freshness
   mark — registered at 3.0; this is an 11px WORD ("covered", "running") and
   measured 3.58:1 on the light ground. Same split as --amber/--amber-text.
   Registered as `success-text on ground` in both contrast guards. */
.lrow-state--ok   { color: var(--success-text); }
.lrow-state--warn { color: var(--sev-high-text); }
.lrow-state--crit { color: var(--sev-critical-text); }
.lrow-state--muted{ color: var(--ink-4); }
/* Lifecycle STAGE (layer 4, 2026-09-08): the word is coloured by what the
   stage means, on the same text tokens as the state words above — active
   reads critical, staged high, acquired and unknown muted, retired struck
   through. A different axis from capability, so a different cell. */
.lrow-stage { font: var(--t-value); color: var(--ink-2); }
.lrow-stage--active   { color: var(--sev-critical-text); }
.lrow-stage--staged   { color: var(--sev-high-text); }
.lrow-stage--acquired { color: var(--ink-4); }
.lrow-stage--unknown  { color: var(--ink-4); font-style: italic; }
.lrow-stage--retired  { color: var(--ink-4); text-decoration: line-through; }

/* ── The pane's stage TIMELINE (layer 4, rebuilt 2026-09-08 to the approved
   preview). A rail with one dot per step: the dot is a FILL, so it takes the
   fill tokens (--sev-*), while the stage WORD beside it is text and takes the
   -text variants — the split the handoff calls out. Each step carries a
   sentence saying whether it was an observation or bookkeeping. */
.pa-stage-hist { list-style: none; margin: var(--space-3) 0 0; padding: 0 0 0 var(--space-5);
                 border-left: 1px solid var(--rule); }
.pa-stage-step { position: relative; padding: 0 0 var(--space-4) 0; display: grid; gap: var(--space-0); }
.pa-stage-step:last-child { padding-bottom: 0; }
.pa-stage-step::before { content: ''; position: absolute; left: calc(-1 * var(--space-5) - 5px);
                         top: 5px; width: 9px; height: 9px; border-radius: 50%;
                         background: var(--ink-4); }
.pa-stage-step.is-staged::before  { background: var(--sev-high); }
.pa-stage-step.is-active::before  { background: var(--sev-critical); }
.pa-stage-word { font: var(--t-value); color: var(--ink-2); }
.pa-stage-step.is-staged  .pa-stage-word { color: var(--sev-high-text); }
.pa-stage-step.is-active  .pa-stage-word { color: var(--sev-critical-text); }
.pa-stage-step.is-retired .pa-stage-word { color: var(--ink-4); text-decoration: line-through; }
.pa-stage-meta { font: var(--t-secondary); color: var(--ink-4); }
/* The request chain (layer 5b): one artefact per line, the raw string on the
   start edge and what it IS on the end edge. Mono and break-anywhere for the
   artefact — it is a filename compared character by character and a URL
   fragment has no meaningful break point — mirroring .pa-kv-hash. Spacing
   mirrors .pa-stage-hist so the two pane bands read as one family. */
.pa-kit-chain { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.pa-kit-art { display: flex; justify-content: space-between; align-items: baseline;
              gap: var(--space-4); padding: var(--space-1) 0;
              border-bottom: 1px dashed var(--rule); }
.pa-kit-art:last-child { border-bottom: 0; }
.pa-kit-art code { font: var(--text-xs)/1.5 var(--font-mono); color: var(--ink-2);
                   overflow-wrap: anywhere; }
.pa-kit-art span { font: var(--t-secondary); color: var(--ink-4);
                   text-align: end; }
/* WHAT THE PAGE SHOWED (2026-09-23, owner-approved preview): urlscan's
   screenshot, served from our origin. It opens BLURRED behind a click —
   the shape is enough to recognise a kit, and a phishing page can be
   graphic — and the frame fixes its aspect so the pane does not jump when
   the image loads. Expanded, it drops the crop and shows the whole capture. */
.pa-shot { position: relative; display: block; width: 100%; padding: 0;
           margin: var(--space-3) 0 0; border: 1px solid var(--rule);
           border-radius: var(--radius-sm); overflow: hidden;
           background: var(--void); cursor: pointer; aspect-ratio: 4 / 3; }
.pa-shot img { display: block; width: 100%; height: 100%; object-fit: cover;
               object-position: top; filter: blur(10px) saturate(0.6);
               transform: scale(1.06); }
.pa-shot-veil { position: absolute; inset: 0; display: flex; align-items: center;
                justify-content: center;
                background: color-mix(in srgb, var(--void-2) 35%, transparent); }
.pa-shot-cta { font: var(--t-secondary); color: var(--paper);
               padding: var(--space-3) var(--space-5); border: 1px solid var(--rule);
               border-radius: var(--radius-sm); background: var(--void-2); }
.pa-shot[aria-expanded="true"] { cursor: zoom-in; }
.pa-shot[aria-expanded="true"] img { filter: none; transform: none; }
/* The whole capture only once it has loaded (is-loaded) — until then the
   unblurred thumbnail holds the 4:3 frame, so the pane never jumps. */
.pa-shot.is-loaded { aspect-ratio: auto; }
.pa-shot.is-loaded img { height: auto; object-fit: contain; }
.pa-shot[aria-expanded="true"] .pa-shot-veil { display: none; }
.pa-shot:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .pa-shot img { transition: filter var(--transition-normal); }
}
/* THE INFRASTRUCTURE MAP (/phishing/infrastructure, 2026-09-23, owner-
   approved preview). Server-drawn SVG, so every colour is a token and both
   themes hold. A LINE is infrastructure one operator controls: solid when
   asserted (dedicated server, one certificate across domains), DASHED when
   inferred (a nameserver pair) — provenance drawn, never captioned. Box
   height is a hostname count; fill is what the hostnames are doing now. */
.pa-map { display: block; width: 100%; height: 100%; }
.pa-map-link { stroke: var(--amber); stroke-width: 1.4; opacity: .55; }
.pa-map-link--inferred { stroke: var(--ink-3); stroke-dasharray: 4 3; }
.pa-map-link.is-lit { opacity: 1; stroke-width: 2.2; }
.pa-map-hub, .pa-map-box { cursor: pointer; }
.pa-map-hub circle { fill: var(--void); stroke: var(--amber); stroke-width: 2; }
.pa-map-hub--inferred circle { stroke: var(--ink-3); stroke-dasharray: 3 2; }
.pa-map-box rect { fill: var(--void); stroke: var(--rule-strong); stroke-width: 1; }
.pa-map-box--serving rect { fill: var(--sev-critical); stroke: var(--sev-critical); }
.pa-map-box--staged rect { fill: var(--sev-high); stroke: var(--sev-high); }
.pa-map-box--rest rect { stroke-dasharray: 4 3; }
.pa-map-hub.is-sel circle, .pa-map-box.is-sel rect { stroke: var(--paper); stroke-width: 2.5; }
.pa-map-hub:focus-visible, .pa-map-box:focus-visible { outline: 2px solid var(--amber); }
.pa-map-label { font: 600 var(--text-xs) var(--font-mono); fill: var(--paper); }
.pa-map-sub { font: var(--text-xs) var(--font-mono); fill: var(--ink-3); }
.pa-map-box--serving .pa-map-label, .pa-map-box--staged .pa-map-label,
.pa-map-box--serving .pa-map-sub, .pa-map-box--staged .pa-map-sub { fill: var(--amber-ink); }
.pa-map-key { display: inline-block; width: 18px; height: 0; flex: none;
              border-top: 2px solid var(--amber); }
.pa-map-key--strong { border-top-style: solid; }
.pa-map-key--inferred { border-top: 2px dashed var(--ink-3); }
.pa-infra-h { font: var(--t-secondary); color: var(--ink-4); text-transform: uppercase;
              letter-spacing: .1em; margin: var(--space-6) 0 var(--space-2); }
.pa-infra-link { color: var(--amber-text); }
/* The line under the ranked orders that leads to EVERY campaign — not an
   order itself, so it carries no order number. */
/* In the orders' own gutter: with margin alone it sat at x=0, flush to the
   window edge and touching the filter rail below it. */
.pa-order-foot { margin: 0; padding: var(--space-3) var(--gutter) var(--space-4);
                 font: var(--t-secondary); }
.pa-order-foot a { color: var(--amber-text); }
.pa-infra-thumb { display: block; width: 100%; margin: var(--space-4) 0;
                  border: 1px solid var(--rule); filter: blur(8px) saturate(.6); }
.pa-order--sel { background: color-mix(in srgb, var(--amber) 8%, transparent); }
/* The campaign ARRIVALS strip (layer 7): one bar per day, height is that
   day's count against the campaign's own peak — a shape, not a scale shared
   between rows, because the question is "when did this land", not "which is
   biggest". The row already carries the totals as numbers. */
.pa-arrivals { display: block; width: 100%; height: 30px; }
.pa-arrivals rect { fill: var(--primary-color); }
.pa-stage-why  { font: var(--t-secondary); color: var(--ink-3); }
/* Severity reads as a rank, so it is uppercase and tracked like a label. */
.lrow-sev { font: var(--t-value); letter-spacing: .06em; text-transform: uppercase; }
/* Intel tags — several facts in one cell, and the reason they are TEXT and not
   pills is the rule directly above: a pill is an 18px box and this cell can
   hold three of them, so a pilled version sets the row height for the whole
   ledger and does it inconsistently, row by row.
   `--kev` is a RECORDED OBSERVATION (CISA saw exploitation) and takes the
   critical colour; `--code` is exploit code existing, which is a capability
   and not an observation, so it stays amber; `--ransom` is CISA's own
   ransomware flag. Three different kinds of claim, three different weights. */
/* NOWRAP, and the column must be sized to the full set. Wrapping was the pill
   bug for the third time: a row carrying all four tags ran the cell to 25px and
   the row to 55px against the ledger's 42px, so density depended on how much
   intel a CVE happened to have. Clipping instead would be a silent cap — but
   the tag vocabulary is CLOSED (four values), so the widest possible cell is a
   knowable number and the column is set to it. Measured: 174px for
   KEV/Ransom/Exploit-DB/Nuclei at 9.5px mono. Add a fifth tag and you must
   re-measure the column, which is the point of saying so here. */
.lrow-tags { display: flex; flex-wrap: nowrap; gap: 6px; align-items: baseline;
  min-width: 0; overflow: hidden; }
.lrow-tag { font: var(--t-value); font-size: var(--text-xs); letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
/* ⚠ THE `-text` VARIANTS, NOT --amber-hot AND NOT THE FILL TOKENS. These are
   9.5px words and they need the AA TEXT ratio (4.5:1), which is not what the
   accent tokens are held to — the contrast linter registers `amber-hot on
   ground` at the 3.0:1 UI threshold because it was written for rules and
   eyebrows, and it measures 3.37:1 on the light ground. It would have passed
   the linter and failed a reader. The sev `-text` ramp is the family that
   guarantees a text ratio in both themes; it is borrowed here for that
   guarantee, not because these are severities. */
.lrow-tag--kev    { color: var(--sev-critical-text); }
.lrow-tag--ransom { color: var(--sev-high-text); }
.lrow-tag--code   { color: var(--sev-medium-text); }
/* "This one is on your watchlist" — the same weight as --kev because it is the
   row you act on, but its OWN class. Reusing --kev for it (the first draft did)
   puts a class named after CISA's catalogue on a cell that is about your
   estate, which is how the next reader learns the wrong thing about both. */
.lrow-tag--you    { color: var(--sev-critical-text); }
/* NO --on/--off PAIR HERE. /rules wanted one for a "query languages" column
   that showed which of Sigma/Splunk/Elastic/KQL a rule translated into — and
   all 680 rules have all four, so the column was four identical tags on every
   row and the states were never both reachable. The column is gone and the
   fact is stated once in the ledger sub. If a genuinely mixed fixed-set column
   turns up later, note that `--ink-4` is the documented contrast FLOOR and
   `--ink-5` does not exist: lift the PRESENT state to --ink-2 rather than
   pushing the absent one below the floor, and give it a second non-colour cue. */
/* A step ordinal, for the ledgers whose rows are a SEQUENCE rather than a set.
   It takes the accent because it encodes position, not quantity — the same
   reason .pa-order-num does, at ledger scale. */
.lrow-num { font: var(--t-value); color: var(--amber-text); }
/* A selection checkbox must not set the row height.
   A native checkbox has intrinsic sizing — ~18px in Chrome — which on a
   baseline-aligned row of 11px mono is the tallest box in the track. A ledger
   with selection therefore rendered 41px rows against the 36px of one without,
   for no reason a reader could see. Same failure as a status pill: a control's
   box quietly becoming the row's rhythm. Sized to the type instead. */
.lrow input[type="checkbox"],
.lrow-head input[type="checkbox"] {
  width: 12px; height: 12px; margin: 0;
  accent-color: var(--amber);
  /* BLOCK, not inline. Sizing the control to 12px was not enough: an inline
     replaced element still generates a line box, and the font's half-leading
     around it made the containing cell 17px — so the row stayed 40px against
     the 36px of a ledger without selection. As a block it contributes its own
     height and nothing else. */
  display: block;
}
/* ...and the cell holding it aligns to CENTRE, not to the baseline.
   §6 says align-items: baseline and means it — mixed type sizes must sit on
   one line. But a checkbox has no text baseline; the browser synthesises one
   from its bottom margin edge, which sits below the real baselines and
   stretched the grid track by 2.5px. Exempting the one cell that contains no
   type keeps the rule where it applies and stops it applying where it cannot. */
.lrow > *:has(> input[type="checkbox"]),
.lrow-head > *:has(> input[type="checkbox"]) { align-self: center; }

/* ── Reclaiming .lrow from the PREVIOUS row system ────────────────────────
   shared.css already defines .lrow-head/.lrows/.lrow from earlier work, with
   different geometry:  .lrow > * { padding: var(--space-2) var(--space-1) }
   plus its own column-gap, align-items:center, and responsive rules that
   RESTACK the grid at narrow widths.

   Those cell paddings are why a migrated row measured 58px against the 41px
   its own padding and line-height specify — 8px above and below every cell,
   on top of the row's 11px. Nearly half the row height was a second row
   system showing through, and `.lrow > *` (0,1,1) outspecifies the
   archetype's `.lrow-title` (0,1,0), so it also overrode the fonts and ink.

   This is the "four row systems" problem the redesign exists to end, met from
   the inside: the handoff reuses the class names the old system already owns.
   Scoped to .pa-section — which only a MIGRATED page has — so the archetype
   wins where it applies and alerts.html / detection_lab.html, still on the old
   system, are untouched. When those two migrate, the shared.css block goes and
   this scoping can go with it.

   Only what the old system actually WINS is restated here. Its row padding
   and column-gap are the same specificity as the handoff's, and this file
   loads after shared.css, so those already resolve correctly — restating them
   was duplicated literal for no effect (verified by disabling the overrides
   live: head 28px, row 36px, gap 14px, unchanged). What genuinely needs
   overriding is the cell padding, which outspecifies, and the min-height and
   card chrome, which the handoff never sets at all.

   ⚠ THE SCOPE IS THIS FILE, NOT A BAND. These were `.pa-section .lrow` so
   that unmigrated pages kept the old row system — but page-archetypes.css is
   loaded ONLY by the seven archetypes, so the whole file already has exactly
   that scope and the band prefix bought nothing. It cost something instead:
   the first ledger to sit in a `.do-section` rather than a `.pa-section` (the
   briefing dossier's indicator table) inherited all of it back and rendered
   78-104px rows against the 36px lock. A reclaim scoped to one band is a
   reclaim that fails at the next band. */
.lrow > *,
.lrow-head > * {
  padding: 0;
  min-width: 0;
}
.lrow {
  /* The old system pins `min-height: var(--space-9)` = 48px. That was the
     actual floor under every migrated row: the cell padding above accounted
     for part of the excess, but even with clean cells and all-mono content the
     row would not go below 48px. It is a fixed 48px touch target, which is a
     different design intent from a ruled ledger whose height follows its type.
     Density here comes from --row-y and the line box, per PATTERNS.md §14. */
  min-height: 0;
}
/* The header cells keep the colhead treatment the old system would repaint. */
.lrow-head > * {
  font: var(--t-colhead); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4);
}
/* The old system also makes .lrow-wrap a CARD:
       border: 1px solid var(--input-border);
       border-radius: var(--radius-md);
       background: var(--card-bg);
   so a migrated ledger drew its own rounded box inside the band, and that box
   collided with the 2px section rule above it — two competing edges around one
   ledger. A ruled ledger is not a card: the rows carry the 1px rules and the
   band carries the 2px one, which is the whole vertical grammar of §1. The
   radius is also off-system outright — rule 12, radius is 0 everywhere.
   overflow-x is KEPT: a wide ledger must scroll in its own container rather
   than push the page sideways (§14). */
.lrow-wrap {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0 var(--gutter);
}
/* ── LINKS ON AN ARCHETYPE SURFACE ─────────────────────────────────────
   A link here obeys the same rule as the text beside it: it is a word that
   happens to be clickable, not a hyperlink. Bootstrap's default turns it blue
   and underlines it, which is wrong on every band in this stylesheet.

   THIS SELECTOR LISTS BANDS, NOT ELEMENTS, AND THAT IS THE POINT. It used to
   list elements — `.lrow a` — and it broke twice for the same reason: once
   when column heads became sort links (`.lrow-head` was not in the list), and
   again when the actor profile put links in a timeline and in the signature
   rail. Each fix added one more element and left the next one blue. Banding it
   means a new element inside an existing band is covered on the day it is
   written; only a genuinely NEW band needs a line here, and
   test_archetype_bands_are_all_in_the_link_rule fails if one is added without.

   Scoped to bands rather than a bare `a` because base.html's navbar renders
   inside these pages too and is not ours to restyle. */
/* .pa-pagination joins the list because Previous / Next ARE anchors —
   server-side paging is what makes a page number a real address — and they
   sat outside every band here, rendering Bootstrap blue on every paged page.
   ⚠ Keep this list a clean comma-separated run: _link_rule() in
   tests/test_v2_ledger_contract parses it to derive the covered set, so a
   comment INSIDE the selector list makes the guard fail to find the rule at
   all and every migrated page reports naked links. */
/* .pa-timeline is the band the comment above predicted and then missed: it is
   a top-level <section>, so nothing else covered it, and the first record page
   to put a real link in a timeline row (the story ledger's article titles) had
   them render Bootstrap blue. */
.pa-chrome a, .pa-lede-band a, .pa-section a, .pa-pair a, .pa-timeline a,
.pa-centre a, .pa-record-pair-host a, .pa-section-head a, .pa-state a,
.pa-product a, .pa-prod-actions a, .pa-prod-sec a, .pa-prod-src a,
.pa-cols3 a, .pa-pane a, .do-mast a, .do-section a, .do-dist a, .lrow-wrap a,
.lk-providers a, .lk-waiting a, .gt-content a, .pa-pagination a {
  color: inherit; text-decoration: none;
}
/* .gt-brand is the anchor itself, not a band containing one, so it cannot join
   the list above — that selector list is PARSED by test_v2_ledger_contract to
   learn which bands are covered, and it matches on entries ending in `.x a`.
   A bare class there silently shortened the match and uncovered every band
   after it. Same declarations, its own rule.
   No :hover pair: the mark is inside this link, and an amber hover would
   recolour its FIELD — the pair MARK.md marks Never on paper. */
.gt-brand { color: inherit; text-decoration: none; }
.pa-chrome a:hover, .pa-lede-band a:hover, .pa-timeline a:hover,
.pa-centre a:hover, .pa-record-pair-host a:hover,
.pa-section-head a:hover, .pa-state a:hover,
.pa-section a:hover, .pa-pair a:hover, .pa-cols3 a:hover, .pa-pane a:hover,
.pa-product a:hover, .pa-prod-actions a:hover, .pa-prod-sec a:hover,
.pa-prod-src a:hover,
.do-mast a:hover, .do-section a:hover, .do-dist a:hover, .lrow-wrap a:hover,
.lk-providers a:hover, .lk-waiting a:hover, .gt-content a:hover,
.pa-pagination a:hover {
  color: var(--amber-text); text-decoration: underline;
}
/* ⚠ THE EXCEPTION: A ROW THAT IS ITSELF A LINK. The rule above is right for a
   clickable WORD inside a cell. The stories ledger and the dashboard feed make
   the whole row an anchor, so `.lrow-wrap a:hover` matched the row element and
   underlined EVERY cell in it, recolouring the lot amber — a row that behaved
   like nothing else in the app on hover.

   A row already states its own hover: `.lrow:hover` washes the background, and
   that is the feedback every other ledger gives. So the row-as-link opts out
   of the prose treatment and keeps the row treatment.

   Scoped to `a.lrow` (0,3,1, beating the rule above's 0,2,1) rather than
   loosening `.lrow-wrap a:hover` itself, because the links inside a DIV row —
   the actor behind a claim, the group behind a victim — must keep underlining.
   Not, as first written here, because a link nested inside the anchor row
   needs it: an `<a>` cannot contain an `<a>`, and the parser hoists it out. */
.lrow-wrap a.lrow:hover { color: inherit; text-decoration: none; }

/* ── THE PIVOT: A LINK THAT IS ALLOWED TO ANNOUNCE ITSELF ───────────────
   The rule above is right for prose — a word that happens to be clickable.
   It is wrong for the one link on a data surface that carries the reader to
   another SUBJECT: the group behind a victim, the actor behind a claim. That
   link has to be findable without hovering every cell to see what lights up.
   PATTERNS' relations block already names the ink for exactly this — the
   identifier cell is "mono 11.5px, `--amber-hot`, linked" — so this is the
   existing vocabulary applied to the ledger, not a new one.

   ⚠ SPECIFICITY, AND IT ALREADY BIT. The band rule above is `.pa-pane a` /
   `.lrow-wrap a` — (0,1,1). A bare `.rel-id` or `.pa-pivot` is (0,1,0) and
   LOSES, so `color: inherit` wins and the amber never paints. That is not
   hypothetical: `.rel-id` (§19d, defined further down this file) has been
   overridden this way everywhere it is used, because the only caller renders
   it inside `.pa-pane`. The relations block has been shipping grey
   identifiers against a spec that says amber.

   Both are hoisted here, next to the rule that was beating them, at (0,1,1)
   and after it in source order. Defining them beside their siblings further
   down is what let this hide: the losing rule looked correct in isolation.
   `test_the_pivot_ink_survives_the_band_link_rule` fails if either drops back
   below the band rule's weight. */
a.pa-pivot, a.rel-id {
  color: var(--amber-text);
  text-decoration: none;
}
a.pa-pivot:hover, a.rel-id:hover {
  color: var(--amber-text);
  text-decoration: underline;
}
/* The ledger pivot keeps the row's own type scale — it is a VALUE cell that
   happens to be a doorway, not an identifier. Only the ink changes, so the
   baseline the row aligns on is untouched. */
.pa-pivot { font: var(--t-value); }

/* ⚠ `.lk-waiting` is REDUNDANT at runtime — it sits inside `.pa-lede-band`,
   which is already listed. It is named anyway because the contract test reads
   the archetype statically and its class regex excludes `{}`, so the
   `class="pa-lede-band{% if … %}"` attribute is invisible to it. Naming the
   inner band states the intent and keeps the check honest rather than teaching
   the test to guess.
   `.lk-providers` is NOT redundant: an evidence card is a genuinely new band,
   and the urlscan "Full report" link inside one would have rendered Bootstrap
   blue. That is exactly the case the banding comment above predicts. */
/* The active sort column keeps the amber it earns, and shows its direction. */
.lrow-head a.c-sort-asc, .lrow-head a.c-sort-desc { color: var(--amber-text); }
.lrow-head a.c-sort-asc::after { content: ' ↑'; }
.lrow-head a.c-sort-desc::after { content: ' ↓'; }
/* Spine. Only for rows needing action now — if every row has one, none does. */
.lrow--crit { box-shadow: inset 3px 0 0 var(--sev-critical); }
.lrow--high { box-shadow: inset 3px 0 0 var(--sev-high); }
/* NOT a severity — the absence of one. /rules uses it for an alert rule that
   has never fired, which may mean the pattern is wrong or may mean the thing
   simply has not happened; giving that a severity stripe would pick one of
   those readings, and the page cannot tell them apart. The rail is drawn in
   the row rule's own colour so the row is visibly in a state without being
   ranked into the severity ladder. */
.lrow--muted { box-shadow: inset 3px 0 0 var(--rule-strong); }

/* ── 7b. THE ROW ADAPTS TO ITS OWN BOX ──────────────────────────────
   Moved here from shared.css on 2026-08-25, and THE MOVE IS THE FIX. Both
   blocks were written there and neither ever ran: `.lrow-head, .lrow` in §7
   above re-declares `display` and `grid-template-columns` at the same (0,1,0)
   specificity, an @container prelude carries none of its own, and this file is
   emitted from the archetype's `{% block head %}` — after app.py has already
   emitted shared.css. The later sheet won, so the wide template held at every
   container width.

   What that shipped: at a 420px host the header stayed `display: grid` and the
   row kept its six fixed tracks, which makes the `1fr` track — always the prose
   cell, the CVE title, the case name, the story headline — compute to 0px while
   the fixed metadata columns keep every pixel they asked for. The one column
   the reader came for is the one that disappears. `.lrow-wrap` keeps
   `overflow-x: auto`, so the row scrolled quietly inside its own box rather
   than dragging the page sideways, which is why nothing ever reported it.

   ⚠ THIS BLOCK MUST STAY AFTER §7. Anywhere above `.lrow-head, .lrow` and it
   is dead again — silently, with every existing test still green, because the
   rule is present and correct and merely overridden.

   Thresholds are CONTAINER widths, not viewport widths, so a row inside the
   ~420px .preview-* drawer gets the compact treatment even on a 4K monitor —
   the case a media query cannot tell apart. Still pure progressive
   enhancement: every rule below only ever RELAXES the wide default, so an
   engine without container queries renders exactly as it does today. */
@container lrow (max-width: 560px) {
  /* Narrow host (drawer / split pane): drop the fixed column template and let
     the row wrap into a label-value stack instead of h-scrolling the page. */
  .lrow-head { display: none; }
  .lrow {
    grid-template-columns: 1fr auto;
    row-gap: var(--space-0);
    padding-block: var(--space-1h);
  }
  .lrow > * { white-space: normal; }
  .lrow > :nth-child(n+3) { grid-column: 1 / -1; }
}
@container lrow (max-width: 360px) {
  /* Very narrow: single column, and the monospace cells step down a size so an
     IOC or case number still fits without truncation. */
  .lrow { grid-template-columns: 1fr; }
  .lrow > * { font-size: var(--text-2xs); }
  .lrow > :nth-child(n+2) { grid-column: 1; }
}


/* ── 8. PILLS — one shape, four roles. ────────────────────────────── */
.pill {
  display: inline-flex; align-items: center;
  font: var(--t-pill); letter-spacing: .08em;
  padding: 3px 7px; border: 1px solid var(--rule-strong);
  color: var(--ink-2); border-radius: 0;
  /* ⚠ A PILL IS SOMETIMES A <button>, and a button that is never told
     otherwise keeps the browser's own face — rgb(107,107,107) under a dark
     color-scheme. The alert pane's status chips (acknowledged / investigating
     / resolved / dismissed) rendered --ink-2 on that grey: 3.14:1, while the
     <span> pills beside them sat on the pane. Measured live 2026-09-05. The
     role variants below set their own fills and still win on order. */
  background: none;
}
.pill--crit { border-color: rgba(220,38,38,.45); background: rgba(220,38,38,.18);
  color: var(--sev-critical-text); }
.pill--high { border-color: rgba(234,88,12,.45); background: rgba(234,88,12,.18);
  color: var(--sev-high-text); }
.pill--ok { border-color: rgba(61,214,140,.45); color: var(--success-text); }
.pill--filter { border-color: rgba(217,119,6,.5); background: rgba(217,119,6,.12);
  color: var(--amber-text); }
/* A WEAKER SOURCE, not a lesser severity. For a set where some entries come
   from a curated mapping and some from a free-text field: /profiles/<id> shows
   ATT&CK's software mapping as solid pills and MISP's free-text malware list as
   soft ones, because presenting them identically would make a curated claim and
   an uncurated one look like the same kind of claim. Dashed, not dimmer — the
   label still has to be readable, and --ink-4 is already the contrast floor. */
.pill--soft { border-style: dashed; border-color: var(--rule); }
/* Required convention: anything not in the product is marked. */
.pill--proposed { border: 1px dashed rgba(217,119,6,.6); color: var(--amber-text);
  font-size: var(--text-xs); letter-spacing: .1em; padding: 2px 7px; }

/* ── The edge strip: the graph, demoted to a ledger (EVIDENCE.md §1.1) ──
   One row per relationship — the claim, then the entity. Used in panes so a
   page can TESTIFY about the graph; exploring it belongs to /graph.

   ⚠ TWO COLUMNS, NOT EVIDENCE.md's FOUR. It specifies CLAIM / ENTITY / CONF /
   PROVENANCE, and in this store the last two carry nothing: `confidence` is 55
   on all 9,133 article edges and `provenance` is `article_cooccurrence` on all
   9,133. A column that cannot vary is width spent on nothing — the same defect
   as the query-languages column on /rules and the TLP chip on /indicators — so
   both facts are stated once in the strip's footnote instead. Restore the
   columns only for an edge population where they actually differ. */
.pa-rel {
  display: grid; grid-template-columns: minmax(120px, 168px) 1fr;
  gap: 0 var(--space-3); align-items: baseline;
  padding: 5px 0; border-top: 1px solid var(--rule);
}
.pa-rel:first-child { border-top: 0; }
.pa-rel-r {
  font: var(--t-value); font-size: var(--text-xs); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* The ENTITY, and where it is a link it is a door: /feed's actor edges
   navigate to that actor's profile, which is what makes the graph traversable
   from a pane at all. */
.pa-rel-e { font-size: var(--text-sm); color: var(--ink-2); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-rel-e a { color: var(--amber-text); }
/* ⚠ THE UNDERLINE CARRIES THE HOVER NOW. Rest was --amber and hover
   --amber-hot, which already gave NO feedback in light (both resolve to
   --primary-color there) and only worked on dark. With both on the text
   value the colour step is gone in both themes, so the state moves to the
   channel the prose-link rule already uses — and gains a light theme it
   never had. */
.pa-rel-e a:hover { color: var(--amber-text); text-decoration: underline; }
/* PROSE IN THE STRIP, WHICH IS A DIFFERENT THING FROM AN ENTITY.
   `.pa-rel-e` above is nowrap + ellipsis on purpose: an actor name, a CVE or a
   hostname is ONE token, and letting it wrap makes a ragged grid out of a
   column that should read as a list. But /phishing puts SENTENCES in this same
   strip — "Served from datacenter/hosting infrastructure", "Domain NAME is a
   constructed 'salik' lookalike" — and a sentence that ellipses has not been
   shortened, it has been thrown away: the reader gets the first four words of
   the reason a domain scored 45 and no way to see the rest.

   The modifier goes on the ROW, not the value span, so a caller cannot set it
   on one half of the pair and forget the other. */
.pa-rel--prose .pa-rel-e,
.pa-rel--prose .pa-rel-r {
  white-space: normal; overflow: visible; text-overflow: clip;
}
.pa-rel--prose .pa-rel-e { line-height: 1.45; }
/* ⚠ THE ROLE WRAPS TOO, and it has to. /phishing derives the role by splitting
   a risk factor on its first ': ', capped at 33 characters — but the column is
   168px at 9.5px uppercase mono with .06em tracking, which fits about 23. So
   "Page contains phishing keywords" was cut to "Page contains phishing keyw…"
   while the VALUE beside it wrapped correctly. Wrapping is the fix rather than
   a smaller cap: a cap is a magic number that has to be re-derived every time
   the column, the size or the tracking changes, and getting it wrong silently
   destroys text. */
.pa-rel--prose .pa-rel-r { line-height: var(--leading-snug); }
/* Wrapped values need a little more air between rows than one-line entities. */
.pa-rel--prose { padding: 7px 0; }

/* A wrapping run of pills. Not `.pa-pane-actions` (that is buttons, and its
   gap is sized for touch targets) and not a bare flex on the parent — a chip
   run appears inside sections AND inside the closing registers, where the
   column is a third as wide and the wrap has to happen. */
.pa-chips { display: flex; flex-wrap: wrap; gap: var(--space-1h);
  margin-top: var(--space-2); }
.pa-chips--tight { gap: var(--space-1); margin-top: var(--space-1h); }

/* ── 9. SEGMENTED CONTROL — the only tab pattern. ─────────────────── */
/* ⚠ ONE CONTROL, NOT A ROW OF BOXES — and which element you used decided it.
   `.seg-opt` set `background: none` and a `border-inline-start`, but never
   reset `border`. A `<button class="seg-opt">` therefore kept the BROWSER'S
   default button border on the other three sides and rendered as a separate
   boxed chip, while an `<a class="seg-opt">` — no default border — rendered as
   the joined segmented control the design draws. Two pages, same classes, two
   different controls, decided by a tag name.
   `gap` goes to 0 with it: the divider IS the inline-start border, and 2px of
   flex gap put a slot of page ground between every segment. */
.seg { display: inline-flex; gap: 0; border: 1px solid var(--rule-strong); }
.seg-opt {
  font: var(--t-pill); letter-spacing: .08em;
  /* ⚠ 7px OF BLOCK PADDING, NOT 5px, AND THE REASON IS TARGET SIZE. At 5px
     these stand 21px tall and sit FLUSH against one another — they are one
     group divided by `border-inline-start`, so WCAG 2.5.8's spacing exception
     can never apply and a gap would dismantle the group. 7px takes them to
     25px, which passes on size alone. Measured 2026-09-10. */
  padding: 7px 11px; color: var(--ink-4);
  /* Every property where a <button> and an <a> differ by UA default is pinned
     here, not just the border that started this. Otherwise the control keeps
     rendering two ways and the next page picks the wrong tag again:
       border / border-radius  a button has one, an anchor does not
       text-decoration         an anchor underlines
       text-align              a button centres, an anchor inherits
       margin                  a button carries a UA margin in some engines */
  border: 0;
  border-inline-start: 1px solid var(--rule-strong);
  border-radius: 0;
  text-decoration: none;
  text-align: center;
  margin: 0;
  background: none; cursor: pointer;
  /* The mockups show these uppercase. Done in CSS, never by typing capitals
     into the label, so the source string stays translatable (CLAUDE.md §10.7)
     — Arabic has no case, and a hard-capped English string cannot be
     localised out of it. */
  text-transform: uppercase;
}
.seg-opt:first-child { border-inline-start: 0; }
.seg-opt:hover { color: var(--ink); background: var(--hover-bg); }
.seg-opt[aria-selected="true"], .seg-opt.is-active {
  background: var(--amber); color: var(--amber-ink); font-weight: 600;
}
/* ⚠ A SEGMENTED OPTION IS A CONTROL, NOT PROSE THAT HAPPENS TO BE CLICKABLE,
   and when it is an <a> the band's own link rule outranks it.

   `.pa-section a:hover` is (0,2,1) — class + type + pseudo-class — and
   `.seg-opt[aria-selected="true"]` is only (0,2,0). So on every ledger whose
   facets are anchors (cve_intelligence, and any page using the inventory
   archetype's `facets` block) hovering the SELECTED tab painted
   `color: var(--amber-hot)` straight onto its `--amber` fill. On light those
   two tokens are the SAME VALUE, --primary-color: measured 1.00:1. The label
   did not dim, it vanished. Dark reads ~1.9:1 — bad, but visible enough that
   nobody filed it.

   The rule above it is right about prose: a word that happens to be clickable
   should hover amber and underline. It is wrong about a tab, which already
   shows its state by inverting. `.pa-pivot` was carved out of the same rule
   with a type selector for the same reason — this is that carve-out for the
   one control vocabulary.

   Type selector, so both land at (0,2,1) and (0,2,1), and both sit AFTER the
   link block so a tie resolves here. Do not "simplify" these back to a bare
   class: that is the specificity the bug lives in.

   And the REST state needs it too, for the same reason one level quieter:
   `.pa-section a { color: inherit }` is (0,1,1) and `.seg-opt`'s own
   `color: var(--ink-4)` is (0,1,0), so an anchor tab sat at full band ink
   while a button tab sat at --ink-4. That is this control's oldest bug — the
   comment on `.seg-opt` above is about a <button> and an <a> rendering as two
   different controls — reappearing in the one property the original fix did
   not pin. */
a.seg-opt { color: var(--ink-4); }
a.seg-opt:hover { color: var(--ink); text-decoration: none; }
a.seg-opt[aria-selected="true"], a.seg-opt.is-active { color: var(--amber-ink); }
/* Counts go IN the label — "OPEN 11" — never in a separate badge. */

/* ── 10. FILTER RAIL — owned here, not by the page. ───────────────── */
.layout-with-sidebar { display: grid; grid-template-columns: var(--rail) 1fr; }
.filter-sidebar { border-inline-end: 1px solid var(--rule); background: var(--void-2); }

/* ── THE RAIL RECLAIM. Counterpart to the .lrow reclaim below. ──────────
   shared.css defines .filter-sidebar for the PRE-REDESIGN sidebar, where it
   is `position: fixed; width: 260px` pinned under the navbar. The archetype
   only ever set border and background, so `position` was never reset and the
   rail left the grid entirely: with one in-flow child left, .main-content
   took the 244px rail track and the ledger rendered 196px wide with every
   row stacked. It looked like a broken ledger and was a broken sidebar.

   Scoped to .pa-rail-layout (emitted only by the archetype) so the ~14 pages
   still on the old fixed sidebar keep it. Retire this block with the other
   reclaim when shared.css's sidebar block goes. */
.pa-rail-layout > .filter-sidebar {
  position: static; inset: auto;
  width: auto; min-width: 0; max-width: none;
  z-index: auto; transition: none;
}
/* And the other half of the same collision. shared.css's .main-content is the
   pre-redesign CONTENT COLUMN: `padding: 20px 24px` plus `margin-left: 260px`
   to clear the old fixed sidebar. Inside the grid the margin is dead space and
   the padding is a SECOND gutter — the ledger already supplies --gutter, so
   the table sat 24px inboard of every band above it and its right edge stopped
   24px short. The bands are full-bleed; the column inside the rail must be too. */
.pa-rail-layout > .main-content {
  padding: 0; margin: 0; max-width: none;
}
/* Third piece of the same block: shared.css pins
   `.layout-with-sidebar { min-height: calc(100vh - 56px) }` so the old fixed
   sidebar always reached the fold. In the grid that forces the ROW to a
   viewport height, and since both children stretch, the rail's rule ran past
   the last ledger row by whatever the ledger was short of the fold — 125px on
   a 1250px window. The rail should end where the band ends; its own contents
   are its floor. */
.pa-rail-layout { min-height: 0; }

.filter-sidebar-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-bottom: 1px solid var(--rule);
}
.filter-sidebar-header h6 { font: var(--t-colhead); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-4); margin: 0; }
.filter-count { margin-inline-start: auto; font: var(--text-xs)/1 var(--font-mono);
  font-weight: 600; padding: 1px 6px; background: var(--amber); color: var(--amber-ink); }
.filter-count:empty { display: none; }
/* ── RECLAIM, fourth face. AND THE ONE THAT SOURCE ORDER DID NOT FIX. ────
   shared.css has `.filter-sidebar-header .filter-count { color: var(--primary-color) }`
   — the PRE-REDESIGN badge, which was a bare amber NUMBER with no fill. The
   archetype gives the badge an amber BACKGROUND, so that rule painted amber
   text on amber ground and the count was invisible: rendered, correct,
   unreadable. Reported as "the number of applied filters is not reflecting".
   It also forced --text-xs (11px) over 20a's 10px.

   The other three reclaims win on source order at equal specificity, because
   page-archetypes.css loads second. This one does NOT: a descendant selector
   is (0,2,0) against a bare class at (0,1,0), and specificity beats order. So
   the reclaim has to out-specify, not merely follow. Check the WEIGHT of the
   rule you are overriding, not just which file it is in.

   Not caught by the contrast gate either, and that is a real limit worth
   naming: the gate scores declared token PAIRS, so it never sees a pair that
   only exists once two rules from different files land on one element. */
.pa-rail-layout .filter-sidebar-header .filter-count {
  color: var(--amber-ink); font-size: var(--text-xs);
}
.filter-sidebar-body { padding: 16px 20px 0; }
.filter-group { margin-bottom: 18px; }
.filter-group label, .filter-group-label {
  display: block; font: var(--t-colhead); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 7px;
}

/* ── RECLAIM, FIFTH FACE — and the one that showed up as WHITESPACE. ──────
   shared.css:5705 gives `.filter-sidebar-body .filter-group` 14px/20px padding
   AND a bottom rule: the pre-redesign rail, where a group was a bordered
   section. That is 0-2-0 against the archetype's bare `.filter-group` at
   0-1-0, so specificity beat it exactly as it beat the count badge above, and
   every group carried 28px of vertical padding the drawing does not have, a
   second 20px gutter inside the body's own, and a rule between each pair.

   Seven facets on /alerts is 196px of rail that the ledger then has to match,
   because the two are grid siblings and stretch together. That is the blank
   space under a 15-row table — reported as "compact the side filter", and it
   was never a spacing preference: the rail was rendering the OLD system's
   anatomy inside the new one.

   20a's group is a LABEL AND A CONTROL. 18px between groups, nothing else.
   shared.css also sets the label to `opacity: .5`, which is a second way of
   saying --ink-4 and lands somewhere dimmer than the contrast floor when the
   two combine. */
.pa-rail-layout .filter-sidebar-body .filter-group {
  padding: 0; border-bottom: 0; margin-bottom: 18px;
}
.pa-rail-layout .filter-sidebar-body .filter-group label {
  font: var(--t-colhead); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4); opacity: 1; margin-bottom: 7px;
}
/* ONE control type. No checkbox lists, no segmented controls, no radio grids. */
/* .pa-select is the SAME control in the ledger toolbar. PATTERNS.md §9 wrote
   this rule scoped to .filter-group, i.e. to the rail — but §9 also says a rail
   with a single facet has not earned 244px and the control belongs in the
   toolbar instead. There was no rule for that case, so a toolbar select fell
   through to the browser default: grey fill, light 1px border, 14px text and a
   native chevron, against a flat dossier ledger.
   One control vocabulary (§6) means one rule, shared — not a second variant.

   THIRD location, same reasoning: a text field inside a preview pane. The
   bookmark and note pages put their creation form in the pane, because the
   archetype states its judgement first and an input box above the reading
   would undo that. Those fields fell through to the browser default exactly
   as the toolbar select had. Added here rather than as a `.pa-input`, which
   would have been the second variant this comment exists to prevent. */
/* FOURTH location, same reasoning as the three above, and the largest: a
   control inside a console SECTION. Measured on admin.html — 109 of its 123
   server-rendered inputs carry no class at all, and this sheet had zero rules
   for `.cn-section input` — so every text field, search box and dropdown in the
   redesigned console rendered with Bootstrap's recipe: 4px radius, its own
   greys, its own focus ring, beside archetype controls with none of those.
   Joined to the list rather than given a `.cn-input`, which is the second
   variant the comment above exists to prevent.

   Checkboxes and radios are excluded on purpose: the log-source, crown-jewel
   and compliance grids are native boxes with labels beside them, and a
   100%-wide box is not a box. */
.filter-group select, .filter-group input, .pa-select, .pa-search,
.pa-pane-q input:not([type="checkbox"]):not([type="radio"]), .pa-pane-q textarea,
.cn-section input:not([type="checkbox"]):not([type="radio"]),
.cn-section select, .cn-section textarea {
  width: 100%; background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: 0;
  color: var(--ink-2); font: var(--t-secondary); padding: 7px 10px;
  appearance: none;
}

/* ⚠ THE CHEVRON AND THE SET STATE ARE BOTH ALREADY IMPLEMENTED FURTHER DOWN
   THIS FILE, for `.pa-select` — the same control in the ledger toolbar. I wrote
   a second copy of each here before checking, which is precisely the defect
   this pass exists to fix: one decision typed twice. Both are now extended to
   cover the RAIL select instead, at their original site.

   The rail select was the one that had `appearance: none` with nothing put
   back, so it alone looked exactly like a text input — reported as "we do not
   see the down arrow". The toolbar select has had its chevron all along, which
   is why the two controls disagreed. */
/* A textarea is the one control in that list that the user resizes, and only
   ever downward into the pane's own scroll. Horizontal resize would push it
   past the pane edge. */
.pa-pane-q textarea { resize: vertical; line-height: 1.5; }
/* The rail's search box. The submit button is INSIDE the field's border rather
   than beside it, so the pair reads as one control — a separate 100%-wide
   button under a 100%-wide input reads as two, and the second one looks like
   the primary action of the whole rail.
   It is a real <form method="get"> and a real submit: Enter must work, and a
   key handler that fakes it is a control that behaves differently depending on
   how you reached it. */
/* ⚠ THE INPUT CARRIES THE BORDER, NOT A WRAPPER, and its declarations restate
   the rule above verbatim. Both halves of that are the fix for one bug.

   shared.css:5722 styles `.filter-group input[type="search"]` for the
   pre-redesign rail — 0-2-1, which OUTSPECIFIES the archetype's own
   `.filter-group select, .filter-group input` (0-1-1). So the search box
   silently took the old system's recipe (8px padding, --text-sm, a translucent
   fill, a 3px radius) while the sort <select> directly beneath it took the
   archetype's, and the two controls in one 244px rail rendered 3px apart with
   only one of them rounded. Nothing in the source looked wrong.

   The first fix wrapped the input in a bordered flex container, which cost
   another 2px — the wrapper's borders sit OUTSIDE the input's own box, so the
   pair could never equal a single-bordered select. Now the input is the
   bordered control (identical box maths to the select: 2 + 7 + 18.75 + 7 =
   34.75) and the button is absolutely positioned inside its padding. Height
   matches by construction rather than by adjustment.

   Reclaim, same shape as the .lrow reclaim at the top of this file. Matching
   0-2-1 and loading after shared.css is what wins. */
.rail-search { position: relative; display: block; }
.rail-search input[type="search"], .rail-search input {
  width: 100%; border-radius: 0;
  color: var(--ink-2); font: var(--t-secondary);
  padding: 7px 34px 7px 10px;      /* end padding clears the button */
  appearance: none;
}
/* ⚠ `!important`, DELIBERATELY, AND THIS IS THE ONLY PLACE IT IS EARNED.
   shared.css:2232 sets `background-color: var(--input-bg) !important` and
   `border: … var(--input-border) !important` on a bare `input[type="search"]`
   (and text/email/password/number/date/url/tel). An author `!important` beats
   every normal declaration INCLUDING an inline style — verified live: forcing
   `style="background: var(--surface)"` on this element still computed
   #1D1D20 while --surface on that same element was #151517.

   So the archetype's own input recipe at `.filter-group select, .filter-group
   input, …` has been DECORATIVE for text inputs since it was written. Only
   <select> escaped, because that block lists `select.form-control` /
   `select.form-select` and not a bare `select` — which is exactly why the sort
   control looked right and the search box beside it did not.

   Reclaimed here rather than by removing the `!important` from shared.css:
   that block is the live form system for the 34 unmigrated pages, and this
   file is loaded only by the archetypes, so the blast radius of a targeted
   reclaim is the pages that want it. Scoped to archetype surfaces by class.

   ⚠ AND IT IS NOT ONLY THE SEARCH BOX. `body.light-mode .filter-group select`
   (shared.css:5759, 0-3-1) does the same thing to the SORT SELECT and to every
   other rail facet in light mode — a pre-existing leak, older than this
   control, that only showed up when a second control stood next to one. So the
   reclaim covers the whole rail rather than the box that exposed it.

   LONGHANDS, not the `border` shorthand: the shorthand lost to the legacy
   `!important` while `background-color` beside it won, so the colour is
   asserted as its own declaration and measured rather than assumed. */
/* And the console, for the same reason and by the same measurement: shared.css
   carries `input[type="text"] { border-radius: var(--radius-md) }` and it beat
   the console recipe on six controls — a domain box, a search box, three number
   inputs and a period select — which stayed 3px-rounded beside square fields in
   the same section. The block below exists precisely because that fight cannot
   be won on specificity alone from this sheet. */
.rail-search input[type="search"], .rail-search input,
.pa-pane-q input[type="text"], .pa-pane-q input[type="search"],
.filter-sidebar .filter-group select, .filter-sidebar .filter-group input {
  background-color: var(--surface) !important;
  border-color: var(--rule-strong) !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 0 !important;
}
.rail-search input:focus { outline-offset: -2px; }
/* The UA's own clear affordance. Chrome draws it near-black on a dark fill. */
.rail-search input::-webkit-search-cancel-button { filter: invert(.6); }
.rail-search-go { position: absolute; inset-block: 1px; inset-inline-end: 1px;
  width: 32px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--ink-4); cursor: pointer; }
.rail-search-go:hover { color: var(--amber-text); }
.rail-search-go .cyn-icon { width: 14px; height: 14px; }
/* 20a: "Set state takes rgba(217,119,6,.5) on the border AND --ink on the
   value; unset stays --ink-2." Both halves matter — the border alone is a
   3px-wide signal at the edge of a 244px control, and the whole point of the
   rail's set state is that you can see WHICH facets are on without reading
   them. The ink carries it; the border confirms it. */
.filter-group select.is-set, .filter-group input.is-set,
.pa-select.is-set { border-color: rgba(217,119,6,.5); color: var(--ink); }
/* In the toolbar the control sizes to its content rather than filling a rail. */
.pa-select { width: auto; }
/* A search that lives in the toolbar rather than the rail. §9's rule of one
   sends a page with fewer than three facets here, and the search comes with
   them — it is a GET form so the URL stays the state, but in a toolbar row it
   must size to its content like the selects beside it rather than filling the
   line the way `.rail-search` does. */
.pa-tools-form { display: contents; }
/* ⚠ AND THE BOX MATHS MUST MATCH THE SELECT BESIDE IT. shared.css carries
   `input[type="search"] { padding: var(--space-2h) var(--space-3h); font:
   var(--text-md) }` at (0,1,1), which beats `.pa-search` at (0,1,0) — so the
   toolbar search rendered 43px tall against the selects' 34.75px and sat 4px
   off their centre line. Two classes out-specify it without an !important.
   The numbers are the select's own: 1 + 7 + 18.75 + 7 + 1. */
.pa-tools-form .pa-search {
  width: 200px; padding: 7px 10px; font: var(--t-secondary);
}
/* ── THE TOOLBAR'S TEXT INPUT, and it is the SAME SHELL by construction.
   /techniques filters a complete in-DOM catalogue from a toolbar rather than a
   rail (nothing is paginated), and its controls were a page-local `.de-tool`
   built on the PRE-REDESIGN tokens — `--input-bg`, `--input-border`,
   `--radius-sm`, `--text-xs`. Beside a v2 ledger that renders as rounded,
   lighter boxes with the browser's own arrow: a whole band of chrome from the
   other design system.

   Added to the shared rule above rather than restyled in place, for the reason
   that rule's own comment gives — one control vocabulary, declared once. It
   takes no chevron: it does not open, and the mark is what says a select
   does. */
.pa-search { width: auto; min-width: 170px; }
/* ── THE CHEVRON, for BOTH faces of the one control. `appearance: none` on the
   base rule removes the native mark, and this puts it back.
   
   ⚠ IT COVERED ONLY `.pa-select` UNTIL 2026-08-01. The rail select had the
   `appearance: none` and none of the replacement, so it rendered as a text
   input with no sign it opened — while the toolbar select two bands away had
   a chevron. One control vocabulary means one rule; the selector was simply
   too narrow.
   
   Two gradients rather than an SVG data URI, deliberately: the triangle takes
   `var(--ink-3)`, so it follows the theme. A data: URI is a separate document
   and cannot read a custom property, which would mean a hardcoded grey plus a
   light-mode override plus an RTL variant of each. */
/* ⚠ AND `.cn-section select`, or the console's selects TILE A CHEVRON ACROSS
   THEIR WHOLE WIDTH. Joining them to the base recipe above gave them
   `appearance: none` plus `background: var(--surface)` — a SHORTHAND, which
   resets background-repeat, -size and -position to their initial values
   (`repeat`, `auto`, `0% 0%`). shared.css's `select.form-control` still supplied
   its own Bootstrap SVG chevron as background-image, and with the shorthand's
   resets underneath it that chevron repeated about twenty-five times across
   every dropdown on the Organisation profile. The four background longhands
   travel together or not at all; this rule is where they travel. */
.filter-group select, .pa-select, .cn-section select {
  padding-inline-end: 26px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-size: 5px 5px, 5px 5px;
  background-position: right 12px center, right 7px center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.pa-select:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
/* background-position has no logical-property form, so the chevron does not
   mirror on its own. This app ships an Arabic RTL branch, where an unmirrored
   chevron would sit over the text rather than after it. */
[dir="rtl"] .filter-group select, [dir="rtl"] .pa-select {
  padding-inline-end: 10px;
  padding-inline-start: 26px;
  background-position: left 12px center, left 7px center;
}
/* ── RECLAIM, SIXTH FACE. The archetype re-declared the footer's PADDING and
   nothing else, so the rest of shared.css:5795's pre-redesign recipe leaked
   through: `position: sticky; bottom: 0` pinned "Clear filters" to the bottom
   of the panel with an 84px void above it, plus a `--card-bg` fill and a top
   border that turned a ghost link into a bar.

   20a draws it directly under the last control — 4px 20px 20px, no rule, no
   fill. Overriding only the properties you were thinking about is how five
   earlier reclaims in this file went; the rule is to reset the whole recipe. */
.filter-sidebar-footer { padding: 4px 20px 20px; }
.pa-rail-layout .filter-sidebar-footer {
  position: static; background: none; border-top: 0;
}
/* …and the last piece of the same recipe: shared.css makes the rail a flex
   column with `.filter-sidebar-body { flex: 1 }`, a SCROLL SHELL — body grows,
   footer sticks to the bottom of a fixed-height panel. The archetype rail is
   not fixed-height; it is a grid cell that stretches to whichever sibling is
   taller. So the body swallowed every pixel the ledger was taller by and
   carried "Clear filters" down with it, which is why unsticking the footer
   alone moved nothing. The groups stack from the top and the footer follows
   the last one, as drawn. */
.pa-rail-layout .filter-sidebar-body { flex: 0 0 auto; }
/* 20a's footer: a GHOST "Clear filters". Archetype-owned, because §9 says the
   page supplies .filter-group blocks and nothing else — and because the target
   is generic: clearing every facet is this page's own path with no query, so
   no page has to name it.
   Disabled at --ink-4 when the badge is absent, i.e. when there is nothing to
   clear. Rendered as a <span> in that state rather than a dead <a>: a link
   that goes nowhere is the same lie as an amber chip that is not a button. */
.filter-clear {
  display: inline-block; font: var(--t-colhead); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.filter-clear:hover { color: var(--amber-text); }
.filter-clear:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.filter-clear--off { color: var(--ink-4); cursor: default; }
.filter-clear--off:hover { color: var(--ink-4); }

.active-filter-chips { display: flex; align-items: center; gap: 7px; padding-bottom: 12px; }
.active-filter-chips:empty { display: none; }


/* ≤992px: emitted by the archetype so no page hand-rolls this trio. */
.sidebar-toggle, .sidebar-overlay { display: none; }
@media (max-width: 992px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; position: fixed; inset: 0; z-index: 1060;
    overflow-y: auto; }
  .filter-sidebar.open { display: block; }
  .sidebar-toggle { display: flex; position: fixed; inset-block-end: 20px;
    inset-inline-end: 20px; z-index: 1065; }
  .filter-sidebar.open ~ .sidebar-overlay { display: block; position: fixed;
    inset: 0; z-index: 1050; background: var(--overlay-backdrop); }
}


/* ── A CONTROL IN A LEDGER ROW MUST NOT SET THE ROW'S HEIGHT. ─────────────
   The alert-rules annex puts On/Delete buttons in each row, and `.pa-btn` is
   sized for a band action — so those rows rendered ~47px against the ledger's
   36px and the two tables on one page disagreed about their own density.
   Same defect as the <select> that had to leave the alerts row, one size down:
   a control brought its own box and the row inherited it. */
.lrows .lrow .pa-btn {
  padding: 1px 8px; font-size: var(--text-xs); line-height: 1.7;
}

/* ── 11. PAGINATION ──────────────────────────────────────────────── */
/* The gutter lives HERE, not in whatever happens to wrap it. §10 writes the
   padding as `14px 0 20px`, which assumes the pagination sits inside a
   container that already supplies --gutter — true on /code and /ransomware,
   where it is nested in .lrow-wrap, and false the moment a page puts it
   beside one. Then the count line starts hard against the left edge and Next
   sits flush against the right, both ~32px out of line with the table they
   describe. Carrying the gutter itself makes the alignment independent of
   nesting; the override below stops it doubling where it IS nested. */
.pa-pagination { display: flex; align-items: center; gap: 16px;
  padding: 14px var(--gutter) 20px;
  /* +--row-indent on the START only. The count line describes the table, so
     it should begin where the table's first COLUMN begins — and rows carry an
     11px indent to clear the severity spine that the pagination does not. All
     four migrated pages were 11px out on the left and exact on the right,
     which reads as a line that missed rather than a line that is offset. The
     end stays at the gutter, where the last column ends. */
  padding-inline-start: calc(var(--gutter) + var(--row-indent)); }
.lrow-wrap > .pa-pagination { padding-inline: var(--row-indent) 0; }
/* Say the SORT and any active filters, not just the count. */
.pa-pagination-count { font: var(--t-pill); letter-spacing: .08em; color: var(--ink-4); display: inline-block; max-width: var(--measure-cap); }
.pa-pagination-nav { margin-inline-start: auto; display: flex; gap: 6px; }
.pa-page-btn {
  font: var(--t-pill); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--rule-strong); color: var(--ink-2);
  padding: 5px 12px; background: none; border-radius: 0;
}
/* ⚠ A DEAD CONTROL MUST NOT LOOK LIVE, and until 2026-08-01 every one of them
   did. This rule was written as `[disabled]` — an attribute literally named
   `disabled` — while all 38 spent controls in the templates are marked
   `aria-disabled="true"`, which is a DIFFERENT attribute. `<span>` cannot take
   `disabled` at all, so the selector could never have matched what the
   archetype actually renders: Previous on page 1 and Next on the last page
   have looked identical to the live ones on all thirteen paged pages.

   The same hole ran through `.pa-btn`, which had no spent state of any kind —
   so a pane's "Mark reviewed" stayed fully amber after it was pressed and
   "Confirm phishing" looked pressable on a candidate somebody had already
   confirmed. `cursor: default` as well as the dimming: a hand cursor over a
   control that will not respond is the same false promise made twice. */
.pa-page-btn[disabled], .pa-page-btn[aria-disabled="true"],
.pa-btn:disabled, .pa-btn[aria-disabled="true"] {
  opacity: .45;
  cursor: default;
}

/* ── 12. BUTTONS — two variants, one scale. ──────────────────────── */
/* ⚠ THE LABEL COLOUR IS DECLARED ONCE, AS `--pa-btn-ink`, AND EVERY OTHER RULE
   READS IT. It has to be restated on hover for the `<a>` case below, and a
   restatement is a value in two places — which is how `.pa-btn--primary`'s
   label would end up amber-on-amber the day someone retones the fill and fixes
   only one of them. The variant re-declares the property, the element resolves
   whichever won, and there is no second literal to keep in step. */
.pa-btn {
  --pa-btn-ink: var(--ink-2);
  font: var(--t-pill); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--rule-strong);
  background: none; color: var(--pa-btn-ink); border-radius: 0;
  cursor: pointer; text-align: start;
  /* The app's most-used button (393 uses) snapped between rest and hover while
     the legacy buttons beside it faded; one micro-transition, colour only. */
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease,
              color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.pa-btn--primary { --pa-btn-ink: var(--amber-ink);
  background: var(--amber); color: var(--pa-btn-ink);
  border-color: var(--amber); font-weight: 600; }
.pa-btn--band { padding: 7px 14px; }
/* A negative verdict, not a destructive one — rejecting a rule is reversible
   via `re_review`. So it is an OUTLINE in the severity TEXT token, not a solid
   critical fill: a filled red button in a row of two reads as the dangerous
   choice and pushes people toward approving things they have not read.
   ⚠ `--sev-critical-text`, never `--sev-critical` — the fill token is held to
   the 3.0 UI ratio and this is a word. */
.pa-btn--danger { --pa-btn-ink: var(--sev-critical-text); color: var(--pa-btn-ink);
  border-color: var(--sev-critical-text); }
.pa-btn--danger:hover { background: var(--overlay-faint); }
/* A row of verdict buttons in a pane. Wraps, because the labels are words
   ("Send back for review") rather than icons and a narrow pane must not
   clip one. */
.pa-pane-acts { display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-2h); }
.pa-btn--block { display: block; width: 100%; padding: 12px 0; text-align: center; }
.pa-btn:hover { background: var(--hover-bg); }
/* Under the cursor the label steps to the theme's STRONGEST ink and the fill
   steps AWAY from it — --paper on a deeper amber in dark, the same ink on a
   lighter amber on paper — so the pair GAINS contrast on hover instead of
   losing it. The old literal, #c46a05, held --paper at 3.35:1: a white label
   on it would have failed the audit that asked for it. The variant re-declares
   `--pa-btn-ink` rather than `color`, the same way it does at rest, so the
   carve-outs below keep reading one property. The border follows the fill,
   as it does at rest. ⚠ Keep this after `.pa-btn:hover`: both are (0,2,0)
   and the fill wins on order alone. Pairs: tests/test_archetype_contrast and
   scripts/lint_contrast (`press-ink on press`, `press on band`). */
.pa-btn--primary:hover { --pa-btn-ink: var(--amber-press-ink);
  background: var(--amber-press); border-color: var(--amber-press); }
/* PRESSED. There was no :active at all, so a click gave no feedback until the
   page answered. An inset rule in the ink rather than a new fill: the fills'
   label contrast is measured and pinned (lint_contrast), and v2 moves nothing
   on press — no lift, no scale. */
.pa-btn:active { box-shadow: inset 0 0 0 1px var(--ink); }
.pa-btn:disabled:active, .pa-btn[aria-disabled="true"]:active { box-shadow: none; }
/* ⚠ A BUTTON IS A CONTROL, NOT PROSE THAT HAPPENS TO BE CLICKABLE, and when it
   is an `<a>` the band's own link rule outranks it. `.pa-pane a:hover` — and
   the seventeen band selectors beside it at §9 — is (0,2,1); `.pa-btn--primary`
   is (0,1,0), one CLASS. So hovering `<a class="pa-btn pa-btn--primary">`
   painted --amber-text on the amber fill: measured 1.22:1 dark and 1.02:1
   light, which is a label that vanishes under the cursor in both themes. 22
   templates carry ~64 of these anchors, so it was every primary link-button in
   the redesign, not one page's mistake.

   Third instance of one bug: `a.seg-opt` (§10, same fix) and `.pa-pane-tab`
   before it. The shape of the fix is the same each time — restate the CONTROL's
   own treatment at (0,2,1) or higher, placed after the link block — and here
   the restatement costs nothing because `--pa-btn-ink` is the one declaration.

   `text-decoration: none` matters as much as the colour: an underlined button
   label reads as a link inside a box, which is what it had become. */
a.pa-btn:hover { color: var(--pa-btn-ink); text-decoration: none; }
/* ⚠ THE SAME BUG AT REST, seen on the Command Centre chips 2026-09-05. The
   hover carve-out above won its fight and left the RESTING state to the band:
   `.pa-lede-band a { color: inherit }` is (0,1,1), `.pa-btn--primary` is
   (0,1,0), so the primary chip rested in the band's ink — --paper on the
   amber fill, 2.75:1 — and only took its own --amber-ink under the cursor.
   White at rest, black on hover: the drawing inverted. The secondary chip had
   the mirror defect, inherited ink at rest and --ink-2 on hover, a label that
   DIMS when pointed at. Same fix one class lower: restate the control at
   (0,1,1) AFTER the link block, where it wins on order, reading the one
   property. Guarded by test_a_button_at_rest_outranks_the_bands_prose_link_rule,
   which also fails the next bare `… a { color }` rule declared below here. */
a.pa-btn { color: var(--pa-btn-ink); text-decoration: none; }
.pa-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ⚠ 189 OF 341 FOCUSABLE CONTROLS IN THIS STYLESHEET HAD NO RULE, measured
   across 22 rendered pages on 2026-09-10. They fell back to the browser ring,
   so tabbing one page alternated between two visual languages.

   Two groups, split by whether an outline can sit OUTSIDE the box:
     · a standalone control has room, and takes a +2px offset like .pa-btn;
     · a full-width row does not — a ring outside .lrow or .cn-index-item is
       clipped by the container, so those take -2px and sit inside their own
       edge.
   The colour stays `var(--amber)` inline: see the note in the patch that
   introduced these, and CLAUDE.md §10.6 on why a derived token would bake. */
.pa-page-btn:focus-visible,
.pa-pane-close:focus-visible,
.pa-order-state:focus-visible,
.pa-pivot:focus-visible,
.rel-id:focus-visible,
.lrow-tag:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px;
}
.lrow:focus-visible,
.cn-index-item:focus-visible,
.seg-opt:focus-visible {
  outline: 2px solid var(--amber); outline-offset: -2px;
}

/* ── 13. THE PAIR — what the page is NOT telling you. Never optional. */
.pa-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--rule-strong);
}
.pa-pair > * { padding: 18px var(--gutter) 24px; }
.pa-pair > *:first-child { border-inline-end: 1px solid var(--rule); }

/* ── Mobile: the pair stacks. ───────────────────────────────────────────────
   `1fr 1fr` with no collapse, and a track's automatic minimum is its content's
   min-content width — so the two halves floored at 202.9 + 188.4 = 391px
   inside a 365px box. Measured on attack_techniques and ioc_correlation, the
   last two pages still overflowing once the head wrapped.

   `pair` is a REQUIRED slot, so every archetype page has one: it overflows on
   two pages today only because their content happens to carry a wide
   min-content, and any page is one long identifier away from joining them.
   The separating rule turns with the axis, as it does on `.pa-signature`. */
@media (max-width: 992px) {
  .pa-pair { grid-template-columns: minmax(0, 1fr); }
  .pa-pair > *:first-child {
    border-inline-end: 0;
    border-bottom: 1px solid var(--rule);
  }
}
.pa-row { display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.pa-row-k { font: var(--t-secondary); }
.pa-row-v { font: var(--t-value-lg); text-align: end; color: var(--ink-3); }
/* A row whose KEY is one machine token — a hash, a URL, an address. A SHA-256
   is 64 characters with no word boundary, so under `1fr auto` its min-content
   set the first column: the row ran ~50px off the alert pane and the actions
   were squeezed to one word a line, 111px a row (alert #19692, 2026-10-16).
   minmax(0, …) lets the key shrink, break-all lets it wrap anywhere — as
   `.pa-pane-title--mono` does, for the same reason — and the actions keep one
   line. `.pill--token` is the same token as a chip: a flex item never shrinks
   below its content unless it is told it may. */
.pa-row--token { grid-template-columns: minmax(0, 1fr) auto; }
.pa-row--token .pa-row-k { word-break: break-all; }
.pa-row--token .pa-row-v { white-space: nowrap; }
.pill--token { max-width: 100%; word-break: break-all; }
/* On a phone the one-line actions would leave the hash ~110px: five lines.
   Stack them under it instead. */
@media (max-width: 480px) {
  .pa-row--token { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .pa-row--token .pa-row-v { text-align: start; }
}
.pa-pair-note { font: var(--t-note); color: var(--ink-3);
  margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--rule);
  max-width: var(--measure-note);
}
/* The BASIS under a `.pa-row` judgement — the Outlook band's `why`. Deliberately
   has NO rule of its own: it belongs to the row above, inside that row's
   border, and a second line would read as a separate claim. */
.pa-row-sub { font: var(--t-note); color: var(--ink-3);
  max-width: var(--measure-note); padding-bottom: var(--space-1); }
/* Numbered blind spots — PATTERNS §12: a `22px 1fr` grid, numeral mono on
   amber, text at --t-secondary. This is THE numbered list in this system.
   `.pa-steps` is the same recipe under an honest name for an ordered
   PROCEDURE (the response steps in the /techniques pane), grouped rather than
   copied so there is one declaration and no chance of the two drifting. Do not
   give a numbered list a rail, a circle or a filled disc: /techniques had a
   30px amber-ringed disc on a 2px gradient rail, which is a second numbered
   list and reads as a workflow tracker with live state — it has none. */
.pa-blind, .pa-steps { display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--rule); align-items: baseline; }
/* ⚠ --amber-text, NOT --amber. The numeral is an 11px mono WORD, and --amber
   is registered at the 3.0 UI ratio for rules and eyebrows. Measured on the
   light shell: 3.20:1 — an AA fail on every page that closes with a pair, and
   on the /techniques procedure list. Dark reads 5.87:1, which is why it stood.

   This is the third instance of one mistake. `.lrow-tag` shipped --amber-hot
   at 9.5px (see the `tag kev on ground` note in scripts/lint_contrast), and
   `.pa-pane-tab.is-active` shipped --amber at 10.5px (see its own rule below).
   The pane tab could hand the amber to its BORDER, which is a UI element and
   is held to 3.0 legitimately; a bare numeral has no border to hand it to, so
   it takes the accent's text-weight value instead. Same hue, one step darker,
   4.77:1 light and unchanged at 6.21:1 dark. */
.pa-blind-n, .pa-steps-n { font: var(--t-value); color: var(--amber-text); }
.pa-blind-t, .pa-steps-t { font: var(--t-secondary); display: inline-block; max-width: var(--measure-note); }
/* The list's first row sits directly under its eyebrow, where the band's own
   rule already separates it. */
.pa-steps:first-child { border-top: 0; padding-top: 0; }

/* ── 14. PREVIEW PANE. Sibling of the layout, NEVER inside a grid
       column — a fixed drawer nested in a grid scrolls with the table. */
.pa-pane {
  position: fixed; inset-block: 0; inset-inline-end: 0;
  /* max-width: on a 390px phone a 480px pane opened 90px off the far edge,
     cutting the start of every line (found on the capability pane,
     2026-10-14; true of every pane). */
  width: var(--pane); max-width: 100vw; z-index: 1040;
  background: var(--void-2); border-inline-start: 1px solid var(--rule);
  overflow-y: auto; transform: translateX(100%);
  /* A drawer: --dur-panel on --ease-out-expo, the same as the provenance
     drawer and the modals. It was 180ms plain `ease` on 26 pages. */
  transition: transform var(--dur-panel) var(--ease-out-expo);
}
.pa-pane.open { transform: none; }
/* ⚠ ANCHORED LOGICALLY, HIDDEN PHYSICALLY. In Arabic the pane sits at the
   inline END, which is the LEFT edge, and translateX(100%) pushed it right —
   into the middle of the page — so it slid in out of the content instead of
   from its own edge. The hidden offset has to follow the anchor. */
[dir="rtl"] .pa-pane:not(.open) { transform: translateX(-100%); }
/* ⚠ THE SCRIM IS BOTH THINGS AT ONCE, and that is why it is an element rather
   than a filter on the page. It dims what is behind the pane so the pane is
   what you are reading, and it is the surface a click "outside" actually lands
   on — without it, "outside" is thirty different controls, each of which would
   have to decide for itself whether it also means close.

   z-index 1035 puts it UNDER the pane (1040) and over the page. It does not go
   above the mobile filter sidebar (1050/1060), which is its own overlay on a
   breakpoint where the pane is not the surface in use.

   `visibility` as well as opacity: a transparent scrim still swallows clicks,
   so a pane that is shut would leave the page unusable. Inserted by shared.js
   (`paneScrim`) on any page that has a `.pa-pane`. */
.pa-pane-scrim {
  position: fixed; inset: 0; z-index: 1035;
  background: var(--overlay-backdrop);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-hover) ease, visibility 0s linear .18s;
}
.pa-pane-scrim.on {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-hover) ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .pa-pane-scrim { transition: opacity 1ms, visibility 0s; }
}
.pa-pane-head { display: flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-bottom: 1px solid var(--rule); }
.pa-pane-close { margin-inline-start: auto; font-size: var(--text-lg); color: var(--ink-4);
  background: none; border: 0; cursor: pointer; line-height: 1; }
.pa-pane-title { font: 300 22px/1.25 var(--font-display); letter-spacing: -.01em; }
/* When the subject IS an identifier — a repo name, a CVE, a hostname — the
   display serif is wrong: it renders a machine string as prose and hides the
   character-level detail that distinguishes one from another. Mono, and
   break-all because these do not have word boundaries to wrap on. */
.pa-pane-title--mono {
  font: var(--text-lg)/1.3 var(--font-mono);
  letter-spacing: 0; word-break: break-all;
}
/* The four questions. Always these four, always this order. */
.pa-pane-q { padding: 18px 26px; border-bottom: 1px solid var(--rule); }
/* margin: 0 is load-bearing. A <dl> carries a UA bottom margin (16px here),
   which collapsed with the 12px margin-top of whatever followed and won —
   so the gap ABOVE the source record was 16px and the gap below it 12px,
   an uneven rhythm nobody declared. The pane sets its own spacing. */
.pa-pane-kv { display: grid; grid-template-columns: 104px 1fr; gap: 9px 14px;
  font: var(--t-secondary); align-items: baseline; margin: 0; }
.pa-pane-kv dt { font: var(--text-xs)/1 var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-4); padding-top: 1px; }
.pa-pane-kv dd { margin: 0; color: var(--ink); }
/* A 64-character digest has no break opportunity of its own, so in a signature
   column it either widens the grid or spills out of it. Mono because it is
   data to be compared character by character, and broken anywhere because a
   hash has no meaningful place to break. */
.pa-kv-hash { font: var(--text-xs)/1.5 var(--font-mono); overflow-wrap: anywhere; }
/* Provenance under the pane title — question 1 is "what is it", and where it
   came from and when is half that answer. */
.pa-pane-prov { font: var(--text-xs)/1.5 var(--font-mono); letter-spacing: .04em;
  color: var(--ink-4); margin-top: 8px; }
/* Running prose inside a pane section. --ink-2 rather than --ink: the pane
   explains, the ledger states, and the two should not read at equal weight. */
.pa-pane-lead { font: var(--t-prose-tight); color: var(--ink-2); margin: 0; max-width: var(--measure-note); }
/* A note that qualifies rather than states — why a control is absent, what a
   number excludes. Same ladder position as .pa-fig-note; its own class because
   it lives in a pane and needs the margin reset a figure caption does not. */
.pa-pane-note { font-size: var(--text-sm); line-height: 1.45; color: var(--ink-3); margin: 0; max-width: var(--measure-note); }
/* ⚠ A NOTE IS A QUALIFIER, AND NOTHING GIVES IT THE GAP THAT MAKES IT ONE.
   `.pa-pane-note` resets its own margin (it is used in places where the parent
   owns the spacing), `.pa-pane-kv`'s 9px grid gap applies BETWEEN its rows and
   stops at the last <dd>, and `.pa-chips` has no bottom margin — so a note
   placed after any of them lands flush and reads as another value in the list,
   another chip's caption, or part of the quoted block above it. Measured on
   the vulnerability pane: EIGHT adjacencies at exactly 0px.

   Both directions, because the failure is symmetric: content placed after a
   note and touching it reads as covered by the note. This is the same defect
   the `.pv-slot` rule below already fixes for asynchronously-filled blocks —
   generalised, since it was never specific to those.

   The margin belongs to the ADJACENCY rather than to any class: every one of
   these is used elsewhere where the flush position is correct, and scoping to
   `.pa-pane-q` keeps it to pane sections. */
.pa-pane-q > * + .pa-pane-note,
.pa-pane-q > .pa-pane-note + *,
.pa-pane-q > .pa-chips + .pa-pane-kv { margin-top: var(--space-2h); }

/* ── The indicator pane's additions (2026-11-24) ─────────────────────────
   Owner-reported: a 64-character hash ran out of the pane in the display
   serif, with no way to copy it. The title takes `.pa-pane-title--mono`; the
   rest is what a pane needs once its subject is a value to be copied, searched
   for and compared rather than read. Written generically (`pa-`), used first
   on /indicators. */
/* The identifier and its Copy control on one line. min-width:0 is what lets
   the title wrap: a flex item never shrinks below its content unless told. */
.pa-pane-idrow { display: flex; gap: var(--space-3); align-items: flex-start; }
.pa-pane-idrow .pa-pane-title { flex: 1; min-width: 0; margin: 0; }
.pa-copy { flex: none; font: var(--text-xs)/1 var(--font-mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); background: none; cursor: pointer;
  border: 1px solid var(--rule-strong); padding: var(--space-1h) var(--space-2); }
.pa-copy:hover { background: var(--hover-bg); color: var(--ink); }
.pa-copy:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
/* Each stored source entry: what the feed called it, and when we recorded it.
   NOT `.pa-src` — that is the quoted-source box and paints a filled panel. */
.pa-voices { margin-top: var(--space-3); }
.pa-voices-row { display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4); padding: var(--space-1h) 0; font: var(--t-secondary);
  color: var(--ink); border-bottom: 1px dashed var(--rule); overflow-wrap: anywhere; }
.pa-voices-row:last-child { border-bottom: 0; }
.pa-voices-when { font: var(--text-xs)/1.5 var(--font-mono); color: var(--ink-4);
  white-space: nowrap; }
/* A query to paste into a SIEM, with its own Copy. `.pa-pane` in the selector
   outranks shared.css's themed `code` background, which would box every line. */
.pa-query { display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3); align-items: start; padding: var(--space-1h) 0;
  border-bottom: 1px dashed var(--rule); }
.pa-query:last-child { border-bottom: 0; }
.pa-pane .pa-query code { font: var(--text-xs)/1.5 var(--font-mono); color: var(--ink-2);
  background: none; padding: 0; border: 0; overflow-wrap: anywhere; }
/* A section that is the same for every row of its kind, folded shut so it
   does not outweigh the facts about this one. */
.pa-fold { margin-top: var(--space-3h); }
.pa-fold > summary { cursor: pointer; font: var(--t-eyebrow); letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-4); }
.pa-fold > summary:hover { color: var(--ink); }
.pa-fold > summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.pa-fold[open] > summary { margin-bottom: var(--space-3); }
/* The qualifier under a value: what the number is computed from, what a
   similarity does and does not mean. */
.pa-kv-sub { display: block; font-size: var(--text-sm); line-height: 1.45;
  color: var(--ink-3); margin-top: var(--space-0); }
.pa-pane-kv dd .pa-chips { margin-top: 0; }
.pa-pane-kv dd a:not(.pill):not(.pa-btn), .pa-pane-links a:not(.pa-btn),
.pa-voices-row a:not(.pa-btn) { color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px; }
.pa-pane-kv dd a:not(.pill):not(.pa-btn):hover, .pa-pane-links a:not(.pa-btn):hover,
.pa-voices-row a:not(.pa-btn):hover { text-decoration-color: var(--ink); }

/* ── Source viewer ──────────────────────────────────────────────────────
   For a pane that shows a stored artefact verbatim: a Sigma rule, a query, a
   config. The bodies are rendered into .pa-src-store (hidden, outside the
   pane) and CLONED in, because a pane holding every row's four translations
   at once is 60 blocks of code in the accessibility tree.                  */
.pa-src-store { display: none; }
.pa-src-host { margin-top: var(--space-2); }
.pa-src {
  /* PRE, so it must scroll on its own. A stored query has no wrap points and
     would otherwise push the pane — and on narrow viewports the page body —
     sideways. Same contract as the wide-content rule for tables. */
  overflow-x: auto;
  max-height: 340px; overflow-y: auto;
  margin: 0; padding: var(--space-3);
  font: var(--text-xs)/1.6 var(--font-mono);
  color: var(--ink-2);
  /* A WASH, not a fixed ground. `--bg-deeper` computes to the same colour as
     the pane's own background, so a code block inside a pane had no fill
     contrast at all and only its border set it apart. A translucent overlay
     recesses whatever it sits on — the page ground, the pane, or the light
     theme — instead of matching one of them and vanishing on the others. */
  background: var(--overlay-faint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  white-space: pre;
  tab-size: 2;
}
.pa-pane-tabs { display: flex; flex-wrap: wrap; gap: var(--space-1);
  margin-top: var(--space-2); }
.pa-pane-tab {
  font: var(--t-value); font-size: var(--text-xs); letter-spacing: .06em;
  text-transform: uppercase;
  /* --ink-4 is the floor and these are 10.5px uppercase, so the INACTIVE tab
     sits at --ink-3 rather than the floor: it is a control, not a caption, and
     a reader has to be able to find the one they want before clicking it. */
  color: var(--ink-3);
  background: transparent; border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2h);
  cursor: pointer;
  transition: color var(--transition-hover), border-color var(--transition-hover);
}
.pa-pane-tab:hover { color: var(--ink); border-color: var(--rule-strong); }
/* ⚠ THE BORDER CARRIES THE ACTIVE STATE, NOT THE TEXT COLOUR. `--amber` on the
   light ground is 3.67:1, and at 10.5px uppercase this is TEXT and owes 4.5:1 —
   the same trap `.lrow-tag` fell into with --amber-hot at 9.5px. A token's
   registered threshold belongs to its registered USE, and "accent on ground" is
   registered for rules and eyebrows at the 3.0 UI ratio, not for a word someone
   has to read. So the label goes to full ink (12.8:1 light, 13.9:1 dark) and the
   amber moves to the border, which is a UI element and is held to 3.0 legitimately.
   State is then carried by two cues, neither of which is a failing one. */
.pa-pane-tab.is-active { color: var(--ink); border-color: var(--amber); }
/* Every pane section opens with an eyebrow at the same offset. This was three
   identical inline `margin-bottom:10px` attributes before — one per question —
   which is a variant waiting to happen the moment someone types 9px. */
.pa-pane-q .pa-eyebrow { display: block; margin-bottom: var(--space-2h); }
/* The action row closing question 4. Primary first. */
.pa-pane-actions { display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-3); }
/* Raw evidence inside a pane — a redacted snippet, a rule payload, a matched
   line. Mono and boxed so it reads as QUOTED MATERIAL rather than as the
   product's own prose: the pane explains, this is the thing being explained.
   pre-wrap because a snippet carries its own line breaks and must not be
   reflowed into something that never appeared in the source. */
.pa-source-record {
  font: var(--t-value); line-height: 1.6; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--rule);
  padding: var(--space-3); margin-top: var(--space-3);
  white-space: pre-wrap; word-break: break-all;
  max-height: 220px; overflow: auto;
}
/* Asynchronously-filled content closing a pane question (enrichment pivots, a
   stored summary). It needs the SAME gap the source record above it takes, or
   its eyebrow sits flush against that box's border and reads as a caption
   belonging to it rather than as the next thing. Scoped to the pane: `.pv-slot`
   is shared vocabulary and the feed drawer sets its own rhythm.
   `.pv-slot:empty` is already display:none, so this cannot leave a phantom gap
   when there is nothing to show. */
.pa-pane-q > .pv-slot { margin-top: var(--space-3); }
/* ⚠ A PANE SELECT FILLS THE PANE. `.pa-select { width: auto }` is the ledger
   toolbar's rule, and in the alerts pane it sized the "Add to an open case"
   select to its longest case title — wider than the pane, so the pane grew a
   horizontal scrollbar (2026-09-23). The label takes its own line above it. */
.pa-pane-q .pa-select { display: block; width: 100%; max-width: 100%; min-width: 0;
                        margin-top: var(--space-1); text-overflow: ellipsis; }
.pa-pane-q label.pa-pane-note { display: block; margin-top: var(--space-3); }
/* In the bulk bar a select stays inline, but a case title may not stretch it. */
.pa-bulk .pa-select { max-width: 240px; text-overflow: ellipsis; }
/* A takedown report body (/phishing/takedown): quoted material like any
   source record, but a whole letter — taller than a snippet, and never
   broken mid-word, because the analyst reads it before sending it. */
.pa-source-record.pa-td-body { max-height: 360px; word-break: normal; overflow-wrap: anywhere; }

/* ── RESPONSE TEMPLATES (25b) ────────────────────────────────────────────
   The pane's fourth question — WHAT DO I DO — on /cases/<id>. Fifteen drafts
   over six categories, rendered against the case and handed to the analyst to
   paste into Slack, Jira or a regulator's portal.

   It is a pane and not a page ON PURPOSE: a page would imply the draft
   persists, and it does not — the endpoint renders it once and forgets it.
   Everything below is drawn at 480px (`--pane`), which is why the picker sits
   ABOVE the draft rather than in the 246px rail beside it that a standalone
   card could afford. What the rail geometry carried — category sectioning,
   one visible selection — the stacked list carries too. */

/* The picker. Capped and self-scrolling so fifteen rows cannot push the draft
   below the fold; the draft is what the analyst came for. */
.pa-tpl-list { max-height: 232px; overflow-y: auto;
  border: 1px solid var(--rule); border-radius: var(--radius-sm); }
/* Category is the ONLY sectioning, and the order is the server's
   (`list_templates` sorts by category then title, never by recency). A list
   that reorders itself is one an analyst stops trusting to muscle memory —
   which matters here more than most places, because the library's own note
   says a slug is forever. */
.pa-tpl-cat {
  position: sticky; top: 0; z-index: 1;
  font: var(--t-eyebrow); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4); background: var(--void-2);
  padding: var(--space-2h) var(--space-3) var(--space-1);
  border-bottom: 1px solid var(--rule);
}
.pa-tpl-opt {
  display: block; width: 100%; text-align: start;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  padding: var(--space-2) var(--space-3); cursor: pointer;
  transition: background var(--transition-hover);
}
.pa-tpl-opt:hover { background: var(--hover-bg); }
/* The chosen one takes the amber spine `.lrow.is-active` uses, for the same
   reason: after scrolling a capped list the reader must be able to find what
   they picked without re-reading it. The NAME goes to full ink rather than the
   accent — 12.5px is text and owes 4.5:1, and `--amber` is registered at the
   3.0 UI ratio (see `.pa-pane-tab.is-active` above, same trap). */
.pa-tpl-opt[aria-current="true"] { box-shadow: inset 3px 0 0 var(--amber);
  background: var(--hover-bg); }
.pa-tpl-opt[aria-current="true"] .pa-tpl-name { color: var(--ink); }
.pa-tpl-name { display: block; font-size: var(--text-sm); line-height: 1.4;
  color: var(--ink-2); }
.pa-tpl-desc { display: block; font: var(--t-value); font-size: var(--text-xs);
  color: var(--ink-4); margin-top: 3px; }

/* The marking row above the draft: what it is marked, what it was rendered
   against, and that it is a draft. */
.pa-tpl-mark { display: flex; align-items: center; gap: var(--space-2);
  flex-wrap: wrap; margin-bottom: var(--space-3); }
.pa-tpl-against { font: var(--t-value); font-size: var(--text-xs); color: var(--ink-3); }
.pa-tpl-draft { font: var(--t-value); font-size: var(--text-xs); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-4); margin-inline-start: auto; }

/* The draft itself. Mono and pre-wrap because it is a DOCUMENT being handed
   over verbatim — every line break in it is one the recipient will see. */
.pa-tpl-body {
  font: var(--t-value); font-size: var(--text-xs); line-height: 1.72;
  color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--rule); padding: var(--space-3);
  white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: 340px; overflow-y: auto;
}
/* ⚠ A HOLE IS DRAWN, NOT DESCRIBED. The regulatory templates ship literal
   `[to be completed]` markers, and an Art. 33 filing sent with a bracket still
   in it is the one failure this feature can actually cause. So the unfilled
   section is a dashed box in the danger role rather than a note underneath,
   and `display:block` inside the pre-wrap flow lets the body's own blank lines
   provide the gap above and below it — no margin needed, and none wanted: a
   margin would put the hole at a different rhythm from the paragraph it
   replaced.

   The paragraph is the unit, not the marker: three consecutive
   `_X:_ [to be completed]` lines are one thing to go and find out. The server
   decides that (`response_templates._sections`) and this only paints it. */
.pa-tpl-seg--hole {
  display: block;
  border: 1px dashed var(--sev-critical); background: var(--sev-critical-bg);
  color: var(--sev-critical-text);
  padding: var(--space-2) var(--space-2h);
}

/* The gate. Tinted, because the count on it is the reason the primary action
   is disabled — put them anywhere else and the button reads as broken. */
.pa-tpl-gate { display: flex; align-items: center; gap: var(--space-2);
  flex-wrap: wrap; margin-top: var(--space-3);
  padding: var(--space-2h) var(--space-3);
  background: var(--sev-critical-bg); border: 1px solid var(--rule); }
.pa-tpl-gate--clear { background: none; padding: 0; border: 0; }
.pa-tpl-count { font: var(--t-value); font-size: var(--text-xs);
  color: var(--sev-critical-text); }
.pa-tpl-gate--clear .pa-tpl-count { color: var(--ink-3); }
.pa-tpl-gate .pa-pane-actions { margin-top: 0; margin-inline-start: auto; }
/* Compliance gets the trail whether or not we mention it. Saying it on screen
   is the point: an analyst who finds out later that every render was logged
   trusts nothing else on the page. --ink-4 is the caption floor and this is a
   caption — it is not asking for a decision, it is closing the transaction. */
.pa-tpl-audit { font: var(--t-value); font-size: var(--text-xs); line-height: 1.5;
  color: var(--ink-4); margin: var(--space-2h) 0 0; }

/* The row a pane is currently showing. Without this the pane can be open on a
   row the eye cannot find again in a long ledger. Left edge only — a full
   background would compete with the severity spine it sits beside. */
.lrow.is-active { background: rgba(217,119,6,.07); box-shadow: inset 2px 0 0 var(--amber); }
/* An inert row must not claim to be clickable. shared.css sets `cursor:
   pointer` on every .lrow for the PRE-REDESIGN system, and the reclaim block
   overrode padding and min-height but never this — so a ledger with no row
   action still showed a hand. The archetype's own rule below was written
   conditional precisely so it would not, and could not win against an
   unconditional declaration it never reset. */
.lrow { cursor: auto; }
/* ⚠ AND A ROW THAT IS A LINK IS NOT INERT EITHER. The conditional above says
   "a row shows a hand when it does something", and it read that as "when it
   carries a data-action". Two ledgers express the same thing as an ADDRESS
   instead — `<a class="lrow" href=...>` on the stories list and the dashboard
   feed — which is the better form for a row that navigates: middle-click and
   open-in-new-tab work, the same reason .pa-pagination's Previous/Next are
   anchors. Carrying no data-action, they fell to `cursor: auto`, so the two
   ledgers whose rows are genuinely addresses were the only ones that did not
   look clickable. */
.lrow[data-action], a.lrow { cursor: pointer; }

/* ── 15. ASSURANCE — composition bar, not tiles. ─────────────────── */
.as-bar { display: flex; height: 26px; border: 1px solid var(--rule); margin-bottom: 14px; }
.as-bar > i { display: block; height: 100%; }
.as-legend { display: grid; grid-template-columns: 12px 1fr 42px; gap: 9px;
  align-items: center; padding: 7px 0; border-top: 1px solid var(--rule); }
.as-swatch { width: 10px; height: 10px; }

/* ── 16. LOOKUP ──────────────────────────────────────────────────── */
.lk-query { display: grid; grid-template-columns: 1fr 380px; gap: 44px;
  align-items: end; padding: var(--band-y) var(--gutter) 24px;
  border-bottom: 2px solid var(--rule-strong); }
.lk-query--wide { grid-template-columns: 1fr; }
.lk-input-group { display: flex; }
.lk-input {
  flex: 1; background: var(--void-2); border: 1px solid var(--border-strong);
  color: var(--paper); font: var(--text-section)/1 var(--font-mono); letter-spacing: .02em;
  padding: 13px 16px; border-radius: 0;
}
/* ⚠ NOT COVERED BY THE SHARED INPUT RULE. shared.css focuses
   `textarea.form-control`, and the decoder's box carries .lk-input/.lk-textarea
   instead — so this control had no focus ring at all until 2026-09-10. */
.lk-input:focus-visible,
.lk-select:focus-visible { outline: 2px solid var(--amber); outline-offset: -1px; }
/* Decoder's query is a BLOCK, not a line. What gets pasted here is a payload,
   frequently several hundred characters, and .lk-input's 20px single-line
   field would make the analyst scroll a text box sideways to see what they
   pasted. Same border and background so the two read as one control family. */
.lk-decode-form { display: flex; flex-direction: column; gap: var(--space-3); }
.lk-textarea { font: var(--text-sm)/1.6 var(--font-mono); resize: vertical; width: 100%;
  overflow-wrap: anywhere; }
/* Radius 0, including selects (CLAUDE.md §12 — the 8px chip was already
   off-system). -1px margin so it shares the button's border rather than
   doubling it. */
.lk-select { background: var(--void-2); border: 1px solid var(--border-strong);
  color: var(--paper); font: var(--t-secondary); padding: 13px 16px;
  border-radius: 0; margin-inline-end: -1px; }
.lk-recent { display: flex; flex-wrap: wrap; gap: 5px; }
.lk-verdict-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lk-verdict-pill { font: var(--t-pill); letter-spacing: .08em; padding: 2px 8px;
  border: 1px solid; }
.lk-verdict--hostile { border-color: rgba(220,38,38,.45); background: rgba(220,38,38,.18);
  color: var(--sev-critical-text); }
.lk-verdict--suspicious { border-color: rgba(234,88,12,.45); background: rgba(234,88,12,.18);
  color: var(--sev-high-text); }
.lk-verdict--benign { border-color: rgba(61,214,140,.45); color: var(--ok); }
/* "unknown" is a verdict, not an error. It must look like a decision. */
.lk-verdict--unknown { border-color: var(--rule-strong); color: var(--ink-3); }
.lk-agree { font: var(--t-pill); letter-spacing: .08em; color: var(--ink-4); }
.lk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
/* One column per provider ASKED, and the count differs by mode: /ip_lookup
   asks three, /hash_lookup asks two. A hardcoded repeat(3, 1fr) left the
   two-provider page with a third of the band empty and suppressed the last
   card's divider against that dead space — which read as a provider that had
   failed to render rather than one that was never asked. */
.lk-providers { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border-top: 1px solid var(--rule); }
.lk-provider { padding: 20px 28px 24px; border-inline-end: 1px solid var(--rule); }
.lk-provider:last-child { border-inline-end: 0; }
.lk-provider--absent { border-top: 1px dashed rgba(217,119,6,.45); }
.lk-score { font: 34px/1 var(--font-mono); }
/* The DENOMINATOR, at half the weight of the number. "12" alone invites the
   reader to compare it with a fraud score; "12/74" says what it is a count of.
   Kept in the same line box so the pair reads as one figure. */
.lk-score-of { font: var(--t-value); color: var(--ink-4); margin-inline-start: 2px; }
/* A provider with no number. Same size as one that has a score, so the card
   keeps its shape and the eye reads absence as a state rather than a gap. */
.lk-score--none { color: var(--ink-4); }
/* Why this provider was read the way it was — the sentence under the figure.
   --ink-2 because it EXPLAINS the number above it and must not compete. */
.lk-read { font: var(--t-prose-tight); color: var(--ink-2);
  margin: var(--space-3) 0 0; }
/* The provenance line closing a provider card: state, latency, and the subject
   it actually scored. Mono and dim — it is a machine record, not prose. */
.lk-asked { font: var(--text-xs)/1.5 var(--font-mono); letter-spacing: .04em;
  color: var(--ink-4); text-transform: uppercase; margin: var(--space-2) 0 0; }
/* Input rejected. Beside the field, not a page-level alert: the fault is with
   what was typed, so the message belongs where the typing happened. */
.lk-error { font: var(--t-secondary); color: var(--sev-high-text);
  margin: var(--space-2h) 0 0; max-width: 62ch; }
/* ⚠ "Asking this cost you something." Amber rule because it is not an error —
   the lookup worked — but the reader must not scroll past it. */
.lk-disclosure { font: var(--t-secondary); color: var(--sev-high-text);
  border-inline-start: 2px solid var(--amber); padding-inline-start: var(--space-3);
  margin: var(--space-3) 0 0; }
/* PROPOSED controls (handoff rules #4/#17): drawn, not wired, because the
   thing behind them does not exist yet. They must NOT look live — a button
   that appears actionable over no writer is worse than an absent one, since
   the analyst believes their decision was recorded. Dashed, dimmed, and
   default-cursor so nothing about it invites a click. */
/* PROPOSED — drawn, not wired. Handoff rule #4 asks for three things: a
   dashed AMBER border, the word PROPOSED, and a sentence saying what is
   missing. Only the sentence shipped; the border was the default rule colour
   at rgba(255,255,255,.14) and the label was indistinguishable from a live
   control that happened to be disabled.
   `opacity` is gone: it dims the border and the text by the same factor,
   which is what put the label at 3.47:1, and it makes the swatch impossible
   to reason about in the contrast tests. Colour and border carry it instead. */
.pa-btn--proposed {
  --pa-btn-ink: var(--amber-text);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--amber) 60%, transparent);
  color: var(--pa-btn-ink); background: none; cursor: default;
}
.pa-btn--proposed:hover { background: none; color: var(--pa-btn-ink); }
/* The word itself, so a page cannot forget it. */
.pa-btn--proposed::after {
  content: 'PROPOSED';
  font: var(--t-pill); letter-spacing: .1em;
  color: var(--ink-4); margin-inline-start: var(--space-2);
}
.lk-proposed-note { font: var(--t-secondary); color: var(--ink-4);
  align-self: center; max-width: 44ch; }
/* The STANDING verdict (migration 102) — what a PERSON concluded about this
   subject. Full-width inside the flex row so it reads as a record OF the
   actions above rather than as a fourth button beside them. */
.lk-recorded { flex-basis: 100%; border-top: 1px solid var(--rule);
  padding-top: var(--space-3); margin-top: var(--space-2h);
  font: var(--t-secondary); color: var(--ink-2); max-width: 62ch; }
/* Nothing recorded yet is the common case and must occupy no space — an empty
   bordered strip reads as a control that failed to load. */
.lk-recorded:empty { display: none; border-top: 0; padding-top: 0; margin-top: 0; }
.lk-recorded-what { color: var(--ink); font-weight: 600; }
/* What the MACHINE was showing when the analyst decided, kept typographically
   apart from what the analyst decided. The gap between the two is the whole
   calibration signal; one sentence containing both would read as agreement. */
.lk-recorded-machine { display: block; color: var(--ink-4);
  font: var(--text-xs)/1.5 var(--font-mono); letter-spacing: .04em;
  text-transform: uppercase; margin-top: var(--space-2); }
/* WAITING — a job that cannot finish inside a request is still running.
   Lives inside the verdict band, because "we are still looking" is an answer
   to the question that band asks rather than an error beside it. */
.lk-waiting { display: flex; align-items: baseline; gap: var(--space-2h);
  font: var(--t-secondary); color: var(--ink-2); max-width: 62ch;
  margin-top: var(--space-3); }
.lk-waiting-dot { flex: none; width: 7px; height: 7px; background: var(--amber);
  border-radius: 50%; animation: lk-pulse 1.6s ease-in-out infinite; }
@keyframes lk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* A pulsing dot beside text an analyst is trying to read is exactly the motion
   this media query exists for. The dot stays — it marks the state — it just
   stops moving. */
@media (prefers-reduced-motion: reduce) {
  .lk-waiting-dot { animation: none; }
}

/* THE PAYLOAD — what a TRANSFORMING mode produced (decoder). Scrolls inside
   its own box rather than being clipped: the old page put the decoded text in
   the DOM TWICE, once clamped to 100px and once hidden, with a "show more"
   button swapping them — two copies of the payload to avoid a scrollbar. One
   copy, one scroll. `anywhere` because a decoded blob has no break
   opportunities and would otherwise force the page to scroll sideways. */
.lk-payload {
  font: var(--text-sm)/1.7 var(--font-mono); color: var(--ink);
  background: var(--void-2); border-top: 1px solid var(--rule);
  padding: var(--space-5) var(--gutter); margin: 0;
  max-height: 420px; overflow: auto;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
/* Bytes we will NOT render as text. Reads as a stated refusal, not an empty
   box — the distinction the whole page is about.
   --ink-3, not --ink-4: this is the ONLY thing in the band, standing in for
   the payload itself, so it is content rather than meta and should not sit on
   the 4.9:1 contrast floor reserved for labels. */
.lk-payload--none { color: var(--ink-3); font: var(--t-prose); white-space: normal; }
/* What fell out of the decoded text. A PIVOT LIST, never a finding: encoding
   is how ordinary software moves bytes, so the presence of a URL is not
   evidence of anything and must not be styled as though it were. */
.lk-pivots { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.lk-pivot { font: var(--t-value); color: var(--ink-2);
  border: 1px solid var(--rule-strong); padding: var(--space-1) var(--space-2);
  overflow-wrap: anywhere; max-width: 100%; }
.lk-pivot-kind { color: var(--ink-4); text-transform: uppercase;
  letter-spacing: .06em; margin-inline-end: var(--space-1h); }
/* The analyst's own words. Quoted, because it is the one string on this page
   that no provider and no model produced. */
.lk-recorded-note { display: block; color: var(--ink-3);
  border-inline-start: 2px solid var(--rule-strong);
  padding-inline-start: var(--space-3); margin-top: var(--space-2); }

/* ── 17. WORKSPACE ───────────────────────────────────────────────── */
.ws-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.ws-sessions { border-inline-end: 1px solid var(--rule); background: var(--void-2);
  display: flex; flex-direction: column; }
.ws-main { display: flex; flex-direction: column; min-width: 0; }
.ws-session-head { padding: 16px var(--gutter) 14px; border-bottom: 1px solid var(--rule); }
.ws-rail { flex: 1; padding: 22px var(--gutter) 0; overflow-y: auto; }
.ws-composer-section { border-top: 1px solid var(--rule);
  padding: 16px var(--gutter) 18px; background: var(--void-2); }
/* Visible, not a title attribute — keyboard and touch users get nothing
   from a tooltip. */
.ws-mode-help { font: var(--t-note); color: var(--ink-3); margin: 10px 0 0; }
.ws-disclaimer { font: var(--t-note); color: var(--ink-4); margin: 8px 0 0; }
.ws-trace { border-inline-start: 1px solid rgba(217,119,6,.4);
  padding-inline-start: 16px; margin-bottom: 16px; }
.ws-trace-step { display: grid; grid-template-columns: 16px 1fr 62px; gap: 7px 10px;
  font: var(--text-xs)/1.5 var(--font-mono); color: var(--ink-3); align-items: baseline; }

/* ── Agents (/agents, Assurance) ─────────────────────────────────────────
   Four things, because the page needed four the shared vocabulary did not
   already have. Everything else on it — .as-bar, .pa-order, .lrow,
   .pa-pane-kv — is the archetype's own. */

/* The autonomy dial, in a ledger cell. A <select> per rule 6, sized to sit in
   a 104px column without changing the row height. */
.ag-dial { appearance: none; -webkit-appearance: none; border-radius: 0;
  background: var(--void-2); border: 1px solid var(--rule); color: var(--ink);
  font: var(--t-colhead); letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 6px; width: 100%; cursor: pointer; }
.ag-dial:hover, .ag-dial:focus-visible { border-color: var(--amber); }
.ag-dial:disabled { opacity: .55; cursor: progress; }

/* A ledger row that opens a drawer. The cursor is the only affordance a row
   like this gets — it must not also grow a border or a background, or it
   stops reading as part of the ledger. */
.ag-arow { cursor: pointer; }

/* Agent evidence, as stored. pre-wrap because the payload carries newlines and
   the drawer is 1fr wide; without it a long key runs under the pane edge. */
.ag-evidence { white-space: pre-wrap; word-break: break-word; margin: 8px 0 0;
  color: var(--ink-3); }

/* The analyst's verdict, in the drawer. Three peers, so they wrap rather than
   compress: the pane is 1fr and Arabic's labels are longer than English's. */
.ag-judge { display: flex; flex-wrap: wrap; gap: var(--space-1);
  margin: var(--space-2) 0 0; }
.ag-judge button { flex: 1 1 auto; }
/* The verdict already recorded reads as chosen, not as one more thing to click.
   aria-pressed carries it for a screen reader; this is its visual twin. */
.ag-judge button[aria-pressed="true"] { border-color: var(--amber);
  color: var(--ink); }

/* ── Indicator relationship graph (/indicators drawer) ───────────────────
   A dialog over the ledger, drawn as plain SVG. No graph library on this page:
   the payload is ~12 nodes in two rings, and cytoscape+dagre+navigator is four
   CDN scripts to lay that out on a page that otherwise makes zero external
   requests. Colours come from the chart series tokens because the node types
   are exactly that — a categorical set, theme-flipping with everything else. */
.iocg-backdrop { position: fixed; inset: 0; z-index: 1050;
  background: var(--overlay-backdrop); }
.iocg-modal { position: fixed; z-index: 1060; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: min(680px, calc(100vw - var(--space-6)));
  max-height: calc(100vh - var(--space-6)); overflow-y: auto;
  background: var(--void-2); border: 1px solid var(--rule);
  padding: var(--space-5); }
.iocg-head { display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--space-3); }
.iocg-title { font: var(--t-value); color: var(--ink); word-break: break-all; }
.iocg-body { margin: var(--space-4) 0 0; }
.iocg-svg { width: 100%; height: auto; display: block; }

/* ⚠ vector-effect, or the stroke scales with the viewBox. This SVG is drawn at
   620x420 and displayed at whatever width the dialog is, so a plain 1px stroke
   renders visibly heavier or lighter with the viewport. */
.iocg-edge { stroke: var(--rule); stroke-width: 1px;
  vector-effect: non-scaling-stroke; }
.iocg-node circle { stroke: var(--void-2); stroke-width: 1.5px;
  vector-effect: non-scaling-stroke; }
.iocg-node text { font: var(--t-colhead); fill: var(--ink-3);
  paint-order: stroke; }

.iocg-key { display: inline-flex; align-items: center; gap: var(--space-1);
  margin-inline-end: var(--space-3); white-space: nowrap; }
.iocg-key i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* One hue per node type, shared by the dot and its legend swatch. */
.iocg-node--ioc       circle, .iocg-node--ioc       i { fill: var(--amber);    background: var(--amber); }
.iocg-node--group     circle, .iocg-node--group     i { fill: var(--chart-1);  background: var(--chart-1); }
.iocg-node--malware   circle, .iocg-node--malware   i { fill: var(--chart-2);  background: var(--chart-2); }
.iocg-node--article   circle, .iocg-node--article   i { fill: var(--chart-3);  background: var(--chart-3); }
.iocg-node--technique circle, .iocg-node--technique i { fill: var(--chart-4);  background: var(--chart-4); }
.iocg-node--cve       circle, .iocg-node--cve       i { fill: var(--chart-5);  background: var(--chart-5); }
.iocg-node--campaign  circle, .iocg-node--campaign  i { fill: var(--chart-6);  background: var(--chart-6); }
.iocg-node--telegram  circle, .iocg-node--telegram  i { fill: var(--chart-7);  background: var(--chart-7); }

/* ── 18. GATE ────────────────────────────────────────────────────── */
/* ⚠ THE APP-SHELL RULE REACHES IN HERE, AND A GATE HAS NO APP SHELL.
   `shared.css:3514` sets, on EVERY body and all with !important:
       height: calc(100vh - 38px)   overflow-y: auto
       padding-top: var(--nav-height)   padding-bottom: 10px
   It exists to fit the app around the fixed navbar and footer. A gate page has
   neither, but it links shared.css — for the tokens, which are not optional
   here — so it inherits the fit anyway. The result is a body that is a scroll
   container 38px SHORTER than the viewport, with 66px of padding for chrome
   that does not exist, wrapped around a .gt-shell asking for a full 100vh. That
   is ~104px of overflow: a scrollbar on the sign-in screen, the mark pushed
   down by a phantom navbar, and the CTA below the fold.

   The retired login.html countered it with !important resets in its own
   <style>, and its comment said exactly this — the counter was lost with the
   stylesheet when the page moved onto this archetype, which is how a fix that
   was already known got un-fixed. It belongs HERE, once, because every gate
   tenant needs it: /change_password had been rendering with the phantom
   navbar's gap since this archetype landed.

   !important is required to beat !important; the class then wins on
   specificity over the bare `body`. */
.pa-gate-body { background: var(--void); color: var(--ink);
  font-family: var(--font-body); margin: 0;
  height: auto !important; min-height: 100vh;
  padding: 0 !important; overflow-y: visible !important; }
/* ⚠ A THREE-ROW STAGE, AND `margin-bottom: auto` IS WHY IT HAD TO CHANGE.
   `.gt-shell` was a 100vh flex row and `.gt-brand` carried `margin-bottom:
   auto`, which pushed the lockup to the top and everything after it to the
   FOOT of the viewport. Every field sat at the bottom of the screen — and in
   the Arabic locale, where the column sits on the right, at the bottom-right
   corner. The form was reachable and awful to fill.

   Head, centred main, foot. The column is now centred in the viewport at
   420px, which is also what lets the foot rule and the point field below it
   exist at all: there was no bottom band to put them in before. */
.gt-shell { position: relative; min-height: 100vh; display: grid;
  grid-template-rows: auto 1fr auto; isolation: isolate; }
.gt-head, .gt-foot { position: relative; z-index: 2; display: flex;
  align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 0 var(--gutter); height: 60px; }
.gt-foot { border-top: 1px solid var(--rule); font: var(--t-colhead);
  letter-spacing: .06em; text-transform: none; color: var(--ink-4); }
.gt-foot span { min-width: 0; }
.gt-main { position: relative; z-index: 2; display: grid; place-items: center;
  padding: var(--space-6) var(--space-6) var(--space-10); }
/* ⚠ THE INPUT TOKENS ARE RE-POINTED HERE, NOT OVERRIDDEN ON THE INPUT.
   shared.css paints every `input[type=text|password]` with `--input-bg` /
   `--input-border` and `!important`, so `.gt-field input { background:
   var(--void-2) }` never won: measured 2026-09-19, the gate's inputs rendered
   #1D1D20 (surface-3) — grey boxes on the void, and the drawing's near-black
   field had never been on screen. Re-pointing the tokens the shared rule READS
   is the fix that needs no third !important, and it is the mark's own pattern
   (`--mark-field`).

   ON THE COLUMN, NOT THE BODY, because the column is the one thing both gate
   shells share: `.pa-gate-body` exists only on the standalone gate, and a
   first version put the re-point there, which left /setup_2fa and
   /change_password — the signed-in variant, inside the app shell — with the
   grey inputs the fix was for. Theme-safe in that shell: `--void-2` is
   `var(--surface-0)`, which is paper in light mode, and `--border-strong`
   flips with it. */
.gt-col { width: 100%; max-width: 420px;
  --input-bg: var(--void-2); --input-border: var(--border-strong); }
/* The locale switch. A gate is the one place the app cannot offer the navbar's
   toggle, and an operator who cannot read the form cannot sign in to change
   the preference — so it is here, on the real route, not a placeholder. */
.gt-lang { font: 500 var(--text-xs)/1 var(--font-sans); color: var(--ink-3);
  background: none; border: 1px solid var(--rule-strong);
  padding: var(--space-1h) var(--space-2h);
  transition: color var(--transition-hover), border-color var(--transition-hover); }
.gt-lang:hover { color: var(--ink); border-color: var(--ink-4); }
/* gap 8.5px = 0.25 x the S=34 mark this archetype's rule specifies. It was
   11px, which is the ratio for a 44px mark — a size nothing here uses.
   ⚠ NO `margin-bottom: auto` — see the stage note above. */
.gt-brand { display: flex; align-items: center; gap: 8.5px;
  text-decoration: none; color: var(--paper); }
/* ⚠ SIZE ONLY. The weight, family, tracking and case belong to
   `.cyn-wordmark` in mark.css, and this rule used to restate them — at 900,
   which is the value mark.css exists to overrule: "the mark is a knockout and
   needs the mass to hold its counters at 26px, while the wordmark is read as
   words. A heavy mark beside a regular wordmark is a normal lockup; both at
   900 was the thing that read as shouting."
   So every gate page — login, verify_2fa, setup_2fa, change_password, error,
   faq, index — kept the pre-redesign bold wordmark while the rest of the app
   had moved to 400. The span carries both classes now; this one contributes
   the gate's 17px and nothing that can disagree with the mark spec. */
.gt-wordmark { font-size: 17px; line-height: 1; }
/* The column when it sits INSIDE the app shell rather than owning the
   viewport (`_page/gate_signed_in.html`). `.gt-col` is a flex child of a 100vh
   `.gt-shell` there and has no margins of its own; here it is a block in the
   page flow, so it brings the gutter and the top offset the shell used to. */
.gt-col--signed-in { margin: 34px var(--gutter) 48px;
  /* `.gt-col` is width:100%, and 100% PLUS a gutter on each side overflowed a
     phone by exactly 2 x gutter (/change_password, /setup_2fa at 375px). */
  width: calc(100% - 2 * var(--gutter)); }
.gt-eyebrow { display: block; font: var(--t-colhead); letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber-text); margin-bottom: 14px; }
/* One italic accent word. Max seven words — a statement, not a paragraph.
   Clamped rather than fixed: 44px overflowed the 420px column on a phone.
   26px under it, not 14: login has no sub line, so its headline sat 14px above
   the first label while 2FA's sub gave the same line 28px. One gap for both. */
.gt-display { font: 400 clamp(34px, 3.4vw, 46px)/1.08 var(--font-display);
  letter-spacing: -.02em; margin: 0 0 26px; text-wrap: balance; }
.gt-display em { font-style: italic; color: var(--amber-text); }
.gt-sub { font-size: var(--text-md); line-height: 1.6; color: var(--ink-3);
  margin: 0 0 28px; max-width: 46ch; }
.gt-sub b { font-weight: 600; color: var(--ink); }
.gt-field { margin-bottom: 18px; }
/* ⚠ `flex`, NOT `block` — the label row now carries a second thing on the
   passphrase field (show/hide), and a block label would stack it. */
/* 10px at --ink-3, one step up from the 9.5px --ink-4 column head: the labels
   are the smallest type on a screen filled under pressure, and the 2026-09-19
   review read them as the weakest thing on a 1440px display. The same step
   is taken by every mono caption on the gate below (show/hide, the Turnstile
   label, Caps Lock, the window) so they stay one voice. */
.gt-field label { display: flex; justify-content: space-between;
  align-items: baseline; gap: var(--space-3); font: var(--t-colhead);
  font-size: var(--text-2xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: var(--space-2); }
/* The row is the positioning context for the show/hide button and for the six
   painted cells behind the TOTP digits. */
.gt-field-row { position: relative; }
/* 15px and 12px of padding: a security screen is typed into under pressure,
   frequently on a phone, and 14px/10px was the smallest control in the app. */
.gt-field input { width: 100%; background: var(--void-2);
  border: 1px solid var(--border-strong); border-radius: 0;
  color: var(--paper); font: var(--text-lg)/1.3 var(--font-mono); padding: 12px 14px;
  transition: border-color var(--transition-hover); }
.gt-field input:hover { border-color: var(--rule-strong); }
.gt-field input:focus { border-color: var(--amber); box-shadow: var(--focus-ring); }
.gt-field input:disabled { opacity: .6; }
/* Someone who can see what they typed types it right the first time. The
   button sits inside the field, so the field reserves room for it. */
.gt-field--pass input { padding-inline-end: 64px; }
.gt-show { position: absolute; inset-block: 0; inset-inline-end: 0;
  padding: 0 var(--space-3); background: none; border: 0; cursor: pointer;
  font: var(--t-colhead); font-size: var(--text-2xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  transition: color var(--transition-hover); }
.gt-show:hover { color: var(--amber-text); }
/* The only sanctioned sub-AA ink in the system. Production ships 0.16. */
.gt-field input::placeholder { color: rgba(237,234,226,.34); }
/* A failure is told in the same voice as everything else.

   ⚠ FOUR CATEGORIES, NOT ONE. `routes/auth.py` flashes danger, warning, info
   AND success — "You have been logged out." and "Password changed
   successfully!" among them. This rule set painted every one of them in
   critical red with a critical blip, so the two messages that mean IT WORKED
   arrived looking like the two that mean it did not. The container is the
   alert; each message is a line; the colour comes from the category. */
.gt-flash { margin-bottom: 22px; }
.gt-fl { display: flex; align-items: center; gap: 9px; min-height: 16px;
  font: var(--text-xs)/1.35 var(--font-mono); color: var(--sev-critical-text); }
.gt-fl + .gt-fl { margin-top: 7px; }
.gt-fl::before { content: ''; width: 6px; height: 6px; flex: none;
  background: currentColor; }
/* Declared even though .gt-fl already defaults to it: the markup writes
   `gt-fl--{{ category }}` for all four, and test_no_invented_classes asks that
   a class you can read in the markup can be found in the stylesheet. */
.gt-fl--danger { color: var(--sev-critical-text); }
.gt-fl--warning { color: var(--amber-text); }
.gt-fl--success { color: var(--ok); }
/* --ink-3 is the floor for ink on --void (4.9:1). An informational line is
   quieter than a failure, not dimmer than legible. */
.gt-fl--info { color: var(--ink-3); }

/* The shake. The gate's own header says login and verify_2fa were "well
   designed ... flash messages as log lines, and a shake on failure. Keep all
   of it" — and then this section shipped without one, so migrating either page
   onto the archetype would have quietly dropped the thing the archetype told
   you to keep. `data-flash` is set by the archetype, from the SAME categories
   the lines above are coloured from, so the two cannot disagree. */
@keyframes gtShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.gt-col[data-flash="danger"] .gt-content { animation: gtShake .45s ease; }

/* Caps Lock on a passphrase field. Hidden until the key is actually on, and
   `min-height` so switching it on does not shove the form down a line. */
.gt-caps { display: none; margin-top: 7px; font: var(--t-colhead);
  font-size: var(--text-2xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-text); }
.gt-caps.is-on { display: block; }

/* Turnstile. It is allowed to be absent — the key is optional, and the block
   does not render without it — and it draws NO frame of its own any more. The
   widget is already a bordered 65px box with its own chrome; the dashed frame
   this rule used to add put a box around a box, 300px wide inside a 420px
   column, directly above the CTA. The label is an ordinary field label now and
   login.html asks the widget for `data-size="flexible"`, so it fills the
   column like the two inputs above it. */
.gt-ts { display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: 22px; }
.gt-ts .cf-turnstile { width: 100%; }
.gt-ts-lab { font: var(--t-colhead); font-size: var(--text-2xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.gt-detail { border-top: 1px dashed rgba(217,119,6,.45); padding-top: 14px;
  margin-bottom: 24px; }
.gt-secondary { text-align: center; font-size: var(--text-sm); color: var(--ink-4); margin: 14px 0 0; }
/* Password strength — gate vocabulary rather than a page-local <style>, because
   an in-template style block is invisible to test_no_invented_classes and the
   rule it enforces is that a class someone can read in the markup can be found
   in the stylesheet. One caller today (change_password); setup_2fa is the
   obvious second if it ever grows a meter. */
.gt-strength-track { height: 3px; background: var(--rule); margin-top: var(--space-2); }
.gt-strength-fill { height: 100%; width: 0; background: var(--ink-4);
  transition: width var(--transition-normal); }
.gt-strength-level { font: var(--t-colhead); font-size: var(--text-2xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  margin-top: var(--space-2); min-height: 1em; }
/* min-height on both: they fill in from JS, and without it the form jumps by a
   line the first time either speaks. */
.gt-match { font: var(--t-secondary); color: var(--ink-3);
  margin-top: var(--space-2); min-height: 1em; }
.gt-req { font: var(--t-secondary); color: var(--ink-4); margin: var(--space-2) 0 0; }
/* A requirement line that stands in the column on its own — setup_2fa's
   caption under the QR plate — ran straight into the next field's label
   (measured 2026-09-19: 0px between "use the manual key below." and MANUAL
   ENTRY KEY). Inside a field the field's own bottom margin makes the gap;
   here nothing did. */
.gt-content > .gt-req { margin-bottom: 18px; }

/* ── Gate: enrolling a second factor (setup_2fa) ─────────────────────────
   A numbered list, a QR plate, and the same secret in text. All three are
   one instruction split three ways, so they share the column and do not
   become cards. */
.gt-steps { list-style: none; counter-reset: gt-step; padding: 0;
  margin: 0 0 22px; }
.gt-steps li { counter-increment: gt-step; display: grid;
  grid-template-columns: 20px 1fr; gap: 10px; align-items: baseline;
  font-size: var(--text-md); line-height: 1.6; color: var(--ink-3); padding: 4px 0; }
/* A number, not a filled disc — §12 puts radius at 0 everywhere, and a
   circled counter is the rounded-chip habit the mark spec retired. */
.gt-steps li::before { content: counter(gt-step); font: var(--t-colhead);
  color: var(--amber-text); }

/* ⚠ THE PLATE IS WHITE AND STAYS WHITE. Everything else on a gate is paper
   on void; a QR code is not decoration, it is a machine-readable target, and
   scanners want dark modules on a light field with a quiet zone. Inverting it
   to match the page is the one place "consistent" would mean "does not
   work". `print-color-adjust` for the same reason. */
.gt-qr { display: inline-block; background: #FFFFFF; padding: 12px;
  margin-bottom: 14px; print-color-adjust: exact;
  -webkit-print-color-adjust: exact; }
.gt-qr img { display: block; width: 168px; height: 168px; }

/* The same secret as the QR, in text, because a camera is not always
   available and a desktop authenticator has nothing to point at one. */
/* --border-strong, matching `.gt-field input` two bands up: this is a bordered
   control-shaped box, and PATTERNS §18 bans authoring an edge as a white alpha
   (a lightening cannot become the darkening a paper ground needs). Caught by
   test_light_shell_literals rather than by review. */
.gt-secret { display: flex; align-items: center; gap: 10px;
  background: var(--void-2); border: 1px solid var(--border-strong);
  padding: 9px 12px; margin-bottom: 22px; }
.gt-secret code { flex: 1; font: var(--text-sm)/1.4 var(--font-mono);
  letter-spacing: .12em; color: var(--paper); word-break: break-all; }
.gt-copy { flex: none; appearance: none; background: none; border: 0;
  padding: 4px 6px; cursor: pointer; font: var(--t-colhead);
  font-size: var(--text-2xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); }
.gt-copy:hover, .gt-copy:focus-visible { color: var(--amber-text); }

/* A consequence stated before the control that causes it. A rule on the
   leading edge, matching §19g's registers: this is a remark about the
   action, not a marking on the page. */
.gt-note { border-inline-start: 2px solid var(--amber);
  padding-inline-start: 12px; margin-bottom: 22px;
  font-size: var(--text-sm); line-height: 1.6; color: var(--ink-3); }

/* ── 18b. THE TOTP FIELD ───────────────────────────────────────────────────
   ⚠ ONE REAL INPUT WITH SIX CELLS PAINTED BEHIND IT — never six inputs.
   Splitting the field is exactly what stops iOS and Android offering the code
   from the notification, which is the single biggest usability win the field
   has, and `autocomplete="one-time-code"` only works on a field that holds the
   whole code. The cells are a decorative grid underneath.

   JetBrains Mono advances exactly .6em, so a cell of `--cell` px puts each
   digit in its own box when tracking is `(--cell − .6em)` and the first digit
   is inset by half of that. The row is exactly six cells wide. */
/* ⚠ `--cell` HERE IS THE NO-SCRIPT FALLBACK. gate.js re-derives it as
   (column − 2px border) / 6 on load and on resize, so the row is exactly the
   column's width — 69.67px cells on the 420px desktop column, 58px on a 390px
   phone. Six fixed 64px cells ended 34px short of the CTA beneath them, which
   was the owner's first remark on the redrawn page (2026-09-19). Fractional
   cells are safe: the painted grid is `repeat(6, 1fr)` over the same width, so
   digits and dividers share one pitch whatever the number. */
.gt-code { --cell: 64px; --digit: 26px; }

/* ⚠ THE SIXTH DIGIT SCROLLED THE FIELD, AND EVERY DIGIT LEFT ITS BOX.
   `letter-spacing` is applied after EVERY character INCLUDING THE LAST, so six
   digits advance 6 × --cell (384px) — and the field also carries a
   half-tracking inset at the start, so the content wants 408px. A six-cell
   input has a 382px content box. Measured: at five digits scrollWidth ==
   clientWidth == 382; on the sixth it jumps to 408.

   The browser then scrolls the input to keep the caret visible, which slid
   every digit left out of its painted cell and pushed the last one under the
   right edge — for exactly as long as the auto-submit took to navigate, which
   is why it read as "the last digit is missing for a few seconds".

   The fix is to give the trailing space somewhere to go. The border and the
   ground move to the ROW, which can then clip; the input is widened by one
   tracking so its content fits without scrolling, and the overhang falls
   outside the visible six cells where nothing is drawn.

   ⚠ `overflow: clip`, NOT `hidden`, AND THIS IS THE WHOLE FIX. `hidden` makes
   the row a SCROLL CONTAINER — it just has no scrollbar. So stopping the INPUT
   from overflowing was not enough: the caret still lands after the trailing
   tracking, at 408px in a 384px-wide row, and the browser scrolled the ROW
   instead to bring it into view. Measured after real typing: `input.scrollLeft
   = 0` but `row.scrollLeft = 27`, and the whole code slid inside its boxes on
   the sixth digit exactly as before. `clip` clips without ever becoming a
   scroll container, so there is nothing left to scroll. Nothing else on the
   gate has horizontal overflow, so no ancestor takes the scroll instead.

   The caret is off-screen while it sits in that trailing space — which is the
   correct trade: at six digits the form is already submitting.

   ⚠ `content-box` ON THE ROW IS LOAD-BEARING. The cells are `inset: 0`, so
   they divide the row's PADDING box into six. With border-box the border would
   eat 2px of that — 63.67px cells against digits on a 64px pitch, which walks
   2px out of true by the sixth. content-box puts the border outside the 384. */
.gt-code .gt-field-row { box-sizing: content-box; width: calc(var(--cell) * 6);
  max-width: 100%; overflow: clip; background: var(--void-2);
  border: 1px solid var(--border-strong);
  transition: border-color var(--transition-hover); }
.gt-code .gt-field-row:hover { border-color: var(--rule-strong); }
.gt-code .gt-field-row:focus-within { border-color: var(--amber);
  box-shadow: var(--focus-ring); }
/* The input keeps the type and gives up the chrome — the row wears it now, or
   the focus ring would be drawn inside a box that clips it. */
.gt-code input { width: calc(100% + (var(--cell) - .6em));
  border: 0; background: none; font: 500 var(--digit)/1 var(--font-mono);
  letter-spacing: calc(var(--cell) - .6em); text-align: start;
  padding: var(--space-4) 0 var(--space-3h) calc((var(--cell) - .6em) / 2);
  direction: ltr; caret-color: var(--amber); }
.gt-code input:hover, .gt-code input:focus { border: 0; box-shadow: none; }
.gt-code input::placeholder { letter-spacing: calc(var(--cell) - .6em); }
.gt-code-cells { position: absolute; inset: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(6, 1fr); }
.gt-code-cells i { border-inline-end: 1px solid var(--rule); }
.gt-code-cells i:last-child { border-inline-end: 0; }

/* The window. TOTP steps every 30 seconds; an analyst who can see five seconds
   left waits for the next code instead of submitting one about to expire.
   ⚠ IT IS A MEASUREMENT AND ITS LABEL SAYS WHOSE CLOCK. The figure is
   `Date.now()` on the operator's own device, not the server's — the one number
   a gate is allowed to print, and only because it names its own source. */
/* ⚠ THE TRACK IS THE ROW'S BASE EDGE. `margin-top: -2px` lays the 2px track
   over the code row's bottom border, so the window drains along the field it
   belongs to rather than as a separate bar 12px below it — the number and the
   field it explains are one object. The width is the row's (six cells plus
   the border): the column once gate.js has sized the cells, and still true of
   the no-script fallback. */
.gt-window { margin-top: -2px; }
.gt-window-track { height: 2px; width: calc(var(--cell) * 6 + 2px);
  max-width: 100%; background: var(--rule-strong); }
.gt-window-fill { height: 100%; width: 100%; background: var(--ink-2);
  /* motion-literal: 1s is gate.js's TICK, not a style choice — the bar is
     re-set every 1000ms, so a shorter transition stalls between ticks and
     the 30-second window drains in steps. Exempt from the duration scale. */
  transition: width 1s linear, background var(--transition-normal); }
.gt-window.is-late .gt-window-fill { background: var(--amber); }
.gt-window-lab { display: flex; justify-content: space-between;
  margin-top: var(--space-2h); font: var(--t-colhead); font-size: var(--text-2xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.gt-window-lab b { font-weight: 500; color: var(--ink-2); }
.gt-window.is-late .gt-window-lab b { color: var(--amber-text); }

/* ── 18c. THE FIELD ────────────────────────────────────────────────────────
   A low heap of points along the foot of the viewport: the same material the
   Command Centre narrows on the other side of the door, at rest.

   ⚠ IT MAKES NO CLAIM, and that is the whole point. What this replaced was a
   preloader counting to 100 on `Math.random()`, a "LATENCY 12MS" string
   literal and an always-green health dot — three statements the page could not
   support. A heap of points states nothing: it has no count, no status and no
   progress. On Authorize a handful warm; that is the only thing it ever says.

   `position: fixed` and `z-index: 0`, under everything: it is behind the
   column, not a layer the form sits on. */
.gt-field-canvas { position: fixed; inset: 0; z-index: 0; width: 100%;
  height: 100%; display: block; pointer-events: none; }

/* The column sets itself once on arrival; nothing else on the page moves. */
.gt-content > * { opacity: 0; transform: translateY(6px);
  animation: gtIn .6s var(--ease-out-quart) forwards; }
.gt-content > *:nth-child(2) { animation-delay: .06s; }
.gt-content > *:nth-child(3) { animation-delay: .12s; }
.gt-content > *:nth-child(4) { animation-delay: .18s; }
.gt-content > *:nth-child(5) { animation-delay: .24s; }
.gt-content > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes gtIn { to { opacity: 1; transform: none; } }

/* The CTA at the height the drawing specifies. §6's block button is 12px of
   padding around an 11px line — 37px, the smallest control on a screen whose
   inputs are 46px. GATE-NOTES.md: "the CTA is 46px tall". 16 + 12.1 + 16 + 2px
   of border = 46px, at --text-xs rather than the pill's 10px so the label of
   the page's one primary action is not its faintest type. Scoped to the gate
   COLUMN — both shells, so /setup_2fa and /change_password get the same
   button as /login — and no other page's block button grows. */
.gt-col .pa-btn--block { padding: 16px 0; font-size: var(--text-xs);
  line-height: 1.1; letter-spacing: .14em; }

/* The CTA's busy state. `.pa-btn--primary .pa-btn--block` already IS this
   button — §6 allows two variants and one size scale, so the gate does not get
   a third. What it adds is the blip, scoped to the gate so no other page's
   primary button grows one. */
.pa-gate-body .pa-btn[data-state="busy"]::before { content: ''; width: 6px;
  height: 6px; background: currentColor; margin-inline-end: var(--space-2h);
  display: inline-block; vertical-align: middle;
  animation: gtBlink 1.1s ease-in-out infinite; }
@keyframes gtBlink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ⚠ SCOPED TO THE GATE, NOT DECLARED GLOBALLY. The handoff's stylesheet sets
   the Arabic type roles on a bare `html[dir="rtl"]`; page-archetypes.css is
   loaded by EVERY archetype page, so that would restate rtl.css app-wide from
   a second file. rtl.css already owns the roles and the frame links it. What
   belongs here is only what is specific to this archetype: tracking off the
   labels (a connected script does not letter-space), and the ids and the code
   held LTR inside an RTL column. */
html[dir="rtl"] .pa-gate-body .gt-eyebrow,
html[dir="rtl"] .pa-gate-body .gt-field label,
html[dir="rtl"] .pa-gate-body .gt-caps,
html[dir="rtl"] .pa-gate-body .gt-ts-lab,
html[dir="rtl"] .pa-gate-body .gt-show,
html[dir="rtl"] .pa-gate-body .gt-window-lab,
html[dir="rtl"] .pa-gate-body .gt-foot,
html[dir="rtl"] .pa-gate-body .gt-fl { letter-spacing: 0; }
html[dir="rtl"] .pa-gate-body .gt-display { letter-spacing: 0; line-height: 1.45; }
/* A Naskh face has no italic, so the accent word takes the colour alone. */
html[dir="rtl"] .pa-gate-body .gt-display em { font-style: normal; }
html[dir="rtl"] .pa-gate-body .gt-brand { direction: ltr; }
html[dir="rtl"] .pa-gate-body .gt-field input { direction: ltr; text-align: start; }

@media (max-width: 720px) {
  .gt-head { padding: 0 var(--space-5); height: 56px; }
  /* The foot stacks: two mono lines side by side on a phone is two clipped
     lines, and both are statements a reader is meant to be able to finish. */
  .gt-foot { flex-direction: column; align-items: flex-start;
    justify-content: center; gap: var(--space-0); height: auto;
    padding: var(--space-3) var(--space-5) var(--space-4); }
  .gt-main { padding: var(--space-5) var(--space-5) var(--space-8);
    align-items: start; }
  .gt-code { --cell: 52px; --digit: 22px; }
  /* Two mono labels side by side wrap into four half-lines on a phone; one
     per line instead, the way the foot above stacks. */
  .gt-window-lab { flex-wrap: wrap; row-gap: var(--space-1); }
  .gt-window-lab span, .gt-window-lab b { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gt-content > * { animation: none; opacity: 1; transform: none; }
  .pa-gate-body .pa-btn[data-state="busy"]::before { animation: none; }
  .gt-window-fill { transition: none; }
}

/* ── 19. CONSOLE — turn 18a. ──────────────────────────────────────
   A console is a FORM, not a dashboard. It does not open with figures:
   nobody arrives at /admin to find out how many users exist, they arrive to
   change one thing. Sections are a flat list under a two-level nav. */
/* ⚠ `minmax(0, 1fr)`, NOT `1fr`. A grid track's automatic minimum is its
   content's min-content width, so one wide child — the audit log's ledger — grew
   the column past the container: measured 220 + 1255 inside a 1270px layout, the
   body overflowing its own track by 205px. `minmax(0, …)` lets the track be
   narrower than its content so the ledger scrolls inside it instead. */
.cn-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.cn-layout--wide { grid-template-columns: 1fr; }
.cn-nav { border-inline-end: 1px solid var(--rule); padding: 20px var(--gutter); }
.cn-body { padding: 0; }
.cn-section { padding: 22px var(--gutter) 26px; border-top: 2px solid var(--rule-strong); }
/* ⚠ DIRECT CHILD. A section's own heading is the one this styles; the
   descendant form also caught the h3s inside System health's subsystem panels
   and resized four of them, which is a migration silently restyling content it
   was only meant to re-shell. */
.cn-section > h3 { font: var(--t-section-h); margin: 0 0 5px; }
/* Required: a setting whose effect is not stated will be changed by someone
   who does not know what it does. */
.cn-consequence { font: var(--t-secondary); color: var(--ink-3); margin: 0 0 18px;
  max-width: var(--measure-note); }
/* "Feeds:" leads the sentence and is the only emphasis in it. Not a heading —
   it is the first two words of a claim about downstream behaviour, and the
   claim is the part that must be true. */
.cn-consequence b { color: var(--ink-2); font-weight: 500; }
/* A FEEDS sentence names the module that does the reading, and a bare <code>
   inherits Bootstrap's #d63384 — 3.79:1 on the light console. It is mono
   because it is an identifier, and it takes the same ink as the sentence
   around it. */
.cn-consequence code { font: var(--t-value);
  color: var(--ink-2); background: none; padding: 0; }
.cn-field { display: grid; grid-template-columns: 260px 1fr; gap: 14px;
  padding: 11px 0; border-top: 1px solid var(--rule); align-items: center; }

/* ── Mobile: the setting's name goes ABOVE its control. ─────────────────────
   The label column is a fixed 260px and `.cn-section select/input/textarea` is
   `width: 100%`, so the control gets exactly whatever is left. Measured
   2026-09-01 at a 375px viewport: `grid-template-columns` computed
   `260px 101px`, and both the <select> and the <input> rendered 101px wide —
   a country dropdown holding "United Arab Emirates (AE)" displayed as "Unit".
   18 rows in admin.html.

   ⚠ THE ROW ALWAYS FIT. admin.html is one of only two pages that never
   overflowed, because 260 + 14 + 101 is exactly 375 — the defect is the
   control being squeezed, not the page being pushed open, so no width sweep
   would ever have reported it. It was found by measuring control widths.

   640px for the same reason as `.pa-because`: a viewport query takes a value
   from the canonical set, and this is where the measure actually fails. At
   641px the control still gets ~367px; at 480px it would be ~142px, which is
   the same defect one step less severe. */
@media (max-width: 640px) {
  .cn-field {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-1h);
    align-items: start;
  }
}
/* A run of settings rows. 18a's org profile arrived as three inline
   `1fr 1fr 1fr` grids of `.form-label` + `.form-control` — a card FORM, three
   settings abreast, which reads as a sign-up page rather than a console. A
   console row is one setting: name on the left, control on the right, so the
   eye runs down a single column of names and the controls line up. The
   container only closes the run; `.cn-field`'s own top rule draws the
   divisions. */
/* ⚠ FIVE BUTTON VOCABULARIES FOR ONE CONTROL, measured across the console:
   .btn-primary (13), .btn-add (13), .btn-secondary (6), .um-btn (4),
   .mc-scan-btn (2). Mapped onto `.pa-btn`'s look rather than renamed in the
   markup, because 5,800 lines of this page's script key on those names and a
   rename is a separate change with its own reading of it. Scoped to
   `.cn-section` at (0,2,0) so it out-specifies the originals without
   !important, and leaves the same classes untouched everywhere else. */
/* ⚠ AND SEVEN MORE, 2026-11-24, WHICH THE LIST ABOVE NEVER NAMED: .btn-admin,
   .btn-danger, .btn-outline, .btn-ghost, a bare Bootstrap `.btn.btn-sm` (now `.btn-secondary` in the markup: naming
   it here would lift this whole list to (0,4,0), over the primary and danger
   variants below, which is how every amber button went outline for one render), the
   `.btn-sm` size modifier and `.mode-btn`. Each still drew shared.css's
   pre-redesign button (Inter, sentence case, a 3-4px radius, a solid red
   fill) one row away from a mapped one, and seventeen buttons carried an
   inline `font-size` + `padding` that made the mapped ones 26, 30, 32, 35, 36
   and 38px tall. The inline sizes are gone from the markup; the scope is
   `:is()` so the two organisation modals, which sit in `.cn-body` beside the
   sections rather than inside one, are covered too. */
:is(.cn-section, .cn-body .um-modal-overlay)
  :is(.btn-primary, .btn-add, .btn-secondary, .um-btn, .mc-scan-btn,
      .btn-admin, .btn-danger, .btn-outline, .btn-ghost) {
  font: var(--t-pill); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--rule-strong);
  background: none; color: var(--ink-2); border-radius: 0;
  cursor: pointer; box-shadow: none; white-space: nowrap;
  min-height: 0; height: auto;
}
:is(.cn-section, .cn-body .um-modal-overlay) :is(.btn-primary, .btn-add) {
  background: var(--amber); color: var(--amber-ink);
  border-color: var(--amber); font-weight: 600;
}
/* Destructive: an outline in the severity TEXT token, as `.pa-btn--danger`
   is and for the reason given there. It was a solid red block with white
   type on "Wipe all" and "Clear all chat history". */
:is(.cn-section, .cn-body .um-modal-overlay) .btn-danger {
  color: var(--sev-critical-text); border-color: var(--sev-critical-text);
}
:is(.cn-section, .cn-body .um-modal-overlay)
  :is(.btn-secondary, .um-btn, .mc-scan-btn, .btn-admin, .btn-outline,
      .btn-ghost):hover { background: var(--hover-bg); color: var(--ink); }
:is(.cn-section, .cn-body .um-modal-overlay) .btn-danger:hover {
  background: var(--overlay-faint); color: var(--sev-critical-text); }
/* The press token, not a second literal: this was `#c46a05`, which is the
   dark theme's press colour and stayed that in light. */
:is(.cn-section, .cn-body .um-modal-overlay) :is(.btn-primary, .btn-add):hover {
  background: var(--amber-press); border-color: var(--amber-press);
  color: var(--amber-press-ink); }
:is(.cn-section, .cn-body .um-modal-overlay)
  :is(.btn-primary, .btn-add, .btn-secondary, .um-btn, .mc-scan-btn,
      .btn-admin, .btn-danger, .btn-outline, .btn-ghost):disabled {
  opacity: .45; cursor: default; }
/* MOTION SWEEP, 2026-08-06 — see §19f. `.btn-add:hover` in shared.css lifts
   itself `translateY(-1px)`, and the 12 add-buttons on this console are the
   small half of the same device as the card lift. The colour hover is
   untouched: the fill above still shifts, and this cancels only the movement. */
.cn-section .btn-primary:hover, .cn-section .btn-add:hover,
.cn-section .btn-secondary:hover, .cn-section .btn-danger:hover,
.cn-section .btn-outline:hover, .cn-section .btn-ghost:hover,
.cn-body .um-modal-overlay .btn-primary:hover,
.cn-body .um-modal-overlay .btn-secondary:hover { transform: none; }

/* A button on the same line as labelled fields takes the field's height, so
   the row ends level. Two of these carried an inline `height: 36px` against
   a 35px field. */
.cn-section .btn-add.cn-btn-field { padding-block: var(--space-2h); }
/* Field help under an org-profile control. Bootstrap's `small` is .875em,
   which on this page's 14px body is 12.25px: a size the type scale has no
   step for. */
.cn-section small { font-size: var(--text-xs); }

/* A slider is not a text field. `.cn-section input:not(checkbox):not(radio)`
   above gave the two threshold sliders a field's border, fill, padding and
   `appearance: none`, so each sat inside a 35px box with its track gone.
   ⚠ The two `:not()`s are there for specificity only: the field rule is
   (0,3,1) and a bare `input[type="range"]` loses to it. */
.cn-section input[type="range"]:not([type="checkbox"]):not([type="radio"]) {
  appearance: auto; border: 0; padding: 0; background: none;
  accent-color: var(--amber); }

/* Row actions sit on one line with a gap and wrap when the column is
   short. The organisations table pinned its actions column at 140px, which
   stacked four buttons into a 120px-tall row at every window width. */
.cn-row-actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }
/* The same narrow-console rule as the feed table: slug and created date
   leave before the table scrolls. */
.cn-orgs { container: cnorgs / inline-size; }
@container cnorgs (max-width: 860px) {
  .cn-orgs .cn-orgs-2nd { display: none; }
}

/* A two-way choice (Manual / Auto, CVE only / Global) is the system's
   segmented control. `.mode-btn` drew its own: Inter, sentence case, and in
   a stretched flex row 41px tall beside a 25px one. Same recipe as `.seg`. */
.cn-section .mode-toggle { border: 1px solid var(--rule-strong); border-radius: 0;
  align-self: center; }
.cn-section .mode-btn {
  font: var(--t-pill); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 11px; border: 0; border-inline-start: 1px solid var(--rule-strong);
  border-radius: 0; background: none; color: var(--ink-4); cursor: pointer;
  white-space: nowrap;
}
.cn-section .mode-btn:first-child { border-inline-start: 0; }
/* The row holding a toggle wraps, so a long option is not clipped at the
   panel edge on a narrow console. */
.cn-section .mc-row { flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.cn-section .mode-toggle { flex: none; }
.cn-section .mode-btn:hover { color: var(--ink); background: var(--hover-bg); }
.cn-section .mode-btn.active { background: var(--amber); color: var(--amber-ink);
  font-weight: 600; }

/* A row of controls above a table: a short label, its dropdown, the button.
   The archetype makes every console select `width: 100%`, so inside a
   <label> the dropdown dropped under its own name and the button beside the
   pair sat at the top of a row twice its height. */
.cn-toolbar { display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
.cn-toolbar > label { display: inline-flex; align-items: center; gap: var(--space-2);
  margin: 0; font-size: var(--text-xs); color: var(--ink-3); white-space: nowrap; }
.cn-section .cn-toolbar select,
.cn-section .cn-toolbar input:not([type="checkbox"]):not([type="radio"]) {
  width: auto; min-width: 8rem; }


.cn-fields { display: block; border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-4); }
/* The label half. `.form-label` carried its own margin and weight for the card
   layout; in a row it is one of two grid cells and the grid owns the spacing. */
.cn-field > label { margin: 0; font-size: var(--text-sm); line-height: 1.4;
  color: var(--ink-2); }
/* And the control half fills its cell rather than the 3-up card's width. */
.cn-field > :not(label) { min-width: 0; }
.cn-section--danger { border-top: 2px solid var(--sev-critical); }
.cn-save { position: sticky; inset-block-end: 0; display: flex; align-items: center;
  gap: 16px; padding: 14px var(--gutter); background: var(--void-2);
  border-top: 2px solid var(--rule-strong); }
/* ⚠ `display: flex` BEATS the UA's `[hidden] { display: none }`, so a save bar
   hidden by the attribute alone stays on screen as a ~30px strip with a rule
   across it and no control in it — the empty-save-bar failure the archetype's
   own comment warns the first tenant about. A console shows one section at a
   time and most of them commit per control, so the bar genuinely has nothing
   to say on most of them and must be able to leave. */
.cn-save[hidden] { display: none; }
/* What the commit will do, beside the button that does it. Left of the
   actions, so it is read before the cursor gets there. */
.cn-save-note { font: var(--t-secondary); color: var(--ink-3); }

/* ── 19b. THE INDEX — turn 32b, the console's landing state. ──────────
   Twenty-five settings in six groups, each with the one line saying what it
   DECIDES. Not what it is: "Which names a lookalike domain is compared
   against", not "Phishing keyword management". The console opened on an
   arbitrary section for three months and nothing anywhere listed what could be
   changed. */
.cn-index-search { display: flex; align-items: baseline; gap: var(--space-2);
  padding: 0 0 var(--space-3); }
.cn-index-search input {
  flex: 1; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 0; padding: 8px 11px; color: var(--ink);
  font: var(--t-secondary);
}
.cn-index-search input:focus-visible { outline: 2px solid var(--amber);
  outline-offset: -1px; }
.cn-index-hint { font: var(--t-value); font-size: var(--text-xs); color: var(--ink-4); }
.cn-index-group { margin-top: var(--space-5); }
.cn-index-group:first-of-type { margin-top: var(--space-2); }
.cn-index-group > h4 { font: var(--t-eyebrow); letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber-text); margin: 0 0 var(--space-2); }
.cn-index-sub { font: var(--t-value); font-size: var(--text-xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4);
  margin: var(--space-3) 0 var(--space-1); }
/* A row is a control: name left, what-it-decides right, on one baseline. The
   description carries the weight, so it takes the readable ink and the name is
   the smaller half of the pair — the reverse of a nav. */
.cn-index-item {
  display: grid; grid-template-columns: 230px 1fr auto; gap: var(--space-3);
  align-items: baseline; width: 100%; text-align: start;
  padding: 9px 0; border-top: 1px solid var(--rule);
  background: none; border-inline: 0; border-bottom: 0; cursor: pointer;
  color: inherit; text-decoration: none;
}
.cn-index-item:hover { background: var(--hover-bg); }
.cn-index-name { font-size: var(--text-md); color: var(--ink); }
.cn-index-what { font: var(--t-secondary); color: var(--ink-3); }
/* A count is evidence the setting is in use, not a metric. It goes beside the
   name it counts and nowhere near the `produced` sentence, which is the only
   place a console may state an operational figure at all. */
.cn-index-count { font: var(--t-value); font-size: var(--text-xs); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4); }
/* ↗ — this one leaves the console. The Workspace rows and the AI pages do,
   and a reader who does not know which will lose the nav without warning. */
.cn-index-item--ext .cn-index-name::after { content: ' ↗'; color: var(--ink-4); }
.cn-index-item[hidden] { display: none; }
/* A reading ABOUT the map, not a FEEDS line — the map feeds nothing and says
   so at the top. This is where the index earns its place: laid out flat, the
   taxonomy's own faults become unarguable. */
.cn-index-note { font: var(--t-secondary); color: var(--ink-3);
  margin: var(--space-5) 0 0; max-width: var(--measure-note); }
.cn-index-note b { color: var(--ink-2); font-weight: 500; }

/* The one sanctioned operational figure on a console: one sentence, body type,
   naming what these settings produced and linking to where those things are
   worked. Never tiles, never a colour per number — admin's Phishing Keywords
   section had four coloured KPI cards, which is the rule this replaces. */
.cn-produced { font: var(--t-prose-tight); color: var(--ink-2);
  margin: 0 0 var(--space-4); max-width: var(--measure-note); }
.cn-produced b { color: var(--ink); font-weight: 500; }
/* The link out of a `produced` sentence. The §9 band rule covers no console
   band, so this inherited a default and measured 4.13:1 — under AA on the one
   sentence a console is allowed to put a figure in. --amber-text is the
   registered readable accent; the underline carries the state, as it does in
   every other band. */
.cn-produced a:not(.pa-btn), .cn-index-note a:not(.pa-btn) { color: var(--amber-text); text-decoration: underline; }
/* :not(.pa-btn) for the reason .pa-prod-actions and .pa-tl-add carry it: this
   is declared after the a.pa-btn:hover carve-out and ties it, so a button
   dropped into one of these sentences would take the link treatment. */
.cn-produced a:not(.pa-btn):hover,
.cn-index-note a:not(.pa-btn):hover { color: var(--amber-text); }

/* WHOSE values these are. An org-scoped setting and a platform-wide one are
   indistinguishable without it, and a superadmin acting as another tenant is
   editing that tenant's. */
.cn-scope { padding: var(--space-3) var(--gutter);
  border-bottom: 1px solid var(--rule); font: var(--t-secondary);
  color: var(--ink-3);
  display: inline-block; max-width: var(--measure-note);
}
/* ⚠ INSIDE A SECTION IT TAKES NO HORIZONTAL PADDING. The archetype renders one
   at the top of `.cn-body`, where --gutter is correct; a section that carries
   its own scope band already sits inside `.cn-section`'s `22px var(--gutter)`,
   so the band was inset by a SECOND gutter and hung off the FEEDS line above
   it. Same rule, two hosts, one of which already owns the inset. */
.cn-section > .cn-scope { padding-inline: 0; margin-bottom: var(--space-4); }
/* Two claims, two lines. They were one run of text and a Jinja comment sat
   between them — `{#-` strips the whitespace BEFORE it, so "share none of it."
   and "No change to this profile" rendered welded together. */
.cn-scope p { margin: 0; }
.cn-scope p + p { margin-top: var(--space-2); }
.cn-scope b { color: var(--ink-2); font-weight: 500; }

/* ── 19a. THE NAV — required, two levels, and the only place a problem is
       visible without opening thirty sections. Group → subgroup → section. */
.cn-nav-group { display: block; font: var(--t-eyebrow); letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber-text);
  margin: 0 0 var(--space-2); }
/* 18a draws a 1px rule above every group heading but the first, and pads the
   heading rather than the gap: `padding: 14px 20px 10px; border-top: 1px solid
   rgba(255,255,255,.12)`. The rule belongs to the heading it introduces, so a
   group cannot be moved without its divider following it. */
/* ⚠ THE LABEL IS NOT A SIBLING OF THE PREVIOUS GROUP. Every group is wrapped in
   a `.sidebar-group`, so `.cn-nav-group` is always the FIRST child of its
   wrapper and `.cn-nav-group + .cn-nav-group` matches nothing — the divider
   measured 0px on all three headings. The adjacency is between the WRAPPERS;
   the rule still lands on the heading, so a group cannot be moved without its
   divider following it. */
.sidebar-group + .sidebar-group > .cn-nav-group,
.cn-nav-group + .cn-nav-group,
.cn-nav-links + .cn-nav-group {
  margin-top: var(--space-4);
  padding-top: var(--space-3h);
  border-top: 1px solid var(--rule);
}
.cn-nav-links { display: flex; flex-direction: column; }
/* The subgroup label is a caption, not a control — it names a run of sections
   and is never itself clickable. Mono at the caption floor so it reads as
   apparatus beside the section names, which are prose. */
.cn-nav-sub { display: block; font: var(--t-value); font-size: var(--text-xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4);
  margin: var(--space-3) 0 var(--space-1); }
.cn-nav-link {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 5px 0; font-size: var(--text-sm); line-height: 1.45;
  color: var(--ink-3); cursor: pointer; text-decoration: none;
  border-inline-start: 2px solid transparent; padding-inline-start: 10px;
  margin-inline-start: -12px;
  transition: color var(--transition-hover), border-color var(--transition-hover);
}
.cn-nav-link:hover { color: var(--ink); text-decoration: none; }
/* ⚠ THE ARCHETYPE HAD NO FOCUS RING, and the page-local sheet that did was
   loaded by ONE of the eight surfaces rendering this nav. So /admin had a
   keyboard affordance and the seven standalone pages had none. It belongs here,
   where every surface reads it.
   It is load-bearing on the console specifically: a SECTION link is an <a> with
   no href — it swaps a panel via data-action — so it is not natively focusable
   and the a11y promotion in admin.html gives it `tabindex="0"`. A focusable
   control with no visible focus state is the keyboard trap that promotion
   existed to close. */
.cn-nav-link:focus-visible { color: var(--ink); outline: 2px solid var(--amber);
  outline-offset: -2px; }
/* ⚠ THE EDGE CARRIES THE CURRENT SECTION, NOT THE LABEL COLOUR. --amber is
   registered at the 3.0 UI ratio, which a 12.5px word does not get to borrow;
   the same trap `.pa-pane-tab.is-active` and `.pa-tpl-opt` were fixed for. So
   the label goes to full ink and the accent moves to the border, which is a UI
   element and is held to 3.0 legitimately. */
/* 18a: `background: rgba(217,119,6,.12)` plus the 2px amber edge. The tint is
   what makes the current entry findable after scrolling a 27-item nav; the edge
   alone is a 2px cue at the far left of a 220px column. */
.cn-nav-link.active { color: var(--ink); border-inline-start-color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, transparent); }
/* A section carrying a warning says so IN THE NAV. The whole point of a nav
   this deep is that a source outage is visible without opening thirty
   sections — see the archetype's `nav` slot. §20.9 / turn 33b vocabulary,
   two variants and ONLY two: filled = something has STOPPED, outlined =
   something is STALE. A count of items is not a warning and gets no pill.
   The filled variant is the SEVERITY-CHIP pairing (-bg wash under -text
   ink), not the drawing's bright fill: #DC2626 under any fixed ink
   measures ~4.4:1, short of the 4.5 a 9px numeral needs, and the drawing's
   lighter red is not a token. The chip pairing is the system's registered
   stopped-vocabulary and it theme-flips on its own. */
/* ⚠ A LINK THAT LEAVES THE CONSOLE SAYS SO. Seven of the nav's entries are
   `href`s to pages of their own — worker tasks, audit log, system health,
   source coverage, AI health, AI evals, ground truth — and the rest are
   `data-action="showSection"`, which swaps the panel and keeps the nav. Both
   looked identical, so clicking one of the seven took the console away with no
   warning; that is the "side menu disappears" the owner reported, and the
   archetype's nav slot has asked for the arrow since 32b.

   ⚠ KEYED ON A CLASS, NOT `[href]`, AND THE FIRST VERSION WAS WRONG. `[href]`
   looked like the better hook — "the distinction IS the attribute" — and it is,
   but only in console mode. When the nav renders on a page of its OWN, every
   section link becomes `href="/admin#<section>"` so it can navigate into the
   console, which gave all twenty-seven entries an arrow and told the reader
   that going to Organisation profile would take them somewhere else. The
   partial knows which links are pages; the attribute does not.

   `::before` rather than `::after` so it cannot fight `.cn-nav-pill`'s
   `margin-inline-start: auto` — the pill claims the free space and the arrow
   sits with the label, which is where 18a draws it. */
/* ⚠ BOTH ARROWS ARE THE LITERAL GLYPH. Written as a CSS unicode escape through
   a heredoc, the backslash-2-1 was parsed as OCTAL — 0x11, an invisible DC1 —
   leaving a bare "97". So the console index rendered "97" beside its three
   external rows from turn 32b onward and the diff read correctly every time.
   Caught only by reading the COMPUTED content in a browser rather than counting
   the elements carrying it. Third invisible-byte bug here from one cause;
   test_v2_ledger_contract records two BACKSPACE bytes doing the same to a regex
   that could then never match. A literal character cannot be mis-escaped. */
.cn-nav-link--page::before {
  content: '↗';
  order: 1;
  font-size: var(--text-xs); color: var(--ink-4);
}
.cn-nav-pill { margin-inline-start: auto; font: var(--t-value); font-size: var(--text-xs);
  letter-spacing: .1em; padding: 1px 6px; }
.cn-nav-pill--stop { background: var(--sev-critical-bg);
  color: var(--sev-critical-text); font-weight: 700; }
.cn-nav-pill--stale { border: 1px solid var(--rule-strong); color: var(--ink-3); }

/* ── The Feed sources section (turn 33a/33b, PATTERNS §20.7–20.9) ────────
   Health before taxonomy: grouped bands inside one table, each row's
   condition in WORDS. Off rows take MUTED INK, never opacity — 33b: "half-
   opacity is this system's word for secondary, and an off feed is not
   secondary, it is off." */
.fs-reading { margin: 0 0 var(--space-3); font-size: var(--text-md); line-height: 1.6;
  color: var(--ink-2); max-width: 96ch; text-wrap: pretty; }
.fs-reading b { color: var(--ink); font-weight: 600; }
.fs-strip { display: flex; gap: var(--space-2); align-items: center;
  flex-wrap: wrap; margin-bottom: var(--space-3); }
.fs-strip .fs-search { flex: 1; min-width: 180px; max-width: 320px; }
.fs-strip .fs-cat { width: auto; }
/* §20.8: the sticky header, and the reason the box exists at all — 85 rows
   of table with a header that scrolls away is a table with no header. */
.fs-scroll { max-height: 560px; overflow-y: auto; border: 1px solid var(--rule); }
.fs-table { width: 100%; border-collapse: collapse; }
.fs-table th { position: sticky; top: 0; z-index: 1; background: var(--void-2);
  text-align: start; font: var(--t-value); font-size: var(--text-xs);
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4);
  padding: 12px 10px 8px; border-bottom: 2px solid var(--rule-strong); }
.fs-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule);
  font-size: var(--text-sm); color: var(--ink-2); vertical-align: middle; }
.fs-table .fs-num, .fs-table th.fs-num { text-align: end;
  font-family: var(--font-mono); font-size: var(--text-sm); }
/* IN A NARROW CONSOLE THE TABLE DROPS ITS SECONDARY COLUMNS, 2026-11-24.
   It used to scroll sideways under ~1100px of window, with the switch and
   the Test button off the right edge. Host repeats the feed's name and
   Category repeats the group heading the row already sits under, so those
   two go first. A CONTAINER query, because the column is the window minus
   the console nav and a viewport number never sees that. Not on
   `.cn-section`: containment would make it the containing block for the
   `position: fixed` key dialog inside the IOC feeds section. */
.fs-scroll { container: fstable / inline-size; }
@container fstable (max-width: 760px) {
  .fs-table .fs-host, .fs-table .fs-catc { display: none; }
}
.fs-group td { padding: 14px 10px 6px; background: var(--void-2);
  border-bottom: 2px solid var(--rule-strong); }
.fs-group-name { font: var(--t-value); font-size: var(--text-xs); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); font-weight: 700;
  margin-inline-end: var(--space-2); }
.fs-group-why { font: var(--t-secondary); color: var(--ink-3); }
.fs-name { color: var(--ink); font-weight: 500; }
/* 33b: the error is ON the row, not in a tooltip. */
.fs-err { display: block; font: var(--t-secondary);
  color: var(--sev-critical-text); margin-top: 2px; }
.fs-host { font-family: var(--font-mono); font-size: var(--text-xs); }
.fs-state--bad { color: var(--sev-critical-text); }
.fs-state--muted { color: var(--ink-3); }
.fs-off .fs-name { color: var(--ink-3); font-weight: 400; }
.fs-toggle { font: var(--t-value); font-size: var(--text-xs); letter-spacing: .08em;
  text-transform: uppercase; padding: 2px 8px; cursor: pointer;
  background: none; border: 1px solid var(--rule-strong); color: var(--ink-3); }
.fs-toggle.is-on { border-color: var(--amber); color: var(--amber-text); }
.fs-act { white-space: nowrap; text-align: end; }
.fs-act button:not(.pa-btn) { background: none; border: 0; cursor: pointer;
  font: var(--t-value); font-size: var(--text-xs); color: var(--ink-3);
  padding: 2px 6px; }
.fs-act button:not(.pa-btn):hover { color: var(--amber-text); }
.fs-act .fs-del:hover { color: var(--sev-critical-text); }
/* Built by JS in admin.html, and styled ONLY by the hover above — so the
   keyboard had nothing at all. A destructive control is the last one that
   should be ambiguous about where focus is. */
.fs-act .fs-del:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.fs-more td { padding: 0; }
.fs-more button:not(.pa-btn) { display: block; width: 100%; text-align: start;
  background: none; border: 0; cursor: pointer; padding: 8px 10px;
  font: var(--t-value); font-size: var(--text-xs); color: var(--amber-text); }
.fs-empty { text-align: center; padding: var(--space-5); color: var(--ink-3); }

/* A run of controls inside a section, with its own FEEDS line. The
   Organisation profile has three — company, infrastructure, security stack —
   and they feed different things, so one sentence for the section would have
   to be vague enough to be useless. */
.cn-block { margin-top: var(--space-5); }
.cn-block:first-of-type { margin-top: var(--space-3); }
.cn-block > h4 { font: var(--t-colhead); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4); margin: 0 0 var(--space-2); }
/* Drawn where a control exists but nothing reads it yet. It is a claim about
   the BACKEND, so it may only be applied after checking — 18a marked the
   security stack proposed and `services/simulation.py` was already reading
   `org_log_sources`. */
.cn-proposed { font: var(--t-value); font-size: var(--text-xs); letter-spacing: .14em;
  text-transform: uppercase; padding: 1px 6px; margin-inline-start: var(--space-2);
  border: 1px dashed var(--amber); color: var(--amber-text); }

/* ⚠ THE NAV STACKS, IT DOES NOT SHRINK. A 220px rail beside content is most of
   a phone, and this nav is three groups, six subgroups and 34 sections — the
   deepest in the product. Below the sidebar breakpoint it becomes a strip
   above the body, capped so it cannot push the section the reader came for off
   the screen, and scrolling its own overflow.

   admin.html carried a rule like this for `.admin-grid`; it went with that
   element, and the archetype had none of its own — the first tenant would have
   shipped a 220px column on a 375px screen. 992 is the canonical collapse
   point (CLAUDE.md §10.7). */
@media (max-width: 992px) {
  /* ⚠ `minmax(0, 1fr)`, FOR THE SAME REASON THE TWO-COLUMN RULE ABOVE USES IT
     — this override dropped back to a bare `1fr` and re-opened the bug that
     one is commented against. A grid track's automatic minimum is its
     content's min-content width, so `1fr` is a floor, not a cap: measured
     391.4px inside a 375px viewport, and since `html` is `overflow: hidden`
     the extra 16px was CLIPPED rather than scrollable — the end of every nav
     label simply gone. `minmax(0, …)` lets the track be narrower than its
     content so the offending child scrolls inside its own container. */
  .cn-layout { grid-template-columns: minmax(0, 1fr); }
  .cn-nav { border-inline-end: 0; border-bottom: 1px solid var(--rule);
    max-height: 40vh; overflow-y: auto; }

  /* ⚠ THE CHROME BAR HAD NO RESPONSIVE RULE AT ALL, AND ITS HEIGHT IS FIXED.
     §2's note says the fixed height is deliberate — PATTERNS §16, "headers and
     detail bands wrap while rows and chrome clip". But `.pa-chrome` is a plain
     flex row with `overflow: visible`, and clipping was never implemented: the
     children simply painted outside it. Measured on /feed at 375px:

       `.pa-chrome-meta` wrapped to NINE lines — 99px tall, from y=28 to y=127,
       inside a 44px bar that starts at y=56. So it ran UP over the fixed
       navbar and DOWN into the page body, printing across both.

       the three action buttons ran to x=482 on a 375px viewport. Two of them
       were entirely past the edge and unreachable — `html` is
       `overflow: hidden`, so there was nothing to scroll to reach them.

     Both halves are fixed here, and they need different mechanisms:

       CLIPPING is what §16 asks for and what the bar did not do. `overflow`
       makes the fixed height true — nothing can leave the bar in either axis —
       and the meta becomes one ellipsised line instead of a paragraph.
       `min-width: 0` is required with it: a flex item's automatic minimum is
       its min-content width, so without it the meta refuses to shrink and
       `text-overflow` never gets a chance to fire.

       REACHABILITY is not something clipping can give. Capping the meta is not
       enough on its own — measured at 375px, the route, name and three buttons
       alone need ~485px with the meta at zero — and hiding buttons to fit would
       delete a capability to save a layout. So the bar scrolls its own overflow
       instead: the actions stay reachable by swipe at any button count, which
       an ellipsis cannot promise. `overflow-y` must be `hidden` rather than
       `visible` — a `visible` cross-axis computes to `auto` beside a scrolling
       one, which would re-open the vertical spill this rule exists to close.

     The children keep their natural widths (`flex: none`) so a squeeze cannot
     render a button as an unreadable sliver; the meta is the ONE item that
     yields, which is the right order — it is the only thing here that is
     context rather than a control or the page's name.

     ⚠ SAFE TO CLIP ONLY BECAUSE NOTHING IN THE BAR POPS OUT OF IT. Checked
     every `chrome_actions` block across the page templates for a dropdown,
     popover, <details>, <select> or an absolutely-positioned child: none. Add
     one and it will be cut off by this rule — anchor it outside the bar.

     (That sentence named the glob `templates` + slash-star + `.html` on its
     first writing, which put a second comment OPENER inside this comment and
     failed test_css_comments_are_balanced. CSS comments do not nest, so the
     sheet still parsed — but the guard counts delimiters and cannot know that,
     and it is right not to: the same imbalance from a MISSING close would
     silently void everything below it.) */
  .pa-chrome {
    overflow-x: auto;
    overflow-y: hidden;
    /* A scrollbar in a 44px bar eats a third of it, and the row already tells
       you it continues by clipping mid-control. */
    scrollbar-width: none;
  }
  .pa-chrome::-webkit-scrollbar { display: none; }
  .pa-chrome > * { flex: none; }
  /* ⚠ `flex: none` HERE TOO — inheriting the row's rule, not overriding it.
     This first read `flex: 0 1 auto`, meaning "the meta is the item that
     yields". In a row that scrolls, the item that yields absorbs the WHOLE
     overflow: measured 0px wide on /feed, so the meta was not truncated, it
     was deleted. Capped and non-shrinking, it truncates to a readable prefix
     and the row scrolls to reach what is past it — which is the division of
     labour this block is built on.
     `min-width: 0` stays and is load-bearing: a flex item's automatic minimum
     is its min-content width, and min-width beats max-width, so without it the
     45vw cap never applies and `text-overflow` never fires. */
  .pa-chrome-meta {
    min-width: 0; max-width: 45vw;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}

/* ── 19f. NOTHING IN THE CONSOLE MOVES UNDER THE CURSOR — 2026-08-06. ─────
   The owner's request, in their words: "the transition effects where the whole
   box moves a little upon the mouse hover". COLOUR HOVERS ARE DELIBERATELY
   UNTOUCHED — the row tint, the amber row buttons, the module-list tint, the
   destructive red and the sortable header all still do exactly what they did.
   This section removes movement and nothing else.

   ⚠ A BOX MOVES BY MORE THAN `transform`, which is why the guard checks a
   property set rather than one name: margin, padding, border-width, inset,
   width/height, gap and font-size all shift a box, and any of them under a
   `transition` reads as the same glide. Only two rules actually moved anything
   here — `.card-panel:hover` lifting 33 panels 2px, and `.btn-add:hover`
   lifting 12 buttons 1px (cancelled at §19 beside the button's own fill rule).

   ⚠ SCOPED, BECAUSE THE LIFT IS NOT THE CONSOLE'S TO DELETE. `.card-panel` is
   on nearly every page in the app; removing the lift in shared.css would have
   answered a question about one page by changing 55. `.cn-layout` is the
   console's own region — and deliberately not a `body` class, since the global
   navbar sits inside <body> too and its brand mark still scales on hover, as it
   does everywhere else.

   The shadow is NOT cancelled. `--shadow-card-hover` is a colour change under a
   stationary box; it was in the first cut of this rule and came out when the
   request was narrowed to movement. Measured after that narrowing: 1,131
   elements across every console section, zero change in position or size. */
.cn-layout .card-panel:hover, .cn-layout .module-card:hover,
.cn-layout .glass-card:hover, .cn-layout .article-card:hover { transform: none; }

/* ── 19b. DOSSIER — masthead, sections, distribution.
       These were referenced by templates/_page/dossier.html and had no CSS
       at all in the first cut of this bundle. */
.do-mast {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 48px;
  padding: 30px var(--gutter) 22px;
  /* The bright 2px top rule is the masthead's signature — it is the only
     place --paper is used as a rule. Do not reuse it elsewhere. */
  border-top: 2px solid rgba(237,234,226,.9);
  border-bottom: 1px solid var(--rule);
}
.do-mast-title {
  font: 500 42px/1 var(--font-display);
  letter-spacing: -.02em; color: var(--paper); margin: 0;
}
.do-mast-sub {
  font: 300 italic 19px/1.3 var(--font-display);
  color: var(--ink-3); margin: 9px 0 0;
}
.do-mast-meta {
  display: grid; grid-template-columns: auto auto; gap: 6px 22px;
  font: var(--t-pill); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-4); text-align: end;
}
.do-mast-meta > :nth-child(even) { color: var(--ink-2); }
/* One column on a phone: the title and the meta grid side by side, 48px apart,
   ran /brief 44px past a 375px screen. */
@media (max-width: 640px) {
  .do-mast { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .do-mast-meta { text-align: start; }
}

/* A section: roman numeral + title, prose left, ONE exhibit right. */
/* ⚠ COLUMN GAP AND ROW GAP ARE DIFFERENT NUMBERS. `gap: 44px` set both, and
   the head SPANS the grid (below) so it is its own row — which made the space
   between a section's title and its prose 44px of grid gap PLUS the head's own
   10px margin. On a `--wide` section it is worse: single column means every
   child is a row, so the prose and the exhibit were 44px apart too. 44px is
   the right distance between two COLUMNS and far too much between a heading
   and the sentence under it. */
.do-section {
  display: grid; grid-template-columns: 1fr 420px;
  column-gap: 44px; row-gap: 14px;
  align-items: start;
  padding: 22px var(--gutter) 24px;
  border-top: 1px solid var(--rule);
}
/* The head SPANS. Without this it is grid child 1 and takes the prose column,
   so the prose falls into the 420px exhibit slot and the exhibit wraps onto a
   second row in the prose slot — the exact inverse of "prose left, exhibit
   right". The archetype's own docstring describes head + prose + exhibit, so
   it always needed three children in two columns; nothing had exercised it
   because the dossier had no tenant until the briefing detail page. */
/* No margin-bottom: the grid's row-gap is the spacing now. Both would stack. */
.do-section-head { display: flex; align-items: baseline; gap: 12px;
  grid-column: 1 / -1; }
/* Some exhibits are WIDE — a ledger with three columns of defanged URLs does
   not fit 420px, and squeezing it there is how a table starts wrapping every
   row. Such a section runs full width and stacks instead. */
.do-section--wide { grid-template-columns: 1fr; }
/* Arabic, not roman (owner, 2026-08-02: "instead of roman numerals we should
   use the normal numeric that we are using on all other pages"). Roman read as
   a different counting system from every other numbered list in the product —
   `.pa-blind-n`, the ledger ranks, the timeline steps are all arabic. */
.do-section-num { font: 300 26px/1 var(--font-display); color: var(--amber);
  font-variant-numeric: tabular-nums; }
.do-section-title { font: var(--t-section-h); letter-spacing: -.01em; }
.do-section p { font: var(--t-prose-tight); color: var(--ink-2);
  max-width: 80ch; text-wrap: pretty; margin: 0 0 12px; }
.do-section p:last-child { margin-bottom: 0; }

/* Distribution footer. Marking, handling instruction, recipients. */
.do-dist {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 16px var(--gutter) 22px;
  background: var(--void-2);
  border-top: 2px solid var(--rule-strong);
}
.do-dist-note { font-size: var(--text-sm); line-height: 1.5; color: var(--ink-3); max-width: 66ch; }
.do-dist-meta {
  margin-inline-start: auto;
  display: grid; grid-template-columns: auto auto; gap: 4px 20px;
  font: var(--t-pill); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); text-align: end;
}
.do-dist-meta > :nth-child(even) { color: var(--ink-2); }

/* ── 19c. Hooks referenced by the archetypes and previously undefined. ── */
.cn-section--audit { border-top: 2px solid var(--rule-strong); }
.gt-content { display: flex; flex-direction: column; }
.pa-gate-html { background: var(--void); }
/* Workspace fills the viewport, so the shell must not inherit page scroll. */
.pa-ws-html, .pa-ws-body { height: 100%; margin: 0; overflow: hidden; }
.pa-ws-body { background: var(--void); color: var(--ink); font-family: var(--font-body); }

/* ── 19e. BULK ACTION BAR — PATTERNS.md §6b, turns 23a-c. ────────────
   Restyles the EXISTING `bulk_bar()` macro rather than adding a second bar.
   Both class names ride on one element (see the macro): `.bulk-action-bar`
   keeps the five unmigrated callers and all of their JS working, `.pa-bulk`
   is this, and only migrated pages load this file.

   The old bar is the only floating thing in the app with a 30px soft glow and
   a 6px radius — it reads as a different product from the flat ruled ledger
   it sits over. §6b replaces that with a 2px rule and a HARD offset shadow:
   no blur, radius 0, so it reads as a card physically laid on the page.

   TRANSFORM ONLY on entry. The bar must never push the ledger — pagination
   and checkboxes are live targets while an analyst is mid-selection, and a
   band that appears by taking layout space moves the row they were aiming at.

   `.show` is this codebase's spelling of §6b's `.is-open`; both are accepted
   so the seven callers' JS needs no edit. */
.pa-bulk {
  inset-block-end: var(--bulk-bottom);
  gap: 10px; padding: 10px 14px;
  background: var(--void);
  border: 2px solid var(--rule-strong);
  border-radius: 0;
  /* ⚠ --overlay-soft, not a black literal. On --void (#0A0A0B) a pure-black
     shadow at ANY alpha is invisible, so the .55 was doing nothing in the shell
     it was tuned for — and on paper it would have laid a heavy black slab under
     the bar. The token is rgba(0,0,0,.35) dark / rgba(26,18,6,.15) light: no
     perceptible change here, correct there. */
  box-shadow: 0 12px 0 -6px var(--overlay-soft);
  /* HIDDEN STATE. Transform parks it off-screen; shared.css supplies the
     `opacity: 0` and `pointer-events: none` that go with it, and this rule
     must not touch either.

     It did. I set `opacity: 1` here reading §6b's "transform only on entry"
     as "no opacity animation" — but that clause is about the bar never taking
     LAYOUT space, not about how it hides. The result was the worst of both:
     `opacity: 1` made the parked bar VISIBLE, sitting half behind the footer
     reading "0 selected", while `pointer-events: none` (which I did not
     override, so it still applied) made every control in it dead. A visible
     bar that cannot be clicked and should not be on screen at all.

     I also never saw it, because I verified by forcing `.show` — so the
     default state, which is the one a page spends all its time in, was the
     one state I did not look at. */
  transform: translate(-50%, calc(100% + 24px));
}
/* SHOWN. pointer-events is restated rather than left to shared.css: the two
   halves of "interactive" must move together, and they are the pair that just
   came apart. */
.pa-bulk.show, .pa-bulk.is-open {
  transform: translate(-50%, 0); opacity: 1; pointer-events: auto;
}
/* The count is mono and the NUMBER is the amber — "2 selected". The noun
   moved into the button, so the macro's copy of it is hidden here. */
.pa-bulk .bulk-count { font: var(--t-value); color: var(--ink-3); }
.pa-bulk .bulk-count strong { font-weight: 600; color: var(--amber-text); margin-inline-end: 4px; }
.pa-bulk .bulk-count-noun { display: none; }
.pa-bulk .bulk-divider { background: var(--rule); margin: 0 2px; }
/* Delete sits behind a 2px divider and is never the primary. */
.pa-bulk .bulk-divider--hard { width: 2px; background: var(--rule-strong); }
.pa-bulk .bulk-select { font: var(--t-secondary); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: 0; color: var(--ink);
  padding: 6px 10px; }
/* §6b: delete "is never the primary". The macro emits it as .btn-danger — a
   solid red fill, which in a bar whose only other verb is an amber APPLY is
   the LOUDEST thing on screen, so the escape hatch outranks the intended
   route. Outlined here: still unmistakably destructive, no longer the first
   thing the eye lands on. */
.pa-bulk .btn-danger {
  background: none; border: 1px solid rgba(220,38,38,.45);
  color: var(--sev-critical-text); border-radius: 0;
  font: var(--t-pill); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px;
}
.pa-bulk .btn-danger:hover { background: rgba(220,38,38,.18); }

/* ── 19d. ACTOR PROFILE — handoff 10b. ───────────────────────────────
   A reference surface, not a dossier. The difference is structural: a dossier
   separates masthead from judgement because it is read top to bottom, but a
   profile is arrived at with a question, so 10b FUSES them — the name, the
   assessment and the figures are one band and get read together. Everything
   below reuses the lede band (.pa-lede-band + .pa-signature + .pa-because);
   these are only the parts that band has no vocabulary for. */

/* The title line, inside the lede band.
   It does NOT reuse .do-mast-title. The two are measured differently in the
   handoff and for a reason: a dossier masthead (14a: 500 42px) is alone in its
   own band, while a profile's name (10b: 300 44px) shares a band with the
   judgement — so it is set LIGHTER and one step larger, and the lede beneath
   it steps down to 30px. Borrowing the dossier's 500/42 next to a 38px lede
   was the visible mismatch: a heavier name and a lede loud enough to argue
   with it. Two treatments, stated, beats one treatment used wrongly. */
.pa-mast { display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--space-3); margin-bottom: var(--space-3); }
.pa-mast h1 { font: var(--t-subject); letter-spacing: -.02em;
  color: var(--paper); margin: 0; }
/* The sibling combinator IS the rule: a lede preceded by a title in the same
   band is the case that steps down. A lede that opens its own band (dossier,
   inventory) keeps --t-lede and stays the largest type on the page. */
.pa-mast ~ .pa-lede { font: var(--t-lede-sub); letter-spacing: -.01em;
  max-width: 22em; }

/* Aliases, model, tenure — the qualifiers a name alone does not carry. Mono,
   because every value in it is an identifier rather than prose.
   --ink-3 (0.58), not the --ink-4 label floor: the handoff sets this line one
   step brighter than a label because an ALIAS is content, not chrome — two of
   your feeds call Qilin "Agenda", and a reader who skims past that line
   searches one name and misses a third of the reporting. */
.pa-mast-aka {
  font: var(--t-value); line-height: var(--leading-normal); letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px;
}

/* The closing band: three reference columns, flat, no hierarchy between them.
   Not .pa-pair (which is two halves of ONE argument) — these are three
   independent registers that happen to sit side by side. */
.pa-cols3 {
  border-top: 2px solid var(--rule-strong);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.pa-cols3 > * { padding: var(--space-4) 28px var(--space-6); min-width: 0; }
.pa-cols3 > * + * { border-inline-start: 1px solid var(--rule); }

/* A distribution — parts of a known whole, so the bar is scaled to the
   LARGEST member and the count is always printed beside it. Distinct from
   .pa-funnel-*, which is a many→few narrowing and reads top to bottom. */
.pa-bar-row {
  display: grid; grid-template-columns: 112px 1fr 34px; gap: var(--space-2h);
  align-items: center; padding: var(--space-2) 0; border-top: 1px solid var(--rule);
}
.pa-bar-k { font-size: var(--text-sm); color: var(--ink-3); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.pa-bar { height: 8px; background: var(--void); border: 1px solid var(--rule); }
/* The same bar INSIDE a ledger cell, beside its own number. Fixed width and
   inline-block because it shares a baseline-aligned row with mono values — a
   block-level bar would take the whole cell and drop the count onto a second
   line, which is the wrapping-title bug in a different costume. */
.pa-bar--inline { display: inline-block; width: 64px; vertical-align: middle; }

/* ── THE EVIDENCE-FOR-URGENCY ROW (design 9c). ─────────────────────────
   LABEL · measure · VALUE, in three columns, because that is the shape the
   band is read in: the eye runs down the labels, across one row, and lands on
   a right-aligned number it can compare with the number above it. Built on
   `.pa-rel`'s two columns first, which put the value inline after the bar and
   left the numbers ragged — unreadable as a column of magnitudes, which is
   the only reason to group these four measures at all.

   ⚠ THE BAR IS DECORATION, NEVER THE VALUE. Every row prints its number in the
   third column, so the band reads identically with images off, at high zoom,
   or to a screen reader; the bar is aria-hidden. A bar that is the sole
   carrier of a magnitude is a chart nobody can read aloud.

   ⚠ FILL TOKENS, NOT TEXT TOKENS — `--sev-*-text` are lightened for legibility
   ON a dark ground and wash out as a background, which is the defect
   test_a_composition_bar_uses_fill_tokens_not_text_tokens exists to catch. */
.pa-urg {
  display: grid; grid-template-columns: 74px 1fr auto;
  gap: 0 var(--space-3); align-items: center;
  padding: 7px 0; border-top: 1px solid var(--rule);
}
.pa-urg:first-child { border-top: 0; }
.pa-urg-k {
  font: var(--t-value); font-size: var(--text-xs); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-4);
}
.pa-urg-v { font: var(--t-value); color: var(--ink); text-align: end;
  white-space: nowrap; }
/* The measure column. A bar when the value is a magnitude, prose when it is
   not — Exploits and SSVC are names, and a bar under a name would be a
   quantity nobody measured. */
.pa-urg-m { min-width: 0; font-size: var(--text-sm); color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; }
.pa-urg-m .pa-bar { display: block; width: 100%; }
.pa-urg-m--crit { color: var(--sev-critical-text); }
.pa-urg-m--high { color: var(--sev-high-text); }
/* --pa-bar-w is CALLER-SUPPLIED and deliberately has no default (it is in the
   linter's PARAM_TOKENS beside --lrow-cols). It is one row's share of the
   largest member, so it can only come from the row; defaulting it would make
   every bar render the same length rather than visibly break. */
.pa-bar-fill { display: block; height: 100%; background: var(--amber);
  width: var(--pa-bar-w); border-radius: 0; }
/* ⚠ THESE MUST FOLLOW THE BASE RULE. They did not, and since all five are
   one class deep the base `background: var(--amber)` won on source order — so
   every severity-toned bar in the app painted amber, the CVE pane's
   evidence-for-urgency bars included. A tone modifier that loses to its own
   base is invisible: the markup is right, the class is present, and the colour
   is simply never the one asked for. */
.pa-bar-fill--crit { background: var(--sev-critical); }
.pa-bar-fill--high { background: var(--sev-high); }
/* The -v2 aliases, not the raw ramp. shared.css says why in the token block:
   raw --sev-medium IS the brand amber, so a medium bar would read as the
   accent, and raw --sev-low is the #2563EB blue the redesign removed as a
   "cool tint". Both were wrong here from the day the tones were written and
   nobody could see it, because the base rule below was overriding all four. */
.pa-bar-fill--med  { background: var(--sev-medium-v2); }
.pa-bar-fill--low  { background: var(--sev-low-v2); }
/* --hot: this band is the one that concerns US (the mock highlights the sector
   the reader's supplier sits in). A judgement about relevance. */
.pa-bar-row--hot .pa-bar-k { color: var(--sev-high-text); }
.pa-bar-row--hot .pa-bar-fill { background: var(--sev-high); }
/* --none: this band is MISSING DATA, not a member. Kept in the chart because
   dropping it would make the remaining shares look better sourced than they
   are, and muted because absence is not urgency — colouring a data gap with a
   severity would say the opposite of what it means. */
.pa-bar-row--none .pa-bar-k { color: var(--ink-4); font-style: italic; }
.pa-bar-row--none .pa-bar-fill { background: var(--rule-strong); }
/* ── THE DISTRIBUTION DRAWS ITSELF TOO (2026-10-12) — the funnel's entry
   (cyn-bar-grow, top of this file) on the nine pages whose bands were the
   last static data marks: each fill grows from its start edge, top row
   first, --stagger-step apart and capped. Same three holds as the funnel —
   a same-route navigation (a filter, a page turn) finds the bars already
   drawn, and reduced motion and print draw them at their width. Only the
   band rows: a bar inside a ledger cell (.pa-bar--inline) or the CVE pane's
   urgency rows stays still, since thirty cells growing at once is noise. */
.pa-bar-row .pa-bar-fill { transform-origin: left center;
  animation: cyn-bar-grow var(--dur-enter) var(--ease-out-quart) both; }
[dir="rtl"] .pa-bar-row .pa-bar-fill { transform-origin: right center; }
.pa-bar-row:nth-child(2 of .pa-bar-row) .pa-bar-fill { animation-delay: calc(var(--stagger-step) * 1); }
.pa-bar-row:nth-child(3 of .pa-bar-row) .pa-bar-fill { animation-delay: calc(var(--stagger-step) * 2); }
.pa-bar-row:nth-child(4 of .pa-bar-row) .pa-bar-fill { animation-delay: calc(var(--stagger-step) * 3); }
.pa-bar-row:nth-child(5 of .pa-bar-row) .pa-bar-fill { animation-delay: calc(var(--stagger-step) * 4); }
.pa-bar-row:nth-child(6 of .pa-bar-row) .pa-bar-fill { animation-delay: calc(var(--stagger-step) * 5); }
.pa-bar-row:nth-child(7 of .pa-bar-row) .pa-bar-fill { animation-delay: calc(var(--stagger-step) * 6); }
.pa-bar-row:nth-child(n+8 of .pa-bar-row) .pa-bar-fill { animation-delay: var(--stagger-cap); }
.cyn-same-route .pa-bar-row .pa-bar-fill { animation: none; }
@media (prefers-reduced-motion: reduce) { .pa-bar-row .pa-bar-fill { animation: none; } }
@media print { .pa-bar-row .pa-bar-fill { animation: none; } }
/* `--ink`, not `--ink-2`: until 2026-09-05 a second `.pa-bar-val` rule further
   down (the unconsumed `.pa-bars` grid system, deleted that day) won on source
   order and painted every live value in `--ink`; this keeps what the pages
   rendered. Computed styles were compared before and after: identical. */
.pa-bar-val { font: var(--t-value); text-align: end; color: var(--ink); }

/* A register's head: the eyebrow, and optionally a control pushed to the far
   edge. .pa-eyebrow is display:block with its own bottom margin, so a control
   beside it needs the margin to move to the ROW or the two sit on different
   baselines with a 12px gap under only one of them. */
.pa-reg-head { display: flex; align-items: center; gap: var(--space-2h);
  margin-bottom: var(--space-3); }
.pa-reg-head .pa-eyebrow { margin-bottom: 0; }
.pa-reg-head .seg { margin-inline-start: auto; }

/* Activity: when, then what. The date column is fixed so the entries align
   into a spine that can be scanned without reading. */
.pa-tl-row {
  display: grid; grid-template-columns: 74px 1fr; gap: var(--space-2h);
  align-items: baseline; padding: 9px 0; border-top: 1px solid var(--rule);
}
.pa-tl-when { font: var(--t-value); color: var(--ink-4); }
.pa-tl-what { font: var(--t-secondary); color: var(--ink-2); }
.pa-tl-flag { color: var(--sev-critical-text); }

/* ── 19z. LIGHT MODE. ────────────────────────────────────────────────
   ⚠ THIS BLOCK WAS MISSING AND THE WHOLE LAYER WAS DARK-ONLY.

   shared.css remaps `--surface-0: var(--paper)` for light (:661). It does NOT
   remap the fourteen v2 ramp tokens this stylesheet actually uses. And
   `--void-2: var(--surface-0)` is declared on :root — the SAME element
   `.light-mode` lands on — so it re-resolves, and the lede band's ground
   becomes --paper.

   `.pa-lede { color: var(--paper) }` then put #F2EEE4 text on an #F2EEE4
   ground. 17.48:1 in dark, 1.00:1 in light: the single most important
   sentence on all 21 archetype tenants, invisible, one navbar click away.
   The same collapse hit .lk-input, .lrow-id and the pills.

   It shipped green because scripts/lint_contrast audits shared.css and has
   never been pointed at this file.

   REMAP ROLES, NOT PRIMITIVES. Every value below is a v2 ROLE token whose job
   is stated by its name; the light values come from shared.css's own measured
   light ramp (--text-* at 12.83 / 5.99 / 4.88) rather than from new numbers,
   so the two sheets cannot drift apart on what "secondary ink" means.

   NB `html.light-mode, body.light-mode` — BOTH, matching shared.css. Derived
   tokens bake on the element that declares them, so a body-only selector
   would leave anything derived at :root holding its dark value
   (CLAUDE.md §10.6). shared.js stamps the class on <html> as well as <body>
   precisely for this. */
html.light-mode, body.light-mode, html.chrome-light body #main-navbar {
  /* Grounds, darkest-to-lightest inverted. --void-2 is the band ground the
     lede sits on and must NOT equal the ink above it. */
  --void:        var(--surface-1);
  --void-2:      var(--surface-2);
  --surface:     var(--surface-3);
  /* --paper is "the brightest ink" in this layer, not a colour name. In light
     the brightest ink is the darkest. */
  --paper:       var(--text-color);
  --ink:         var(--text-color);
  --ink-2:       var(--text-secondary);
  --ink-3:       var(--text-tertiary);
  --ink-4:       var(--text-tertiary);
  --rule:        var(--border-hairline);
  --rule-strong: var(--border-strong);
  /* ⚠ REMAPPING THE TOKENS IS ONLY HALF THE JOB — A LITERAL IGNORES THIS BLOCK.
     PATTERNS §18: "Never author a border as rgba(255,255,255,…): that is a
     dark-only value wearing a role-shaped name." This file did it 14 times, and
     because a literal never reaches the token layer, `lint_contrast --suite
     archetypes` passed all 56 pairs while the components were wrong.

     Measured against the paper ground (#F8F5EE) before the fix, every one of
     them composited to 1.00–1.02:1 — form-control borders, the row/button/
     segment hovers, the stage strip, the timeline chip and the dashed exit
     fence all rendered INVISIBLE in light. They read 1.05–2.40:1 on dark, which
     is why nobody saw it.

     They now take role tokens, in two tiers so every deliberate distinction
     survives both shells (`.pa-tl-actor` is firmer than its machine variants;
     the exit fence is firmer than `.gt-ts`):

       washes           → --hover-bg       color-mix on --text-color, so it is a
                                           lightening on dark and a DARKENING on
                                           paper — the operation flips, per §18
       controls / firm  → --border-strong  .22 dark → rgba(26,18,6,.28) light
       quiet tier       → --border-default .12 dark → rgba(26,18,6,.15) light

     `test_light_shell_literals.py` fails the build on a new one. */
  /* The brand accent is PINNED by shared.css at 3.17:1 on the light ground —
     one step darker fails the 3:1 UI floor. Take it rather than restate it. */
  --amber:       var(--primary-color);
  --amber-hot:   var(--primary-color);
  --amber-ink:   var(--text-on-accent);
  --ok:          var(--success-color);
}

/* ── 19f. RECORD — the crumb, the identity, the state band, the timeline.
       PATTERNS.md §13e. Reference: turns 26a, 27a, 27b. Lifted from the
       handoff bundle's own page-archetypes.css with three adaptations, each
       noted at the rule it changes. ──────────────────────────────────── */

/* ⚠ THE CRUMB BAND IS GONE, owner decision 2026-08-02. The bundle drew
   chrome → crumb → identity → lede, which put two full-width bands between
   the chrome bar and the 2px amber rule — and that rule is how a reader finds
   the judgement without reading anything, so on every other page in this app
   it sits DIRECTLY under the chrome. Same defect `.pa-head` was retired for.
   The link is the PAGE NAME in the chrome bar now (`.pa-chrome-name` is
   already an anchor's colour there), and the identity block below moved
   inside `.pa-lede-main`. `.pa-crumb*` rules were deleted with the markup —
   a rule with no emitter is drift. */

/* Identity, INSIDE the lede band. The number is mono and --paper: shared.css
   resolves --link-color to --paper, "no cool tint (dossier v3)". The old
   case_detail comment saying it is blue is one of the two known-stale
   comments — do not follow it. No padding or border of its own: it is a block
   in the lede's main column, not a band. */
.pa-record-id { display: flex; align-items: flex-start; gap: 24px;
  margin-bottom: var(--space-3); }
.pa-record-num { display: block; font: var(--text-xs)/1 var(--font-mono);
  letter-spacing: .06em; color: var(--paper); margin-bottom: 8px; }
.pa-record-title { font: 300 30px/1.18 var(--font-display);
  letter-spacing: -.015em; margin: 0; max-width: 26ch; text-wrap: pretty; }
.pa-record-meta { margin-inline-start: auto; display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* WHAT THE RECORD IS, in its own words, between the title and the derived
   sentence. A description is read, not scanned, and every other band on the
   page is derived from it.

   ⚠ THE RECORD'S LEDE PROSE FILLS ITS COLUMN — no measure token. Owner
   decision 2026-10-06, on the rendered page: at --measure-prose (then 53ch)
   CYN-2026-0122's description stopped at 468px of a 978px column at 1440 and
   the lede ran 893px tall; filled, 569px (-36%). The signature column already
   bounds the line on the right, and the empty half was the cost the owner
   would not pay. Scoped by the band's own modifier, so every other lede in
   the system keeps its token. tests/test_prose_measure.py pins both halves. */
.pa-record-summary { margin-bottom: var(--space-4); }
.pa-record-summary p { font: var(--t-prose-tight); color: var(--ink-2);
  max-width: none; text-wrap: pretty; margin: 0 0 10px;
  /* ⚠ A DESCRIPTION IS NOT ALWAYS PROSE. These are written by detectors, and
     one of them pastes the decoded command line: CYN-2026-0084's base64 blob
     measured 4,182px of unbreakable token inside a 664px box, pushed the page
     body sideways and ran under the signature column. `max-width` cannot help
     — there is no break opportunity to honour it. Same contract as `.pa-src`
     and `.pa-kv-hash`: content with no wrap points must be made to wrap, or
     it takes the whole layout with it. */
  overflow-wrap: anywhere; }
.pa-record-summary p:last-child { margin-bottom: 0; }
/* The reading sits under the summary now, so it takes the supporting ramp
   rather than the 30px lede face — the title is the largest thing here. It
   is also a `.pa-lede-support`, so the rule below fills it with the rest. */
.pa-record-reading { color: var(--paper); }
/* The reading and anything a page puts in `reading_support` — the same column
   as the summary above them, one right edge for the whole lede. */
.pa-lede-band--record .pa-lede-support { max-width: none; }

/* ⚠ THE THREE FIGURES MOVE INTO THE SIGNATURE COLUMN ON THIS ARCHETYPE, and
   PATTERNS §4 says the right column carries "one figure only". Owner decision
   2026-08-02, on the rendered page, and the measurement is the argument: a
   record's lede carries the whole description, so the left column ran 739px
   while the clock used 187px of the column beside it — 552px of nothing, with
   the figures stacked at the foot of the left column beneath the prose. The
   figures fill it, the band comes out balanced, and the page loses a
   full-width row. `.pa-because` keeps its identity; only its axis changes. */
.pa-signature .pa-because { flex-direction: column; margin-top: var(--space-4);
  border-top: 0; }
.pa-signature .pa-because > * { flex: none; padding: 0 0 12px;
  border-inline-end: 0; border-bottom: 1px solid var(--rule); }
.pa-signature .pa-because > * + * { padding-top: 12px; }
.pa-signature .pa-because > *:last-child { border-bottom: 0; padding-bottom: 0; }

/* ── STATE. The only band in the system that WRITES. ─────────────── */
.pa-state { padding: 20px var(--gutter) 22px; background: var(--void-2);
  border-bottom: 2px solid var(--rule-strong); }
.pa-state-grid { display: grid; grid-template-columns: 1fr var(--side-col);
  gap: 0 var(--side-gap); }
.pa-state-writes { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 18px; margin-top: 20px; }
.pa-state-field { display: flex; flex-direction: column; gap: 6px; }
.pa-state-field > label { font: var(--t-eyebrow); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-4); }
.pa-state-field select { appearance: none; background: transparent;
  border: 1px solid var(--border-strong); border-radius: 0; color: var(--ink-2);
  font: var(--text-xs)/1 var(--font-mono); padding: 7px 9px; width: 100%; }
.pa-state-field select:focus-visible { outline: 2px solid var(--amber);
  outline-offset: 1px; }
.pa-state-field--tlp select { border-color: rgba(217,119,6,.55); color: var(--amber-text); }

/* The status STRIP. Five stages are a progression, not six interchangeable
   alternatives — which is what a <select> asserts. PATTERNS §8's segmented
   control, no new pattern, with the exit outside it. */
.pa-stages { display: flex; gap: 2px; border: 1px solid var(--border-strong); }
.pa-stage { flex: 1; text-align: center; padding: 7px 4px; border: 0;
  background: transparent; cursor: pointer;
  font: var(--text-xs)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); }
.pa-stage--past { color: var(--ink-4); }
.pa-stage[aria-current="true"] { background: var(--amber); color: var(--amber-ink); font-weight: 700; }
.pa-stage:hover:not([aria-current="true"]) { background: rgba(217,119,6,.14); color: var(--paper); }
.pa-stage:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
/* false_positive is an EXIT, not a stage. Outside the strip, dashed. */
.pa-state-exit { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 7px; }
.pa-state-exit > button:not(.pa-btn) { background: transparent; cursor: pointer;
  border: 1px dashed var(--border-strong); border-radius: 0;
  font: var(--text-xs)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); padding: 3px 8px; }

/* In flight. The control disables and the OLD value stays until the server
   settles it. Never repaint the field and hope — an optimistic write with no
   rollback shows a state the database does not have. */
.pa-state[data-pending] .pa-stages,
.pa-state[data-pending] .pa-state-field select { opacity: .45; pointer-events: none; }
.pa-pending { display: flex; align-items: center; gap: 9px; margin-top: 8px;
  font: var(--text-xs)/1 var(--font-mono); }
.pa-pending-old { color: var(--ink-4); text-decoration: line-through; }
.pa-pending-new { color: var(--amber-text); border-bottom: 1px dashed rgba(217,119,6,.7); }
.pa-pending-note { font: var(--t-note); color: var(--ink-4); }

/* A case parked with somebody who cannot log in. Full width under the writes
   grid because the assignee <select> is a third of three columns and truncates
   its own marker to nonsense. */
.pa-state-warn { font: var(--t-note); color: var(--amber-text);
  margin: 10px 0 0; max-width: 54ch; }

/* WHAT IT WAS. Separated from the writes above by a hairline, because it is a
   different kind of statement: severity and owner are routing, this is a
   judgement, and it is the one an engine gets graded on. It is reversible, so
   it does NOT take the 2px fence — that rule is reserved for controls with no
   inverse. Unanswered on a resolved case is marked, not shouted: an amber
   edge, the same weight as the pending row. */
.pa-state-verdict { margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--rule); }
.pa-state-verdict .pa-state-field { max-width: 280px; }
.pa-state-verdict-note { font: var(--t-note); color: var(--ink-4);
  margin: 8px 0 0; max-width: 54ch; }
.pa-state-verdict--unanswered { border-inline-start: 2px solid var(--amber);
  padding-inline-start: 13px; }
.pa-state-verdict--unanswered .pa-state-verdict-note { color: var(--amber-text); }

/* Escalate. The one control with no inverse — fenced with the 2px rule, the
   same convention as the bulk bar's delete. */
.pa-state-fence { display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--ink-4); }
.pa-escalate { border: 1px solid rgba(220,38,38,.55); background: transparent;
  color: var(--sev-critical-text); font: var(--t-pill); letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 12px; cursor: pointer; border-radius: 0; }
.pa-escalate:hover { background: rgba(220,38,38,.16); }
.pa-escalate[disabled] { opacity: .45; cursor: default; }

/* The clock. Derived from sla_due_at AT RENDER — never from sla_breached,
   which has no writer and is false on every row. */
.pa-sla { border-inline-start: 1px solid var(--rule); padding-inline-start: 22px; }
.pa-sla-clock { font: 32px/1 var(--font-mono); color: var(--amber); }
.pa-sla--breached .pa-sla-clock { color: var(--sev-critical-text); }
.pa-sla-note { font: var(--t-note); color: var(--ink-3); margin: 8px 0 0; }
.pa-sla-times { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule);
  font: var(--text-xs)/1.9 var(--font-mono); color: var(--ink-3); }
.pa-sla-times b { color: var(--ink-2); font-weight: 400; }

/* WAS DOCKET RIGHT? (2026-10-06) — the disposition, asked in the agent's
   terms, under the verdict it answers. Its buttons drive the Disposition
   field; this block draws no state of its own beyond the answer line. */
.cs-review { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.cs-review-btns, .cs-review-other { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cs-review-other { align-items: baseline; }
.cs-review-other .pa-sla-note { flex-basis: 100%; margin: 0; }
.cs-review [aria-pressed="true"] { border-color: var(--amber); color: var(--ink); }
.cs-review-answer { font: var(--t-note); margin: 8px 0 0; color: var(--ink-2); }
.cs-review-answer--agrees { color: var(--ok); }
.cs-review-answer--overrules { color: var(--sev-critical-text); }
.pa-state-respond { margin-top: 16px; }

/* ── TIMELINE. Oldest first. Immutable (migration 008), so no row may offer
       an edit, a delete, or a hover affordance that implies one. ─────── */
/* ── THE RECORD'S MIDDLE PAIR: what happened | what is left ───────────
   Two columns above 1200px, stacked below. The 1px divider is the column gap
   filled by the parent's ground, the same trick `.pa-pair` uses, so the rule
   runs the full height of the taller column without either section drawing it.

   ⚠ `align-items: start` matters. Stretched, the shorter column's own
   `border-bottom: 2px` would be dragged down to the taller one's baseline and
   draw a closing rule under empty space — which reads as a section that ran out
   of content rather than one that simply had less. */
/* ⚠ A CONTAINER QUERY, NOT A MEDIA QUERY. The constraint is how much room the
   CONTENT COLUMN has, and that is the viewport minus the nav and whatever else
   the shell takes — a `@media (min-width: 1200px)` splits into two columns
   based on a number the sections never see. Same reasoning as `@container rel`
   below, and the same named-container discipline so it binds to this element
   rather than to whatever else may be a container above it. */
.pa-record-pair-host { container-type: inline-size; container-name: recpair; }
.pa-record-pair { display: grid; grid-template-columns: 1fr; }
@container recpair (min-width: 1100px) {
  .pa-record-pair:not(.pa-record-pair--single) {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    column-gap: 1px;
    /* ⚠ THE DIVIDER IS A LINE, NOT A FILL. It was `background: var(--rule)` on
       the pair with the columns painted over it — the gap trick `.pa-pair`
       uses. That works only while both columns are the same height. With
       `align-items: start` the shorter one stops early, and everything below it
       is the pair's own grey showing through: a large slab of --rule under the
       right column, which is what it looked like.

       A 1px gradient sized to the gap draws the same rule and paints nothing
       else, so the space under the shorter column stays the page's ground. */
    background-image: linear-gradient(var(--rule), var(--rule));
    background-repeat: no-repeat;
    background-size: 1px 100%;
    background-position: 50% 0;
    border-bottom: 2px solid var(--rule-strong);
  }
  /* The right column is a STACK — Outstanding, then what the case left behind.
     Its sections keep their own closing rules, so the two read as two bands
     rather than one long one. */
  .pa-record-aside > .pa-section + .pa-section { border-top: 1px solid var(--rule); }
  /* The timeline's 2px closing rule belongs to the PAIR now, not to the column
     — otherwise the two columns close at different heights. */
  .pa-record-pair:not(.pa-record-pair--single) > .pa-timeline { border-bottom: 0; }
}
.pa-timeline { padding: 20px var(--gutter) 8px;
  border-bottom: 2px solid var(--rule-strong); }
/* The optional `timeline_sub` head. `.pa-section-head` carries the band gutter
   and 16px of top padding of its own — inside `.pa-timeline`, which already
   has both, that indents the eyebrow past every row beneath it and opens a
   36px gap above it. Same class, same shape, no second padding. */
.pa-timeline > .pa-section-head { padding: 0 0 12px; }
.pa-timeline-rows { display: grid; grid-template-columns: 92px 1fr; }
.pa-tl-time { padding: 10px 12px 12px 0; text-align: end;
  border-top: 1px solid var(--rule); border-inline-end: 1px solid var(--rule);
  font: var(--text-xs)/14px var(--font-mono); color: var(--ink-3); min-height: 60px; }
.pa-tl-elapsed { display: block; color: var(--ink-4); }
/* ⚠ THE ROW RHYTHM IS QUANTISED, and it has to be, because every piece of it
   resolves to a HALF PIXEL. `--t-secondary` is 12.5px/1.5 = 18.75px, the actor
   chip is 9px/1.5 + 2px padding + 2px border = 17.5px, and the transition is
   10.5px/1 — so a row's natural height is fractional, the grid rounds it, and
   whether it rounds up or down depends on the row's absolute position down the
   page. Two structurally identical rows measured 59px and 60px for that reason
   alone: same markup, same content shape, one pixel apart.

   The floor is 60px on BOTH cells, and it has to be both: a bare row was
   TIME-driven (the timestamp plus the elapsed line is 29px of content, taller
   than the body's single 21px line) while a row with a transition was
   BODY-driven at 38px. Flooring only one cell evens nothing. 60px is the
   natural height of the taller of the two, so no row is squeezed.

   The three tiers the timeline used to render at — 51px bare, 59px with a
   transition, 82px+ with a note — become one floor plus whatever a note
   genuinely adds. A note makes a row taller because a note IS more content; a
   missing chip should not. */
.pa-tl-body { padding: 10px 0 12px 16px; border-top: 1px solid var(--rule);
  min-height: 60px; }
.pa-tl-line { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  min-height: 21px; }
/* The actor's NAME is the mark. Four coloured icons did less work than four
   words — and the class comes from actor_id + actor_type, never from
   actor_name.includes('AI'), which draws every Aisha and Kaito as a robot. */
.pa-tl-actor { font: var(--text-xs)/14px var(--font-mono); letter-spacing: .1em;
  text-transform: uppercase; padding: 1px 6px; border: 1px solid var(--border-strong);
  color: var(--ink-2); }
.pa-tl-actor--system, .pa-tl-actor--automation, .pa-tl-actor--ai {
  border-color: var(--border-default); color: var(--ink-3); }
/* Machine judgements carry the SAME inferred mark as a co-occurrence edge and
   a typed relation. ⚠ ADAPTED: the bundle writes `var(--sig-inferred,
   #FCA5A5)`, an undefined token with a literal fallback — rule 10 rejects it,
   and the literal would never theme-flip. `.rel-prov--inferred` already
   resolves this app's inferred mark to --sev-critical-text; one lexicon. */
.pa-tl-inferred { font: var(--text-xs)/14px var(--font-mono); letter-spacing: .1em;
  text-transform: uppercase; padding: 1px 6px;
  border: 1px dashed rgba(252,165,165,.5); color: var(--sev-critical-text); }
/* One translated sentence per event_type, with the actor as its subject.
   ⚠ line-height overridden to an integer. --t-secondary is 12.5px/1.5 =
   18.75px, and because this sits in a baseline-aligned flex line, everything
   BELOW it — the note, the transition — then starts on a half pixel and the
   row's content box rounds up by one or two. That is where 59-vs-60 came from
   on two rows with identical markup. */
.pa-tl-event { font: var(--t-secondary); line-height: 19px; color: var(--ink-2); }
/* Integral line-heights, overriding the tokens' ratios. --t-note is
   11.5px/1.55 = 17.825px and the transition was 10.5px/1 — both fractional,
   both compounding into a row height the grid then rounds by position. */
.pa-tl-note { font: var(--t-note); line-height: 18px; color: var(--ink-3);
  margin-top: 5px; }
.pa-tl-transition { display: flex; align-items: center; gap: 8px; margin-top: 5px;
  font: var(--text-xs)/12px var(--font-mono); }
.pa-tl-old { color: var(--ink-4); text-decoration: line-through; }
.pa-tl-arrow { color: var(--ink-4); }
.pa-tl-new { color: var(--amber-text); }
/* ⚠ ADAPTED: the bundle writes `.pa-tl-rows > :last-child`, a class its own
   markup never emits (the grid is `.pa-timeline-rows`), so the closing rule
   never landed. Corrected to the class that exists. */
.pa-timeline-rows > :last-child { border-bottom: 1px solid var(--rule); }
/* Past ~40 entries: first five, last fifteen, one rule between them. Never a
   scroll box inside the band — the page scrolls. */
.pa-tl-elide { grid-column: 1 / -1; padding: 8px 0; border-top: 1px solid var(--rule);
  text-align: center; font: var(--text-xs)/1 var(--font-mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4); }
/* Append-only, and it sits AFTER the last entry: writing continues the
   narrative rather than interrupting it. */
.pa-tl-add { display: flex; margin: 16px 0 4px; }
.pa-tl-add input { flex: 1; background: var(--void-2); border-radius: 0;
  border: 1px solid var(--border-strong); color: var(--paper);
  font: var(--t-secondary); padding: 9px 12px; }
.pa-tl-add input:focus-visible { outline: 2px solid var(--amber); outline-offset: -1px; }
.pa-tl-add button:not(.pa-btn) { border: 1px solid var(--border-strong); border-inline-start: 0;
  background: transparent; color: var(--ink-2); border-radius: 0; cursor: pointer;
  font: var(--t-pill); letter-spacing: .1em; text-transform: uppercase; padding: 9px 16px; }
/* `:not(.pa-btn)` for the reason `.pa-prod-actions` carries it: this styles the
   BESPOKE flush-against-the-input button above, it is declared after the
   `a.pa-btn:hover` carve-out, and it ties on specificity — so a shared control
   dropped in here would take `--paper` on a copper wash instead of its own ink.
   Nothing does that today; the day something does, it would be invisible. */
.pa-tl-add button:not(.pa-btn):hover { background: rgba(217,119,6,.14); color: var(--paper); }

@media (max-width: 720px) {
  .pa-state-grid { grid-template-columns: 1fr; }
  .pa-sla { border-inline-start: 0; padding-inline-start: 0; margin-top: 18px;
    padding-top: 16px; border-top: 1px solid var(--rule); }
  .pa-state-writes { grid-template-columns: 1fr; gap: 14px; }
  /* The strip folds to a COLUMN rather than a select: it is still a
     progression at 360px wide. */
  .pa-stages { flex-direction: column; }
  .pa-timeline-rows { grid-template-columns: 64px 1fr; }
}

/* ── 19i. THE CANVAS BAND — BESPOKE.md. A spatial view of the population
       ⚠ RENUMBERED FROM 19g ON 2026-08-03, the same way the board moved off
       19h: the handoff bundle assigns §19g to PRODUCT and owns the
       numbering. The canvas came from BESPOKE.md and took 19g before the
       product archetype was lifted; it is the interloper, not the bundle.
       the ledger below lists, for a page whose finding is a SHAPE. Added
       2026-08-02 for /footprint. ─────────────────────────────────────── */
.pa-canvas-band { border-top: 2px solid var(--rule-strong); }
/* Full width minus the selection panel. The panel is a COLUMN IN THE GRID,
   not a slide-over: it is present before any selection, so clicking a node
   never reflows the canvas beside it. */
.pa-canvas-grid { display: grid; grid-template-columns: 1fr 340px;
  border-top: 1px solid var(--rule); }
/* ⚠ FIXED HEIGHT, NOT VIEWPORT-RELATIVE. These pages sit inside a scrolling
   document and a `vh` canvas fights the page — it grows as the reader scrolls
   past it and the layout never settles. 420px is the drawn value. */
.pa-canvas { position: relative; height: 420px; background: var(--void-2);
  border-inline-end: 1px solid var(--rule); overflow: hidden; }
.pa-canvas canvas { display: block; width: 100%; height: 100%; }
/* The legend belongs to the canvas, bottom-left, and it says what the
   encodings MEAN. Never colour a node by something the reader cannot look up. */
.pa-canvas-legend { position: absolute; inset-block-end: 10px; inset-inline-start: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font: var(--text-xs)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-4); pointer-events: none; }
.pa-canvas-key { display: inline-flex; align-items: center; gap: 5px; }
.pa-canvas-dot { width: 8px; height: 8px; flex: none; border-radius: 50%;
  background: var(--ink-3); }
.pa-canvas-dot--crit { background: var(--sev-critical); }
.pa-canvas-dot--high { background: var(--sev-high); }
.pa-canvas-dot--clean { background: var(--ink-3); }
/* Interaction hint: WORDS, in the section head. An icon tells a keyboard user
   nothing, and the ledger below is the navigable equivalent. */
.pa-canvas-hint { font: var(--text-xs)/1 var(--font-mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-4); }
.pa-canvas-empty { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; padding: 0 32px; text-align: center;
  font: var(--t-note); color: var(--ink-4); }

/* The selection panel. Present before a selection, showing its empty state. */
.pa-canvas-pane { padding: 16px 20px 20px; display: flex; flex-direction: column; }
.pa-canvas-pane .pa-eyebrow { margin-bottom: 10px; }
.pa-canvas-empty-note { font: var(--t-note); color: var(--ink-4); max-width: 34ch; }
.pa-canvas-sel { font: var(--t-value-lg); color: var(--paper); margin-bottom: 4px;
  overflow-wrap: anywhere; }
/* ONE sentence interpreting the SELECTION, not a list of its fields. */
.pa-canvas-read { font: var(--t-note); color: var(--ink-2); margin: 0 0 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.pa-canvas-hosts { margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--rule); overflow-y: auto; }
.pa-canvas-host { display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 4px 0; font: var(--t-value); color: var(--ink-3); }
.pa-canvas-host b { color: var(--ink-2); font-weight: 400; overflow-wrap: anywhere; }

@media (max-width: 992px) {
  .pa-canvas-grid { grid-template-columns: 1fr; }
  .pa-canvas { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
}

/* ── 19h. THE TALLY, AND A LEDGER ROW THAT OPENS IN PLACE. Added 2026-11-21
       for /footprint, whose ledger had shrunk to seven columns over a store
       holding every header, path, port and certificate the scan had read.

       A tally cell is a LINK that narrows the ledger to the rows it counts —
       a filter with a number on it, not a fourth figure. The count is on the
       type scale's figure step; the note under it says what was counted. */
.pa-tally { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 2px solid var(--rule-strong); }
.pa-tally-cell { display: flex; flex-direction: column; gap: var(--space-1);
  min-width: 0; padding: var(--space-4) var(--space-3) var(--space-4) var(--space-4);
  border-inline-end: 1px solid var(--rule); color: inherit; text-decoration: none; }
.pa-tally-cell:first-child { padding-inline-start: var(--gutter); }
.pa-tally-cell:last-child { border-inline-end: 0; }
a.pa-tally-cell:hover { background: var(--hover-bg); }
a.pa-tally-cell:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.pa-tally-cell[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--amber); }
.pa-tally-n { font: var(--t-figure); color: var(--ink); }
.pa-tally-n--crit { color: var(--sev-critical-text); }
.pa-tally-n--warn { color: var(--sev-high-text); }
.pa-tally-k { font: var(--t-colhead); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); }
.pa-tally-note { font-size: var(--text-xs); line-height: 1.35; color: var(--ink-4); }
@media (max-width: 1200px) {
  .pa-tally { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pa-tally-cell { border-bottom: 1px solid var(--rule); }
  .pa-tally-cell:nth-child(4n + 1) { padding-inline-start: var(--gutter); }
}
@media (max-width: 640px) {
  .pa-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-tally-cell:nth-child(odd) { padding-inline-start: var(--gutter); }
}

/* The filter line above a ledger: a GET form, so every state is a link. */
.pa-filterline { display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-3); padding: var(--space-3) var(--gutter);
  border-bottom: 1px solid var(--rule); }
.pa-filterline .rail-search { flex: 1 1 260px; min-width: 200px; }

/* A wide ledger scrolls sideways inside its band; the page never does. */
.lrow-scroll { overflow-x: auto; }
.lrow-scroll > .lrow-wrap { min-width: 1240px; }

/* The row that opens. The detail is a SIBLING of the row, in the row group,
   so it reads in document order and prints with its row. */
.lrow--opens { cursor: pointer; }
.lrow--opens[aria-expanded="true"] { background: var(--hover-bg); }
.ldt-sub { display: block; margin-top: var(--space-1h); font: var(--t-note);
  color: var(--ink-3); }
.ldt-flags { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2h);
  align-items: baseline; }
.lrow-tag--mut { color: var(--ink-4); }
.ldt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--void-2); border-bottom: 2px solid var(--rule-strong); }
.ldt[hidden] { display: none; }
.ldt-col { min-width: 0; padding: var(--space-4) var(--space-5);
  border-inline-end: 1px solid var(--rule); }
.ldt-col:first-child { padding-inline-start: var(--row-indent); }
.ldt-col:last-child { border-inline-end: 0; }
.ldt-h { display: block; margin-bottom: var(--space-3); font: var(--t-colhead);
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber-text); }
.ldt-h--next { margin-top: var(--space-4); }
.ldt-src { display: block; margin: var(--space-3) 0 var(--space-1h);
  font: var(--t-colhead); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); }
.ldt-kv { display: grid; grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-0) var(--space-3); padding: var(--space-1) 0;
  border-bottom: 1px solid var(--rule); font-size: var(--text-sm); line-height: 1.35;
  color: var(--ink-2); }
.ldt-kv > b { font: var(--t-value); font-weight: 400; color: var(--ink-3); }
.ldt-kv > span, .ldt-kv > i { overflow-wrap: anywhere; }
.ldt-kv > i { grid-column: 2; font-style: normal; font-size: var(--text-xs);
  color: var(--ink-4); }
.ldt-kv .is-crit { color: var(--sev-critical-text); }
.ldt-kv .is-high { color: var(--sev-high-text); }
.ldt-kv .is-med { color: var(--sev-medium-text); }
.ldt-kv .is-ok { color: var(--success-text); }
.ldt-kv .is-mut { color: var(--ink-4); }
.ldt-note { margin: var(--space-2) 0 0; font-size: var(--text-sm);
  line-height: 1.5; color: var(--ink-3); }
.ldt-note--warn { color: var(--sev-high-text); }
.ldt-mono { font: var(--t-value); line-height: 1.5; color: var(--ink-2);
  overflow-wrap: anywhere; }
@media (max-width: 1200px) {
  .ldt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ldt-col { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 640px) { .ldt { grid-template-columns: 1fr; } }

/* ── 20. PRINT — the light shell. ────────────────────────────────── */
@media print {
  :root {
    --void: var(--lt-ground); --void-2: #fff; --surface: #fff;
    --paper: var(--lt-ink); --ink: var(--lt-ink);
    --ink-2: #3d3a39; --ink-3: var(--lt-muted); --ink-4: var(--lt-muted);
    --amber: var(--lt-accent); --amber-hot: var(--lt-accent);
    /* ⚠ --amber-text HAS TO BE REMAPPED HERE TOO, and forgetting it would have
       made print WORSE than before the token existed. This block flips the
       grounds to paper and remaps every ink and accent that sits on them; a
       token it does not name keeps whatever the live theme baked, so printing
       from the dark theme would put #D97706 on #fff — 3.19:1, below even the
       3.0 the fill token is registered for.

       It takes INK rather than a darker Modernist red. The --lt-* family is a
       separate shell (print, exports, the mark, marketing), not the app's light
       theme, so #A45A05 does not belong to it — and inventing a fourth accent
       value to solve one ordinal is how a palette grows. Full ink is the same
       answer `.pa-pane-tab.is-active` reached: the accent stays on the rules,
       the word gets read. Greyscale printing does this anyway. */
    --amber-text: var(--lt-ink);
    --rule: var(--lt-hairline); --rule-strong: var(--lt-ink);
  }
  .pa-chrome, .filter-sidebar, .sidebar-toggle, .pa-pane,
  .pa-pagination-nav, .pa-btn,
  /* A printed RECORD is the audit trail: the write controls have no meaning
     on paper, so the strip's exit, the escalate fence and the append box go,
     and the state fields print as their current values. */
  .pa-tl-add, .pa-state-exit, .pa-state-fence { display: none; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .pa-lede-band, .pa-pair, .pa-order, .rel-row { break-inside: avoid; }
  .pa-state-field select { border: 0; padding-inline: 0; }
  .pa-tl-time, .pa-tl-body { break-inside: avoid; }
}
/* ── 19d. TYPED RELATIONS — PATTERNS.md §13c. ────────────────────── */
/* The block is its own query container, so the narrow form works in a 360px
   pane without any ancestor having to opt in. */
.rel-block { padding: 0 var(--gutter); container: rel / inline-size; }
.rel-head { display: flex; align-items: baseline; gap: 12px; }
.rel-count { font-size: var(--text-sm); color: var(--ink-3); }
.rel-count b { color: var(--sev-critical-text); font-weight: 400; }
.rel-reading {
  font: var(--t-prose-tight); color: var(--ink); max-width: var(--measure-note);
  text-wrap: pretty; margin: 9px 0 0;
}

.rel-group {
  display: flex; align-items: baseline; gap: 10px;
  padding: 18px 0 7px; border-bottom: 1px solid var(--rule-strong);
  font: var(--t-colhead); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
}
.rel-group-n { color: var(--ink-4); }

.rel-row {
  display: grid; grid-template-columns: 14px 200px 1fr 96px 80px;
  gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
  font-size: var(--text-sm);
}
.rel-row--weak { background: color-mix(in oklch, var(--amber) 6%, transparent); }
/* The reveal. §13c bans a scroll box inside a page that already scrolls, so
   the hidden rows are ALREADY in the DOM and the control unhides them — which
   is what the handler's own comment always claimed. It was untrue: the class
   it added, `.rel-block--all`, was defined in no stylesheet, so the click
   removed the button and revealed nothing. Both halves live here now. */
.rel-row--extra { display: none; }
.rel-block--all .rel-row--extra { display: grid; }
.rel-beyond {
  font: var(--t-note); color: var(--ink-3); padding: 6px 0;
}

/* The stroke cell. Same vocabulary as BESPOKE.md's canvas edges: weight is
   significance, dash is provenance. Do not merge into one ramp. */
.rel-stroke { width: 14px; height: 0; transform: translateY(-3px);
  border-top: 1px solid var(--ink-3); }
.rel-stroke--sig { border-top-width: 1.6px; border-top-color: var(--amber); }
.rel-stroke--inferred { border-top-style: dashed; }

.rel-id { font: var(--t-value-lg); color: var(--amber-text); text-decoration: none; }
.rel-id:hover { text-decoration: underline; }
.rel-why { color: var(--ink-2); }
.rel-type { font: var(--t-value); color: var(--ink-3); }
.rel-prov {
  font: var(--t-colhead); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.rel-prov--inferred { color: var(--sev-critical-text); }

.rel-more {
  font: var(--t-pill); letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 0; padding: 4px 0;
  color: var(--ink-3); cursor: pointer;
}
.rel-more:hover { color: var(--ink); }

/* Zero relations is a finding, not a shrug. Never style this as muted italic. */
.rel-empty { border: 1px solid var(--card-edge); background: var(--void-2);
  padding: 14px 16px; }
.rel-empty p { font: var(--t-prose-tight); color: var(--ink); margin: 8px 0 0;
  max-width: 60ch; text-wrap: pretty; }
.rel-empty-scope { margin-top: 11px; padding-top: 10px;
  border-top: 1px solid var(--rule); font-size: var(--text-sm); color: var(--ink-3); }

/* Narrow: pane, or any container under ~420px. Named, so it binds to
   .rel-block itself and not to whatever else may be a container above it. */
@container rel (max-width: 420px) {
  .rel-row { grid-template-columns: 14px 1fr; gap: 9px; }
  .rel-row .rel-type, .rel-row .rel-prov { display: none; }
  .rel-why { grid-column: 2; font-size: var(--text-xs); color: var(--ink-3); }
}
/* Fallback for baselines without container queries: the pane is the only
   narrow host, and its width is fixed by --pane-w. */
.pa-pane .rel-row, .rel-block--narrow .rel-row {
  grid-template-columns: 14px 1fr; gap: 9px;
}
.pa-pane .rel-type, .pa-pane .rel-prov,
.rel-block--narrow .rel-type, .rel-block--narrow .rel-prov { display: none; }
.pa-pane .rel-why, .rel-block--narrow .rel-why {
  grid-column: 2; font-size: var(--text-xs); color: var(--ink-3);
}
/* ⚠ IN A PANE THE BLOCK IS A BAND, AND IT WAS BEING DROPPED IN AS A NAKED DIV.
   Owner-reported 2026-08-01 with a screenshot: a line running through the top
   of the Relations box. Measured — the preceding `.pa-pane-q` ends in a 1px
   full-width rule at y=587 and `.rel-block` began at y=587 with zero padding,
   so the section rule and the box's own 1px top border landed on the SAME
   pixel row. Two borders that are each correct, drawn through each other.

   It was also inset by `--gutter` (32px) while every other band in the pane is
   inset 26px, so the box sat 5px further in than the content above it and read
   as slightly adrift.

   Both are the same mistake — the block was styled for a full-width page and
   then reused in a 480px pane without being told which surface it is on. Here
   it takes the pane's own rhythm. */
.pa-pane .rel-block {
  padding: 18px 26px;
}

/* ── 19e. CONVERGING SIGNALS — the /alerts annex that replaced /triage. ──
   One row per CONVERGENCE, not per signal row: the predictive engine re-emits
   a finding every cycle without expiring the one it supersedes, so the raw
   active set is ~2.4x the number of distinct things to work. The collapsing
   happens in services/converging_signals.py; this only has to lay out what
   survives it.

   The row is a stack, not a grid of cells, because the parts are one
   statement read downward — subject, then the entities that converged, then
   why it fired. Splitting them into columns would ask the eye to reassemble
   a sentence. */
.cx-title { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cx-title > a:not(.pa-btn) { color: var(--paper); text-decoration: none; }
.cx-title > a:hover { text-decoration: underline; text-underline-offset: 2px; }

.cx-pivots { display: flex; flex-wrap: wrap; gap: 4px; }
/* The entities, as labelled values. Mono because they are identifiers (CVE
   ids, actor handles) and the label is the quieter half of the pair. */
.cx-piv {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6;
  padding: 1px 6px; border: 1px solid var(--rule);
  color: var(--ink-3);
}
.cx-piv i { font-style: normal; }
.cx-piv b { font-weight: 500; color: var(--ink-2); }

.cx-narr { font-size: var(--text-sm); line-height: 1.5; color: var(--ink-3); }
/* An action exists on a minority of signals, so it reads as an addition to the
   row rather than a field the row always has. */
/* ⚠ LOGICAL, not `padding-left` / `border-left`. This is an accent bar that
   marks where the text STARTS, so under `dir=rtl` it belongs on the right —
   a physical `left` pins it to the wrong edge and the rule then sits at the
   END of the sentence it is introducing. The only physical direction pair
   left in this sheet, and the archetype is otherwise 82 logical properties
   to 0. */
.cx-act {
  font-size: var(--text-xs); line-height: 1.5; color: var(--ink-2);
  padding-inline-start: 9px; border-inline-start: 2px solid var(--amber);
}
.cx-type { font-size: var(--text-xs); color: var(--ink-3); }
/* The ICD 203 word, not a percentage. The number is in the title attribute. */
.cx-conf { font-size: var(--text-xs); color: var(--ink-2); text-transform: capitalize; }
.cx-do { display: flex; justify-content: flex-end; }
/* Matches the in-row button height the ledger uses elsewhere (§10.7 motion +
   the row-height guard) — a band action must not make its row taller. */
.cx-row .pa-btn { padding: 1px 8px; font-size: var(--text-xs); line-height: 1.7; }
.cx-row.is-going { opacity: .45; }

@media (max-width: 992px) {
  .cx-type, .cx-conf { display: none; }
}

/* ── 19h. CENTRE — the Command Centre, and the chart primitives.
       PATTERNS.md §14 (charts) and §12 (the pair). Reference: turn 30.
       NO FILTER RAIL: you do not filter a briefing. The rail belongs to
       Threat Feed and the ledgers (§9). ──────────────────────────────── */

.pa-centre { display: flex; flex-direction: column; }

/* Two chart bands side by side, split by ONE vertical rule. Not cards:
   v1 wraps each chart in .chart-panel, a bordered box on a page that
   already has bands. One less nested edge, and it survives the light
   shell without a second border colour. */
.pa-chartrow { display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--rule-strong); }
/* A flex column, so `.pa-chart-foot` (margin-top: auto) sits on the same line
   in both cells of a row however long each chart runs (2026-10-14). */
.pa-chart { display: flex; flex-direction: column; min-width: 0;
  padding: 24px var(--gutter) 26px; }
.pa-chart + .pa-chart { border-inline-start: 1px solid var(--rule); }
/* A page with more than one chart row needs the horizontal rule too — the
   vertical one above only divides charts WITHIN a row. Sibling selector, not a
   `--second` modifier: the divider is a fact about position, and a class the
   author has to remember to add is a class they will forget on row three. */
.pa-chartrow + .pa-chartrow { border-top: 1px solid var(--rule); }
/* A row left with ONE cell takes the whole measure rather than sitting in its
   half with dead space beside it. Since each cell now collapses on its own
   (centre.html), a one-chart row is a normal state, not a mistake. */
.pa-chartrow:has(> .pa-chart:only-child) { grid-template-columns: 1fr; }
/* A tabbed cell ("What reached you") is a column too, so its foot pins. */
.pa-chart > [role="tabpanel"]:not([hidden]) {
  display: flex; flex-direction: column; flex: 1 1 auto; }

/* NO DOUBLED RULE. A band that closes on a 2px bottom rule followed by a
   section that opens on a 2px top rule drew 4px of rule between them. */
.pa-figures + .pa-section,
.pa-band--belt + .pa-section,
.pa-chartrow + .pa-section { border-top: 0; }

/* A dead fragment named under the ledger takes an amber edge, so a silent
   source failure does not blend into the table's foot as quiet prose. */
.lrow-wrap + .pa-section-note {
  margin-top: var(--space-3h);
  padding-inline-start: var(--space-3);
  border-inline-start: 2px solid var(--amber);
}

/* ── 19h-x. COLLECTION BY DAY + THE SOURCE YIELD (/feed, 2026-10-11) ──────
   REDESIGN "Cyntelligence - Feed.dc.html", two cells of a `.pa-chartrow` in
   /feed's annex. Markup charts, not canvas: thirty columns and a dozen rows
   survive print and JS-off, and each value is in the row or the hover.

   MOTION (cyn-charts-motion.css supplies the --cyn-ms-* tokens and the one
   tooltip; the page loads it): columns grow from the base, left to right,
   --pa-d apart; source bars grow from the start edge, filed → assessed →
   cleared. `.is-pending` is set by the page script and removed when the chart
   is first seen, so without JS, under reduced motion and on paper the bars
   simply stand at their final size.

   ⚠ THE DAY FRAME IS LTR IN EVERY LOCALE — a time axis runs oldest → today,
   as every chart and the hero line do in Arabic. The source bars are not a
   time axis and grow from the INLINE start. */
/* ⚠ THE FRAME GROWS TO ITS CELL. The day chart shares a row with the source
   table, a row is as tall as its taller cell, and at a fixed 170px the day
   cell ended in an empty block under its foot (owner, 2026-10-11: "why is
   this half blank?"). The cell is a flex column and the frame takes the
   slack; 170px stays the floor, which is all it gets once the cells stack. */
.pa-chart--days { display: flex; flex-direction: column; }
.pa-chart--days .pa-chart-lede { align-self: flex-start; }
.pa-days { position: relative; flex: 1 1 auto; min-height: 170px; margin-top: var(--space-3);
  border-bottom: 1px solid var(--rule-strong); direction: ltr; }
.pa-days::before { content: ''; position: absolute; inset: 0 0 auto 0;
  border-top: 1px solid var(--rule); }
.pa-days-max { position: absolute; left: 0; top: -14px; font: var(--t-colhead);
  color: var(--ink-4); }
.pa-days-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.pa-days-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex;
  flex-direction: column; justify-content: flex-end;
  transition: opacity var(--cyn-ms-hover); }
/* Bottom up: kept, dismissed, unread — the column's base is what landed
   (the markup lists them top-down: unread, dismissed, kept). */
.pa-days-bar { display: flex; flex-direction: column; justify-content: flex-end;
  transform-origin: bottom;
  transition: transform var(--cyn-ms-enter) var(--cyn-ease-enter) var(--pa-d); }
.pa-days-seg { display: block; flex-basis: 0; min-height: 0; }
.pa-days-seg--un { background: color-mix(in srgb, var(--ink) 20%, transparent); }
.pa-days-seg--dis { background: color-mix(in srgb, var(--ink) 60%, transparent); }
.pa-days-seg--rel { background: var(--amber); }
/* Today is still filling: hatched with the page ground, as every partial
   period on the product is — a short last column must not read as a drop. */
.pa-days-col--today .pa-days-seg, .pa-days-key i.pa-days-col--today {
  background-image: repeating-linear-gradient(135deg, transparent 0 3px, var(--void) 3px 5px); }
/* The collector stopped: hatched from the first silent day to today, and
   labelled with the chrome dot's own figure. */
.pa-days-stop { position: absolute; left: var(--pa-x); right: 0; top: 0; bottom: 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: var(--space-2h);
  border-left: 1px dashed color-mix(in srgb, var(--sev-critical) 60%, transparent);
  background-image: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--sev-critical) 16%, transparent) 0 2px, transparent 2px 7px);
  transition: opacity var(--cyn-ms-state) linear 520ms; }
.pa-days-stop span { font: var(--t-colhead); letter-spacing: .14em; text-transform: uppercase;
  color: var(--sev-critical-text); background: var(--void); text-align: center;
  padding: var(--space-0) var(--space-1); max-width: 100%; }
.pa-days.is-pending .pa-days-bar { transform: scaleY(0); transition: none; }
.pa-days.is-pending .pa-days-stop { opacity: 0; transition: none; }
.pa-days.is-linked .pa-days-col:not(.is-day) { opacity: .35; }

.pa-days-axis { position: relative; height: 14px; margin-top: var(--space-1h); direction: ltr;
  font: var(--t-colhead); color: var(--ink-4); white-space: nowrap; }
.pa-days-axis > span { position: absolute; top: 0; }
.pa-days-axis-start { left: 0; }
.pa-days-axis-end { right: 0; }
.pa-days-axis-at { left: var(--pa-x); transform: translateX(-50%); }
.pa-days-axis-stop { color: var(--sev-critical-text); }
.pa-days-key { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-2h);
  font: var(--t-colhead); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pa-days-key span { display: inline-flex; align-items: center; gap: var(--space-1h); }
.pa-days-key i { display: inline-block; width: 9px; height: 9px; }

.pa-yield { margin-top: var(--space-3); }
.pa-yield-row { display: grid; align-items: center; gap: var(--space-3h);
  grid-template-columns: minmax(104px, 150px) minmax(0, 1fr) 52px 68px 100px 52px;
  min-height: 34px; padding: 0 var(--space-1); border-bottom: 1px solid var(--rule);
  transition: background var(--cyn-ms-hover); }
.pa-yield-head { min-height: 0; padding-bottom: var(--space-2); font: var(--t-colhead);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
/* The number columns are as wide as their own headers, and the bars' header
   gives way first: at .14em in 44/60/80px the headers overran their cells and
   read "CLEAREDFILED CLEARED OF ASSESSED" as one run. */
.pa-yield-head > :nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.pa-yield-row.is-on { background: color-mix(in srgb, var(--amber) 6%, transparent); }
.pa-yield-k { font: var(--t-value); color: var(--ink-2); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.pa-yield-track { position: relative; height: 12px; }
.pa-yield-bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--pa-w);
  transform-origin: left;
  transition: transform var(--cyn-ms-enter) var(--cyn-ease-enter) var(--pa-d); }
[dir="rtl"] .pa-yield-bar { transform-origin: right; }
/* An OUTLINE for what was filed — the frame the other two sit inside — then
   grey for what was read, copper for what cleared. */
.pa-yield-bar--filed { outline: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  outline-offset: -1px; }
.pa-yield-bar--assessed { background: color-mix(in srgb, var(--ink) 45%, transparent); }
.pa-yield-bar--cleared { background: var(--amber); }
.pa-yield.is-pending .pa-yield-bar { transform: scaleX(0); transition: none; }
.pa-yield-num { font: var(--t-value); color: var(--ink); text-align: end;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-yield-head .pa-yield-num { font: inherit; color: inherit; }
.pa-yield-of { color: var(--ink-4); }
.pa-yield-num--hi { color: var(--amber-text); }
.pa-yield-num--warn { color: var(--sev-medium-text); }
.pa-yield-num--muted { color: var(--ink-4); }
/* ⚠ A CONTAINER QUERY, NOT A MEDIA QUERY. The cell is narrow in two places:
   on a phone, and between 1100px and ~1300px where the row is still two-up
   and the cell is ~585px — there the track measured 64px, too short to
   compare three bars. So the CELL decides: under 640px a row breaks in
   two, name and figures, then the bars at full width, and the narrow
   headers may wrap. */
.pa-chart--yield { container: yield / inline-size; }
@container yield (max-width: 640px) {
  .pa-yield-row { gap: var(--space-1h) var(--space-2); padding-block: var(--space-2);
    grid-template-columns: minmax(0, 1fr) 40px 56px 66px 36px;
    grid-template-areas: "k f c p n" "t t t t t"; }
  .pa-yield-head, .pa-yield-head .pa-yield-num { white-space: normal; line-height: 1.3; }
  .pa-yield-head { grid-template-areas: "k f c p n"; }
  .pa-yield-row > :nth-child(1) { grid-area: k; }
  .pa-yield-row > :nth-child(2) { grid-area: t; }
  .pa-yield-row > :nth-child(3) { grid-area: f; }
  .pa-yield-row > :nth-child(4) { grid-area: c; }
  .pa-yield-row > :nth-child(5) { grid-area: p; }
  .pa-yield-row > :nth-child(6) { grid-area: n; }
  .pa-yield-head > :nth-child(2) { display: none; }
}

/* Hovering a day or a source MARKS its rows on this page of the ledger. */
.lrow[data-action="feedOpen"] { transition: opacity var(--cyn-ms-hover); }
.lrow.is-dim { opacity: .28; }

@media (prefers-reduced-motion: reduce) {
  .pa-days-bar, .pa-days-stop, .pa-yield-bar { transition: none; }
}
@media print {
  .pa-days.is-pending .pa-days-bar, .pa-yield.is-pending .pa-yield-bar { transform: none !important; }
  .pa-days.is-pending .pa-days-stop { opacity: 1 !important; }
  .lrow.is-dim { opacity: 1 !important; }
}

/* ── 19h-c. THE BELT — v1's §02, restored. ─────────────────────────────────
   A strip of window-scoped counters, each with its own self-scaled sparkline.
   auto-fit rather than a fixed count: seven tiles at 1440px, four at 1100,
   two on a phone, and no breakpoint list to keep in step with the number of
   streams — which changes whenever one is added. */
.pa-band--belt { padding: var(--space-5) var(--gutter) var(--space-6);
  border-bottom: 2px solid var(--rule-strong); }
/* The band already carries the gutter, so its section head drops its own
   padding rather than indenting the eyebrow twice. */
.pa-band--belt > .pa-section-head { padding: 0 0 var(--space-1); }
.pa-belt { display: grid; gap: 1px; margin-top: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  background: var(--rule); border: 1px solid var(--rule); }
.pa-belt-tile { display: flex; flex-direction: column; gap: var(--space-1h);
  padding: var(--space-3h) var(--space-4);
  background: var(--void); text-decoration: none; color: inherit; min-width: 0; }
.pa-belt-tile:hover { background: var(--hover-bg); }
.pa-belt-tile:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.pa-belt-label { font: var(--t-colhead); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4); }
.pa-belt-n { font: 300 26px/1 var(--font-display); color: var(--ink);
  font-variant-numeric: tabular-nums; }
.pa-belt-spark { display: block; position: relative; height: 26px; min-width: 0;
  margin-block: var(--space-0); }
.pa-belt-spark > canvas { display: block; }
/* Pinned to the foot of the tile, so the change lines up across the strip
   whether or not a tile carries the whole-corpus flag. */
.pa-belt-sub { font: var(--t-value); color: var(--ink-4); display: flex;
  flex-wrap: wrap; justify-content: space-between; gap: var(--space-1);
  align-items: baseline; margin-top: auto; padding-top: var(--space-1); }
/* The unscoped counter's marker — quiet, but it has to be legible or it is
   not a caveat, it is decoration. */
.pa-belt-flag { font: var(--t-colhead); letter-spacing: .1em; text-transform: uppercase;
  font-weight: 400; color: var(--amber-text); }
/* A stream with nothing in it KEEPS ITS TILE and reads as absent rather than
   as missing — §14's zero rule, applied to a counter. */
.pa-belt-tile--quiet .pa-belt-n { color: var(--ink-4); }

/* ── 19h-b. COMPOSITION AND HEAT — the two chart forms that are not a canvas
   bar (2026-09-05). The gaps band `.pa-gaps` that lived here left with the
   four cells it qualified; the six forms of the Charts handoff took the chart
   rows, and these two are drawn in markup rather than on a canvas because a
   legend and a grid of cells print, which is §14's whole reason for printing
   numbers at all.

   (The donut and its markup legend, `.pa-donut*`, were deleted 2026-09-23:
   the composition became a ranking because six kinds on one amber at five
   alphas could not be told apart. The heatmap is the only markup form left.) */

/* The heatmap: square-ish cells with the handoff's 3px gutters, the sector on
   the left and its TOTAL printed on the right — §14's number, since sixty
   cells cannot each print one. Shade is the five-step ramp, set per cell as
   `--pa-shade` by the service, so the legend swatches and the cells share one scale. */
.pa-heat { display: grid; gap: 3px; align-items: center;
  margin-block: var(--space-3) auto;
  grid-template-columns: 128px repeat(var(--pa-heat-cols, 12), minmax(0, 1fr)) 52px; }
/* 128px, not 112: the org's own sector is always a row now, and
   "Telecommunications" (119px) is the one label a reader looks for — at 112
   it read "Telecommunica…". */
.pa-heat-k { font: var(--t-value); color: var(--ink-3); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
/* The org's own sector — always drawn (services/centre._sectors), and marked
   in the amber the hero gives what is YOURS, so the one row the reader came
   for is found without reading every label. */
.pa-heat-k--own { color: var(--amber-text); }
.pa-heat-c { display: block; height: var(--space-5);
  background: color-mix(in srgb, var(--amber) var(--pa-shade), transparent); }
.pa-heat-v { font: var(--t-value); color: var(--ink); text-align: end;
  font-variant-numeric: tabular-nums; }
.pa-heat-axis { grid-column: 2 / -2; display: flex; justify-content: space-between;
  font: var(--t-colhead); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); padding-top: var(--space-1); }
.pa-heat-key { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  margin-top: var(--space-3); margin-bottom: var(--space-3h);
  font: var(--t-colhead); color: var(--ink-4); }
.pa-heat-swatches { display: flex; gap: 3px; }
.pa-heat-swatches i { display: block; width: var(--space-3); height: var(--space-3);
  background: color-mix(in srgb, var(--amber) var(--pa-shade), transparent); }
/* THE CURRENT, PARTIAL WEEK (2026-09-23): the cell keeps its shade and is
   crossed by stripes of the page ground — the same hatch the canvas charts
   draw (cyn-charts.js `hatch`), so "still filling" is one mark app-wide. A
   light last column otherwise reads as a sector going quiet. `--void` flips
   with the theme, so the stripes do too. */
/* ⚠ The key's swatch needs its own selector: `.pa-heat-swatches i` sets the
   `background` SHORTHAND at (0,1,1), which resets `background-image` and would
   outrank a bare `.pa-heat-c--partial`. */
.pa-heat-c--partial, .pa-heat-swatches i.pa-heat-c--partial {
  background-image: repeating-linear-gradient(135deg, transparent 0 3px, var(--void) 3px 5px);
}

/* A segmented control at the head of a chart cell (the Command Centre's
   "What reached you" toggle) sits on its OWN line between the lede and the
   chart. `.seg` is inline-flex and `.pa-chart-lede` is inline-block, so left
   alone the control floats up beside the lede's last line. */
.pa-chart .seg { display: flex; width: fit-content; margin-bottom: var(--space-4); }
.pa-chart .cyn-chart-body { margin-bottom: var(--space-3h); }

.pa-chart-lede { margin: 7px 0 18px; font: var(--t-secondary); color: var(--ink-3); display: inline-block; max-width: var(--measure-note); }
.pa-chart-foot { margin: auto 0 0; padding-top: 11px;
  border-top: 1px solid var(--rule); font: var(--t-note); color: var(--ink-3);
  max-width: var(--measure-note);
}

/* Sparkline. Context beside a figure, never its own panel — it qualifies
   a number rather than making a point. Baseline only, no grid, no axis
   box; the two end labels and the peak do the work of ticks. */
/* ⚠ `vector-effect: non-scaling-stroke` OR THE LINE IS ELEVEN PIXELS THICK.
   The viewBox is 100×26 and `preserveAspectRatio="none"` stretches it to the
   column — ~740px wide here, so a `stroke-width: 1.5` is scaled by 7.4 across
   and by a different factor down. The result is a fat, anisotropically
   smeared band that reads as a chart shouting, and it is why the line did not
   match its own design. This pins the stroke to device pixels at any size.
   Same trap as the `.pa-trend` width bug: with `preserveAspectRatio="none"`,
   everything not told to hold its size is distorted. */
.pa-spark { display: block; overflow: visible; height: 44px; width: 100%; }
.pa-spark-line { fill: none; stroke: var(--amber); stroke-width: 1.5;
  vector-effect: non-scaling-stroke; }
/* Where the peak fell. The ends row prints its value; this says which hump. */
.pa-spark-peak { fill: none; stroke: var(--ink-4); stroke-width: 1;
  stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.pa-spark-head { display: flex; justify-content: space-between;
  align-items: baseline; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-2); }
.pa-spark-note { font: var(--t-note); color: var(--ink-4); text-align: end; }
/* The area is decorative under a legible line — it carries no value, so
   the "amber never at reduced alpha" rule (a TEXT contrast rule) does
   not apply here. Do not put a label on it. */
/* ⚠ NOT `--amber` AT REDUCED ALPHA AS A LITERAL. The bundle writes
   rgba(217,119,6,.16); this stylesheet is token-only. color-mix keeps it a
   token, so it follows a theme change — and §10 ("amber never takes reduced
   alpha") is a TEXT contrast rule, which this decorative area fill is not. */
.pa-spark-area { fill: color-mix(in srgb, var(--amber) 16%, transparent); }
.pa-spark-base { stroke: var(--rule-strong); stroke-width: 1;
  vector-effect: non-scaling-stroke; }
.pa-spark-ends { display: flex; justify-content: space-between; margin-top: 6px;
  font: var(--t-colhead); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4); }
/* ⚠ THE ENDS ROW RUNS THE SAME WAY AS THE LINE ABOVE IT. An SVG's x axis is
   left to right in every locale, so in Arabic the line still puts today on
   the right — but the ends row is a flex row, which `dir="rtl"` mirrors, so
   it labelled today on the LEFT, under the line's first day. row-reverse
   puts the start date back on the left; each label's own text keeps the
   page's direction. Found 2026-10-10, when the hero's cursor began marking
   today on the right beside a label that said "11 Sep". */
[dir="rtl"] .pa-spark-ends { flex-direction: row-reverse; }

/* ── The figures strip. Four cells on the band's own ground, each opened by
   a 2px amber rule — the drawing's tick — with the LAST the one that costs
   something (§4): its label and value take the amber via :last-child, so the
   rule holds however many there are. Cells are LINKS: label, value, note. The
   note names the denominator or the subject, never a second value. Replaced
   the stacked aside column 2026-09-02 (the hero, 19h-c below). ── */
.pa-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--void-2); border-bottom: 2px solid var(--rule-strong);
  padding: 0 var(--gutter); }
.pa-figure { display: flex; flex-direction: column; gap: 7px; min-width: 0;
  padding: 18px 22px 20px; border-inline-start: 2px solid var(--amber);
  text-decoration: none; color: inherit; }
/* ⚠ A DIVIDER DIVIDES TWO THINGS. The tick above is drawn on the LEADING edge
   of every cell, which means the first one has nothing to its left and lands on
   the strip's own outer edge — flush with the page gutter, reading as a stray
   vertical line at the margin rather than as a rule between two figures. Owner,
   2026-09-05. So the leading cell of each ROW drops it, and drops the leading
   padding with it, which puts its label flush with the lede above: exactly what
   `.pa-because > *:first-child` already does for the figures row inside the
   band. The remaining cells keep the tick and it now only ever appears between
   two cells. The responsive halves of this rule live with their breakpoints
   below — at two columns the third cell also starts a row, and at one column
   nothing sits beside anything, which is the case `.pa-signature--hero` states
   the principle for: once stacked, a leading hairline is a rule pointing at
   nothing. Guarded by tests/test_archetype_band_spacing.py. */
.pa-figure:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pa-figure:hover { background: var(--hover-bg); }
.pa-figure:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.pa-figure-label { font: var(--t-colhead); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-4); }
.pa-figure-val { font: var(--t-figure-lg); color: var(--ink);
  font-variant-numeric: tabular-nums; }
.pa-figure-unit { font: italic 300 14px/1 var(--font-display); color: var(--ink-3);
  margin-inline-start: 5px; }
/* Bad news takes the severity TEXT token — it is a word, never the fill. */
.pa-figure-val--bad { color: var(--sev-critical-text); }
/* A figure that names its own subject. "31 days" is a number a reader can do
   nothing with; the alert it belongs to, and whether anybody owns it, is what
   makes it a piece of work. */
/* Pinned to the foot of its cell, so the four notes share a line however the
   labels above them wrap (2026-10-14). */
.pa-figure-note { font: var(--t-note); color: var(--ink-4); max-width: 34ch;
  margin-top: auto; padding-top: var(--space-0); }
.pa-figure-note b { font-weight: 400; color: var(--sev-critical-text); }
.pa-figure:last-child .pa-figure-label { color: var(--amber-text); }
/* Lit amber on the dark ground. NOT large text any more: --t-figure-lg went
   24 -> 22px with the type scale (01963fa), so on paper the fill token read
   3.67:1 (re-audit N4, 2026-10-12). Paper takes the text step; the dark
   reading is unchanged. test_archetype_contrast ties the two together. */
.pa-figure:last-child .pa-figure-val { color: var(--amber-hot); }
html.light-mode .pa-figure:last-child .pa-figure-val { color: var(--amber-text); }
/* A figure is a control, and the band's link rule (§9) must not repaint it. */
.pa-centre a.pa-figure:hover { color: inherit; }

/* ── 19h-c. THE HERO ───────────────────────────────────────────────────────
   The lede band's shape on the Command Centre, from the 29 Aug "Home"
   drawing: verdict left at the hero size, one headline figure with its trend
   right, and the figures strip above on the same recessed ground beneath.
   The band closes on a 1px rule and the strip on the band's 2px, so the two
   read as one unit. Replaced the sieve — a five-ledge point field with its
   own script — on 2026-09-02; git history has it. */
.pa-lede-band--hero { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  align-items: stretch; border-bottom: 1px solid var(--rule);
  padding-top: 36px; padding-bottom: 30px; }
.pa-lede-band--hero.pa-lede-band--wide { grid-template-columns: 1fr; }
.pa-lede-band--hero .pa-eyebrow { letter-spacing: .28em; margin-bottom: 0; }
.pa-lede--hero { font: var(--t-lede-hero); letter-spacing: -.02em;
  max-width: 19em; margin: 14px 0 0; }
/* The judgement word. 46px light serif — large text, held to 3.0 and
   exempted by name in test_archetype_contrast.AMBER_TEXT_EXEMPT. */
.pa-lede--hero i { font-style: italic; color: var(--amber-hot); }
/* ⚠ NO max-width HERE. It carried `640px`, which at this size is 105 characters
   — and being the more specific selector it beat the token on `.pa-lede-support`
   and left the landing page's most-read paragraph the only prose in the app
   still over the ceiling after the measure pass. It inherits the token now;
   a hero paragraph is not a reason to read a longer line. */
.pa-lede-band--hero .pa-lede-support { margin: 16px 0 0; }
.pa-lede-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* ⚠ THE GAP UNDER THE BUTTONS IS A CONSTANT, AND IT USED TO BE AN ACCIDENT.
   `.pa-because` carries `margin-top: auto` to pin the figures row to the
   bottom of the band, and `.pa-lede-band` stretches both columns to the taller
   one — so on a page whose signature runs long, that `auto` absorbed the
   leftover as a gap BETWEEN the buttons and the figures. It was never a
   designed value: measured 2026-09-05 across the 20 pages that carry an action
   row, it was 0px on Feed, Alerts, Collection, Ransomware, Trends and eight
   others — the buttons touching the figures' own top rule — and 42, 66, 68,
   79, 95px on Rules, Cases, Indicators, Vulnerabilities and Phishing. Same
   markup, same stylesheet, eleven different spacings, each one a function of
   how much the aside happened to say that day.

   The Command Centre looked right only because its figures are a SEPARATE
   section: its actions end the column, so the band's own 30px padding-bottom
   set the gap. That 30px is the value copied here.

   The slack has to go somewhere, and BELOW THE FIGURES is the right place.
   Rendered both ways first: absorbing it above the buttons (`margin-top:auto`
   on the actions) does give a constant gap, but it detaches the button from
   the sentence it answers — on /techniques it left 126px between the support
   line and the control, and the button floats mid-band. Left where it is, the
   button stays with its paragraph, the figures follow at 30px on every page,
   and the only cost is that the reading column may end higher than the
   signature beside it. Two columns of different lengths read as exactly that.

   ⚠ `:not(:last-child)` keeps this off the Command Centre, whose actions ARE
   the last thing in their column, and off any page that carries actions with
   no figures under them. `.pa-because` keeps its pin when no actions precede
   it — the case this change does not touch. Guarded by
   tests/test_archetype_band_spacing.py. */
.pa-lede-actions:not(:last-child) { margin-bottom: 30px; }
/* Kills the pin for this case only. (0,2,0) beats `.pa-because`'s (0,1,0), so
   it holds wherever it sits — but it is declared after, deliberately. */
.pa-lede-actions + .pa-because { margin-top: 0; }
.pa-signature--hero { display: flex; flex-direction: column; min-width: 0;
  padding-inline-start: 32px; }
/* The figure and its change share one head row (.pa-spark-head). */
.pa-signature--hero .pa-spark-head { margin-top: 4px; margin-bottom: 0; }
.pa-hero-fig { display: flex; align-items: baseline; gap: 8px; margin-top: 0;
  white-space: nowrap; }
.pa-hero-n { font: var(--t-hero-num); letter-spacing: -.02em; color: var(--paper);
  font-variant-numeric: tabular-nums; }
.pa-hero-unit { font: italic 300 19px/1 var(--font-display); color: var(--ink-3); }
/* The change, boxed. It qualifies the figure and is not a severity — so the
   rule token, never a tint, and the ink stays ink. */
.pa-delta { align-self: center; margin-top: 0; font: var(--t-pill);
  letter-spacing: .06em; padding: 4px 8px; border: 1px solid var(--rule-strong);
  color: var(--ink-2); white-space: nowrap; }
.pa-spark--hero { height: 60px; margin-top: 16px; }
/* The days collection was paused — a band behind the line, and its key. */
.pa-spark-pause { fill: color-mix(in srgb, var(--ink) 11%, transparent); }
.pa-spark-key { display: flex; align-items: center; gap: var(--space-1h); margin: 6px 0 0;
  font: var(--t-colhead); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.pa-spark-key-sw { display: inline-block; width: 9px; height: 9px;
  background: color-mix(in srgb, var(--ink) 22%, transparent); }
/* The Reading line pins to the foot of the column, level with the actions. */
.pa-signature--hero .pa-signature-note { margin-top: auto; padding-top: 10px; }
.pa-signature--hero .pa-spark-ends + .pa-signature-note { margin-top: 16px; }

@media (max-width: 1100px) {
  .pa-lede--hero { font-size: 38px; }
  .pa-hero-n { font-size: 52px; }
}
/* 992px: the same collapse point as every other two-column band in this
   sheet. The signature's rule moves from the inline-start edge to the top —
   once stacked, a left hairline is a rule pointing at nothing — and the strip
   halves. */
@media (max-width: 992px) {
  .pa-lede-band--hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .pa-signature--hero { border-inline-start: 0; padding-inline-start: 0;
    border-top: 1px solid var(--rule); padding-top: 24px; }
  .pa-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-figure:nth-child(n+3) { border-top: 1px solid var(--rule); }
  /* Two columns, so the odd cells are the ones that START a row and carry the
     strip's outer edge. Without this the third cell puts the tick back at the
     page margin, which is the thing being removed. */
  .pa-figure:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 640px) {
  .pa-lede--hero { font-size: 30px; }
  .pa-figures { grid-template-columns: minmax(0, 1fr); }
  .pa-figure + .pa-figure { border-top: 1px solid var(--rule); }
  /* One column: every cell starts a row, nothing is beside anything, and the
     border-top above is what separates them now. */
  .pa-figure { border-inline-start: 0; padding-inline-start: 0; }
}

/* ⚠ 19h-d REQUIREMENTS (`.pa-pir*`) AND 19h-e TECHNIQUES (`.pa-tech*`,
   `.pa-cov*`) WERE HERE AND ARE DELETED, 2026-09-05. The two bands left the
   Command Centre with the open-by-grade and gaps cells on the owner's
   instruction; the six chart forms of the Charts handoff replaced them
   (19h-b above holds the two that are markup). Deleted rather than kept: a
   rule with no emitter is drift, and the guard that reads dead CSS as
   coverage is the failure `.pa-trend` records below. Git history has them. */

/* ── 19h-f. THE WIRE ───────────────────────────────────────────────────────
   In the chrome, clipped to a fixed measure, so a long headline cannot push
   the page action off the bar. */
.pa-wire { display: flex; align-items: baseline; gap: var(--space-2);
  min-width: 0; max-width: 34ch; }
/* No overflow:hidden on the wire itself: its tag is a button now, and the box
   would clip that button's focus ring. .pa-wire-clip still clips the headline. */
.pa-wire-tag { font: var(--t-colhead); letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-text); flex: none; }
/* The tag is the wire's pause button: it keeps the tag's look, and says it is
   paused with a mark after the word rather than a second control. */
button.pa-wire-tag { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
button.pa-wire-tag:disabled { cursor: default; }
button.pa-wire-tag:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
button.pa-wire-tag[aria-pressed="true"]::after { content: " \275A\275A"; letter-spacing: 0; }
.pa-wire-clip { min-width: 0; overflow: hidden; }
.pa-wire-item { display: block; font: var(--t-note); color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-wire-item b { color: var(--ink-2); font-weight: 500; }

/* An Admiralty letter beside a dark source. Boxed rather than coloured: it is
   a grade, not a severity, and colouring it would put it on the same ramp as
   the risk language everywhere else on the page. */
.pa-row--rated { grid-template-columns: 1fr auto auto; gap: 0 var(--space-3); }
.pa-rate { font: var(--t-colhead); letter-spacing: .1em; color: var(--ink-3);
  border: 1px solid var(--rule-strong);
  padding: var(--space-0) var(--space-1) 1px;
  align-self: center; }

/* ⚠ `.pa-trend*` WAS HERE AND IS DELETED, 2026-08-26 — the small-multiples
   band (four streams, four 30-day lines) that used to hold chart_c. The belt
   absorbed it: seven streams, each with its own line and its own delta, at the
   top of the page instead of in a chart cell halfway down. See `.pa-belt`.

   Its two hard-won sizing rules died WITH the band rather than being carried
   over, and both for the same reason — they were properties of the SVG-in-a-
   chart-cell shape, not of a sparkline:
     · `width: 100%` fought an SVG's intrinsic viewBox ratio. `.pa-belt-spark`
       holds a CANVAS, which Chart.js sizes from the container.
     · the 44px legibility floor existed because those lines were a chart
       panel's entire content and had to be read as lines. A belt line is
       26px because it qualifies a number that is printed right above it.
   The stretch-feedback hazard cannot recur either: the belt is its own
   full-width band, not one half of a `1fr 1fr` chart row with a sibling to
   grow against. */

/* Empty state: a SENTENCE saying what to do, never a blank canvas. */
.pa-chart-empty { padding: 20px 0; font: var(--t-secondary); color: var(--ink-3);
  margin-block: auto; }

@media (max-width: 1100px) {
  .pa-chartrow { grid-template-columns: 1fr; }
  .pa-chart + .pa-chart { border-inline-start: 0; border-top: 1px solid var(--rule); }
}

/* ── 19g. PRODUCT — the issued advisory. PATTERNS.md §17.
       Reference: turns 28a–28c. The ONLY archetype whose primary medium is
       paper: measure in ch, not vw. No filter rail, no live relations — a
       product is frozen at issue, a dossier tracks its record. ────────── */

.pa-product { max-width: 78ch; margin-inline: auto; }

/* Masthead. The ref and the TLP are both here AND in the footer — the two
   places a printed page gets read from. */
.pa-prod-hd { padding: 22px var(--gutter) 18px;
  border-bottom: 2px solid var(--rule-strong); }
.pa-prod-hd-top { display: flex; align-items: flex-start; gap: 20px; }
.pa-prod-kicker { font: var(--text-xs)/1 var(--font-mono); letter-spacing: .2em;
  text-transform: uppercase; color: var(--amber-text); }
.pa-prod-title { font: 300 27px/1.2 var(--font-display); letter-spacing: -.015em;
  margin: 9px 0 0; max-width: 30ch; text-wrap: pretty; }
.pa-prod-chips { display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-top: 12px; }
.pa-prod-tlp { flex-shrink: 0; white-space: nowrap; font: var(--text-xs)/1 var(--font-mono);
  letter-spacing: .1em; padding: 5px 11px;
  /* ⚠ color-mix, not the bundle's rgba(217,119,6,.55): token-only file, and
     this archetype prints — a literal tuned on the dark shell is wrong on
     paper. §10's "amber never takes reduced alpha" is a TEXT rule; this is
     a border. */
  border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent);
  color: var(--amber-text); }

.pa-prod-sec { padding: 18px var(--gutter); border-bottom: 1px solid var(--rule); }
.pa-prod-sh { font: var(--text-xs)/1 var(--font-mono); letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }

/* PRIORITISATION (Vulnerability subject only). The band and its due-window on
   one line, the inputs that produced it listed underneath.

   The band is NOT coloured by severity: P1 on a product whose primary medium is
   paper has to survive greyscale, so the weight carries it and the colour is a
   reinforcement. P1/P2 take the severity inks the rest of the document already
   uses; P3-P5 stay ink so the page does not read as five alarms. */
.pa-prod-pri { display: flex; align-items: baseline; gap: var(--space-3);
  margin-bottom: var(--space-2); }
.pa-prod-priband { font: 700 var(--text-section)/1 var(--font-mono); letter-spacing: .04em;
  color: var(--paper); }
/* ⚠ THE TEXT TWINS, NOT THE FILLS. --amber and --sev-critical are FILL tokens:
   --amber measures 3.37:1 painting a word on the light ground, which is a
   border/background ratio, not a text one. The band is 20px — under the 24px
   large-text exemption — so it takes the -text twins, which are remapped for
   light. Caught by lint_contrast --suite archetypes, a suite this rule's
   original author had not run. */
.pa-prod-priband--p1 { color: var(--sev-critical-text); }
.pa-prod-priband--p2 { color: var(--amber-text); }

/* BLUF. Serif, larger than body, one amber rule at the start. It is the only
   thing some readers will read; it is not a summary, it is the answer. */
.pa-bluf { margin: 0; font: 300 16.5px/1.55 var(--font-display); color: var(--paper);
  border-inline-start: 2px solid var(--amber); padding-inline-start: 16px; }

/* The three registers. Same vocabulary as §13c inferred relations and §13e
   machine timeline entries: solid = observed, amber = judged, DASHED = assumed.
   NOT chips — see §18b. A dashed BORDERED chip already means "PAP level" in
   this app (shared.css:1700: TLP is solid+round, PAP is dashed+square, "so the
   two are never confused"). Badges are for markings; rules are for registers,
   so the geometry lives on the line's leading edge instead. */
.pa-reg-line { display: flex; gap: 12px; margin-bottom: 11px; }
.pa-reg-line:last-child { margin-bottom: 0; }
.pa-reg-line > p { margin: 0; font: var(--t-row); color: var(--ink); }
.pa-reg { flex-shrink: 0; height: fit-content; padding: 1px 0 1px 9px;
  font: var(--text-xs)/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  border-inline-start: 2px solid currentColor; }
.pa-reg--fact { color: var(--ink-2); }
.pa-reg--assessment { color: var(--amber-text); }
.pa-reg--assumption { color: var(--ink-3);
  border-inline-start-style: dashed; }

/* ── The two axes. TWO CELLS, deliberately: confidence belongs to the
   assessment, likelihood to the outlook, and no sentence spans both. The
   platform lints the merged form as estimative_language_violations. ──── */
.pa-axes { display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--rule-strong); }
.pa-axis { padding: 16px var(--gutter) 18px; }
.pa-axis + .pa-axis { border-inline-start: 2px solid var(--rule-strong); }
.pa-axis-val { font: var(--text-section)/1 var(--font-mono); color: var(--ink); }
/* Three tiers only. "very high" is not an ICD 203 tier and the validator
   rejects it — there is deliberately no class for one. */
.pa-axis--outlook .pa-axis-val { color: var(--amber-text); }
.pa-axis-range { font: var(--text-sm)/1 var(--font-mono); color: var(--ink-3); }
.pa-axis-note { margin: 8px 0 0; font: var(--t-note); color: var(--ink-3); }

/* Sources, and the lint that must print. */
.pa-prod-lint { margin-top: 12px; padding: 9px 12px;
  border: 1px dashed color-mix(in srgb, var(--sev-critical) 50%, transparent);
  font: var(--t-note);
  color: var(--sev-critical-text); }

/* Footer. Repeats on EVERY printed page — see §20. A machine-drafted product
   leaving the building unlabelled is the failure nobody can walk back. */
.pa-prod-ft { display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 14px var(--gutter);
  border-top: 2px solid var(--rule-strong);
  font: var(--text-xs)/1.5 var(--font-mono); color: var(--ink-3); }

@media (max-width: 720px) {
  .pa-axes { grid-template-columns: 1fr; }
  .pa-axis + .pa-axis { border-inline-start: 0; border-top: 2px solid var(--rule-strong); }
  .pa-prod-hd-top { flex-direction: column; gap: 12px; }
}

/* ── 19g (cont). PRODUCT — the parts the bundle's section did not name.
       Everything above came from the handoff; these are the classes
       advisory.html actually needs to render its body, and each one is here
       rather than in the page because §17 says the frame owns the frame. ── */

/* ⚠ SCREEN ONLY, AND print.css hides it. The archetype's `actions` slot: a way
   back and one print control. It sits ABOVE the masthead so the document still
   opens with its own first line on paper. */
.pa-prod-actions { display: flex; align-items: center; gap: 18px;
  padding: 0 var(--gutter) 14px; font: var(--t-note); }
.pa-prod-actions button:not(.pa-btn) { font: inherit; color: var(--amber-text); background: none;
  border: 0; padding: 0; cursor: pointer; }
/* Same as `.pa-rel-e a:hover`: the colour step these had on dark does not
   exist on light, so the underline carries the state in both.
   ⚠ `:not(.pa-btn)` because this row holds BARE links and bare buttons — its
   own two rules above style them as text — and the general `a.pa-btn:hover`
   carve-out at §12 is declared 1,900 lines EARLIER, so at equal specificity
   this would win and hand a filled button the link treatment. It is the only
   one of the eighteen bands with a second link rule of its own; the other
   seventeen are covered by source order alone. */
.pa-prod-actions a:not(.pa-btn):hover,
.pa-prod-actions button:not(.pa-btn):hover {
  color: var(--amber-text); text-decoration: underline; }

/* A key/value chip in the masthead and the body. NOT a marking — markings are
   `.pa-prod-tlp` and `.sev-badge`, and §18b keeps badges for those. */
.pa-prod-kv { font: var(--t-note); color: var(--ink-3); white-space: nowrap; }
.pa-prod-note { font: var(--t-note); color: var(--ink-4); }
.pa-mono { font-family: var(--font-mono); font-size: var(--text-xs); }

.pa-prod-list { margin: 0; padding-inline-start: 1.3em; }
.pa-prod-list li { font: var(--t-row); color: var(--ink-2); margin-block-end: 7px; }

/* ── The narrative spine (§17: the Threat subject's spine IS the narrative) ──
   Prose paragraphs and the ordered attack chain. Measured in ch, not px: the
   product archetype's primary medium is paper and its reference width is A4. */
.pa-prod-para { font: var(--t-row); color: var(--ink-2); margin: 0 0 10px;
  max-inline-size: 78ch; text-wrap: pretty; }
.pa-prod-para:last-child { margin-block-end: 0; }

.pa-chain { list-style: none; margin: 0; padding: 0; counter-reset: pa-chain; }
.pa-chain-row { display: grid; grid-template-columns: 2ch 22ch 1fr; gap: 12px;
  align-items: start; padding: 8px 0;
  border-block-start: 1px dashed var(--rule); counter-increment: pa-chain; }
.pa-chain-row:first-child { border-block-start: 0; }
.pa-chain-row::before { content: counter(pa-chain); font-family: var(--font-mono);
  font-size: var(--text-xs); color: var(--amber-text); padding-block-start: 2px; }
.pa-chain-stage { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); }
.pa-chain-what { font: var(--t-row); color: var(--ink-2); }
.pa-chain-tt { font-family: var(--font-mono); font-size: var(--text-xs);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-xs);
  padding: 1px 5px; color: var(--ink-3); margin-inline-start: 6px;
  white-space: nowrap; }
/* ⚠ AN UNVERIFIED TAG IS MARKED, NOT HIDDEN. The model names ATT&CK ids it
   reads in the source report, and some are ones our own extraction missed —
   correct, but not something the platform confirmed. §0: the page may not
   state what it cannot support, so the id prints with its provenance rather
   than being dropped (losing real intelligence) or shown plain (claiming a
   check that never happened). */
.pa-chain-tt--unver { border-color: var(--sev-high); color: var(--sev-high-text); }

@media (max-width: 700px) {
  .pa-chain-row { grid-template-columns: 2ch 1fr; }
  .pa-chain-what { grid-column: 2; }
}
.pa-prod-src { display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-block-start: 1px solid var(--rule); font: var(--t-row); }
.pa-prod-src:first-child { border-block-start: 0; }

/* ⚠ TABLES SCROLL INSIDE THEIR OWN BOX, never the page. A product is measured
   in ch against A4; a wide indicator table must not push the whole document
   sideways on a phone, and on paper the wrapper is inert. */
.pa-tablewrap { overflow-x: auto; }
.pa-prod-table { width: 100%; border-collapse: collapse; font: var(--t-row); }
.pa-prod-table th { text-align: start; font: var(--t-colhead); color: var(--ink-4);
  padding: 7px 12px 7px 0; border-block-end: 1px solid var(--rule-strong); }
.pa-prod-table td { padding: 7px 12px 7px 0; color: var(--ink-2);
  border-block-end: 1px solid var(--rule); vertical-align: top; }

/* ── 19i. ACTOR DOSSIER — the analytical threat-actor profile.
   REDESIGN/design_handoff_actor_profile (turn 40a), on /profiles/<id>.

   Almost all of this band set is BORROWED, and deliberately: `.pa-cols3` is
   the three-register band (it had no tenant until this page), `.pa-bar-row`
   the TLD distribution, `.pa-blind` the numbered list, `.pa-row` the
   label/value pair, `.lrow` the coverage table. What follows is only the
   handful of shapes the system did not already have.

   The handoff quotes raw values — #0A0A0B, #060607, #D97706, #F9A93C,
   rgba(255,255,255,.12) — and every one of them is already a v2 role token
   (--void, --void-2, --amber, --amber-hot, --rule). The design was authored
   against this ramp; nothing here needs a literal. ──────────────────────── */

/* The callout: a tinted block with a heavy inline-start rule, for the one
   sentence in a column that changes what the reader does. Two roles only —
   `--note` (amber accent, an operational caution) and the default (the
   relevance statement). Not a `.pill`: a pill is an 18px box for a WORD. */
.ad-callout {
  padding: 11px 13px; margin-block-start: 12px;
  border-inline-start: 3px solid var(--amber);
  background: var(--sev-medium-quiet-bg);
  font: var(--t-note); line-height: var(--leading-relaxed); color: var(--ink-2);
}
.ad-callout b { color: var(--ink); }
.ad-callout--warn {
  border-inline-start-color: var(--sev-high-border);
  background: var(--sev-high-quiet-bg);
}

/* "What we do not hold" — the honest empty states. Dashed for the same reason
   §19g marks a proposed rule that way: the box is real, its CONTENTS are not
   something we have. ⚠ These render whenever the holding is empty; they are
   never suppressed and never filled with a placeholder. An omitted section
   reads as "does not apply", which is the opposite of the finding. */
.ad-gaps { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5); padding: var(--space-4) var(--gutter) var(--space-6);
  border-top: 2px solid var(--rule-strong); }
.ad-gaps-head { grid-column: 1 / -1; display: flex; align-items: baseline;
  gap: 14px; flex-wrap: wrap; }
.ad-gap { border: 1px dashed var(--rule-strong); padding: var(--space-4) 18px; }
.ad-gap-top { display: flex; align-items: baseline; gap: 10px;
  margin-block-end: 8px; }
.ad-gap-title { font: var(--t-row); font-weight: 600; color: var(--ink); }
.ad-gap-state { margin-inline-start: auto; font: var(--t-colhead);
  letter-spacing: .1em; color: var(--sev-critical-text); white-space: nowrap; }
.ad-gap-body { font: var(--t-note); line-height: var(--leading-relaxed); color: var(--ink-3);
  margin: 0 0 10px; }
/* The fix line is the point of the card — a collection requirement the reader
   can act on, not a lament. Amber-text, not --amber: this is 10px prose and
   --amber is registered at the 3.0 UI ratio (see .pa-blind's note). */
.ad-gap-fix { font: var(--t-colhead); letter-spacing: .08em;
  text-transform: uppercase; color: var(--amber-text); }

/* The coverage table's severity and tier cells. Text tones only — a severity
   here is a WORD in a row, never a filled box, which is the rule
   test_status_is_coloured_text_not_a_pill enforces for every ledger. */
.ad-sev { font: var(--t-colhead); letter-spacing: .08em; white-space: nowrap; }
.ad-sev--first { color: var(--amber-text); }
.ad-sev--high  { color: var(--sev-critical-text); }
.ad-sev--med   { color: var(--sev-high-text); }
.ad-sev--low   { color: var(--ink-4); }
/* The row the page says to build first. A 5% amber wash, no border and no
   movement — the tint IS the ranking, and a border would read as selection. */
.lrow--first { background: var(--sev-medium-quiet-bg); }

/* Verdict chips for the ICD 203 outlook and the Admiralty grades: a mono word
   right-aligned against a judgement. `--mute` is the absent case (no
   telemetry, no grade) and must stay visibly different from a low grade —
   "we did not look" is not "we looked and it was weak". */
.ad-verdict { font: var(--t-value); font-size: var(--text-xs); letter-spacing: .06em;
  text-align: end; white-space: nowrap; }
.ad-verdict--ok   { color: var(--success-text); } /* a WORD; --ok is the dot (3.58:1 on paper) */
.ad-verdict--warn { color: var(--sev-high-text); }
.ad-verdict--bad  { color: var(--sev-critical-text); }
.ad-verdict--mute { color: var(--ink-4); }

/* Host artefacts quoted in the actor's own reporting: kind, the value, and the
   report it came out of. Three columns because the SOURCE is not decoration
   here — the band's own callout says these are quoted rather than attributed,
   and a value with no report beside it is exactly the unsourced assertion the
   extractor's docstring refuses to make.

   ⚠ THE VALUE COLUMN MUST BE ALLOWED TO BREAK ANYWHERE. These are paths,
   registry keys and command lines with no spaces for tens of characters — a
   170-character schtasks invocation is a normal row — so without
   `overflow-wrap: anywhere` one long value pushes the source column off the
   page and takes the grid with it. `min-width: 0` on the same cell is the
   other half: a grid item's default `min-width: auto` refuses to shrink below
   its content, so the wrap alone would not fire. */
.ad-arte { margin-block-start: var(--space-3); }
.ad-arte-row { display: grid; grid-template-columns: 104px 1fr 178px; gap: 12px;
  padding: 7px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.ad-arte-kind { font: var(--t-colhead); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4); }
.ad-arte-val { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-mono);
  font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--ink); }
.ad-arte-src { font: var(--t-note); color: var(--ink-4); text-align: end; }

/* One column on narrow viewports: at 104px + 178px of fixed gutters there is
   nothing left for a path, and the value column is the reason the band exists. */
@media (max-width: 768px) {
  .ad-arte-row { grid-template-columns: 1fr; gap: 3px; }
  .ad-arte-src { text-align: start; }
}

/* Tooling rows: name (+ its indicator count) against a right-aligned class
   tag. CUSTOM carries actor weight, SHARED and COMMODITY do not, and the
   colour says which before the footnote explains it. */
/* ⚠ THESE ROWS MUST DECLARE THEIR OWN SIZE. `.pa-cols3 > *` sets no font, so a
   row that declares none inherits the 14px body size — and the campaign column,
   being multi-line prose rather than short names, then reads as a wall of large
   text beside the 12.5px columns either side of it. A row in a reference column
   is 12px; only the page's prose runs at body size. */
.ad-tool { display: grid; grid-template-columns: 1fr 104px; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--rule); align-items: baseline;
  font-size: var(--text-sm); line-height: var(--leading-normal); }
.ad-tool-sub { display: block; font: var(--t-note); color: var(--ink-4);
  margin-block-start: 2px; }
.ad-tool-tag { font: var(--t-colhead); letter-spacing: .06em; text-align: end; }
.ad-tool-tag--custom { color: var(--sev-critical-text); }
.ad-tool-tag--shared { color: var(--sev-high-text); }
.ad-tool-tag--commodity { color: var(--ink-3); }

/* The campaign timeline: a fixed date gutter so the dates form a column the
   eye can run down, and a sub-line for the corroboration note. */
.ad-when { display: grid; grid-template-columns: 58px 1fr; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--rule); align-items: baseline;
  font-size: var(--text-sm); line-height: var(--leading-normal); }
.ad-when-d { font: var(--t-value); font-size: var(--text-xs); color: var(--ink-4); }
.ad-when-sub { display: block; font: var(--t-note); margin-block-start: 1px;
  color: var(--ink-4); }
.ad-when-sub--corroborated { color: var(--amber-text); }

/* The recommended-actions footer: one line of ` · `-separated actions under a
   mono label, on the chrome ground so it closes the document. */
.ad-actions { display: flex; align-items: baseline; gap: 24px;
  padding: 14px var(--gutter) 20px; border-top: 2px solid var(--rule-strong);
  background: var(--void-2); }
.ad-actions-body { font: var(--t-row); line-height: 1.7; color: var(--ink-2); }

/* ⚠ ONE COPPER RULE, DIRECTLY UNDER THE CHROME BAR — V2_HANDOFF §"Page chrome".
   On the dossier archetype `.do-mast` sits between the chrome bar and the lede
   band, so the page drew the masthead's bright paper rule under the chrome and
   pushed the copper one below the identity block: two heavy rules where the
   design (turn 40a) has one, and the accent in the wrong place.

   Scoped to this page by a body class rather than edited at source, because
   `.do-mast`'s paper rule is the masthead signature on briefing_detail and
   executive_brief and changing it there answers a question about ONE page by
   changing three. Same reasoning as `.cn-layout` cancelling the console hover. */
.ad-page .do-mast { border-top-color: var(--amber); }
.ad-page .pa-lede-band { border-top-color: var(--rule-strong); }

/* ⚠ THE COVERAGE TABLE COLLAPSES, IT DOES NOT SCROLL. Seven columns of prose
   is a reading surface, not a data grid: side-scrolling one hides the WHY
   column, which is the only column that justifies the row. Below 1100px the
   rationale and tuning stack under the behaviour instead. */
@media (max-width: 1100px) {
  .ad-gaps { grid-template-columns: 1fr; }
}

/* The coverage table. ⚠ NOT `.lrow`, and the reason is a rule rather than a
   preference: the ledger contract makes prose in a row `.lrow-title` — 12.5px
   on a single line with `text-overflow: ellipsis` — because a LEDGER is a
   scannable inventory of like records where a wrapping cell breaks the row
   lock. This band is the opposite: a short, fixed, per-subject exhibit whose
   WHY column is the only thing justifying the row. Built on `.lrow` first, and
   it ellipsised every rationale to "The discriminator is the target path,
   not…" — the band rendered tidily and said nothing.

   So: same visual grammar, cells that wrap, rows that start-align. */
.ad-cov {
  display: grid;
  grid-template-columns: 40px minmax(150px, 200px) 116px 52px minmax(220px, 1fr) 104px 88px;
  gap: 0 var(--space-3);
  align-items: start;
  padding: 11px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.ad-cov--head {
  padding-block: 8px; border-top: 1px solid var(--rule);
  font: var(--t-colhead); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4);
}
.ad-cov--first { background: var(--sev-medium-quiet-bg); }
/* ⚠ --amber-text, NOT --amber. The rule id is an 11px mono WORD; --amber is
   registered at the 3.0 UI ratio for rules and eyebrows and measures 3.37:1 on
   the light shell — an AA fail. Same mistake as .pa-blind-n and .lrow-tag
   before it; the contrast guard caught this one before it shipped. */
.ad-cov-id { font: var(--t-value); color: var(--amber-text); }
.ad-cov-what { font: var(--t-row-prose); line-height: 1.4; color: var(--ink); }
.ad-cov-why { font: var(--t-note); line-height: 1.45; color: var(--ink-2); }
.ad-cov-att, .ad-cov-tier { font: var(--t-value); font-size: var(--text-xs);
  color: var(--ink-3); line-height: var(--leading-normal);
  overflow-wrap: anywhere; }
.ad-cov-state { font: var(--t-colhead); letter-spacing: .06em; color: var(--ink-4); }
.ad-cov-state--ok { color: var(--success-text); } /* same: 9.5px word, not a dot */

/* Admiralty rows in the distribution footer. `.do-dist-meta` is a 2-col grid
   that UPPERCASES its pairs — right for four short handling fields, wrong for
   nine source lines, where it shouted "1 ITEM(S)" and right-aligned the note
   into the grade.

   ⚠ THEY NEED THEIR OWN BLOCK. `.do-dist` is `flex-wrap` with a 24px gap, so
   loose `.ad-src` divs became flex ITEMS: nine of them shrank to content width
   and reflowed three-to-a-line, interleaved with the TLP pills and the handling
   note. A stack inside a flex row has to be one item, not N. */
.ad-srcs { flex: 1 0 100%; margin-block-start: var(--space-2); }
.ad-src { display: grid; grid-template-columns: 34px 1fr; gap: 10px;
  padding: 7px 0; border-top: 1px solid var(--rule); align-items: baseline;
  font-size: var(--text-sm); }
.ad-src-note { font: var(--t-note); color: var(--ink-3); }

@media (max-width: 1180px) {
  /* Collapse to a stacked card per rule: behaviour and severity on the first
     line, then the technique ids, then the rationale, then the coverage state.
     ⚠ EVERY CHILD IS PLACED EXPLICITLY. Reassigning only two of the seven left
     the rest to auto-placement, and "DEPLOY FIRST" landed on top of "Not
     built" — legible as neither. A partial override of a grid is not a
     smaller change than a full one; it is an unpredictable one. */
  .ad-cov { grid-template-columns: 40px 1fr auto; row-gap: 5px; }
  .ad-cov--head { display: none; }
  .ad-cov-id    { grid-area: 1 / 1; }
  .ad-cov-what  { grid-area: 1 / 2; }
  .ad-sev       { grid-area: 1 / 3; text-align: end; }
  .ad-cov-att   { grid-area: 2 / 2; }
  .ad-cov-tier  { grid-area: 2 / 3; text-align: end; }
  .ad-cov-why   { grid-area: 3 / 2 / auto / -1; }
  .ad-cov-state { grid-area: 4 / 2 / auto / -1; }
}

/* The bulk bar's SCOPE line and its escalation chip (2026-09-09). The header
   checkbox picks one page; wanting every match is a separate, explicit click
   that names the number. Both live inside `.pa-bulk`, which is why they are
   sized against it rather than against `.pa-btn`. */
.pa-bulk-scope { font: var(--t-secondary); color: var(--ink-4); white-space: nowrap; }
.pa-btn--soft { border-style: dashed; border-color: var(--amber); color: var(--amber-text); }

/* An alert that is already part of an incident says so on its own row. The
   correlation sweep has been converging alerts into cases since migration 090
   and the queue never rendered the link, so three alerts for one breach read
   as three unrelated problems. Amber because it is a POINTER to somewhere
   else, not a severity — and NOT uppercased like its siblings, because it
   carries a case number a reader copies rather than a rank they scan. */
.lrow-tag--case { color: var(--amber-text); text-transform: none; letter-spacing: 0; }
/* The victim research disagreed with the feed about the thing the rule
   fired on. Severity-token TEXT, not fill — see the FILL-vs-TEXT trap in
   V2_HANDOFF: a fill token here would put light ink on a light row. */
.lrow-tag--doubt { color: var(--sev-high-text); text-transform: none; letter-spacing: 0; }
/* One story, several alerts (services/alert_groups). Ink, not a severity or
   the amber pointer: it is a COUNT about the row, read before opening it,
   and the story's own grade already sits in the severity cell. */
.lrow-tag--story { color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.pa-victim-flag {
  color: var(--sev-high-text);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0 0 var(--space-4);
}

/* ── Deploy tabs — the drafted rule in the behaviour pane ──────────────────
   The pane's last block offers one behaviour's rule in up to four query
   languages. Tabs rather than four stacked <pre> blocks: a reader wants the
   one their SIEM speaks, and four at ~11 lines each would push every other
   answer in the pane off the first screen.

   A DISABLED tab is load-bearing, not decoration. A drafted rule can genuinely
   have no KQL — a log source neither Microsoft XDR nor Sentinel ASIM maps has
   no table — and hiding that tab would let the reader assume the language was
   never offered. Shown-and-disabled says "this one does not exist for this log
   source", which is the true statement. */
.pa-deploy-tabs {
  display: flex; flex-wrap: wrap; gap: var(--space-1);
  margin-bottom: var(--space-2);
}
.pa-deploy-tab {
  font: var(--text-xs)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-4); cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.pa-deploy-tab:hover:not([disabled]) { color: var(--ink-2); border-color: var(--ink-4); }
.pa-deploy-tab[aria-selected="true"] { color: var(--amber-text); border-color: var(--amber-text); }
.pa-deploy-tab[disabled] { opacity: .4; cursor: not-allowed; }
.pa-deploy-tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ── THE STAGING LIFECYCLE STRIP (2026-09-12) ──────────────────────────────
   Three pills and a figure, closing the behaviour pane under "Deploy this".

   ⚠ THREE PILLS, NOT A RAIL. The numbered-list rule above (`.pa-blind` /
   `.pa-steps`) exists because /techniques once grew a 30px amber-ringed disc on
   a gradient rail for an ordered procedure, and it read as a workflow tracker
   with live state that it did not have. This strip DOES have live state, which
   makes the temptation stronger and the mistake worse — a rail implies a
   progress bar, and a rule that was returned to draft would appear to have gone
   backwards along one. The states reuse the existing pill roles: `--ok` for
   done, `--filter` for where it is, `--soft` (dashed) for not yet. */
.pa-life { display: flex; align-items: center; gap: var(--space-1);
  flex-wrap: wrap; margin-bottom: var(--space-3); }
.pa-life-sep { color: var(--ink-4); font: var(--t-pill); }
/* The measured figure. `--t-figure-lg` is the same face the page's own figures
   use, so a backtest count reads as a measurement rather than as UI chrome. */
.pa-life-fig { display: flex; align-items: baseline; gap: var(--space-2);
  margin-bottom: var(--space-2); }
.pa-life-n { font: var(--t-figure-lg); color: var(--ink);
  font-variant-numeric: tabular-nums; }
/* ⚠ AN UNTESTED RULE SHOWS AN EM DASH, NOT A ZERO, AND THE JS MUST KEEP IT
   THAT WAY. `--none` is for a measured zero — the rule ran against real events
   and matched none, which is the rule's own answer and worth reading quietly.
   A rule nothing has exercised has no number at all, and rendering it as "0"
   invites precisely the reading this whole feature exists to prevent. */
.pa-life-n--none { color: var(--ink-3); }
.pa-life-n--bad { color: var(--sev-critical-text); }
.pa-life-u { font: var(--t-lede-sub); color: var(--ink-3); }
/* The disclosure that production is not the same measurement as staging. Amber
   edge rather than a severity fill: it is a caveat on a number, not a finding. */
.pa-warn { font: var(--t-note); color: var(--ink-3);
  max-width: var(--measure-note); border-inline-start: 2px solid var(--amber);
  padding-inline-start: var(--space-2h); margin: var(--space-3) 0 0; }
/* A detection from a rule an analyst promoted on /rules, beside one from the
   packaged pack. The `-text` ramp for the same reason the tags above take it:
   this is a 9.5px WORD and needs the AA text ratio, which the accent tokens are
   not held to. Amber rather than a severity tone — it is a provenance, not a
   judgement about how bad the hit is. */
.lrow-tag--approved { color: var(--amber-text); }

/* ── TUNING: a priced exclusion candidate, and an ANDed condition row ───────
   The card is a MEASUREMENT, not a suggestion: the model proposed the fields
   and the replay supplied the count, so it is styled as evidence (a figure and
   its denominator) rather than as an offer. A refused candidate stays visible
   and dimmed — its reason is how the next reader learns what the gate is for. */
.dl-cand { border: 1px solid var(--rule); padding: var(--space-3);
  margin-bottom: var(--space-2); }
.dl-cand--bad { opacity: .62; border-style: dashed; }
.dl-cand-head { font: var(--t-value); color: var(--ink);
  margin-bottom: var(--space-1); word-break: break-word; }
/* The card's own actions sit under its evidence, not beside it: the
   number is what the reader is deciding on. */
.dl-cand .pa-btn { margin-top: var(--space-2); }
/* Conditions stack; each is the same three-control form the single-condition
   version used, so the row reads as "one more of the same" rather than a
   different kind of control. */
.dl-cond { border-top: 1px solid var(--rule); padding-top: var(--space-2h);
  margin-top: var(--space-2h); }
.dl-cond:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
/* ⚠ `.dl-form` is a GRID, so a bare button stretches the full column and a
   'Remove' reads as heavy as the primary action it sits under. It is a
   correction, not a decision — size it to its own label. */
.dl-cond-rm { justify-self: start; width: auto; margin-top: var(--space-2); }

/* ── 19j. STORY GROUPS IN THE LEDGER (/feed, 2026-10-16). One story, one row:
   a group is a <details> whose <summary> IS the row (same grid, same columns)
   and whose members open beneath it — no script needed. Classes are `ls-*`,
   never `lrow-*`: `.lrow-group` is a legacy class in shared.css, and the
   narrow-collapse guard reads any `.lrow-*` rule setting `display` after §7b
   as reclaiming the row. Words in --amber-text (the fill token is 3.37:1 on
   light). ── */
.ls-story > summary { list-style: none; cursor: pointer; }
.ls-story > summary::-webkit-details-marker { display: none; }
.ls-story > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ls-story[open] > summary { background: color-mix(in srgb, var(--amber) 6%, transparent); }
.ls-title { display: flex; align-items: center; min-width: 0; }
.ls-title > .ls-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-chev { flex: none; width: 10px; margin-inline-end: var(--space-1h); font-size: var(--text-xs); color: var(--ink-3); }
.ls-story > summary .ls-chev::after { content: '\25B8'; }
.ls-story[open] > summary .ls-chev::after { content: '\25BE'; }
.ls-badge {
  flex: none; margin-inline-start: var(--space-2); padding: 1px 6px; line-height: 1.4;
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--amber-text); border: 1px solid color-mix(in srgb, var(--amber) 50%, transparent);
}
.ls-batch { font-weight: 600; }
.ls-batch-sep { color: var(--ink-3); }
.lrow.lrow--member { background: color-mix(in srgb, var(--amber) 3%, transparent); }
.lrow.lrow--member > :first-child { padding-inline-start: 28px; font-size: var(--text-sm); color: var(--ink-2); }
.ls-more { padding: var(--space-2) 0 var(--space-2) calc(var(--row-indent) + 28px);
  font-size: var(--text-sm); color: var(--ink-3); border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--amber) 3%, transparent); }
