/* The frame's one stylesheet (spec 04 §2.4, §3.3): inlined into every page after brand.css
   (the brand kit's tokens.css, copied byte for byte), never linked. Every colour is a token
   on :root, and the frame's tokens map onto the kit's names: the dark theme (the root) is
   built from the kit's navy scale, the light block redefines every token from the kit's
   surfaces and text (PF-5). The frame types no brand value; its own meanings (the
   provenance and status palette, the warning, the second accent, the shadow) stay Lab
   values, and the navy bands' copies of them (--band-…) are the same in both themes.
   The frame never redefines a kit name. Phone first: one column by default, wider layouts
   only inside min-width blocks, no length over 360px outside them (PF-6). No text-bearing
   element is positioned (PF-7). */
:root {
  color-scheme: dark;
  --bg: var(--navy-900);
  --panel: var(--navy-850);
  --panel-2: var(--navy-800);
  --code-bg: var(--navy-950);
  --fg: var(--on-navy);
  --soft: var(--on-navy-muted);
  --muted: var(--on-navy-soft);
  --rule: var(--border-on-navy);
  --link: var(--accent);
  --accent-ui: var(--accent);
  --accent-text: var(--accent);
  --accent-2: #b493ff;
  --eyebrow-text: var(--accent);
  --eyebrow-bg: color-mix(in srgb, var(--accent) 10%, transparent);
  --eyebrow-border: color-mix(in srgb, var(--accent) 22%, transparent);
  --shadow: rgba(0, 0, 0, 0.28);
  --prov-measured: #259a63;
  --prov-timing: #3f83ee;
  --prov-inferred: #c77800;
  --prov-unknown: #7f8da6;
  --status-live: #72d7ab;
  --status-planned: #f3bd72;
  --absent: var(--on-navy-soft);
  --warn: #ff9b8a;
  --band-prov-measured: #259a63;
  --band-prov-timing: #3f83ee;
  --band-prov-inferred: #c77800;
  --band-prov-unknown: #7f8da6;
  --band-status-live: #72d7ab;
  --band-status-planned: #f3bd72;
  --band-warn: #ff9b8a;
  --surface-page: var(--navy-900);
  --surface-band: var(--navy-800);
  --lab-green: var(--accent);
  --lab-blue: #71b7ff;
  --lab-purple: #b493ff;
  --lab-amber: #f3bd72;
  --block-blue: #8fc6ff;
  --block-purple: #c4b1ff;
  --block-teal: #7fe3d6;
  --block-arrow: #5b7093;
  --tile-bg: #0a1a2f;
  --accent-hover: #5ee0b8;
  --signal: var(--accent);
  --op-0: #3987e5;
  --op-1: #d95926;
  --op-2: #199e70;
  --op-3: #c98500;
  --op-4: #d55181;
  --op-5: #0ca30c;
  --op-6: #9085e9;
  --op-7: #e66767;
}
/* PF-5 as amended (spec 04 D7-124): the theme button's choice. The page opens in the viewer's
   theme — the dark root, or the light block under the system's light setting unless the
   button chose dark; the button's light choice re-applies the light block, word for word,
   under `[data-theme="light"]` (T-10 holds both copies equal). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: var(--surface-soft);
    --panel: var(--surface);
    --panel-2: color-mix(in srgb, var(--border) 40%, var(--surface));
    --code-bg: var(--surface-soft);
    --fg: var(--text);
    --soft: var(--text-secondary);
    --muted: var(--text-muted);
    --rule: var(--border);
    --link: var(--accent-ink);
    --accent-ui: var(--accent-ink);
    --accent-text: var(--accent-ink);
    --accent-2: #6a43c9;
    --eyebrow-text: var(--accent-ink);
    --eyebrow-bg: var(--accent-soft);
    --eyebrow-border: color-mix(in srgb, var(--accent-ink) 25%, transparent);
    --shadow: rgba(13, 23, 38, 0.08);
    --prov-measured: #259a63;
    --prov-timing: #3f83ee;
    --prov-inferred: #c77800;
    --prov-unknown: #7f8da6;
    --status-live: #137a4f;
    --status-planned: #8a5300;
    --absent: var(--text-muted);
    --warn: #b3261e;
    --band-prov-measured: #259a63;
    --band-prov-timing: #3f83ee;
    --band-prov-inferred: #c77800;
    --band-prov-unknown: #7f8da6;
    --band-status-live: #72d7ab;
    --band-status-planned: #f3bd72;
    --band-warn: #ff9b8a;
    --surface-page: var(--surface);
    --surface-band: var(--surface-soft);
    --lab-green: var(--accent-strong);
    --lab-blue: #2f7fe0;
    --lab-purple: #7b5cd6;
    --lab-amber: #c98a1b;
    --block-blue: #8fc6ff;
    --block-purple: #c4b1ff;
    --block-teal: #7fe3d6;
    --block-arrow: #5b7093;
    --tile-bg: #0a1a2f;
    --accent-hover: #5ee0b8;
    --signal: var(--accent-ink);
    --op-0: #2a78d6;
    --op-1: #eb6834;
    --op-2: #1baf7a;
    --op-3: #eda100;
    --op-4: #e87ba4;
    --op-5: #008300;
    --op-6: #6250d6;
    --op-7: #e34948;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: var(--surface-soft);
  --panel: var(--surface);
  --panel-2: color-mix(in srgb, var(--border) 40%, var(--surface));
  --code-bg: var(--surface-soft);
  --fg: var(--text);
  --soft: var(--text-secondary);
  --muted: var(--text-muted);
  --rule: var(--border);
  --link: var(--accent-ink);
  --accent-ui: var(--accent-ink);
  --accent-text: var(--accent-ink);
  --accent-2: #6a43c9;
  --eyebrow-text: var(--accent-ink);
  --eyebrow-bg: var(--accent-soft);
  --eyebrow-border: color-mix(in srgb, var(--accent-ink) 25%, transparent);
  --shadow: rgba(13, 23, 38, 0.08);
  --prov-measured: #259a63;
  --prov-timing: #3f83ee;
  --prov-inferred: #c77800;
  --prov-unknown: #7f8da6;
  --status-live: #137a4f;
  --status-planned: #8a5300;
  --absent: var(--text-muted);
  --warn: #b3261e;
  --band-prov-measured: #259a63;
  --band-prov-timing: #3f83ee;
  --band-prov-inferred: #c77800;
  --band-prov-unknown: #7f8da6;
  --band-status-live: #72d7ab;
  --band-status-planned: #f3bd72;
  --band-warn: #ff9b8a;
  --surface-page: var(--surface);
  --surface-band: var(--surface-soft);
  --lab-green: var(--accent-strong);
  --lab-blue: #2f7fe0;
  --lab-purple: #7b5cd6;
  --lab-amber: #c98a1b;
  --block-blue: #8fc6ff;
  --block-purple: #c4b1ff;
  --block-teal: #7fe3d6;
  --block-arrow: #5b7093;
  --tile-bg: #0a1a2f;
  --accent-hover: #5ee0b8;
  --signal: var(--accent-ink);
  --op-0: #2a78d6;
  --op-1: #eb6834;
  --op-2: #1baf7a;
  --op-3: #eda100;
  --op-4: #e87ba4;
  --op-5: #008300;
  --op-6: #6250d6;
  --op-7: #e34948;
}
* {
  box-sizing: border-box;
}
/* A script hides with the hidden attribute (B-2's header, the lens tabs); no rule may
   show what it hides. */
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
a {
  color: var(--link);
}
::selection {
  background: var(--selection);
}
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
code {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0 4px;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 24px 0 12px;
}
h2 {
  font-size: 1.4rem;
  margin: 20px 0 8px;
}
h3,
h4 {
  margin: 16px 0 6px;
}
/* §3.2: one column and one gutter on every page — the bands' `.wrap` and `<main>`; the
   accepted designs' 1260px column is a max-width inside a min-width block (PF-6). */
.wrap,
main {
  padding-inline: 16px;
}
/* The navy bands (§3.2, PF-5): the header with the breadcrumb, and the footer, are navy in
   both themes. They reach the viewport's edges by structure (each is a full-width block
   around the column), never by positioning (PF-7, T-18); inside them the frame's tokens take
   the kit's on-navy names and the bands' own provenance and status copies. */
.shell,
.site-footer {
  background: var(--navy-950);
  color: var(--fg);
  --fg: var(--on-navy);
  --soft: var(--on-navy-muted);
  --muted: var(--on-navy-soft);
  --rule: var(--border-on-navy);
  --panel: var(--navy-850);
  --panel-2: var(--navy-800);
  --code-bg: var(--navy-900);
  --link: var(--on-navy-link);
  --accent-ui: var(--accent);
  --accent-text: var(--accent);
  --absent: var(--on-navy-soft);
  --prov-measured: var(--band-prov-measured);
  --prov-timing: var(--band-prov-timing);
  --prov-inferred: var(--band-prov-inferred);
  --prov-unknown: var(--band-prov-unknown);
  --status-live: var(--band-status-live);
  --status-planned: var(--band-status-planned);
  --warn: var(--band-warn);
}
.shell {
  padding-bottom: 14px;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 16px;
  font-size: 14px;
}
/* The site's lockup (§2.4; the kit README's sizes): the mark, the wordmark, then the Lab's
   name, on one text baseline. In a baseline-aligned flex row an SVG's box bottom sits on
   the baseline; the wordmark's letters stand on y = 69.7 of its 10–89 viewBox, so it moves
   down by 19.3/79 of its height, and the mark moves with it to stay centred on it. The
   offsets are relative positioning of the drawings, which carry no text (PF-7). */
.brand {
  --mark-h: 22px;
  --word-h: 20px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.6px;
  white-space: nowrap;
  color: var(--on-navy);
  text-decoration: none;
}
.brand-mark,
.brand-word {
  flex: 0 0 auto;
  position: relative;
  color: var(--on-navy);
}
.brand-mark {
  width: 34px;
  height: var(--mark-h);
  top: calc((var(--mark-h) - var(--word-h)) / 2 + var(--word-h) * 19.3 / 79);
}
.brand-word {
  width: auto;
  height: var(--word-h);
  top: calc(var(--word-h) * 19.3 / 79);
}
.brand-sep {
  color: var(--accent-text);
  font-weight: 400;
  margin: 0 2px;
}
.site-nav {
  order: 2;
  flex-basis: 100%;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding-block: 6px;
  color: var(--on-navy-link);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--accent-text);
}
.site-nav a[aria-current="page"] {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 10px 0 0;
}
/* §3.2's kicker and signal, for the pages that draw one (S-2a, S-3). */
.kicker {
  color: var(--accent-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.signal {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ui);
  margin-right: 8px;
}
main section {
  margin: 0 0 20px;
}
.eyebrow p {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 1rem;
  color: var(--eyebrow-text);
  background: var(--eyebrow-bg);
  border: 1px solid var(--eyebrow-border);
  font-size: 0.8rem;
  font-weight: 700;
}
.question p {
  font-size: 1.15rem;
}
.evidence-class {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px var(--shadow);
}
.card .card-link {
  margin-top: auto;
  padding-top: 8px;
}
.kind {
  color: var(--muted);
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}
.statement td {
  color: var(--soft);
  font-size: 0.92rem;
}
/* R100 (the developer's review, 2026-11-01): the labels read quietly. GD-2's status labels,
   PF-14's status pills and the provenance badges carry no border and no fill; each is its
   word in regular weight at 0.8rem, in the muted text colour (at least 4.5:1 on every panel
   in both themes and on the navy bands), led by a small dot in its class colour (--dot), the
   dot PF-13's dot display and the legend already draw. The word is always visible: colour
   is never the only carrier, and no label is removed. */
.status {
  display: inline-block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
}
.status-live,
.status-recorded {
  --dot: var(--status-live);
}
.status-planned {
  --dot: var(--status-planned);
}
/* PF-14's status pill: a derived display, its word always visible (never reduced, PF-13).
   Beside it, the part PF-14 keeps in the DOM but out of view, without positioning (PF-7). */
.pill {
  display: inline-block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
}
.site-header .repo {
  order: 1;
  margin-left: auto;
}
.repo {
  margin: 0;
}
.site-header .repo a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: var(--radius-sm);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .repo a:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
/* PF-5 as amended (D7-124): the theme button after the navigation — muted, no outline or
   border, its icon and label the theme it switches to; on a phone it sits on the brand's
   row, the navigation wrapping beneath (frozen v7). */
.themebtn {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--on-navy-soft);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.themebtn:hover {
  color: var(--on-navy-link);
}
.theme-icon {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.themebtn[data-now="dark"] .moon,
.themebtn[data-now="light"] .sun,
.themebtn:not([data-now]) .sun {
  display: none;
}
.pill-live,
.pill-recorded {
  --dot: var(--status-live);
}
.pill-absent {
  --dot: var(--absent);
}
.ladder-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.dim-status-live {
  border-color: color-mix(in srgb, var(--accent-strong) 55%, transparent);
  background-color: color-mix(in srgb, var(--accent) 8%, var(--panel));
}
.pill-planned {
  --dot: var(--status-planned);
}
.pill-hidden {
  display: inline-block;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.badge {
  display: inline-block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
}
.prov-measured {
  --dot: var(--prov-measured);
}
.prov-timing_correlation {
  --dot: var(--prov-timing);
}
.prov-inferred {
  --dot: var(--prov-inferred);
}
.prov-unknown {
  --dot: var(--prov-unknown);
}
/* R100: the dot before each label's word, in its class colour; the legend's key (§3.5). */
.status::before,
.pill::before,
.badge::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.4em;
  border-radius: 50%;
  background: var(--dot);
  vertical-align: 0.08em;
}
/* PF-13's displays. Words are the default, and the only display without a script: the
   labels script puts .badges-js on the document. Then a .badges-dot region draws each badge
   as a coloured dot, its label still the badge's text, kept out of view without positioning
   (PF-7); a .badges-hover region keeps it out of view the same way. (Spec 04 D7-128, the
   developer's ruling of 2026-11-22: hovering or focusing never changes the layout — a label
   and a formula are the element's hover text, its `title`, or shown inline by Show labels,
   never inserted on :hover or :focus.) Show labels (.labels-on on the document) and forced
   colours restore the words. Only .badge is ever reduced: an absent or not-derived text, schematic, a warning,
   a gap, a self-check failure, the "unknown" value and a status pill are never a badge. */
.badges-js:not(.labels-on) .badges-dot .badge {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dot);
  overflow: hidden;
  text-indent: 100%;
  vertical-align: middle;
}
.badges-js:not(.labels-on) .badges-hover .tile .badge {
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
/* The hover display's formula (PF-13: the derived tile's formula shows with its badge).
   (M-7/S-2b) A finding's statement keeps it the same way in the dot display: the formula
   stays in the text, read in full with Show labels or no script (D7-128: no longer on
   hover or focus). */
.badges-js:not(.labels-on) .badges-hover .tile .formula {
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* An inline span ignores a width, so a finding's held formula is an inline box of one pixel,
   out of the line's flow of words. */
.badges-js:not(.labels-on) .badges-dot .finding .formula {
  display: inline-block;
  vertical-align: bottom;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* PF-13 (M-3/S-2a1, R5) as amended by D7-128: focus no longer turns a dot back into words
   (it changed the line's layout); a dot names itself by its `title` and in the accessibility
   tree, and Show labels shows every label inline. */
@media (forced-colors: active) {
  /* M-3/S-3: the six pages' outlines and marks keep their words; the hatch is not needed
     to read a superseded row, whose label says it. `main` outranks the base rules. */
  main .page-body > .planned-panel,
  main .planned-panel > ul > li,
  main .planned-group,
  main .planned-mark {
    border: 1px dashed CanvasText;
  }
  main .hero-count,
  main .planned-group .chips li {
    border: 1px solid CanvasText;
  }
  main tr.superseded td {
    background: none;
  }
  .badges-js:not(.labels-on) .badges-dot .badge,
  .badges-js:not(.labels-on) .badges-hover .tile .badge {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 6px;
    border: 1px solid CanvasText;
    border-radius: 6px;
    background: Canvas;
    color: CanvasText;
    overflow: visible;
    text-indent: 0;
    clip-path: none;
  }
  .badges-js:not(.labels-on) .badges-hover .tile .formula {
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
  .badges-js:not(.labels-on) .badges-dot .finding .formula {
    display: inline;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
  .status::before,
  .pill::before,
  .badge::before {
    border: 1px solid CanvasText;
  }
  .block,
  .chip,
  .hero-actions a,
  .cta-actions a,
  .card-actions a {
    border: 1px solid ButtonText;
  }
}
.absent {
  color: var(--absent);
  font-style: italic;
}
.formula {
  color: var(--muted);
  font-size: 0.85rem;
}
/* The footer (§3.2, §3.5): the notice, the one legend — the three classes, the four labels
   each with its dot and its words, Show labels — then openara.ai · LLM Lab, the four
   dimensions and the repository. */
.site-footer {
  margin-top: 40px;
  padding: 24px 0 34px;
  color: var(--soft);
  font-size: 0.8rem;
}
.site-footer .wrap {
  display: grid;
  gap: 14px;
}
.site-footer p {
  margin: 0;
}
.site-footer .notice {
  max-width: 80ch;
}
.legend {
  display: grid;
  gap: 8px;
}
.legend p {
  max-width: 80ch;
}
.legend ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
label.show-labels {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  cursor: pointer;
  color: var(--fg);
}
label.show-labels input {
  margin: 0;
  accent-color: var(--accent);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.footer-brand {
  color: var(--fg);
  font-weight: 600;
}
/* The landing (spec 04 §6): the hero's stack panel and tiles, the dimension cards, the
   app cards, the run card, the depth ladder. Cards are flex columns with their link last
   and in flow (PF-7, the mock's card bug); no decorative positioned element. */
.tile-label {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tiles {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.tile {
  border: 1px solid var(--rule);
  background: var(--code-bg);
  border-radius: 12px;
  padding: 10px;
}
.tile-label,
.tile-value,
.tile-sub {
  display: block;
}
.tile-value {
  margin-top: 4px;
  font-weight: 700;
}
.tile-sub {
  color: var(--muted);
  font-size: 0.8rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.chip {
  border: 1px solid var(--rule);
  background: var(--panel-2);
  border-radius: 1rem;
  padding: 2px 8px;
  font-size: 0.8rem;
}
.fields {
  display: grid;
  gap: 2px 12px;
  margin: 12px 0;
}
.fields dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.fields dd {
  margin: 0 0 6px;
}
.dimension-list,
.run-list,
.ladder {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.dim-name,
.level {
  color: var(--muted);
  font-weight: 700;
}
.run-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 8px 12px;
}
.reference {
  color: var(--accent-ui);
  font-weight: 700;
}
/* RB-4: a superseded row is muted and labelled in text, so it reads without colour; RB-8
   (M-3/S-3) hatches it too, over the frame's tokens, in both themes. */
tr.superseded td {
  color: var(--muted);
  background: repeating-linear-gradient(
    135deg,
    transparent 0 8px,
    color-mix(in srgb, var(--rule) 45%, transparent) 8px 16px
  );
}
.superseded-label {
  font-style: italic;
  font-weight: 700;
}
/* Landing v7 (spec 04 §6.1 as amended at M-3/S-0; M-3/S-1b). `<main class="bands">` runs full
   width and each row is a band with the column (`.wrap`) inside: the navy hero (the header's
   band continued), the dimensions and the run on the page surface, the apps and the depth
   as contained panels (`.band-box`) on the soft surface, the navy closing banner. Nothing is
   positioned (PF-7); the dimension cards' corner is a background gradient, not a
   pseudo-element. The hero's navy and the banner's are the same in both themes (PF-5). */
body:has(> main.bands) {
  background: var(--surface-page);
}
main.bands {
  padding-inline: 0;
}
main.bands > section {
  margin: 0;
  padding: 44px 0 0;
}
.visually-hidden {
  display: block;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-band,
.cta {
  color: var(--on-navy);
  --fg: var(--on-navy);
  --soft: var(--on-navy-muted);
  --muted: var(--on-navy-soft);
  --rule: var(--border-on-navy);
  --panel: var(--navy-850);
  --panel-2: var(--navy-800);
  --code-bg: var(--navy-900);
  --link: var(--accent);
  --accent-ui: var(--accent);
  --accent-text: var(--accent);
  --absent: var(--on-navy-soft);
  --prov-measured: var(--band-prov-measured);
  --prov-timing: var(--band-prov-timing);
  --prov-inferred: var(--band-prov-inferred);
  --prov-unknown: var(--band-prov-unknown);
  --status-live: var(--band-status-live);
  --status-planned: var(--band-status-planned);
  --warn: var(--band-warn);
  background: var(--hero-shell);
}
main.bands > .hero-band {
  padding: 28px 0 44px;
}
.hero {
  display: grid;
  gap: 32px;
}
.hero-copy .eyebrow p {
  padding: 7px 11px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.hero-copy h2 {
  margin: 20px 0 0;
  max-width: 16ch;
  font-size: clamp(31px, 9vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--on-navy);
}
.hero-copy h2 em {
  font-style: normal;
  color: var(--accent);
}
.lede p {
  margin: 24px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-navy-muted);
}
.app-link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.app-link:hover {
  color: var(--fg);
}
.hero-actions p,
.cta-actions p {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 28px 0 0;
}
.cta-actions p {
  margin: 0;
}
.hero-actions a,
.cta-actions a,
.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.hero-actions a:hover,
.cta-actions a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-actions a:first-child,
.cta-actions a:first-child,
.card-actions a {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-950);
}
.hero-actions a:first-child:hover,
.cta-actions a:first-child:hover,
.card-actions a:hover {
  background: var(--accent-hover);
  color: var(--navy-950);
}
/* The hero's panel (§6.1): the illustration in everyday words, then the four tiles. */
.hero .panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--navy-900) 86%, transparent);
  box-shadow: 0 24px 60px var(--shadow);
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 14px;
}
.panel-head strong {
  font-size: 14px;
  color: var(--on-navy);
}
.tag {
  padding: 5px 9px;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.flow {
  display: grid;
  gap: 10px;
}
.flow-row {
  display: grid;
  gap: 6px;
}
.flow-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.flow-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 52px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--navy-950);
}
.block {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--block-purple);
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.block-stacked {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.block-sub {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.75;
}
.block .app-link {
  color: inherit;
}
/* The blocks' fills are the diagram's meaning, by row and place (PF-13), as landing v7 draws
   them; never a provenance. */
[data-row="application"] .b-1 {
  background: var(--accent);
}
[data-row="application"] .b-2,
[data-row="model"] .b-1,
[data-row="execution"] .b-1 {
  background: var(--block-blue);
}
[data-row="runtime"] .b-3,
[data-row="execution"] .b-3 {
  background: var(--block-teal);
}
.arrow {
  color: var(--block-arrow);
  font-weight: 700;
}
.hero .tiles {
  margin-top: 14px;
}
.hero .tile {
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--tile-bg);
}
.hero .tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hero .tile-label {
  font-size: 10px;
  letter-spacing: 0.09em;
}
.hero .tile-value {
  font-size: 18px;
  line-height: 1.3;
  color: var(--on-navy);
}
.hero .tile .badge {
  margin-left: 6px;
}
.hero .tile .formula {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}
.hero .tile-sub {
  margin-top: 4px;
  font-size: 10px;
}
/* The rows' heads, the contained panels. */
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.band-box {
  padding: 24px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-band);
}
main.bands .card {
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: none;
}
/* The dimension cards (§6.1, L6, L8; PF-7, PF-14). */
.dims {
  display: grid;
  gap: 16px;
}
.dim {
  background-image: radial-gradient(
    circle 80px at calc(100% + 8px) 6px,
    color-mix(in srgb, var(--dim-accent) 14%, transparent) 79px,
    transparent 80px
  );
  background-repeat: no-repeat;
}
.dim-quality {
  --dim-accent: var(--lab-green);
}
.dim-performance {
  --dim-accent: var(--lab-blue);
}
.dim-security {
  --dim-accent: var(--lab-purple);
}
.dim-operability {
  --dim-accent: var(--lab-amber);
}
.dim h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.dim > p:not(.card-link) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.dim ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.dim li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}
.dim li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim-accent);
}
.dim .card-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 700;
}
.dim .card-link a,
.card-links a {
  color: var(--link);
  text-decoration: none;
}
/* (§6.1 as amended, D7-134) The dimension with evidence is the row's one prominent target: its
   link is drawn as the hero's primary button, in flow at the card's foot (PF-7: nothing is
   positioned). A planned dimension's card recedes: no tint, no corner disc, no lift, its
   heading and bullets in the soft ink; its words and its link stay at their own contrast. Both
   key on the status the index gives (`listing.js`), never on the dimension's name; without a
   script the four cards read alike. */
.dim-status-live .card-link a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--navy-950);
}
.dim-status-live .card-link a:hover,
.dim-status-live .card-link a:focus-visible {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}
.dim-status-planned {
  border-style: dashed;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}
.dim-status-planned h3 {
  color: var(--soft);
}
.dim-status-planned li::before {
  background: var(--muted);
}
/* The apps (§6.1, AP-1, L3–L5). */
.app-cards {
  display: grid;
  gap: 16px;
}
.app-card .kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.app-card h3 {
  margin: 10px 0 6px;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.app-card h3 .app-link {
  color: inherit;
  text-decoration: none;
}
.app-feature {
  margin: 0 0 10px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 650;
}
.app-tagline {
  color: var(--fg);
  font-weight: 600;
}
.app-card > p:not(.kind):not(.app-feature) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 700;
}
.card-links .repo-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* The reference run (§6.1, §6.2 as ruled, L7, L11). */
.run-pair,
.matrix {
  display: grid;
  gap: 16px;
}
.run-head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 14px;
}
.run-head h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.run-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.run-id {
  margin: 0;
  padding: 5px 9px;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.run-card .statement {
  margin-bottom: 16px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
}
.run-card .statement p {
  margin: 0;
}
.run-fields {
  display: grid;
  gap: 8px;
}
.run-field {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface-band);
}
.run-field > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.run-field b {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.run-field small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.card-foot {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.about h3,
.matrix .card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.about > p:not(.card-actions),
.matrix .card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.about .dimension-list {
  gap: 2px;
  margin: 16px 0 0;
}
.about .dimension-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.about .dimension-list .absent {
  flex-basis: 100%;
  font-size: 12px;
  font-style: normal;
}
.card-actions {
  margin: 18px 0 0;
}
/* Depth: the seven lenses, each a link to its lens, and the recorded variables. */
.ladder-links {
  gap: 0;
  margin: 16px 0 0;
}
.ladder-links a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--fg);
  font-size: 13px;
  text-decoration: none;
}
.ladder-links li:last-child a {
  border-bottom: 0;
}
.ladder-links a:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.ladder-links code {
  padding: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
}
.ladder-links .labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 2;
}
.axis {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.axis-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.axis-label {
  min-width: 100%;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* The closing banner, navy in both themes (PF-5). */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 30px;
  padding: 24px;
  border-radius: var(--radius-lg);
}
.cta h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.cta-copy p {
  max-width: 72ch;
  margin: 8px 0 0;
  color: var(--on-navy-muted);
  line-height: 1.6;
}
.subst,
.muted {
  color: var(--muted);
  font-size: 0.85rem;
}
.gap {
  color: var(--warn);
  text-decoration: underline dotted;
}
.terminal {
  color: var(--soft);
  font-style: italic;
}
.resolved {
  color: var(--status-live);
  font-weight: 700;
}
.unjoined {
  color: var(--muted);
  font-style: italic;
}
.warning {
  border: 1px solid var(--warn);
  border-radius: 12px;
  padding: 4px 12px;
  color: var(--warn);
}
.panel-live {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 6px 10px;
  margin: 8px 0;
}
@media (min-width: 441px) {
  .hero .tiles,
  .run-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .block {
    white-space: nowrap;
  }
  .block [data-ev] {
    white-space: normal;
  }
  .flow-track {
    gap: 8px;
  }
  .axis-label {
    min-width: 6rem;
  }
  .brand {
    --mark-h: 25px;
    --word-h: 24px;
    gap: 12px;
    font-size: 20px;
  }
  .brand-mark {
    width: 40px;
  }
}
/* The six pages (spec 04 DS-1, DS-7, DS-8, RB-8; M-3/S-3): Apps, Quality, Security,
   Operability, Runs and Deep dives, after frozen six pages v1. `<main class="bands page …">`:
   the hero on the navy band (the header's band continued), its status at its side, then the
   page's sections as cards in the column (`.page-body`) on the page surface. v3's corner is
   the hero band's own background, a radial gradient in the one brand accent (R61) — nothing
   is positioned (PF-7, T-18). */
body:has(> main.page) {
  background: var(--bg);
}
.hero-band.page-hero {
  background: radial-gradient(
      circle 105px at calc(100% - 115px) 50%,
      color-mix(in srgb, var(--accent) 12%, transparent) 104px,
      transparent 105px
    ),
    var(--hero-shell);
}
.page-hero-grid {
  display: grid;
  gap: 20px;
}
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--on-navy);
}
.hero-description {
  max-width: 62ch;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.7;
}
.hero-description p {
  margin: 0;
}
.hero-description p + p {
  margin-top: 10px;
}
.hero-description strong {
  color: var(--on-navy);
  font-weight: 600;
}
.hero-description code {
  background: var(--panel-2);
  color: var(--on-navy);
}
/* DS-7: the status, a derived display — a pill, or counts whose figure is the `<code>` the
   allowlist admits (R49), drawn as v1's bold figure in the inherited font. */
.hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.page-hero .pill {
  font-size: 13px;
}
.hero-count {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--soft);
  font-size: 13px;
}
.hero-count code {
  padding: 0;
  background: none;
  font: inherit;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-navy);
}
/* The page's sections, as cards (DS-1): story and scope side by side from a tablet width. */
main.bands > .page-body {
  display: grid;
  gap: 20px;
  padding-block: 28px 44px;
}
.page-body section {
  margin: 0;
}
.page-body > section,
.page-body > .pair > section {
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--panel);
}
.page-body > .app.card {
  box-shadow: none;
}
.pair {
  display: grid;
  gap: 20px;
}
.section-label,
.page-body .evidence-class {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-body section > p {
  max-width: 85ch;
  line-height: 1.7;
}
.page-body section > p:first-of-type {
  margin-top: 0;
}
.page-body .run-row {
  padding: 12px 14px;
  background: var(--code-bg);
  font-size: 13px;
}
/* DS-8: the planned panel — a dashed outline and its `planned` mark; its lists drawn as
   v1's cards (R55), Operability's steps numbered by a counter (R56: no digit in the
   markup), Security's vocabulary and the Runs panel's groups. */
.page-body > .planned-panel {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--rule));
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
}
.planned-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 8px;
}
.planned-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.planned-mark {
  display: inline-block;
  padding: 2px 12px;
  border: 1px dashed currentColor;
  border-radius: 1rem;
  color: var(--status-planned);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.planned-panel > p {
  color: var(--soft);
}
.planned-panel > p code {
  display: inline-block;
  margin: 2px 2px 2px 0;
  padding: 2px 10px;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--panel-2);
  font-size: 12px;
}
.planned-panel > p > a.external:only-child {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--accent-ui);
  border-radius: var(--radius-sm);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}
.planned-panel > ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.planned-panel > ul > li {
  padding: 14px 16px;
  border: 1px dashed var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.planned-panel > ul > li strong {
  display: block;
  color: var(--fg);
  font-size: 15px;
  letter-spacing: -0.01em;
}
.planned-panel > ul > li:has(em) {
  border-top-style: dashed;
}
.planned-panel > ul > li em {
  display: block;
  margin: 2px 0 4px;
  font-size: 11px;
  font-style: normal;
}
.planned-panel > h3 {
  margin: 24px 0 0;
  font-size: 14px;
}
.planned-panel > h3 + ul > li {
  border: 1px solid var(--rule);
}
.planned-panel > h3 + ul > li strong::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--prov-unknown);
}
.planned-panel > h3 + ul > li:nth-child(1) strong::before {
  background: var(--status-live);
}
.planned-panel > h3 + ul > li:nth-child(2) strong::before {
  background: var(--warn);
}
.page-operability .planned-panel > ul {
  counter-reset: step;
}
.page-operability .planned-panel > ul > li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--rule));
  color: var(--fg);
}
.page-operability .planned-panel > ul > li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px dashed var(--accent-ui);
  border-radius: 50%;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
}
.planned-groups {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}
.planned-group {
  padding: 14px 16px;
  border: 1px dashed var(--rule);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.planned-group h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
}
.planned-group .chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 10px;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--panel-2);
  font-size: 12px;
}
.planned-group .chips code {
  padding: 0;
  background: none;
}
/* Runs (RB-8): the table scrolls inside its own container (PF-6), never the page; a cell
   breaks between words only, and the bundle and page columns keep a readable width. */
.page-runs .table-wrap {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
table.runs {
  font-size: 13px;
}
table.runs th {
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--code-bg);
}
table.runs td {
  overflow-wrap: normal;
}
table.runs td:nth-last-child(2) {
  min-width: 250px;
  overflow-wrap: anywhere;
}
table.runs td:last-child {
  min-width: 260px;
}
.index-link {
  margin: 0 0 12px;
}
/* Apps (AP-3): a planned app is drawn dashed and muted, its planned scenarios muted. */
.page-apps .app.card:has(> h2 .status-planned, > .app-main > h2 .status-planned) {
  border-style: dashed;
  background: color-mix(in srgb, var(--status-planned) 4%, var(--panel));
}
.page-apps .app.card:has(> h2 .status-live, > .app-main > h2 .status-live) {
  border-color: color-mix(in srgb, var(--accent-ui) 60%, var(--rule));
}
.page-apps .app.card h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
table.scenarios tr:has(.status-planned) td {
  color: var(--muted);
}
/* R101: an app's demo. On a phone it follows the content, full width; from 960px it sits in
   a second column beside it (PF-6). Its width/height attributes reserve the box, scaled
   here. Where the reader asks for reduced motion the GIF is hidden (a hidden lazy image is
   not fetched) and the caption's link opens the animation on request; without that request
   the link is not shown. */
.page-apps .app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-demo {
  margin: 16px 0 0;
  min-width: 0;
}
.app-demo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--code-bg);
}
.app-demo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}
.app-demo .demo-open {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .app-demo img {
    display: none;
  }
  .app-demo .demo-open {
    display: inline;
  }
}
@media (min-width: 960px) {
  .page-apps .app.card:has(> .app-demo) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 0 28px;
    align-items: start;
  }
  .page-apps .app.card:has(> .app-demo) > .app-demo {
    margin: 0;
  }
}
table.scenarios tr.statement td {
  background: var(--code-bg);
}
/* Deep dives: the method links as a list of cards. */
.methodology ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.methodology li {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--code-bg);
}
@media (min-width: 720px) {
  
  main.bands {
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
  }
  main.bands > section {
    padding-top: 64px;
  }
  main.bands > .hero-band {
    padding: 54px 0 64px;
  }
  .band-box {
    padding: 40px;
    border-radius: var(--radius-lg);
  }
  .hero-copy h2 {
    font-size: clamp(36px, 7vw, 52px);
  }
  .lede p {
    font-size: 18px;
  }
  .flow-row {
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .section-head h2 {
    font-size: 34px;
  }
  .dims {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about .dimension-list li {
    display: grid;
    grid-template-columns: 110px auto minmax(0, 1fr);
  }
  .about .dimension-list .pill {
    justify-self: start;
  }
  .about .dimension-list .absent {
    grid-column: auto;
  }
  .ladder-links a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
  .ladder-links .labels {
    grid-column: auto;
    justify-content: flex-end;
  }
  .cta {
    padding: 32px;
  }
  .cta h2 {
    font-size: 28px;
  }
  .wrap,
  main {
    box-sizing: content-box;
    max-width: 1260px;
    margin-inline: auto;
    padding-inline: 28px;
  }
  /* Spec 05 RV-1 (D7-125, D7-135): the Performance page's main runs the window's width — the
     front door's bands edge to edge, the run view centred at its own 1440px cap (`.rv`); each
     keeps its own measure inside. */
  main.run-page {
    max-width: none;
    padding-inline: 0;
  }
  dl.lp-terms {
    grid-template-columns: max-content minmax(0, 1fr);
    max-width: 940px;
  }
  .lp-keys .lp-tile-value {
    font-size: 1.5rem;
  }
  .lp-selrow .lp-go {
    margin-left: auto;
  }
  dl.lp-terms dd {
    margin: 0;
  }
  .lanes .lane-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  h1 {
    font-size: 2.6rem;
  }
  .fields {
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* M-3/S-3: the six pages from a tablet width. */
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
  }
  .hero-status {
    justify-content: flex-end;
    padding-bottom: 6px;
  }
  .page-hero h1 {
    font-size: clamp(46px, 5.4vw, 72px);
  }
  .hero-description {
    font-size: 18px;
  }
  main.bands > .page-body {
    padding-block: 36px 64px;
  }
  .page-body > section,
  .page-body > .pair > section {
    padding: 24px 28px;
  }
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .planned-groups {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  table.runs {
    min-width: 1560px;
  }
  .page-deep-dives .planned-panel > ul {
    max-width: 560px;
  }
}
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
    gap: 48px;
    align-items: center;
  }
  .hero-copy h2 {
    font-size: clamp(46px, 5.4vw, 72px);
  }
  .hero .tiles,
  .run-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
  }
  .app-cards,
  .matrix {
    display: grid;
  }
  .app-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .run-pair {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .site-header {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
  }
  .site-nav {
    order: 0;
    flex-basis: auto;
  }
  .site-header .repo,
  .themebtn {
    order: 0;
    margin-left: 0;
  }
}
@media (min-width: 1250px) {
  .dims {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* M-3/S-3: the six pages' wide grids; v3's corner keeps to the column's right edge. */
@media (min-width: 1000px) {
  .hero-band.page-hero {
    background: radial-gradient(
        circle 105px at min(calc(100% - 143px), calc(50% + 515px)) 50%,
        color-mix(in srgb, var(--accent) 12%, transparent) 104px,
        transparent 105px
      ),
      var(--hero-shell);
  }
  .planned-panel > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .planned-panel > ul > li:has(em) {
    grid-column: 1 / -1;
  }
  .page-operability .planned-panel > ul {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
  .page-deep-dives .planned-panel > ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* The Performance page's run view (spec 05 §4.0.2–§4.0.4, §4 LP-1…LP-11 as amended by the
   re-plan of 2026-11-21; frozen Performance v7): the Lab pane at the left and the main column —
   the run line, the run list, the tab bar, then the view — centred and never wider than 1440px
   (the min-width block). Phone first: the pane is one row of links above the run line, the
   Overview's lanes stack, the tiles run two across. One column for a view (LP-4), five type
   sizes, one spacing scale, one card look, one table style, a value's mark after it (LP-5);
   the signal colour is --signal (LP-9, D7-47). Tokens only; nothing positioned (PF-7, T-18). */
main.run-page {
  padding: 0;
  background: var(--panel);
}
.rv {
  --rv-gut: 16px;
  --lp-s1: 8px;
  --lp-s2: 16px;
  --lp-s3: 24px;
  --lp-s4: 40px;
  --lp-title: 1.45rem;
  --lp-section: 1.125rem;
  --lp-small: 0.8125rem;
  --lp-label: 0.6875rem;
  --lp-f1: color-mix(in srgb, var(--fg) 14%, var(--panel));
  --lp-f2: color-mix(in srgb, var(--fg) 42%, var(--panel));
  --lp-f3: color-mix(in srgb, var(--fg) 78%, var(--panel));
  background: var(--panel);
}
.rv-main {
  min-width: 0;
}
.label,
.pane-label,
.runline-label,
.lp-label {
  margin: 0;
  font-size: var(--lp-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
/* RV-3: the Lab pane — on a phone one row of links above the run line. */
.pane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 8px var(--rv-gut);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  font-size: 0.875rem;
}
.pane-label,
.pane-sep,
.pane-item small,
.pane-icon,
.notch {
  display: none;
}
.pane-item {
  display: flex;
  flex-direction: column;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--fg);
  text-decoration: none;
}
.pane-item.on {
  background: var(--panel);
  border-color: var(--rule);
  box-shadow: inset 3px 0 0 var(--accent-ui);
  font-weight: 650;
}
.pane-item small {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.72rem;
}
.rv-main > .load-notice {
  margin: 12px var(--rv-gut) 0;
  font-size: var(--lp-small);
  overflow-wrap: anywhere;
}
.pane-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notch {
  width: 17px;
  height: 24px;
  margin: 0 0 4px auto;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}
.notch::before {
  content: "‹";
}
.collapsed .notch::before {
  content: "›";
}
.notch:hover,
.notch:focus-visible {
  border-color: var(--link);
  color: var(--link);
}
/* RV-4: the run line. */
.runbar {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.runline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0;
  padding: 12px var(--rv-gut);
}
.runtoggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -3px 0;
  padding: 3px 8px 3px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.runtoggle:hover {
  border-color: var(--accent-ui);
}
.rname {
  font-weight: 700;
  font-size: 1rem;
}
.chev {
  flex: none;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--link);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}
.runtoggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}
.rvars {
  color: var(--muted);
  font-size: var(--lp-small);
}
.rvars [data-ev],
.rvars .meta {
  color: var(--muted);
}
.rright {
  display: flex;
  gap: 4px;
  align-items: baseline;
  font-size: var(--lp-small);
}
.rk {
  color: var(--muted);
}
.loaded-label {
  padding: 0 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
/* RV-5, spec 04 §9.4: the run list under the run line. */
.runpick {
  display: grid;
  gap: 16px;
  padding: 14px var(--rv-gut) 20px;
  border-top: 1px solid var(--rule);
}
/* Spec 04 §22 D7-136: the open run list reads as one block with the run line — the toggle
   marked open, the list under its own header with its way out, a heavier edge and a soft
   shadow under the block before the tab bar. */
.runtoggle[aria-expanded="true"] {
  border-color: var(--accent-ui);
  box-shadow: 0 0 0 1px var(--accent-ui);
}
.runbar:has(> .runpick:not([hidden])) {
  border-bottom: 2px solid color-mix(in srgb, var(--fg) 28%, var(--rule));
  box-shadow: 0 10px 16px -14px var(--shadow);
}
.pickhead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: var(--lp-section);
}
.filters,
.results {
  min-width: 0;
}
.rs-vars {
  display: grid;
  gap: 10px;
}
.vrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vrow .n {
  font-size: 12.5px;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.vchip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 12.5px;
}
.vchip code {
  font-family: inherit;
  font-size: 11px;
  background: none;
  padding: 0;
  opacity: 0.75;
}
button.vchip {
  cursor: pointer;
}
button.vchip:hover {
  border-color: var(--accent-ui);
}
.vchip.on {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--panel);
  font-weight: 650;
}
.vchip.only {
  background: var(--panel);
}
.vchip.none {
  opacity: 0.45;
}
.reshead {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 8px;
  font-weight: 650;
}
.reshead span {
  font-weight: 400;
  color: var(--muted);
  font-size: var(--lp-small);
}
.linkbtn {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: var(--lp-small);
  text-decoration: underline;
  cursor: pointer;
}
.runlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-content: start;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-color: var(--rule) transparent;
  overscroll-behavior: contain;
  padding: 2px 6px 2px 2px;
}
/* RS-5 as amended (D7-136): a run is a row of two or three lines — its name, then its counts
   and first token — with an info button beside it for the rest. */
.runrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.runrow > button.info {
  margin-right: 4px;
}
.info-list li.vars {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.92em;
  color: var(--muted);
}
.runcard {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 12px 7px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
}
.runcard:hover {
  border-color: var(--accent-ui);
}
.runcard input {
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.runcard:has(input:focus-visible) {
  outline: 2px solid var(--accent-ui);
  outline-offset: 2px;
}
.runcard strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}
.runcard small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--soft);
}
.runcard.sel {
  border-color: var(--accent-ui);
  box-shadow: inset 3px 0 0 var(--accent-ui);
}
/* RV-6: the tab bar — raised tabs over a baseline, the current one joined to the page with
   the accent across its top. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 12px var(--rv-gut) 0;
  border-bottom: 1px solid var(--rule);
}
.tabs a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 9px 6px;
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--bg);
  color: var(--soft);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a small {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.tabs a:hover {
  color: var(--fg);
}
.tabs a[aria-current="page"] {
  margin-bottom: -1px;
  padding-bottom: 7px;
  border-color: var(--rule);
  border-top: 3px solid var(--accent-ui);
  background: var(--panel);
  color: var(--fg);
  font-weight: 650;
}
.tabs a[aria-current="page"] small {
  color: var(--link);
}
.nsline,
.run-failure {
  margin: 18px var(--rv-gut) 0;
  padding: 12px 16px;
  border: 1px dashed var(--rule);
  border-radius: var(--radius-sm);
  color: var(--soft);
  font-size: var(--lp-small);
}
.lens.perf .run-failure {
  margin: 0 0 var(--lp-s3);
}
.run-failure p {
  margin: 0;
}
.retry {
  margin-top: 8px;
}
/* A view: one column, at most 1 120px (LP-4). */
.lens.perf {
  margin: 0 auto;
  padding: 24px var(--rv-gut) var(--lp-s4);
}
.lens.perf p {
  max-width: 74ch;
}
/* A figure's caption runs the figure's width, its marks after it on the line (frozen v7). */
.lens.perf p.lp-cap {
  max-width: none;
}
.slot + .slot,
.lanes + .ovgrid,
.ovgrid + .slot {
  margin-top: 30px;
}
.view-title,
.lp-head h2 {
  margin: 4px 0 0;
  font-size: var(--lp-title);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.desc,
.lp-desc p {
  margin: 8px 0 0;
  font-size: 1rem;
  color: var(--soft);
}
.view h3 {
  margin: 0 0 10px;
  font-size: var(--lp-section);
}
.pending {
  color: var(--muted);
  font-size: var(--lp-small);
  font-style: italic;
}
.skel {
  display: inline-block;
  min-width: 3em;
  height: 0.9em;
  border-radius: 4px;
  background: var(--rule);
  vertical-align: middle;
}
/* Spec 05 §19 D7-129: a run asked for and not yet installed — the run line's live region
   (a spinner and the content's sentence), the chosen run's card marked, the run shown dimmed
   until the new one installs. Still under reduced motion: the spinner gives way to the words. */
.run-busy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--lp-small);
  color: var(--muted);
}
.run-busy:empty {
  display: none;
}
.spinner,
.runcard.loading strong::after {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--rule);
  border-top-color: var(--accent-ui);
  border-radius: 50%;
  animation: run-spin 0.8s linear infinite;
}
.runcard.loading strong::after {
  content: "";
  margin-left: 8px;
  vertical-align: -1px;
}
.runcard.loading {
  border-color: var(--accent-ui);
  border-style: dashed;
}
@keyframes run-spin {
  to {
    transform: rotate(360deg);
  }
}
.rv [data-perf][aria-busy="true"] {
  opacity: 0.55;
}
p.pending,
.ov-timing > .pending,
.findings > .pending {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--rule);
  border-radius: var(--radius-sm);
}
/* RV-10: the Overview — six steps in three lanes, no connector and no motion. */
.lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.lane {
  padding: 10px 12px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.lane-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px 10px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent-ui);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.box-value {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.box small {
  color: var(--muted);
  font-size: 12px;
}
.box .lk {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12.5px;
}
.lk {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lk-off {
  color: var(--muted);
  text-decoration: none;
}
.ovgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.ov-model p,
.ov-about p {
  margin: 0;
}
.lens.perf p.ovlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
  font-size: var(--lp-small);
}
.findings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.finding {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px 14px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent-ui);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow-wrap: anywhere;
}
.finding p {
  margin: 0;
}
.finding-kind {
  font-size: var(--lp-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.finding-statement {
  line-height: 1.55;
}
.finding-statement [data-ev] {
  white-space: nowrap;
}
.finding p.finding-refusal {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  color: var(--muted);
  font-size: var(--lp-small);
}
.finding-refusal-label {
  margin-right: 6px;
  font-size: var(--lp-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.see-it {
  font-size: var(--lp-small);
}
.lp-block .findings,
.lp > .findings {
  margin-top: var(--lp-s4);
}
/* LP-1…LP-10: a lens. */
.lp-terms {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 18px;
  margin: var(--lp-s2) 0 0;
  padding: 12px var(--lp-s2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: var(--lp-small);
}
.lp-terms dt {
  font-weight: 650;
}
.lp-terms dd {
  margin: 0 0 4px;
  color: var(--soft);
}
.lp-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: var(--lp-s3);
}
.lp-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px var(--lp-s2) 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--panel);
}
.lp-tile p {
  margin: 0;
}
/* Spec 04 §22 D7-128 as refined: a box with more to say carries a small info button in its
   corner — the label row a flex row, the button at its end; nothing positioned (T-18). A click
   opens the card in the top layer (the popover), so the page never moves. */
.lp-tile-top,
.finding-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
button.info {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-style: italic;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
}
button.info:hover,
button.info[aria-expanded="true"] {
  border-color: var(--accent-ui);
  color: var(--accent-ui);
}
.info-pop {
  max-width: min(22rem, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--fg);
  font-size: var(--lp-small);
  box-shadow: 0 8px 28px var(--shadow);
}
/* PF-7 as narrowed (spec 04 §22 D7-130, the developer's ruling of 2026-11-22): the one panel
   opened by an explicit user action may be positioned beside its control. Where the browser
   anchors a popover to its invoker (CSS anchor positioning), the card opens below the info
   button, its right edge at the button's, flipping to the other side or above where it would
   leave the viewport; elsewhere it keeps the platform's centred place. Either way it sits in
   the top layer, so nothing in the page moves. */
@supports (position-area: bottom) {
  .info-pop:popover-open {
    position: fixed;
    inset: auto;
    min-width: min(16rem, calc(100vw - 32px));
    margin: 6px 0;
    position-area: bottom span-left;
    position-try-fallbacks: flip-inline, --info-below, flip-block, --info-above;
  }
}
/* where neither side of the button holds the card (a narrow window), it spans the row below
   (or above) the button, inside the viewport's gutters */
@position-try --info-below {
  position-area: bottom span-all;
  margin: 6px 16px;
}
@position-try --info-above {
  position-area: top span-all;
  margin: 6px 16px;
}
.info-head {
  margin: 0 0 8px;
  font-weight: 700;
}
.info-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.info-pop code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
.lp-tile-label {
  font-size: var(--lp-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-tile-value {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.lp-tile-line {
  font-size: var(--lp-small);
  color: var(--muted);
}
/* A count is `<code>` (DV-R7, §5.4) and reads as the mock's figure where it stands among
   words: in a key number, a heading, the selection row, a term, a fold's summary, a figure's
   foot, a kernel's note, a run card — the surrounding type, no box (the developer's review,
   step 5). Identifiers in tables and lists keep the monospace. */
.lp-tile code,
.lp h2 code,
.lp h3 code,
.lp-selrow code,
.lp-terms code,
details.fold > summary code,
.lp-foot code,
.knote code,
.runcard small code,
.door-desc code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}
.lp-block,
.lp-evidence {
  margin-top: var(--lp-s4);
}
.lp-block h3,
.lp-evidence h3,
.lp-absent h3,
.lp .findings > h3 {
  margin: 0 0 10px;
  font-size: var(--lp-section);
}
.lp-figure {
  min-width: 0;
  padding: 16px 18px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--panel);
}
.lp-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}
/* R-3 (D7-75): a figure scales with its column by its view box. */
.lp-scroll svg {
  display: block;
  width: 100%;
  height: auto;
}
/* PF-6 as amended (D7-83): a figure keeps a legible width on a phone and scrolls sideways in
   its own box, as the frozen mock draws it; from that width up it scales with the column. */
.lp-scroll svg.lp-svg {
  min-width: 640px;
}
.lp-readout {
  min-height: 1.5em;
  margin: var(--lp-s1) 0 0;
  font-size: var(--lp-small);
  font-variant-numeric: tabular-nums;
  color: var(--soft);
}
.lp-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: var(--lp-s1) 0 0;
  font-size: var(--lp-small);
  color: var(--muted);
}
.lp-cap p {
  display: inline;
  margin: 0;
}
.lp-marks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.lp-mark::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--prov-measured);
}
.lp-mark.prov-timing_correlation::after {
  background: var(--prov-timing);
}
.lp-mark.prov-inferred::after {
  background: var(--prov-inferred);
}
.lp-mark.prov-unknown::after {
  background: var(--prov-unknown);
}
.lp-not-drawn {
  margin: 0;
  padding: 14px var(--lp-s2);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-md);
  color: var(--soft);
  font-size: var(--lp-small);
}
.lp-block .warning {
  margin-top: var(--lp-s1);
}
.lp-selrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lp-s1) var(--lp-s2);
  margin-top: 10px;
  padding: 9px var(--lp-s2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: var(--lp-small);
}
.lp-selrow:empty {
  display: none;
}
.lp-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.selection-input {
  width: 72px;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.lp-go {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
/* A derived value's formula (LP-5, DV-R2): its value's hover text (`title`) and shown
   inline with Show labels — never inserted on hover or focus (D7-128). */
.badges-js:not(.labels-on) .lp .formula {
  display: none;
}
details.fold {
  margin-top: var(--lp-s1);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--panel);
}
details.fold > summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px var(--lp-s2);
  font-weight: 650;
  list-style: none;
  cursor: pointer;
  flex-wrap: wrap;
}
details.fold > summary::-webkit-details-marker {
  display: none;
}
details.fold > summary::before {
  content: "+";
  width: 1em;
  color: var(--link);
  font-weight: 700;
}
details.fold[open] > summary::before {
  content: "−";
}
details.fold > summary small {
  font-weight: 400;
  color: var(--muted);
  font-size: var(--lp-small);
}
.fold-in {
  min-width: 0;
  padding: 0 var(--lp-s2) var(--lp-s2);
}
.fold-in > * + * {
  margin-top: 10px;
}
.fold-in h3 {
  margin: 10px 0 6px;
  font-size: 1rem;
}
.lp-table-wrap,
.table-wrap {
  overflow: auto;
  max-height: 360px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.lp-table,
.verdict-table,
table.chain {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--lp-small);
}
.lp-table th,
.verdict-table th {
  position: sticky;
  top: 0;
  padding: 7px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-2);
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}
.lp-table td,
.verdict-table td,
table.chain td,
table.chain th {
  padding: 6px 12px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  vertical-align: baseline;
  text-align: left;
}
.lp-table .ident {
  font-family: var(--font-mono, ui-monospace, monospace);
}
.lp-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lp-table tr.sel td {
  background: color-mix(in srgb, var(--signal) 14%, transparent);
}
.lp-table .pick,
.verdict-table .pick {
  padding: 1px 6px;
}
.lp-foot {
  font-size: var(--lp-small);
  color: var(--muted);
}
.lp-absent {
  margin-top: var(--lp-s3);
  padding: 14px var(--lp-s2);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-md);
}
.lens.perf p.related {
  max-width: none;
}
.related {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--lp-s1) 18px;
  margin-top: var(--lp-s4);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: var(--lp-small);
}
/* LP-6: Trace a value — the live chain and TR-9's verdict table. */
.traversal h2 {
  margin: 10px 0 6px;
  font-size: 1rem;
}
.traversal summary,
.candidates summary,
.cell-more > summary {
  cursor: pointer;
  color: var(--muted);
}
.panel-live {
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.verdict-table caption {
  white-space: normal;
  text-align: left;
  padding: 6px 0;
  color: var(--soft);
}
/* Spec 05 TR-9, §4.9 (SG-6, R97): the verdict table scrolls sideways in its own box, never
   squeezed; a short cell never breaks inside a token, a cell's prose (a terminal, an
   unjoined kernel, a gap's cause) wraps between words only, and H7's list and H8's notes
   sit in closed disclosures whose summaries break only between their parts. */
.verdict-table th,
.verdict-table td {
  padding: 5px 6px;
  white-space: nowrap;
  overflow-wrap: normal;
}
.verdict-table code {
  overflow-wrap: normal;
}
.verdict-table td .muted,
.verdict-table td .terminal,
.verdict-table td .unjoined,
.verdict-table td .gap {
  white-space: normal;
}
.verdict-table .cell-more > summary {
  white-space: normal;
  cursor: pointer;
}
.verdict-table .cell-more > summary > span,
.verdict-table .cell-more > summary:has(> .terminal) {
  white-space: nowrap;
}
.verdict-table .cell-more[open] {
  min-width: 14em;
  white-space: normal;
}
.verdict-table .cell-more[open] > summary {
  margin-bottom: 4px;
}
.verdict-word {
  font-weight: 800;
}
.pick {
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--fg);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.no-gpu {
  margin: 8px 0;
  padding-left: 1.2rem;
}
/* The figures (LP-3): the frozen mock's classes in the frame's tokens; the signal is --signal. */
.lp-svg text {
  font: 12px var(--font-sans);
  fill: var(--fg);
}
.lp-svg text.m {
  fill: var(--muted);
}
.lp-svg text.bold {
  font-weight: 650;
}
.lp-svg text.end {
  text-anchor: end;
}
.lp-svg text.mid {
  text-anchor: middle;
}
.lp-svg .ln {
  stroke: var(--muted);
  stroke-width: 1;
}
.lp-svg .grid {
  stroke: var(--rule);
}
.lp-svg .hl,
.lp-svg .cursor {
  stroke: var(--signal);
  stroke-width: 2;
}
.lp-svg .seg-o,
.lp-svg .seg-a,
.lp-svg .bar.last {
  fill: var(--lp-f1);
}
.lp-svg .seg-b,
.lp-svg .bar.pre,
.lp-svg .gpu {
  fill: var(--lp-f2);
}
.lp-svg .seg-c,
.lp-svg .bar.dec,
.lp-svg .enc,
.lp-svg .dot {
  fill: var(--lp-f3);
}
/* The spread's marks are dots, as the mock draws them: a square with its corners rounded off. */
.lp-svg .dot {
  rx: 50%;
  ry: 50%;
}
.lp-svg .bar.last {
  stroke: var(--lp-f3);
  stroke-dasharray: 3 2;
}
/* L1's pointer over the selected pass: a downward triangle cut from its square (frozen v7). */
.lp-svg rect.pointer {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.lp-svg .bar.sel,
.lp-svg .pointer,
.lp-svg .rec,
.lp-svg .sel {
  fill: var(--signal);
}
.lp-svg.waterfall .gpu {
  fill: var(--panel);
  stroke: var(--lp-f2);
}
.lp-svg .hatch {
  stroke: var(--lp-f1);
  pointer-events: none;
}
.lp-svg .rec.hl {
  fill: var(--accent-2);
}
.lp-svg .tick {
  stroke: var(--lp-f3);
  stroke-width: 1.5;
}
.lp-svg .brk {
  fill: var(--panel);
  pointer-events: none;
}
.lp-svg .brkln {
  stroke: var(--fg);
  stroke-width: 1;
  pointer-events: none;
}
.lp-svg .hit {
  fill: transparent;
  cursor: pointer;
}
.lp-svg .box {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
}
.lp-svg .bar,
.lp-svg .enc,
.lp-svg .gpu,
.lp-svg .rec {
  cursor: pointer;
}
/* The structure lenses' figures (the port's step 2, spec 05 §4.4–§4.7): outlined boxes, dashed
   cells and connectors, the byte map's six greys, the runtime graph's operation shades — each a
   mix of the frame's tokens, never a colour of its own. */
.lp-svg text.mono {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
}
/* The byte map's column keys, turned 28° up to the right about their own start (frozen v7). */
.lp-svg text.rot {
  transform-box: fill-box;
  transform-origin: 0 100%;
  transform: rotate(-28deg);
}
.lp-svg text.bxt {
  font-size: 11px;
  pointer-events: none; /* a box's words pass a click and a hover to the box beneath */
}
.lp-svg .box-o {
  fill: var(--panel);
  stroke: var(--lp-f2);
}
.lp-svg .cell-dash {
  fill: var(--panel);
  stroke: var(--lp-f2);
  stroke-dasharray: 3 2;
}
.lp-svg .sel-box {
  stroke: var(--signal);
  stroke-width: 2;
}
.lp-svg .dash {
  fill: none;
  stroke: var(--lp-f2);
  stroke-dasharray: 4 3;
}
.lp-svg .bk,
.lp-svg .seg-a,
.lp-svg .box-o,
.lp-svg .sel,
.lp-svg [class*="heat-"],
.lp-svg [class*="op-"] {
  cursor: pointer;
}
.lp-svg .heat-0 {
  fill: color-mix(in srgb, var(--fg) 6%, var(--panel));
}
.lp-svg .heat-1 {
  fill: color-mix(in srgb, var(--fg) 20%, var(--panel));
}
.lp-svg .heat-2 {
  fill: color-mix(in srgb, var(--fg) 36%, var(--panel));
}
.lp-svg .heat-3 {
  fill: color-mix(in srgb, var(--fg) 52%, var(--panel));
}
.lp-svg .heat-4 {
  fill: color-mix(in srgb, var(--fg) 68%, var(--panel));
}
.lp-svg .heat-5 {
  fill: color-mix(in srgb, var(--fg) 84%, var(--panel));
}
/* The runtime graph's eight operations, one hue each (spec 05 §19 D7-132). */
.lp-svg .op-0 {
  fill: var(--op-0);
}
.lp-svg .op-1 {
  fill: var(--op-1);
}
.lp-svg .op-2 {
  fill: var(--op-2);
}
.lp-svg .op-3 {
  fill: var(--op-3);
}
.lp-svg .op-4 {
  fill: var(--op-4);
}
.lp-svg .op-5 {
  fill: var(--op-5);
}
.lp-svg .op-6 {
  fill: var(--op-6);
}
.lp-svg .op-7 {
  fill: var(--op-7);
}
.lp-svg .swatch {
  stroke: var(--lp-f3);
  stroke-width: 0.5;
}
.lp-svg .op-x {
  fill: color-mix(in srgb, var(--fg) 16%, var(--panel));
}
.lp-svg .dim {
  opacity: 0.15;
}
.lp-scroll svg.kbar,
.lp-scroll svg.krow-strip {
  min-width: 0;
}
/* PF-6 as amended (D7-83, D7-103): L5's rows keep a figure's width and scroll in their box. */
.lp-scroll .kbars {
  min-width: 640px;
}
.kbars {
  display: grid;
  gap: 4px;
  font-size: var(--lp-small);
}
.krow {
  display: grid;
  /* the note column one width on every row, so every bar starts at one x (each row is its
     own grid); wide enough for the longest note on one line */
  grid-template-columns: minmax(10em, 2fr) minmax(0, 3fr) 18em;
  align-items: center;
  gap: 10px;
}
.krows .krow {
  grid-template-columns: minmax(10em, 2fr) minmax(0, 4fr);
  gap: 10px;
}
.krow.sel .kname code {
  color: var(--signal);
}
.kname code {
  background: none;
  padding: 0;
  font-size: 0.75rem;
}
.kname {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.krows .kname {
  cursor: default;
}
.knote {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nodecards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.nodecard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: var(--lp-small);
  text-align: left;
  cursor: pointer;
}
.chipset {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.lp-chip {
  padding: 1px 9px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: var(--lp-small);
  cursor: pointer;
}
.lp-chip.on {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--panel);
}
.lp-chip code {
  background: none;
  padding: 0;
  color: inherit;
}
.lp-missing {
  margin: 8px 0;
  padding-left: 1.2rem;
}
/* (The port's step 3) L7 KV cache: the selected pass outlined over its whole column (LP-7), the
   configuration as two cards, the guard's sentence (DV-R8). */
.lp-svg .col-sel {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
}
.lp-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.lp-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px var(--lp-s2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--panel);
}
.lp-card > p {
  margin: 0;
}
.kv-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0;
  font-size: var(--lp-small);
}
.kv-rows dt {
  color: var(--muted);
}
.kv-rows dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.kv-guard-note {
  margin-top: 12px;
  font-size: var(--lp-small);
}
/* (The port's step 3) the Bundles pages (spec 05 RV-3 as amended): the evidence map, the file
   as nested boxes, the import checks and the result. */
.lp-svg text.hd {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--muted);
}
.lp-svg .nd {
  cursor: pointer;
}
/* The evidence map's boxes: `rect.bx` only, so no text can take a box's outline (the block
   figure's words are `text.bxt`). */
.lp-svg rect.bx {
  fill: var(--panel);
  stroke: var(--lp-f3);
  rx: 6px;
}
.lp-svg .ln.off,
.lp-svg .nd.off rect.bx {
  stroke-dasharray: 4 3;
  stroke: var(--lp-f2);
}
.lp-svg path.ln {
  fill: none;
}
.lp-svg .nd.off text {
  fill: var(--muted);
}
.lp-svg .nd.hot rect.bx,
.lp-svg .ln.hot {
  stroke: var(--signal);
  stroke-width: 2;
}
.lp-svg .nd.dim,
.lp-svg .ln.dim {
  opacity: 0.3;
}
.bp-readout {
  margin-top: 10px;
  font-size: var(--lp-small);
  color: var(--soft);
}
.bp-readout .lp-go {
  margin-left: 6px;
}
.bp-record h4 {
  margin: var(--lp-s2) 0 6px;
}
.dimension-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dim-name {
  color: var(--muted);
}
.absence-group summary {
  cursor: pointer;
  font-size: var(--lp-small);
}
.absence-list {
  margin: 6px 0 10px;
  padding-left: 1.2rem;
  font-size: var(--lp-small);
}
.fb-map {
  min-width: 0;
  font-size: var(--lp-small);
}
.fb {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--lp-f2);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow-wrap: anywhere;
}
.fb.grp {
  gap: 6px;
  background: var(--bg);
}
.fb > code,
.fb small code {
  padding: 0;
  background: none;
}
/* A member's count reads in its line's type (the step-5 walk); its name keeps the monospace. */
.fb small code {
  font-family: inherit;
  font-size: inherit;
}
.bp-record .fields {
  font-size: var(--lp-small);
}
.fb small {
  color: var(--muted);
  font-size: var(--lp-label);
}
.fb.off {
  border-style: dashed;
  color: var(--muted);
}
.fb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}
.bp-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bp-checks li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 10px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: var(--lp-small);
  color: var(--soft);
}
.bp-checks li code {
  background: none;
  padding: 0;
}
.bp-checks li.passed .st {
  color: var(--accent-ui);
}
.bp-checks li.failed {
  border-color: var(--warn);
}
.bp-checks li.skipped {
  color: var(--muted);
}
.bp-checks .msg {
  grid-column: 2;
  color: var(--fg);
}
.bp-views {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}
.bp-vw {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: var(--lp-small);
}
.bp-vw.off {
  border-style: dashed;
  color: var(--muted);
}
.imp-pick {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.imp-pick .load {
  margin: 0;
}
.imp-pick .load button {
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-ui);
  color: var(--bg);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.imp-hint {
  color: var(--soft);
}
/* (The port's step 4) the front door (spec 05 §4.0.1 as amended; frozen Performance v7): the
   title beside the slide show, the one dark entry band, the nine showcase panels. Phone first;
   the slide show's cards share one grid cell and cascade by CSS alone — held on hover or focus,
   a still stack under reduced motion (DR-2) — so nothing is positioned (PF-7, T-18). */
.door {
  --rv-gut: 16px;
  --lp-s1: 8px;
  --lp-s2: 16px;
  --lp-s3: 24px;
  --lp-s4: 40px;
  --lp-title: 1.45rem;
  --lp-section: 1.125rem;
  --lp-small: 0.8125rem;
  --lp-label: 0.6875rem;
  --lp-f1: color-mix(in srgb, var(--fg) 14%, var(--panel));
  --lp-f2: color-mix(in srgb, var(--fg) 42%, var(--panel));
  --lp-f3: color-mix(in srgb, var(--fg) 78%, var(--panel));
  --step: 12px;
  background: var(--panel);
}
.door-col {
  margin: 0 var(--rv-gut);
}
.door-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 34px var(--rv-gut) 40px;
}
.door-tag,
.door-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--lp-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
}
.door-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ui);
}
.door-title {
  margin: 16px 0 0;
  font-size: 1.8rem;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.door-title em {
  font-style: normal;
  color: var(--link);
}
.door-lede p {
  margin: 18px 0 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--soft);
}
.deck {
  display: grid;
  height: 250px;
  padding: 0 calc(var(--step) * 3) calc(var(--step) * 3) 0;
}
.slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent-ui);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 10px 30px var(--shadow);
  color: inherit;
  text-decoration: none;
  opacity: 0;
  animation: door-cascade 36s infinite;
}
.slide:nth-child(1) {
  animation-delay: -36s;
}
.slide:nth-child(2) {
  animation-delay: -32s;
}
.slide:nth-child(3) {
  animation-delay: -28s;
}
.slide:nth-child(4) {
  animation-delay: -24s;
}
.slide:nth-child(5) {
  animation-delay: -20s;
}
.slide:nth-child(6) {
  animation-delay: -16s;
}
.slide:nth-child(7) {
  animation-delay: -12s;
}
.slide:nth-child(8) {
  animation-delay: -8s;
}
.slide:nth-child(9) {
  animation-delay: -4s;
}
.deck:hover .slide,
.deck:focus-within .slide {
  animation-play-state: paused;
}
@keyframes door-cascade {
  0%,
  9.6% {
    opacity: 1;
    transform: translate(0, 0);
    z-index: 9;
  }
  11.1% {
    opacity: 0;
    transform: translate(-18px, -18px);
    z-index: 9;
  }
  11.2%,
  64% {
    opacity: 0;
    transform: translate(calc(var(--step) * 3), calc(var(--step) * 3));
    z-index: 5;
  }
  66.6%,
  76.2% {
    opacity: 0.35;
    transform: translate(calc(var(--step) * 3), calc(var(--step) * 3));
    z-index: 6;
  }
  77.7%,
  87.3% {
    opacity: 0.6;
    transform: translate(calc(var(--step) * 2), calc(var(--step) * 2));
    z-index: 7;
  }
  88.8%,
  98.4% {
    opacity: 0.85;
    transform: translate(var(--step), var(--step));
    z-index: 8;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
    z-index: 9;
  }
}
.dk {
  font-size: var(--lp-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dq {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.dfig {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-top: 6px;
  pointer-events: none;
}
.dfig svg {
  display: block;
  width: 100%;
  height: 100%;
}
.dfig .pipe,
.dfig .kbars {
  width: 200%;
  transform: scale(0.5);
  transform-origin: top left;
}
/* DR-3: the page's one dark band, dark in both themes (the band's own tokens). */
.door-band {
  --fg: var(--on-navy);
  --soft: var(--on-navy-muted);
  --muted: var(--on-navy-soft);
  --rule: var(--border-on-navy);
  --link: var(--accent);
  --accent-ui: var(--accent);
  --panel: color-mix(in srgb, var(--on-navy) 4%, transparent);
  --prov-measured: var(--band-prov-measured);
  --prov-timing: var(--band-prov-timing);
  --prov-inferred: var(--band-prov-inferred);
  --prov-unknown: var(--band-prov-unknown);
  padding: 30px 0 22px;
  border-block: 1px solid var(--border-on-navy);
  background: var(--hero-shell);
  color: var(--on-navy);
}
.door-band code {
  background: color-mix(in srgb, var(--on-navy) 10%, transparent);
  color: var(--on-navy);
}
.bandhead {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.bandhead small {
  display: block;
  margin-top: 2px;
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--on-navy-muted);
}
.runpick.door-pick {
  margin-top: 20px;
  padding: 0;
  border-top: 0;
}
.door-pick .vchip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-950);
}
.vchip.soon {
  border-style: dashed;
  opacity: 0.5;
  cursor: not-allowed;
}
.vchip.soon code {
  font-size: inherit;
  opacity: 1;
}
.door-pick .runcard.sel {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.own {
  margin: 10px 0 0;
  font-size: var(--lp-small);
}
.ns-msg {
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--border-on-navy);
  border-radius: var(--radius-sm);
  font-size: var(--lp-small);
  color: var(--on-navy-soft);
}
.go-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-on-navy);
}
.btn-open {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 10px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--navy-950);
  font-weight: 700;
  text-decoration: none;
}
.go-row .or {
  flex-basis: 100%;
  margin-top: 6px;
  font-size: var(--lp-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
}
.q {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-on-navy);
  border-radius: 99px;
  color: var(--on-navy);
  font-size: 0.85rem;
  text-decoration: none;
}
.q small {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.q:hover,
.btn-view:hover {
  border-color: var(--accent-ui);
}
.go-row [aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
/* DR-6: the showcase — nine panels, each standing on its own, their backgrounds alternating. */
.door-panel {
  padding: 48px 0 44px;
  text-align: center;
  background: var(--panel);
}
.door-panel:nth-child(even) {
  background: var(--bg);
}
.door-kicker {
  color: var(--muted);
}
.door-kicker b {
  color: var(--link);
}
.door-h {
  margin: 8px auto 12px;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.door-desc {
  margin: 0 auto;
  max-width: 66ch;
  font-size: 0.94rem;
  color: var(--soft);
}
.door-desc + .door-desc {
  margin-top: 8px;
}
.door-figure {
  margin: 22px auto;
  text-align: left;
  box-shadow: 0 10px 30px var(--shadow);
}
.btn-view {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}
/* DR-7 (OV): the six steps in three lanes, joined by schematic connectors. */
.pipe {
  display: grid;
  gap: 14px;
}
.pipe > .pipe-link {
  display: none;
}
.pipe-lane > .label {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--lp-f2);
}
.pipe-pair {
  display: flex;
  align-items: center;
  margin-top: 12px;
}
.pipe-box {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 96px;
  padding: 10px;
  border: 1px solid var(--lp-f2);
  border-top: 3px solid var(--accent-ui);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.pipe-value {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.pipe-link {
  flex: 0 0 12px;
  height: 1px;
  background: var(--lp-f2);
}
@media (prefers-reduced-motion: reduce) {
  .chev {
    transition: none;
  }
  .spinner,
  .runcard.loading strong::after {
    display: none;
    animation: none;
  }
  .slide {
    animation: none;
  }
  .slide:nth-child(1) {
    opacity: 1;
    z-index: 9;
  }
  .slide:nth-child(2) {
    opacity: 0.85;
    z-index: 8;
    transform: translate(var(--step), var(--step));
  }
  .slide:nth-child(3) {
    opacity: 0.6;
    z-index: 7;
    transform: translate(calc(var(--step) * 2), calc(var(--step) * 2));
  }
  .slide:nth-child(4) {
    opacity: 0.35;
    z-index: 6;
    transform: translate(calc(var(--step) * 3), calc(var(--step) * 3));
  }
}
@media (min-width: 801px) {
  .findings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .door {
    --step: 16px;
  }
  .door-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 40px;
    padding-top: 48px;
  }
  .deck {
    height: 290px;
  }
  .door-title {
    font-size: 2.4rem;
  }
  .door-lede p {
    font-size: 1.06rem;
  }
  .door-panel {
    padding: 76px 0 72px;
  }
  .door-h {
    font-size: 1.9rem;
  }
  .door-desc {
    font-size: 1rem;
  }
  .door-figure {
    margin: 30px auto 22px;
  }
}
@media (min-width: 1001px) {
  .door {
    --step: 24px;
    --rv-gut: 24px;
  }
  .door-col,
  .door-hero {
    box-sizing: content-box;
    max-width: 1260px;
    margin: 0 auto;
  }
  .door-col {
    padding: 0 var(--rv-gut);
  }
  .door-figure {
    max-width: 1120px;
  }
  .deck {
    height: 340px;
  }
  .door-title {
    font-size: 2.85rem;
  }
  .pipe {
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
    gap: 0;
  }
  .pipe > .pipe-link {
    display: block;
    align-self: center;
    margin-top: 30px;
  }
  .rv {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    max-width: 1440px;
    margin-inline: auto;
    --rv-gut: 24px;
  }
  .rv.collapsed {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .pane {
    display: block;
    padding: 14px 10px 18px;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }
  .pane-label {
    display: block;
    padding: 10px 8px 4px;
  }
  .pane-sep {
    display: block;
    height: 1px;
    margin: 10px 4px;
    background: var(--rule);
  }
  .pane-item small,
  .notch {
    display: block;
  }
  .pane-item {
    padding: 7px 10px;
  }
  .collapsed .pane {
    padding: 14px 4px 16px;
  }
  .collapsed .pane-label,
  .collapsed .pane-sep,
  .collapsed .pane-name,
  .collapsed .pane-item small {
    display: none;
  }
  .collapsed .notch {
    margin: 0 auto 8px;
  }
  .collapsed .pane-item {
    align-items: center;
    padding: 7px 0;
  }
  .collapsed .pane-icon {
    display: block;
  }
  .runline {
    padding: 12px var(--rv-gut);
  }
  .rright {
    margin-left: auto;
  }
  .runpick {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 14px 32px;
  }
  .pickhead {
    grid-column: 1 / -1;
  }
  .runlist {
    max-height: 384px;
  }
  .runpick:not(.door-pick) > .results {
    padding-left: 32px;
    border-left: 1px solid var(--rule);
  }
  .vrow {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .vrow .n {
    flex: 0 0 96px;
  }
  .tabs {
    gap: 4px;
    padding-top: 18px;
  }
  .tabs a {
    padding: 8px 14px 9px;
    font-size: 15px;
  }
  .tabs a[aria-current="page"] {
    padding-bottom: 10px;
  }
  .lens.perf {
    max-width: 1120px;
    padding-top: 28px;
  }
  .view-title,
  .lp-head h2 {
    font-size: 1.75rem;
  }
  .ovgrid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .lp-keys {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lp-cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .kv-rows {
    grid-template-columns: max-content minmax(0, 1fr);
  }
}
@media (min-width: 1101px) {
  .lanes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .findings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lp .findings {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Past 1 440px the run view is centred under the header, as frozen v7 draws it, and ruled on
   both sides (spec 05 RV-1; D7-135 withdraws D7-125's full-bleed run view). */
@media (min-width: 1441px) {
  .rv {
    border-inline: 1px solid var(--rule);
  }
}
/* LP-5 as amended (D7-69): a shared column's cells carry no dot — each badge is visually
   hidden text, still read by assistive technology, the header's mark standing for the
   column; Show labels reveals them, and forced colours keep them hidden. */
.badges-js:not(.labels-on) .badges-dot td.pv-shared .badge {
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lp-table th small.unit {
  margin-left: 2px;
  font-weight: 400;
  color: var(--muted);
}
