/* GENERATED FILE — do not edit. Source: content/index.html (itself partly generated from site/src/ — regenerate the lot with `npm run build`) */

/* @generated:css:start */
/* GENERATED — do not edit inside this region.
   Source: site/src/css/ (order declared by index.css). Regenerate: npm run build:runbook */

/* 00-tokens.css — Design tokens: brand accents, themeable surface/text tokens, dark theme.
   Extracted verbatim from the runbook's original single inline style block, lines 2-71 of the block. */

:root {
  /* brand accents (constant across themes) */
  --ink:            #232F3E;
  --workload-accent:#0972D3;
  --token-accent:   #8B5CF6;  --token-heading: #7C3AED;
  --model-accent:   #FF9900;
  --positive-accent:#7AA116;
  --expensive:      #D13212;
  --caution-accent: #B7791F;

  /* themeable surface / text tokens (light) */
  --bg:        #ffffff;
  --bg-elev:   #f6f8fa;
  --sidebar-bg:#f6f8fa;
  --surface:   #ffffff;
  --text:      #1c2530;
  --text-muted:#55606b;
  --heading:   #232F3E;
  --border:    #e5e7eb;
  --zebra:     #f9fafb;
  --link:      #0972D3;

  /* component fills (light) */
  --workload-fill: #EAF5FF;
  --token-fill:    #F4EEFF;
  --model-fill:    #FFF4E0;
  --positive-fill: #F0F8E8;
  --caution-fill:  #FDF6E7;
  --expensive-fill:#FDECEA;
  --neutral-fill:  #F3F4F6;
  --code-bg:       #1b2530;
  --code-fg:       #eef2f6;

  --sidebar-w: 288px;
  --rail-w:    212px;
  --measure:   70ch;
  /* main.content's horizontal padding, as a token because the cost structure map cancels it to reach the
     shell edges. Two hard-coded 40s would drift the moment one of them changed. */
  --content-pad: 40px;
  --topbar-h:  56px;
  /* The FIRST sticky line: below the top bar, where the tab bar pins. tabs.mjs overwrites this with the
     bar's measured bottom edge; this value is the no-JS answer, where there is no bar because there are no
     panes, so the breadcrumb pins straight under the top bar exactly as it did before tabs existed. */
  --sticky-1:  var(--topbar-h);
  /* The second sticky line: below the top bar AND below the sticky breadcrumb, for anything that has to
     stick under both (the cost map's command bar). Measured from the breadcrumb's own box in
     30-shell.css -- 10px padding, ~19px line, 1px border. costmap.mjs overwrites this with the measured
     value, which now tracks the tab bar's height through the breadcrumb's own pinned top. */
  --sticky-2:  calc(var(--topbar-h) + 40px);
  /* Where an anchor's target should land: just below the last sticky layer. See 50-content.css. */
  --anchor-offset: calc(var(--sticky-2) + 12px);
  --radius:    10px;
  --shadow:    0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.05);
}

html[data-theme="dark"] {
  --bg:        #0e141b;
  --bg-elev:   #151d27;
  --sidebar-bg:#111823;
  --surface:   #151d27;
  --text:      #dbe4ee;
  --text-muted:#98a6b5;
  --heading:   #f1f5fa;
  --border:    #26313f;
  --zebra:     #131b24;
  --link:      #5aa9f0;
  --token-heading: #c4b5fd;
  --caution-accent: #E0A94A;
  --expensive:      #F87A63;
  --positive-accent:#A6CE4E;

  --workload-fill: #10263c;
  --token-fill:    #241d3a;
  --model-fill:    #33260f;
  --positive-fill: #1b2c17;
  --caution-fill:  #2e2510;
  --expensive-fill:#331815;
  --neutral-fill:  #1b2430;
  --code-bg:       #0a0f15;
  --code-fg:       #e6edf3;
  --shadow:        0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* 10-base.css — Reset, document defaults, links, focus ring, skip link.
   Extracted verbatim from the runbook's original single inline style block, lines 72-92 of the block. */

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: Calibri, "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--heading); }
:focus-visible { outline: 2px solid var(--workload-accent); outline-offset: 2px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--workload-accent); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 12px; }


/* The `hidden` attribute is only honoured by the UA rule `[hidden] { display: none }`, which ANY class
   rule that sets `display` beats on specificity. That is a silent and nasty failure: JS sets
   `el.hidden = true`, the IDL property reads back true, and the element stays on screen anyway. It bit
   a top-bar chip that set `display: inline-flex` and rendered empty on the real site, and the dashboard rows (`.ad-rows { display: grid }`). This makes the attribute
   mean what it says, everywhere, once. */
[hidden] { display: none !important; }

/* 20-topbar.css — Sticky top bar, brand, beta chip, icon buttons.
   Extracted verbatim from the runbook's original single inline style block, lines 93-126 of the block. */

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: 56px; display: flex; align-items: center; gap: 12px;
  padding: 0 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar .brand { font-weight: 700; color: var(--heading); font-size: .98rem; letter-spacing: .01em; }
.topbar .brand .dot { color: var(--model-accent); }
/* pre-release version marker */
.beta-chip {
  display: inline-block; vertical-align: middle;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--caution-accent); border: 1px solid var(--caution-accent);
  border-radius: 999px; padding: 1px 7px; margin-left: 8px; white-space: nowrap;
}
h1 .beta-chip { font-size: .34em; letter-spacing: .1em; padding: 2px 9px; margin-left: 12px; position: relative; top: -.28em; }
.beta-note a.beta-link { color: inherit; text-decoration: underline; font-weight: 700; }
.beta-note {
  font-size: .86rem; color: var(--caution-accent); font-weight: 600;
  margin: -4px 0 16px;
}
.topbar .spacer { flex: 1; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font-size: 1.05rem;
}
.iconbtn:hover { background: var(--bg-elev); }
#navToggle { display: none; }

/* 30-shell.css — App grid, sidebar rail, main content shell, breadcrumb, hero.
   Extracted verbatim from the runbook's original single inline style block, lines 127-204 of the block. */

/* ---- app grid ---- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--rail-w);
  align-items: start;
  max-width: 1440px; margin: 0 auto;
}

/* ---- sidebar ---- */
.sidebar {
  position: sticky; top: 56px; align-self: start;
  height: calc(100vh - 56px); overflow-y: auto;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 18px 14px 40px;
}
.sidebar .filter {
  width: 100%; padding: 8px 10px; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font-size: .9rem;
}
.nav-group-title {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-muted); font-weight: 700; margin: 16px 8px 6px;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a.nav-link {
  display: block; position: relative; padding: 5px 10px; border-radius: 7px;
  color: var(--text-muted); font-size: .9rem; line-height: 1.35;
  border-left: 2px solid transparent;
}
.sidebar a.nav-link:hover { background: var(--bg-elev); color: var(--text); text-decoration: none; }
.sidebar a.nav-link.lvl-layer { font-weight: 600; color: var(--text); margin-top: 4px; }
.sidebar a.nav-link.lvl-lever { padding-left: 22px; font-size: .86rem; }
.sidebar a.nav-link.lvl-sub   { padding-left: 34px; font-size: .82rem; color: var(--text-muted); }
/* collapsible nav groups: actor-layers are collapsed by default to keep the rail short */
.sidebar .nav-head > a.nav-link { padding-left: 28px; cursor: pointer; }
/* the caret is its own full-height hit-zone at the left edge: clicking it
   toggles the group only (handled in JS with preventDefault), while clicking
   the label to its right navigates. */
.sidebar .nav-caret {
  position: absolute; left: 0; top: 0; height: 100%; width: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .58rem; color: var(--text-muted); cursor: pointer;
  transition: transform .15s ease; border-radius: 7px 0 0 7px;
}
.sidebar .nav-head > a.nav-link:hover .nav-caret { color: var(--text); }
.sidebar .nav-head > a.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(90deg); }
.sidebar:not(.js-filtering) li.nav-collapsed { display: none; }
.sidebar a.nav-link.active {
  color: var(--workload-accent); background: var(--workload-fill);
  border-left-color: var(--workload-accent); font-weight: 600;
}
.sidebar a .pill-s {
  font-size: .62rem; font-weight: 700; color: var(--positive-accent);
  border: 1px solid var(--positive-accent); border-radius: 999px;
  padding: 0 5px; margin-left: 6px; vertical-align: middle; white-space: nowrap;
}

/* ---- content ---- */
main.content { padding: 8px var(--content-pad) 96px; min-width: 0; }
.measure { max-width: var(--measure); }

/* Pinned below the tab bar, whose real height tabs.mjs measures and publishes as `--sticky-1`. The
   fallback is the pre-tabs constant, which is also the correct value when JavaScript is off: there is no
   bar to sit under, because there are no panes. */
.breadcrumb {
  position: sticky; top: var(--sticky-1, 56px); z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(6px);
  padding: 10px 0; margin: 0 0 8px; font-size: .82rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb .sep { opacity: .5; margin: 0 7px; }
.breadcrumb strong { color: var(--heading); font-weight: 600; }

/* hero */
.hero { padding: 30px 0 8px; }
.hero h1 { font-size: 2.05rem; line-height: 1.18; margin: 0 0 12px; color: var(--heading); font-weight: 800; letter-spacing: -.01em; }
.hero .lede { font-size: 1.08rem; color: var(--text-muted); max-width: var(--measure); margin: 0 0 24px; }

/* 40-mapcard.css — The at-a-glance 2x3 track/layer map and its legend.
   Extracted verbatim from the runbook's original single inline style block, lines 205-244 of the block. */

/* ---- at-a-glance mapcard ---- */
.mapcard {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow); padding: 18px 18px 20px; margin: 8px 0 30px;
}
.mapcard .maphd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.mapcard .maphd h2 { border: 0; margin: 0; padding: 0; font-size: 1.02rem; color: var(--heading); }
.mapcard .maphd .hint { font-size: .8rem; color: var(--text-muted); }
.mapgrid { display: grid; grid-template-columns: 132px repeat(3, 1fr); gap: 8px; }
.mapgrid .col-h, .mapgrid .row-h {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; color: var(--text-muted); display: flex; align-items: center;
}
.mapgrid .col-h { justify-content: center; padding: 4px; }
.mapgrid .corner { background: transparent; }
.mapgrid .row-h {
  padding: 10px 12px; border-radius: 9px; color: #fff; font-weight: 700;
  text-transform: none; letter-spacing: 0; font-size: .84rem; line-height: 1.25;
}
.mapgrid .row-h.t1 { background: linear-gradient(135deg, var(--model-accent), #d97a06); }
.mapgrid .row-h.t2 { background: linear-gradient(135deg, var(--token-accent), #6d28d9); }
.mapgrid a.cell {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 12px 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font-size: .84rem; font-weight: 600;
  min-height: 62px;
}
.mapgrid a.cell:hover { text-decoration: none; border-color: var(--workload-accent); background: var(--workload-fill); transform: translateY(-1px); }
.mapgrid a.cell .cell-hint { font-size: .82rem; font-weight: 600; color: var(--text-muted); line-height: 1.3; }
.mapgrid a.cell:hover .cell-hint { color: var(--workload-accent); }
a.sf-bar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 9px; border: 1px dashed var(--positive-accent);
  background: var(--positive-fill); color: var(--positive-accent); font-size: .86rem; font-weight: 700;
}
a.sf-bar:hover { text-decoration: none; border-style: solid; transform: translateY(-1px); }
a.sf-bar .sf-note { font-weight: 500; color: var(--text-muted); font-size: .78rem; }
a.sf-bar.rs-bar { border-color: var(--workload-accent); background: var(--workload-fill); color: var(--workload-accent); }
.maplegend { margin-top: 12px; font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }


/* ---- polish: layer glyphs, per-cell weight, track-aware hover ----
   The map was a static picture of the taxonomy. These additions make it say how much work each cell holds
   and, once the reader has begun, how far through it they are -- see decorateMapcard() in
   site/src/js/wayfinder.mjs. */

.mapgrid .col-h { display: flex; align-items: center; justify-content: center; gap: .4rem; }
/* Each glyph states something true about its layer: a call crossing a priced boundary, a loop that
   repeats, a person deciding how often it runs. Stroked with currentColor so it inherits the header's
   colour in both themes and prints. */
.col-glyph { width: 15px; height: 15px; flex: 0 0 auto; overflow: visible; }
.col-glyph .cg-arrow { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.col-glyph .cg-head { fill: currentColor; stroke: none; }
.col-glyph .cg-edge { stroke: currentColor; stroke-width: 1.4; opacity: .35; stroke-dasharray: 2.5 2.5; }
.mapgrid .col-h-t { white-space: nowrap; }

.mapgrid a.cell { display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; }
.cell-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .55rem; font-variant-numeric: tabular-nums; }
.cell-n { font-size: .72rem; font-weight: 700; color: var(--text-muted); }
.cell-cov { font-size: .72rem; font-weight: 800; color: var(--heading); }
.cell-gaps {
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  color: var(--expensive); border: 1px solid var(--expensive); background: var(--expensive-fill);
  border-radius: 999px; padding: 0 6px;
}

/* Hover in the cell's OWN track colour rather than one accent for all six, so the grid keeps saying which
   row you are reaching into. */
.mapgrid a.cell[data-track="t1"]:hover { border-color: var(--model-accent); }
.mapgrid a.cell[data-track="t1"]:hover .cell-hint { color: var(--model-accent); }
.mapgrid a.cell[data-track="t2"]:hover { border-color: var(--token-accent); }
.mapgrid a.cell[data-track="t2"]:hover .cell-hint { color: var(--token-heading); }

@media (max-width: 620px) { .mapgrid .col-h { justify-content: flex-start; } }

/* Anchor landing offset. Every heading and section offsets its scroll target by --anchor-offset so a jumped-to
   heading is not left underneath the sticky bars. This was a hard-coded 120px, tuned when the sticky stack was
   the top bar plus the breadcrumb; adding the tab bar made the stack ~44px taller and every anchor landed with
   its heading hidden. Derived from --sticky-2 (the measured bottom of the breadcrumb, which itself tracks the
   tab bar's height) so it cannot go stale the next time a sticky layer is added or removed. */
/* 50-content.css — Runbook prose: headings, callouts, checklists, tables, worked-cost cards, references.
   Extracted verbatim from the runbook's original single inline style block, lines 245-399 of the block. */

.disclaimer {
  font-size: .85rem; color: var(--text-muted);
  border-left: 3px solid var(--border); background: var(--bg-elev);
  padding: .45rem .9rem; margin: 1rem 0 1.2rem; border-radius: 0 6px 6px 0;
  max-width: var(--measure);
}

/* headings inside content */
main.content h2 {
  font-size: 1.5rem; margin: 2.6rem 0 .7rem; padding-bottom: .35rem;
  border-bottom: 3px solid var(--workload-accent); color: var(--heading);
  scroll-margin-top: var(--anchor-offset); font-weight: 750;
}
main.content section { scroll-margin-top: var(--anchor-offset); }
main.content h3 { font-size: 1.16rem; margin: 1.9rem 0 .4rem; color: var(--heading); scroll-margin-top: var(--anchor-offset); }
main.content h3.layer {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800;
  color: var(--workload-accent); margin: 2.2rem 0 .3rem;
  padding-bottom: .3rem; border-bottom: 1px dashed var(--border);
}
main.content h4 { font-size: 1.14rem; margin: 1.9rem 0 .45rem; color: var(--heading); font-weight: 700; scroll-margin-top: var(--anchor-offset); }
main.content h5 { font-size: 1.02rem; margin: 1.5rem 0 .4rem; color: var(--token-heading); font-weight: 700; scroll-margin-top: var(--anchor-offset); }
main.content p { margin: .7rem 0; max-width: var(--measure); }

/* hover/focus anchor affordance (added by JS) */
.heading-anchor {
  opacity: 0; margin-left: .4rem; font-weight: 400; color: var(--text-muted);
  text-decoration: none; transition: opacity .12s;
}
h2:hover .heading-anchor, h3:hover .heading-anchor, h4:hover .heading-anchor, h5:hover .heading-anchor,
.heading-anchor:focus { opacity: .7; }
.heading-anchor:hover { opacity: 1; text-decoration: none; }

/* last-verified badge */
.verified {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted); background: var(--neutral-fill);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
  margin-left: .55rem; vertical-align: middle; white-space: nowrap;
}

/* action checklist */
ul.checklist {
  list-style: none; margin: .6rem 0 .9rem; padding: .75rem .95rem .75rem .95rem;
  max-width: var(--measure); background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 10px;
}
ul.checklist li {
  margin: .3rem 0; padding-left: 1.55rem; position: relative; font-size: .95rem;
}
ul.checklist li::before {
  content: "\2713"; position: absolute; left: .2rem; top: 0;
  color: var(--positive-accent); font-weight: 800;
}
ul.checklist .cl-title {
  display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--positive-accent); margin-bottom: .3rem; padding-left: 0;
}
ul.checklist li.cl-title::before { content: none; }

/* collapsed challenge / why-it-costs narrative */
details.lever-why { margin: .5rem 0 .8rem; max-width: var(--measure); }
details.lever-why > summary {
  cursor: pointer; list-style: none; user-select: none; font-size: .86rem; font-weight: 700;
  color: var(--text-muted); padding: .35rem .6rem; border-radius: 7px;
  border: 1px dashed var(--border); display: inline-block;
}
details.lever-why > summary::-webkit-details-marker { display: none; }
details.lever-why > summary::before { content: "\25B8"; margin-right: .45rem; color: var(--workload-accent); display: inline-block; transition: transform .15s; }
details.lever-why[open] > summary::before { transform: rotate(90deg); }
details.lever-why > summary:hover { color: var(--text); border-color: var(--workload-accent); }
details.lever-why .why-body { border-left: 3px solid var(--border); margin: .5rem 0 0 .3rem; padding: .1rem 0 .1rem 1rem; }

p.saves {
  background: var(--positive-fill); border-left: 4px solid var(--positive-accent);
  padding: .55rem .95rem; margin: .8rem 0 1.4rem; border-radius: 0 6px 6px 0; max-width: var(--measure);
}
.note {
  background: var(--neutral-fill); border: 1px solid var(--border);
  border-left: 4px solid var(--ink); padding: .95rem 1.15rem; border-radius: 0 8px 8px 0;
  margin: 1.4rem 0; max-width: var(--measure);
}
html[data-theme="dark"] .note { border-left-color: var(--text-muted); }
.note.track   { background: var(--workload-fill); border-left-color: var(--workload-accent); }
.note.callout { background: var(--token-fill);    border-left-color: var(--token-heading); }
.note p { margin: .3rem 0; }

.track-banner { border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; max-width: var(--measure); }
.track-banner p { max-width: none; }
/* Replaces two static inline margin attributes that the site build had to hoist into generated
   .rb-sN classes, because style-src 'self' blocks inline style attributes. Authoring them as real
   classes means the hoister has nothing to do. */
.track-banner p.tb-lead { margin: 0; }
.track-banner p.tb-note { margin: .7rem 0 0; }
.track-banner.t1 { background: var(--model-fill);  border: 1px solid var(--model-accent); }
.track-banner.t2 { background: var(--token-fill);  border: 1px solid var(--token-accent); }
.track-banner.shared { background: var(--neutral-fill); border: 1px solid var(--border); }

figure {
  margin: 1.7rem 0; padding: 1.1rem; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow-x: auto;
}
figcaption {
  margin-top: .85rem; font-size: .9rem; font-style: italic; color: var(--text-muted);
  border-top: 1px dashed var(--border); padding-top: .6rem;
}
figure.diagram { max-width: 860px; margin-left: auto; margin-right: auto; }

/* worked-example cards */
.worked-card {
  border: 1px solid var(--token-accent); border-radius: 12px; background: var(--surface);
  box-shadow: var(--shadow); padding: 1rem 1.2rem 1.1rem; margin: 1.4rem 0; max-width: 780px;
  overflow-x: auto;
}
.worked-card .wc-badge {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: #fff; background: var(--token-accent);
  border-radius: 999px; padding: 2px 10px; margin-bottom: .4rem;
}
.worked-card .wc-title { font-size: 1.05rem; font-weight: 750; color: var(--heading); margin: 0 0 .5rem; }
.worked-card table { margin: .8rem 0; }
.worked-card p, .worked-card ul { max-width: none; }

table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .94rem; }
thead th { background: var(--ink); color: #fff; text-align: left; padding: .55rem .7rem; font-weight: 600; }
html[data-theme="dark"] thead th { background: #0a0f15; }
tbody td { padding: .5rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--zebra); }

.tag {
  display: inline-block; font-size: .78rem; font-weight: 600;
  padding: .12rem .55rem; border-radius: 999px; white-space: nowrap;
}
.tag.shared { background: var(--positive-fill); color: var(--positive-accent); border: 1px solid var(--positive-accent); }

pre.code {
  background: var(--code-bg); color: var(--code-fg); padding: 1rem 1.1rem; border-radius: 10px;
  overflow-x: auto; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .89rem; line-height: 1.55; border: 1px solid var(--border); max-width: var(--measure);
}
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--neutral-fill); padding: .05rem .35rem; border-radius: 4px; font-size: .9em;
}
pre.code code { background: none; padding: 0; }

main.content ul { margin: .7rem 0; padding-left: 1.4rem; max-width: var(--measure); }
main.content li { margin: .35rem 0; }

/* references */
a.ref { font-size: .8em; vertical-align: super; line-height: 1; font-weight: 600; white-space: nowrap; }
section#references ol { padding-left: 1.6rem; max-width: none; }
section#references li { margin: .45rem 0; font-size: .93rem; scroll-margin-top: var(--anchor-offset); }
section#references li:target { background: var(--workload-fill); border-radius: 6px; }

footer.page {
  margin-top: 4rem; padding: 1.6rem 0 0; border-top: 2px solid var(--border);
  font-size: .9rem; color: var(--text-muted); max-width: var(--measure);
}

/* 60-chrome.css — Right rail, back-to-top, mobile scrim, responsive breakpoints.
   Extracted verbatim from the runbook's original single inline style block, lines 400-443 of the block. */

/* ---- right rail ---- */
.rail { position: sticky; top: 56px; align-self: start; height: calc(100vh - 56px); overflow-y: auto; padding: 26px 18px 40px; }
.rail .rail-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); font-weight: 700; margin-bottom: 10px; }
.rail ul { list-style: none; margin: 0; padding: 0; }
/* Scoped to the no-JS fallback list on purpose. These rules used to apply to every <a> in the rail, which
   put a grey left border and 10px of padding on each of the wayfinder's own links too. */
.rail .rail-fallback a { display: block; padding: 4px 10px; border-left: 2px solid var(--border); color: var(--text-muted); font-size: .82rem; line-height: 1.3; }
.rail .rail-fallback a:hover { color: var(--text); text-decoration: none; }
.rail .rail-fallback a.active { color: var(--workload-accent); border-left-color: var(--workload-accent); font-weight: 600; }

/* ---- back to top ---- */
#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  cursor: pointer; font-size: 1.1rem; opacity: 0; pointer-events: none; transition: opacity .18s;
}
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { background: var(--bg-elev); }

/* ---- scrim for mobile drawer ---- */
.scrim { display: none; position: fixed; inset: 56px 0 0; background: rgba(10,15,20,.45); z-index: 55; }
.scrim.show { display: block; }

/* ---- responsive ---- */
@media (max-width: 1180px) {
  .app { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .rail { display: none; }
}
@media (max-width: 860px) {
  #navToggle { display: inline-flex; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: 56px; left: 0; z-index: 58;
    width: min(86vw, var(--sidebar-w)); height: calc(100vh - 56px);
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  /* Setting the token rather than the padding keeps the cost map's full-bleed in step: it cancels
     --content-pad, so a literal 20px here would leave the board 20px wider than the shell. */
  main.content { --content-pad: 20px; padding: 8px var(--content-pad) 88px; }
  .hero h1 { font-size: 1.7rem; }
  .mapgrid { grid-template-columns: 1fr; }
  .mapgrid .col-h, .mapgrid .corner { display: none; }
  .mapgrid .row-h { border-radius: 9px 9px 0 0; }
  .mapgrid a.cell { min-height: 0; }
}

/* 60-dashboard.css — the cross-layer assessment dashboard (site/src/js/assessment.mjs).

   Why it exists: every per-layer summary panel is scoped to its own layer by design, so before this
   there was nowhere in the runbook that showed the six layers together, and no way to export the whole
   assessment as one document. A reviewer finishing a session wants both.

   It reuses the per-layer panel's chrome (.assess-btn, .ar-actions, .assess-sub) rather than inventing
   a parallel set, so the two surfaces read as the same system. */

.assess-dashboard {
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev);
  padding: 1rem 1.2rem 1.2rem; margin: 1.2rem 0 1.6rem; box-shadow: var(--shadow);
}

.ad-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .8rem; margin: .9rem 0 .2rem;
}

/* Headline metrics. A big number with a small label is the template answer for a stat tile, and it is
   the right answer here: three scalars with no shape of their own, read at a glance before the rows. */
.ad-metrics { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.ad-metric { display: flex; flex-direction: column; line-height: 1.15; }
.ad-metric-n { font-size: 1.5rem; font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; }
.ad-metric-l { font-size: .74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.ad-metric.is-gap .ad-metric-n { color: var(--expensive); }

.ad-rows { margin-top: 1rem; display: grid; gap: .85rem; }
.ad-row { padding: .6rem .75rem .5rem; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.ad-row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.ad-row-title { font-weight: 700; font-size: .95rem; }
.ad-row-n { font-size: .8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
/* Compact rows carry the bar only; the full legend appears once, on the per-layer panels, rather than
   six times down a list where it would outweigh the data. */
.ad-row .cov { margin: .45rem 0 0; }

.ad-weakest {
  margin: 1rem 0 0; padding: .55rem .9rem; font-size: .88rem;
  background: var(--caution-fill); border-left: 4px solid var(--caution-accent);
  border-radius: 0 6px 6px 0; color: var(--text);
}

@media (max-width: 620px) {
  .ad-head { flex-direction: column; align-items: flex-start; }
  .ad-metrics { gap: 1rem; }
}

/* 65-wayfinder.css — "where am I in this runbook", at two scales.

   Reuses Figure 2's metro metaphor (a station on a spine per actor-layer) as a persistent instrument
   rather than a one-off illustration in the overview. See site/src/js/wayfinder.mjs for why.

   Motion: the spine of the CURRENT layer fills as the reader scrolls through it, driven by a
   --trk-progress custom property the module writes once per animation frame. Stations transition when
   the active layer changes. Everything is disabled wholesale under prefers-reduced-motion at the foot of
   this file — the map stays fully readable without any of it, because position is carried by weight,
   colour and a filled dot, never by movement. */

/* ---- the "enter a track" choice ---- */
.trk-choose {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 1.2rem 0 1.6rem; max-width: var(--measure);
}
.trk-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 1rem 1.1rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow); text-decoration: none;
  border-top: 4px solid var(--border);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.trk-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(16,24,40,.10); }
.trk-card-t1 { border-top-color: var(--model-accent); }
.trk-card-t2 { border-top-color: var(--token-accent); }
.trk-card-t1:hover { border-color: var(--model-accent); }
.trk-card-t2:hover { border-color: var(--token-accent); }
.trk-card-num { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.trk-card-name { font-size: 1.05rem; font-weight: 750; color: var(--heading); line-height: 1.25; }
.trk-card-econ { font-size: .86rem; color: var(--text-muted); }
.trk-card-meta { font-size: .76rem; color: var(--text-muted); margin-top: .35rem; font-variant-numeric: tabular-nums; }
.trk-card-go { font-size: .82rem; font-weight: 700; color: var(--link); margin-top: .5rem; }
/* The card for the track you are already focused on says so, instead of inviting the same choice again. */
html[data-scope="t1"] .trk-card-t1::after,
html[data-scope="t2"] .trk-card-t2::after {
  content: "You are working here"; align-self: flex-start; margin-top: .45rem;
  font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--positive-accent); border: 1px solid var(--positive-accent);
  background: var(--positive-fill); border-radius: 999px; padding: 1px 8px;
}
@media (max-width: 720px) { .trk-choose { grid-template-columns: 1fr; } }

/* ---- sidebar: scope filtering and depth ---- */
/* The sidebar used to stack two navigations: a document table of contents listing both tracks, and a
   track chooser above it. They undercut each other. One scope at a time makes the mode explicit and drops
   levers from three levels of indentation to two. See site/src/js/wayfinder.mjs.

   The in-sidebar scope SWITCHER those rules described is gone, along with its `.scope-switch` / `.scope-opt`
   styling. The tab bar (66-tabs.css) names all five panes at the top of the content, so a switcher naming
   three of them in the left rail was the second instrument answering one question -- the same duplication
   that got the coverage counts removed from here. The filtering it drove is now driven by the tab bar, and it
   got stricter with the move: see "THE SIDEBAR SHOWS ONLY THE PANE YOU ARE IN" below. */

/* No counts here. The rows used to carry `10 levers 3/30 3g`, duplicating in the left periphery what the
   right rail states live -- so the sidebar is navigation and the numbers live on one side. Progress on the
   track you are NOT in is answered by the cost structure map's per-track chips, which also name the gaps
   and let you jump to them. See site/src/js/wayfinder.mjs. */

/* ---- sidebar: the link to the lever board ---- */
/* This group used to be shown in every scope, on the reasoning that "take me to a specific lever" is a need
   that does not depend on which track you picked. That held while the sidebar was the only route to the board.
   It does not now: the tab bar names the Assessment pane from everywhere, so the group appeared in four panes
   it did not belong to, each time as a heading for a pane the reader was not in. It shows in its own pane
   only -- see the filtering rule below. */
/* `a.nav-map`, not `.nav-map`: `.sidebar a.nav-link` in 30-shell.css sets `display: block` at the same
   specificity plus an element, so a class-only selector loses and the sub-label runs on into the label. */
.sidebar a.nav-map { display: grid; gap: 1px; }
.sidebar a.nav-map .nav-map-sub { font-size: .7rem; color: var(--text-muted); font-weight: 400; line-height: 1.3; }
.sidebar a.nav-map.active .nav-map-sub { color: var(--workload-accent); }

/* THE SIDEBAR SHOWS ONLY THE PANE YOU ARE IN. ONE RULE, NOT TWENTY PAIRS.
   A link in a pane's own navigation that jumps you to a different pane is not navigation, it is a trapdoor:
   the reader clicks a heading in the list they are reading and the whole surface changes under them. The tab
   bar is the thing that changes pane, and it says so.

   Written as "hide every group, then show the one that matches" rather than as a hide-rule per (scope, group)
   pair. The pair form needed 20 selectors for 5 panes, was missing several, and would have needed 6 more the
   next time a pane was added — the Assessment group shipped visible in four panes it did not belong to for
   exactly that reason. This form cannot be incomplete: a group with no matching scope is simply never shown.

   NAVIGATION only. Which sections are in the document is untouched, and a pane's content is hidden by
   66-tabs.css, never removed — see the docblock in site/src/js/tabs.mjs. */
html[data-scope] .sidebar [data-nav-scope] { display: none; }
html[data-scope="overview"] .sidebar [data-nav-scope="overview"],
html[data-scope="t1"]       .sidebar [data-nav-scope="t1"],
html[data-scope="t2"]       .sidebar [data-nav-scope="t2"] { display: revert; }

/* NO GROUP TITLE IN ANY PANE, once the tab bar exists.
   Only the Overview title used to be hidden, because the switcher sat directly above it saying the same word.
   The tab bar replaced the switcher and names all five panes, so every remaining title repeats what is already
   on screen -- and two of them had drifted from it: the TLDR pane's sidebar said "Overview" while its tab said
   "TLDR", and the track panes showed no title at all, so the treatment was inconsistent as well as redundant.

   Only while a pane is active. With JavaScript off there is no tab bar and no pane, and these titles are the
   only structure the sidebar has, so `html[data-scope]` gates the rule rather than hiding them outright. */
html[data-scope] .sidebar .nav-group-title { display: none; }

/* Orientation mode is a short list. A search box over four links is chrome pretending to be a feature, and
   the Cost map pane's two links are shorter still. */
html[data-scope="overview"] .sidebar .filter,
html[data-scope="map"] .sidebar .filter { display: none; }

/* `.sidebar .nav-results` used to style a call-to-action link to the dashboard here. The dashboard sits in the
   Assessment pane now, which the tab bar names from everywhere, so the route to it is the tab -- not a link in
   another pane's sidebar, and not the rail footer either. A DOM check asserts no link in any pane's sidebar or
   rail leaves that pane. */

/* Depth reduction. In a track scope the layer link IS the section header, so it stops looking like a
   sibling of the levers underneath it and the levers lose a level of indent. */
html[data-scope="t1"] .sidebar .nav-link.lvl-lever,
html[data-scope="t2"] .sidebar .nav-link.lvl-lever {
  font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-muted); margin-top: .5rem;
}
html[data-scope="t1"] .sidebar .nav-link.lvl-sub,
html[data-scope="t2"] .sidebar .nav-link.lvl-sub { padding-left: 14px; }
/* The group title repeats what the switcher already states in bold directly above it. Hidden rather than
   restyled, because two headings for one thing is the clutter this redesign set out to remove. */
html[data-scope="t1"] .sidebar .nav-group-title[data-nav-scope="t1"],
html[data-scope="t2"] .sidebar .nav-group-title[data-nav-scope="t2"] { display: none; }

/* The track's own <h2> link is a footnote once the track IS the scope. */
html[data-scope="t1"] .sidebar .nav-link.lvl-layer,
html[data-scope="t2"] .sidebar .nav-link.lvl-layer { font-size: .76rem; font-weight: 600; color: var(--text-muted); }

/* ---- the rail map ---- */
.rail-fallback[hidden] { display: none; }
.trk-map { margin: 2px 0 0; }

.trk-stop {
  position: relative; display: flex; gap: 10px;
  padding: 0 0 14px 0;
}
/* The spine. Drawn on the row so it connects consecutive stations, and stops at the last one. */
.trk-stop::before {
  content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px;
  background: var(--border);
}
.trk-stop:last-of-type::before { display: none; }
/* The travelled part of the current layer's spine, scaled by scroll progress. */
.trk-stop.is-here::after {
  content: ""; position: absolute; left: 5px; top: 14px; width: 2px;
  height: calc(var(--trk-progress, 0) * 100%);
  background: var(--workload-accent);
  transition: height .12s linear;
}

.trk-dot {
  flex: 0 0 auto; width: 12px; height: 12px; margin-top: 3px; border-radius: 50%;
  background: var(--bg-elev); border: 2px solid var(--border);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.trk-stop.is-here .trk-dot {
  background: var(--workload-accent); border-color: var(--workload-accent);
  transform: scale(1.18);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--workload-accent) 18%, transparent);
}

.trk-stop-body { min-width: 0; flex: 1 1 auto; }
.trk-stop-name { font-size: .82rem; font-weight: 700; color: var(--text-muted); text-decoration: none; }
.trk-stop-name:hover { text-decoration: none; color: var(--text); }
.trk-stop.is-here .trk-stop-name { color: var(--heading); }
.trk-stop-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.trk-stop-n { font-size: .72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.trk-stop-gaps {
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  color: var(--expensive); border: 1px solid var(--expensive); background: var(--expensive-fill);
  border-radius: 999px; padding: 0 6px;
}

/* Coverage ring */
.trk-ring { flex: 0 0 auto; display: block; }
.trk-ring-track { fill: none; stroke: var(--border); stroke-width: 3; }
.trk-ring-fill {
  fill: none; stroke: var(--workload-accent); stroke-width: 3; stroke-linecap: round;
  transition: stroke-dashoffset .5s cubic-bezier(.4, 0, .2, 1);
}
.trk-ring.is-done .trk-ring-fill { stroke: var(--cov-yes); }

/* Only the current layer lists its levers; 24 of them at once would rebuild the problem the old static
   rail had. */
.trk-levers { list-style: none; margin: 7px 0 0; padding: 0 0 0 1px; display: grid; gap: 3px; }
/* Two lines maximum. Several lever names run to three lines in a 212px rail, and nine of those turns the
   map into a wall of text that has to be scrolled to see the next station -- which defeats the point of a
   map. The full name is on the heading it links to, and in the title attribute. */
.trk-lever {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .74rem; line-height: 1.32; color: var(--text-muted);
  text-decoration: none; padding: 1px 0 1px 9px; border-left: 2px solid transparent;
}
.trk-lever:hover { text-decoration: none; color: var(--text); border-left-color: var(--border); }
.trk-lever.is-here {
  color: var(--heading); font-weight: 700; border-left-color: var(--workload-accent);
}
/* The rail footer's two "ways out" (the dashboard, the lever board) are gone with the styles that dressed
   them. Both destinations moved to the Assessment pane, so a rail titled "On this page" was offering links
   that were not on the page. See renderRail() in site/src/js/wayfinder.mjs. */


/* ---- the sticky stepper ---- */
/* Shown only where the rail is not: below the 1180px breakpoint that hides the rail (see 60-chrome.css). */
.trk-stepper { display: none; }
@media (max-width: 1180px) {
  .trk-stepper:not([hidden]) {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    /* Same measured offset as the breadcrumb -- see --sticky-1 in tabs.mjs. */
    position: sticky; top: var(--sticky-1, 56px); z-index: 40;
    margin: 0 0 4px; padding: 7px 0;
    background: var(--surface);
    backdrop-filter: none;
    border-bottom: 1px solid var(--border);
  }
}
.stp-track { font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.stp-status { display: none; font-size: .72rem; font-weight: 700; color: var(--text); }
.stp-steps { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.stp-step {
  display: flex; align-items: center; gap: 5px; text-decoration: none;
  font-size: .74rem; color: var(--text-muted); padding: 2px 8px 2px 6px; border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.stp-step:hover { text-decoration: none; background: var(--bg-elev); color: var(--text); }
.stp-step + .stp-step { margin-left: 10px; position: relative; }
/* The connector between steps, so it reads as one line rather than three chips. */
.stp-step + .stp-step::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 10px; height: 2px;
  background: var(--border);
}
.stp-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-elev); border: 2px solid var(--border);
  transition: background .2s ease, border-color .2s ease;
}
.stp-step.is-here { background: var(--workload-fill); color: var(--heading); font-weight: 700; }
.stp-step.is-here .stp-dot { background: var(--workload-accent); border-color: var(--workload-accent); }
.stp-name { white-space: nowrap; }
.stp-n { font-variant-numeric: tabular-nums; opacity: .8; }
@media (max-width: 520px) {
  .stp-status { display: inline; flex: 1 1 auto; }
  .stp-name { display: none; }
}

/* ---- motion off ---- */
/* Position is never carried by movement alone, so removing all of it costs the reader nothing. */
@media (prefers-reduced-motion: reduce) {
  .trk-card, .trk-dot, .trk-ring-fill, .stp-step, .stp-dot, .trk-stop.is-here::after { transition: none; }
  .trk-card:hover { transform: none; }
  .trk-stop.is-here .trk-dot { transform: none; }
  .trk-stop.is-here::after { display: none; }
}

/* 66-tabs.css — three static-safe routes: all tracks, Track 1 and Track 2. */

@media screen {
  html[data-scope="overview"] main.content > [data-tab]:not([data-tab~="overview"]),
  html[data-scope="t1"]       main.content > [data-tab]:not([data-tab~="t1"]),
  html[data-scope="t2"]       main.content > [data-tab]:not([data-tab~="t2"]) { display: none; }
}

.tabs {
  position: sticky; top: 56px; z-index: 45;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  margin: 0 0 .1rem; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow);
}
.tab {
  min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 9px 12px; border: 1px solid transparent; border-radius: 9px;
  color: var(--text-muted); text-decoration: none; line-height: 1.2;
}
.tab:hover { color: var(--heading); background: var(--bg-elev); text-decoration: none; }
.tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tab[aria-current="page"] {
  color: var(--heading); background: var(--route-fill); border-color: var(--route-accent); font-weight: 800;
}
.tab-lead { font-size: .86rem; font-weight: 800; }
.tab-sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; color: var(--text-muted); }

@media screen { html[data-scope="overview"] .rail { display: none; } }
@media screen and (min-width: 861px) {
  html[data-scope="overview"] .app { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .tabs { grid-template-columns: 1fr; position: relative; top: auto; }
  .tab { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .tab-sub { text-align: right; }
}
@media print { .tabs { display: none; } }

/* 67-lever-sheet.css — the TLDR pane's list of all 28 levers and what each one saves.

   Two things this file deliberately does NOT do.

   It does not style `#key-levers > h2`. That heading is now the first `main.content section > h2` in the
   document, which is the element verify-runbook-dom.mjs measures to prove the stylesheet loaded at all
   (it asserts a 3px accent border from 50-content.css). Overriding it here would make that check pass or
   fail on this file rather than on the one it is about.

   It does not break out of the text measure. The sheet is a reading surface, not an instrument: the cost
   structure map is the full-bleed one, and having two of them competing was the problem the wayfinder
   redesign was about. */

.lever-sheet { margin: 1.1rem 0 0; }

/* ---- track ---- */
.ls-track { margin: 0 0 1.5rem; }

.ls-track-h {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
  padding: 0 0 .35rem; margin: 0 0 .6rem;
  border-bottom: 2px solid var(--border);
}
.ls-track-num { font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ls-track-name { font-size: .95rem; font-weight: 700; color: var(--heading); }
/* The economics line, read from the choice card that already states it. Pushed right so the row reads
   "who you are ................ what you own". */
.ls-track-econ { margin-left: auto; font-size: .76rem; color: var(--text-muted); }

.ls-t1 .ls-track-num { color: var(--model-accent); }
.ls-t1 .ls-track-h { border-bottom-color: color-mix(in srgb, var(--model-accent) 45%, var(--border)); }
.ls-t2 .ls-track-num { color: var(--token-accent); }
.ls-t2 .ls-track-h { border-bottom-color: color-mix(in srgb, var(--token-accent) 45%, var(--border)); }

/* ---- layer ---- */
.ls-layer, .ls-principles { margin: 0 0 .85rem; }

.ls-layer-h {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem;
  margin: 0 0 .25rem;
}
.ls-layer-name {
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--heading);
}
.ls-layer-name:hover { color: var(--workload-accent); }
.ls-layer-n {
  font-size: .66rem; font-weight: 600; color: var(--text-muted);
  padding: 1px 6px; border: 1px solid var(--border); border-radius: 999px;
}
.ls-layer-hint { font-size: .72rem; color: var(--text-muted); font-style: italic; }

/* ---- levers ---- */
.ls-levers { list-style: none; margin: 0; padding: 0; }

/* Name on the left, saving on the right, on one line each. A definition list would be more semantic in the
   abstract, but every name here is a LINK -- this is the pane's primary navigation into the levers -- and a
   list of links is what it actually is. */
/* Both text columns flex rather than the name being capped in `ch`. A fixed name column wide enough for
   "Route deterministically before invoking a supervisor" is far wider than most names need, and one narrow
   enough to look tidy wrapped half of them to two lines -- which is what makes a list of 34 stop being
   scannable. Slightly more room to the name than the saving, because the name is the link. */
.ls-lever {
  display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr);
  align-items: baseline; gap: .1rem .55rem;
  padding: 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
}
.ls-lever:last-child { border-bottom: 0; }

.ls-lever-name { grid-column: 1; font-size: .82rem; font-weight: 600; }
.ls-shared {
  grid-column: 2; font-size: .62rem; font-weight: 700; letter-spacing: .04em;
  color: var(--workload-accent); white-space: nowrap;
}
.ls-saves { grid-column: 3; font-size: .8rem; color: var(--text); }

/* A declared cross-reference lever has no saving of its own, by design. `no headline` is the UNDECLARED
   case, which the DOM check fails on, so it is styled to look like the defect it is rather than blending in.
   An enabler needs no special casing: its headline says "Enabler" in words. */
.ls-saves.is-ref { color: var(--text-muted); font-style: italic; }
.ls-saves.is-none { color: var(--expensive); font-weight: 700; }

/* Three levels wide is one level too many below the measure, so the saving wraps under the name. */
@media (max-width: 720px) {
  .ls-lever { grid-template-columns: 1fr auto; }
  .ls-lever-name { grid-column: 1; }
  .ls-shared { grid-column: 2; }
  .ls-saves { grid-column: 1 / -1; color: var(--text-muted); }
}

/* ---- decision principles ---- */
/* Single-homed in "Synthesis and next steps" because they are identical on both tracks. Named here so a
   reader carries them in rather than meeting them after the work, which is what the sidebar's Overview scope
   used to do for them. */
.ls-principles { border-top: 1px dashed var(--border); padding-top: .7rem; }

/* ---- the no-JS fallback ---- */
/* Authored visible and switched off by buildLeverSheet(), the same progressive-enhancement pattern as
   `.rail-fallback` and Figure 2's lever-index table. */
.sheet-fallback { font-size: .82rem; color: var(--text-muted); }

/* 68-heatmap.css — effort against impact, for the levers the runbook ranks.

   THE HEAT IS NEVER COLOUR ALONE. Same rule the assessment's five maturity states follow, and for the same
   reason recorded in 90-assess.css: two states that differ only in hue are indistinguishable under a colour
   vision deficiency, in greyscale, and in forced-colours mode. So a cell's weight is carried by its
   background tint, its position under a written row and column tick, AND (for the two cells that need
   calling out) an accent border, and every chip states its saving in words. Nothing here needs colour alone.

   A CHART, NOT A BORDERED TABLE. Cells carry no border and no card radius of their own -- only the two axis
   baselines (under the effort ticks, beside the impact ticks) and the two called-out cells (the quick win,
   and the one caution cell) draw a line at all. Every other cell is told apart purely by its background tint
   and its position relative to the axes, the way a real quadrant chart reads: by region, not by ruled-off
   boxes. This is deliberate under dataviz's `choosing-a-form.md` (a quadrant/prioritisation matrix, not a
   sequential-magnitude heatmap) and `marks-and-anatomy.md` ("gridlines/axes: one-step-off-surface,
   hairline, recessive" -- never a border drawn around a mark to separate it).

   THE GRID RENDERS ONLY THE ROWS THAT HAVE LEVERS. `data-rows` on the grid says how many, because a
   three-row template with two empty rows would claim that nothing is medium- or low-impact rather than that
   nothing has been rated. See the module docblock in site/src/js/heatmap.mjs. */

.lever-heat { margin: 1.1rem 0 1.4rem; }

/* ---- the grid ---- */
.hm-grid {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  /* Cells size to their contents rather than stretching to the tallest in the row. Stretched, a cell holding
     one lever beside a cell holding five rendered as a large block of flat colour, which reads as something
     missing rather than as a cell with one lever in it. Ragged bottoms are the honest shape of the data. */
  align-items: start;
}

/* The axis baseline: a hairline under the effort ticks and beside the impact ticks, meeting at the empty
   corner to read as one L-shaped frame around the plot -- the one thing that IS drawn as a line, because an
   axis is chart chrome, not a mark. */
/* `align-self: stretch` overrides the grid's own `align-items: start` (which is what keeps DATA cells
   ragged) for exactly these three: a tick label's border is the axis line for its whole row or column,
   not just for the text, so it has to span the row/column's full track height to read as one, the way
   the data cells beside it are tall. Centering the label text inside that now-tall box, rather than
   pinning it to the top, is also the correct anatomy for a categorical tick -- centred on its band. */
.hm-corner { align-self: stretch; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.hm-col-h, .hm-row-h {
  font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-muted);
}
.hm-col-h { padding: 0 .5rem .45rem; border-bottom: 1px solid var(--border); }
.hm-row-h {
  display: flex; align-items: center; justify-content: flex-end;
  align-self: stretch;
  padding: .5rem .6rem .5rem 0; text-align: right;
  border-right: 1px solid var(--border);
}

/* The axis name, once, below the plot -- see the JS module for why it is a grid item spanning columns
   2..-1 rather than a margin-offset sibling, and why it is aria-hidden. */
.hm-axis-x {
  grid-column: 2 / -1;
  margin: .5rem 0 0;
  font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-muted); text-align: center;
}

.hm-cell {
  display: flex; flex-direction: column; gap: .3rem;
  min-height: 3.2rem; padding: .5rem;
  background: var(--surface);
}

/* Weight by impact, then by cheapness. The quick-win corner is the strongest thing on the pane, and the only
   cell with a full border, because it is the answer to the question the pane exists for -- emphasise the
   one thing, per dataviz's `choosing-a-form.md`, rather than tint every cell into competing for attention. */
.hm-cell[data-impact="high"][data-effort="low"] {
  border: 2px solid var(--positive-accent);
  border-radius: 8px;
  background: var(--positive-fill);
}
.hm-cell[data-impact="high"][data-effort="medium"] { background: color-mix(in srgb, var(--positive-fill) 55%, transparent); }
/* A thin top accent, not a border-color on an already-borderless cell: the one other cell worth a flag
   (high-impact, but the expensive way to get there) gets a strip, not a box. */
.hm-cell[data-impact="high"][data-effort="high"] { background: var(--caution-fill); border-top: 2px solid var(--caution-accent); }
.hm-cell[data-impact="medium"] { background: var(--neutral-fill); }

/* An empty cell is a cell with nothing rated into it, which is information. It is not styled as a gap or a
   warning, because it is neither. Its own explicit border (cells carry none by default) is what a dashed
   style needs to render at all. */
.hm-cell.is-empty { background: none; border: 1px dashed var(--border); min-height: 2.4rem; }

.hm-cell-t {
  font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--positive-accent);
}

/* ---- lever chips ---- */
.hm-chip {
  display: block; padding: 5px 8px;
  border: 1px solid var(--border); border-left: 3px solid var(--border);
  border-radius: 6px; background: var(--bg-elev);
  text-decoration: none;
}
.hm-chip:hover { text-decoration: none; border-color: var(--workload-accent); }
/* The track a lever belongs to, in the same two accents the mapcard, the rail and the cost map use, so the
   reader is not learning a third colour language on this pane. */
.hm-t1 { border-left-color: var(--model-accent); }
.hm-t2 { border-left-color: var(--token-accent); }

.hm-chip-name { display: block; font-size: .76rem; font-weight: 700; color: var(--heading); }
.hm-chip-saves { display: block; font-size: .7rem; color: var(--text-muted); }

/* ---- coverage footer ----
   States how many of the 28 levers are placed. A view that showed ten without saying so would read as the
   whole picture, which is the "no silent caps" rule the cost map's "showing N of 28" bar already follows. */
.hm-foot { margin: .6rem 0 0; font-size: .74rem; color: var(--text-muted); }
.hm-foot-n { font-weight: 700; color: var(--heading); }

/* Below the measure the row headers cost more width than they explain, so the grid becomes one column per
   effort band stacked, each still labelled. */
@media (max-width: 760px) {
  .hm-grid { grid-template-columns: 1fr; }
  .hm-corner, .hm-col-h, .hm-axis-x { display: none; }
  /* The row-header's right-hand axis line separated it from the effort columns beside it; stacked to
     one column, there is nothing beside it any more, so the line would just be a stray mark. */
  .hm-row-h { justify-content: flex-start; text-align: left; padding: .6rem 0 .2rem; border-right: none; }
  .hm-cell::before {
    content: attr(data-effort) " effort";
    font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    color: var(--text-muted);
  }
  .hm-cell.is-empty { display: none; }
}

/* 70-lever-index.css — The collapsed lever-index table that Figure 2 falls back to.
   Extracted verbatim from the runbook's original single inline style block, lines 444-467 of the block. */

/* ---- collapsed lever index ---- */
details.lever-index { margin: 0; }
details.lever-index > summary {
  cursor: pointer; list-style: none; user-select: none;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-elev); color: var(--heading); font-weight: 600;
  transition: background .12s, border-color .12s;
}
details.lever-index > summary:hover { background: var(--workload-fill); border-color: var(--workload-accent); }
details.lever-index > summary::-webkit-details-marker { display: none; }
details.lever-index > summary::before {
  content: "\25B8"; color: var(--workload-accent); font-size: .9em;
  transition: transform .15s; display: inline-block;
}
details.lever-index[open] > summary::before { transform: rotate(90deg); }
details.lever-index[open] > summary { border-radius: 10px 10px 0 0; margin-bottom: 0; }
.disc-label { font-size: .98rem; }
.disc-sub { font-size: .82rem; font-weight: 400; color: var(--text-muted); }
.disc-sub::before { content: "\2014"; margin: 0 .45rem 0 .1rem; color: var(--text-muted); }
details.lever-index table { margin: 0; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 10px 10px; }
details.lever-index td a { font-weight: 600; }
.lever-index.is-fallback { margin-top: 10px; }

/* 80-costmap.css — Figure 2: the cost structure map.

   A full-bleed status board: two track rows by three actor-layer columns, six cells, 28 lever rows, over a
   command bar that can narrow them to the ones that need the reader. Built by site/src/js/costmap.mjs — read
   its docblock for why the previous three-column figure became this.

   Two things in here are load-bearing:

   1. **The bleed cancels --content-pad, it does not guess at it.** main.content sets that token and the
      narrow breakpoint in 60-chrome.css changes it, so a hard-coded 40px would leave the board wider than
      the shell at mobile widths.
   2. **State is encoded twice.** Each lever's marker has its own silhouette (a ticked disc, a half-filled
      disc, a triangle, a dashed ring) as well as its own hue from the validated coverage palette in
      90-assess.css, and every row also shows `answered/total` in text. Removing either channel would leave
      colour carrying a status alone, which is what the palette work in 90-assess.css exists to prevent.

   Class prefixes: `csm-` is this board. `te-` names are kept where the element survived from the old
   explorer with the same job — the lever row, the shared badge, the jump buttons, the connector — so the
   lineage stays legible in a diff and in the DOM checks. */

/* ---- the figure, edge to edge ---- */
.track-explorer[hidden] { display: none; }

/* The generic `figure` rule gives every figure a border, a surface, padding and `overflow-x: auto`. All
   four are wrong here: the map's own hero and board carry their surfaces, a card inside a card is noise,
   and the overflow would CLIP the negative margin the bleed depends on. So this figure is a bare wrapper
   and its children are the chrome. */
.csm-figure {
  margin: 1.7rem 0 2.2rem; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; overflow: visible;
}
/* The prose stays in the text column; only the board breaks out of it. */
.csm-figure .te-intro { font-size: .9rem; color: var(--text-muted); margin: 0 0 18px; line-height: 1.55; max-width: var(--measure); }
.csm-figure .te-intro strong { color: var(--heading); }
.csm-figure .te-intro .te-sharedkey { display: inline-flex; align-items: center; gap: 6px; }
.csm-figure > figcaption { max-width: var(--measure); margin-top: 1rem; }

/* The bleed. Cancels main.content's own horizontal padding so the board spans the shell between the
   sidebar and the rail, which is what buys the third layer column enough width to stay readable. It
   cancels the TOKEN, not a literal 40px: the narrow breakpoint in 60-chrome.css changes that token, and a
   hard-coded value would leave the board wider than the shell on a phone. */
.csm { margin-inline: calc(-1 * var(--content-pad)); }

.track-explorer .te-badge {
  display: inline-flex; align-items: center; font-size: .62rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px;
  background: var(--neutral-fill); border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap;
}

/* ---- hero ---- */
.csm-hero {
  border: 1px solid var(--border); border-top: 3px solid var(--workload-accent);
  border-radius: 14px 14px 0 0; background: var(--surface); box-shadow: var(--shadow);
  padding: 14px var(--content-pad);
}
.csm-hero-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.csm-hero-titles { min-width: 0; }
.csm-hero-eyebrow { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.csm-hero-h { font-size: 1.12rem; font-weight: 750; color: var(--heading); margin: 1px 0 0; border: 0; padding: 0; }

.csm-stats { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.csm-stat { display: grid; gap: 1px; }
.csm-stat-n { font-size: 1.32rem; font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; line-height: 1.1; }
.csm-stat-l { font-size: .7rem; color: var(--text-muted); }
/* The gap count only turns red once there is one. A zero in alarm colours on a first visit is noise. */
.csm-stat.is-gap.is-on .csm-stat-n { color: var(--expensive); }

/* ---- command bar ---- */
/* Sticky under the top bar AND the breadcrumb, both of which are already sticky, so the filters stay
   reachable while the reader scans the second track row. --sticky-2 in 00-tokens.css is that offset. */
.csm-bar {
  position: sticky; top: var(--sticky-2); z-index: 35;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px var(--content-pad);
  border: 1px solid var(--border); border-top: 0;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
}
.csm-search { flex: 1 1 220px; min-width: 160px; }
.csm-search-in {
  width: 100%; padding: 7px 11px; font: inherit; font-size: .86rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text);
}
.csm-search-in:focus-visible { outline: 2px solid var(--workload-accent); outline-offset: 1px; }

.csm-filters { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.csm-filter {
  appearance: none; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.csm-filter:hover:not(:disabled) { background: var(--bg-elev); color: var(--text); }
.csm-filter:focus-visible { outline: 2px solid var(--workload-accent); outline-offset: 2px; }
.csm-filter:disabled { opacity: .45; cursor: default; }
.csm-filter-n {
  font-size: .68rem; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 0 5px; border-radius: 999px; background: var(--neutral-fill); color: var(--text-muted);
}
.csm-filter.is-on {
  background: var(--workload-fill); border-color: var(--workload-accent); color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--workload-accent);
}
.csm-filter.is-on .csm-filter-n { background: var(--workload-accent); color: #fff; }
/* Gaps is the reason a reader comes back, so its active state says which state it selected. */
.csm-filter-gap.is-on { background: var(--expensive-fill); border-color: var(--expensive); box-shadow: inset 0 0 0 1px var(--expensive); }
.csm-filter-gap.is-on .csm-filter-n { background: var(--expensive); }

.csm-bar-tail { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.csm-showing { font-size: .74rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.csm-clear {
  appearance: none; cursor: pointer; font: inherit; font-size: .74rem; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--link);
}
.csm-clear:hover { background: var(--bg-elev); }
.csm-clear[hidden] { display: none; }

/* ---- the board ---- */
.csm-board {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; align-items: start;
  padding: 14px var(--content-pad) 18px; border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--bg-elev);
}
.csm-colh {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: 2px 4px 0; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); text-align: center;
}
.csm-colh-t { white-space: nowrap; }
.csm-colglyph { width: 15px; height: 15px; flex: none; color: var(--text-muted); }

/* The track banner. Spans the row rather than occupying a first column: as a grid cell it stretched to the
   height of the tallest cell beside it, and Track 2's Agent Harness holds eleven levers. */
.csm-rowh {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 9px 14px; border-radius: 10px; color: #fff; box-shadow: var(--shadow);
  margin-top: 4px;
}
.csm-rowh-t1 { background: linear-gradient(100deg, var(--model-accent), #d97a06); }
.csm-rowh-t2 { background: linear-gradient(100deg, var(--token-accent), #6d28d9); }
.csm-rowh-label { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: #fff; text-decoration: none; }
.csm-rowh-label:hover { text-decoration: underline; color: #fff; }
.csm-rowh-num { font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; opacity: .95; }
.csm-rowh-name { font-size: .95rem; font-weight: 750; line-height: 1.25; }
.csm-rowh-meta { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-variant-numeric: tabular-nums; }
.csm-rowh-lev { opacity: .9; }
.csm-rowh-cov, .csm-rowh-gaps, .csm-rowh-noted {
  font-weight: 700; border-radius: 999px; padding: 1px 8px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .34);
}

.csm-cell {
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
  padding: 9px 10px 10px; min-width: 0;
  transition: opacity .18s ease;
}
.csm-cell[data-track="t1"] { border-top: 2px solid color-mix(in srgb, var(--model-accent) 55%, var(--border)); }
.csm-cell[data-track="t2"] { border-top: 2px solid color-mix(in srgb, var(--token-accent) 55%, var(--border)); }
.csm-cell.is-empty { opacity: .6; }

.csm-cell-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.csm-cell-name { font-size: .84rem; font-weight: 750; color: var(--heading); text-decoration: none; }
.csm-cell-name:hover { text-decoration: underline; }
.csm-cell-meta { display: flex; align-items: center; gap: 6px; }
.csm-cell-n { font-size: .72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.csm-cell-gaps {
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  color: var(--expensive); border: 1px solid var(--expensive); background: var(--expensive-fill);
  border-radius: 999px; padding: 0 6px;
}
.csm-cell-gaps[hidden] { display: none; }
.csm-cell-empty { font-size: .74rem; font-style: italic; color: var(--text-muted); margin: 2px 0 0; max-width: none; }
.csm-cell-empty[hidden] { display: none; }

.csm-levers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: none; }

/* ---- a lever row ---- */
/* Two lines of name at most in a third-of-the-board column, and the meta on its own line under it. Putting
   the meta inline with the name reads tighter but pushes the name to three and four lines, and eleven of
   those in one cell is the wall of text the map exists to replace. */
.te-chip.csm-lever {
  display: flex; align-items: flex-start; gap: 7px; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  font-size: .81rem; font-weight: 600; line-height: 1.28; text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, opacity .15s ease;
}
.te-chip.csm-lever:hover { text-decoration: none; transform: translateX(2px); }
.csm-cell[data-track="t1"] .te-chip:hover { border-color: var(--model-accent); background: var(--model-fill); }
.csm-cell[data-track="t2"] .te-chip:hover { border-color: var(--token-accent); background: var(--token-fill); }
.te-chip:focus-visible { outline: 2px solid var(--workload-accent); outline-offset: 1px; }
.csm-markslot { flex: 0 0 auto; display: inline-flex; margin-top: 1px; }
.csm-lever-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.te-chiptext { min-width: 0; }
.csm-lever-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.csm-lever-n { font-size: .68rem; color: var(--text-muted); font-variant-numeric: tabular-nums; font-weight: 700; }
/* A lever with no assessment block: prose that hands off to another lever. Said in words, because a blank
   where the count belongs reads as a rendering fault. */
.csm-lever-n.is-none { font-weight: 600; font-style: italic; text-transform: lowercase; letter-spacing: .02em; }
.csm-lever-note { display: inline-flex; align-items: center; gap: 2px; font-size: .68rem; font-weight: 700; color: var(--caution-accent); }
.csm-lever-note[hidden] { display: none; }
.csm-note-glyph { font-size: .8rem; line-height: 1; }
.te-chip .te-jump { flex: 0 0 auto; margin-left: auto; color: var(--text-muted); font-size: .95rem; line-height: 1.2; }
.te-chip:hover .te-jump { color: var(--heading); }

/* A shared lever is dashed, as it was in the old figure: the border says "this topic has another home". */
.te-chip.shared { border-style: dashed; }
/* The lever you were last reading. Left bar + weight, so it survives the filter dimming and greyscale. */
.te-chip.is-here {
  border-color: var(--workload-accent);
  box-shadow: inset 3px 0 0 var(--workload-accent);
  background: var(--workload-fill);
}
/* Filtered out: taken out of view, never out of the document. The row and its link stay in the DOM, the
   lever-index table below stays complete, and the printed map ignores the filter entirely (see the print
   block at the foot of this file). That is the content-integrity guarantee in
   the lever-format design notes §8, kept by construction rather than by care. */
.te-chip.is-out, .csm-levers li.is-out { display: none; }

/* State, on the row as well as the marker: a hairline in the state's hue on the right edge, so a scan down
   a cell reads as a column of states without the marker being the only place to look. */
.te-chip[data-state="done"] { box-shadow: inset -3px 0 0 var(--cov-yes); }
.te-chip[data-state="gap"] { box-shadow: inset -3px 0 0 var(--cov-no); }
.te-chip[data-state="progress"] { box-shadow: inset -3px 0 0 color-mix(in srgb, var(--cov-yes) 55%, var(--border)); }
.te-chip[data-state="na"] { box-shadow: inset -3px 0 0 var(--cov-na); }
.te-chip.is-here[data-state="done"] { box-shadow: inset 3px 0 0 var(--workload-accent), inset -3px 0 0 var(--cov-yes); }
.te-chip.is-here[data-state="gap"] { box-shadow: inset 3px 0 0 var(--workload-accent), inset -3px 0 0 var(--cov-no); }
.te-chip.is-here[data-state="progress"] { box-shadow: inset 3px 0 0 var(--workload-accent), inset -3px 0 0 color-mix(in srgb, var(--cov-yes) 55%, var(--border)); }
.te-chip.is-here[data-state="na"] { box-shadow: inset 3px 0 0 var(--workload-accent), inset -3px 0 0 var(--cov-na); }

/* ---- status markers ---- */
/* Shape is the primary channel and hue the second, which is what lets these read in greyscale, under
   deuteranopia, and in forced-colors mode. The hues are the coverage palette from 90-assess.css; see the
   measurements recorded there. */
.csm-mark { flex: none; display: block; overflow: visible; }
.csm-mark-body { fill: currentColor; stroke: none; }
.csm-mark-ring { fill: none; stroke: currentColor; stroke-width: 1.6; }
.csm-mark-ring.is-open { stroke: var(--text-muted); stroke-dasharray: 3 2.6; opacity: .7; }
.csm-mark-ink { fill: none; stroke: var(--surface); stroke-width: 1.8; stroke-linecap: round; }
.csm-mark-dot { fill: var(--surface); }
.csm-mark-done { color: var(--cov-yes); }
.csm-mark-gap { color: var(--cov-no); }
.csm-mark-progress { color: var(--cov-yes); }
.csm-mark-na { color: var(--cov-na); }
.csm-mark-open { color: var(--text-muted); }
.csm-mark-none { color: var(--border); }
/* On the triangle and the half-disc the "ink" sits on the fill, not the surface, so it needs the surface
   colour to punch through; on the N/A ring there is no fill under it. */
.csm-mark-na .csm-mark-ink { stroke: var(--cov-na); }

.csm-legend {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
  margin: 12px 0 0; font-size: .76rem; color: var(--text-muted);
  padding-inline: var(--content-pad);
}
.csm-legend-key { display: inline-flex; align-items: center; gap: .38rem; }
.csm-legend-l { line-height: 1.3; }
/* The shared-topics band that lived here is gone. It listed the five topics both tracks treat and the three
   decision principles, each with jump buttons -- which, once the TLDR pane's lever sheet named every lever and
   marked the shared ones, was the taxonomy stated a third time on a pane meant for progress. The RELATIONSHIP
   it carried is still on the board: a shared lever's chip carries the badge, and hovering it draws the
   connector to its counterpart. See site/src/js/costmap.mjs. */


/* ---- the cross-track connector ---- */
/* Hovering a shared lever used to only recolour its twin, which asks the reader to find two highlights in
   six cells and infer the relationship. The curve states it. Transient by design: five permanent lines
   across the board would be a web, not a map.

   The overlay carries one `.te-link` per counterpart, not one in total: a lever can have two, and drawing
   only the first would say the other does not exist. Everything here is a class selector so any number of
   sibling paths inherit it, and a path with no `d` paints nothing, which is what "no curve at rest" is. */
.te-links { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: visible; }
.te-link {
  /* 2px dashed at this length read as a stray divider rather than a connector; the reader reported seeing no
     line at all while it was being drawn correctly. */
  fill: none; stroke: var(--positive-accent); stroke-width: 3; stroke-linecap: round;
  /* Dashed so it reads as a relationship rather than structure, and stays distinguishable from the cells'
     borders for a reader who cannot separate the hues. */
  stroke-dasharray: 5 4;
  opacity: 0; transition: opacity .18s ease;
}
.csm-board.has-link .te-link { opacity: 1; }
/* Both ends light, INCLUDING the one under the pointer. `.te-chip.twinlit` is (0,2,0) and the per-track
   hover rule above is (0,4,0), so plain `.twinlit` lost the border-colour on the very row you are hovering:
   the near end showed the hover purple and the pair never read as a pair. The `:hover` variant ties on
   specificity and wins on order. Selector weight is the whole point of these two, so do not "simplify" them
   back to one class. */
.csm-cell .te-chip.twinlit,
.csm-cell .te-chip.twinlit:hover { border-style: solid; border-color: var(--positive-accent); background: var(--positive-fill); }
.te-chip.twinlit .te-badge { border-color: var(--positive-accent); color: var(--positive-accent); background: transparent; }

/* ---- the counterpart, as somewhere you can go ---- */
/* The curve cannot carry this relationship on its own. Every pair on this board is 820 to 1090px apart, and
   the board is 1489px tall, so at 800, 900 or 1080px of viewport the counterpart is ALWAYS off screen: the
   line runs off the edge and points at something the reader cannot see, which reads as no link at all. This
   chip names the counterpart and IS a link to it.

   Absolutely positioned deliberately. Revealing it must not change the board's size, because the
   ResizeObserver that drops the curve on reflow would then wipe the curve on the very hover that drew it. */
.csm-levers li { position: relative; }
.csm-twins {
  position: absolute; left: 6px; right: 6px; top: calc(100% - 3px); z-index: 4;
  display: none; grid-auto-flow: row; gap: 3px;
}
.csm-levers li:hover .csm-twins,
.csm-levers li:focus-within .csm-twins { display: grid; }
.csm-twin {
  display: flex; align-items: baseline; gap: 6px;
  padding: 5px 8px; border-radius: 7px; font-size: .72rem; line-height: 1.35;
  border: 1px solid var(--positive-accent); background: var(--surface); color: var(--text);
  text-decoration: none; box-shadow: 0 6px 18px rgb(0 0 0 / .45);
}
.csm-twin:hover, .csm-twin:focus-visible { background: var(--positive-fill); text-decoration: underline; }
.csm-twin-dir { flex: 0 0 auto; color: var(--positive-accent); font-weight: 700; }
.csm-twin-text { min-width: 0; }
/* On paper there is no hover, and a permanently expanded chip under every shared lever would double the
   board's height. The lever index below already states every pairing in its Second treatment column. */
@media print { .csm-twins { display: none !important; } }

/* ---- responsive ---- */
/* Below the board's comfortable width the row header stops being a column and becomes a banner over its
   three cells, which keeps the track a visible grouping instead of six loose cards. */
/* The band where the right rail is gone (1180px, 60-chrome.css) but the sidebar is still 288px, so three
   columns share about 670px. Keeping three columns preserves "column = layer"; tightening the rows is what
   stops every name wrapping to four lines at that width. */
@media (max-width: 1180px) {
  .csm-board { gap: 8px; }
  .csm-cell { padding: 8px 8px 9px; }
  .te-chip.csm-lever { font-size: .78rem; padding: 5px 7px; gap: 6px; }
  .csm-cell-head { gap: 4px; }
  .csm-colh { font-size: .66rem; }
}
@media (max-width: 860px) {
  /* One cell per row. The column headers go with the columns; each cell's head already names its layer. */
  .csm-board { grid-template-columns: 1fr; }
  .csm-colh { display: none; }
  .te-chip.csm-lever { font-size: .82rem; }
}
@media (max-width: 620px) {
  .csm-bar { gap: 8px; }
  .csm-bar-tail { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .te-chip, .csm-cell, .csm-trackchip, .csm-filter, .te-link { transition: none; }
  .te-chip.csm-lever:hover { transform: none; }
}

/* ---- print ---- */
/* Printing the page (not the assessment report -- that path hides everything else) should give the whole
   board with no chrome that cannot be operated on paper. */
@media print {
  .csm { margin-inline: 0; }
  .csm-bar, .te-links { display: none; }
  .csm-hero, .csm-board, .csm-cell { box-shadow: none; backdrop-filter: none; }
  .csm-cell { break-inside: avoid; page-break-inside: avoid; }
  .csm-board { background: transparent; }
  /* A filter left on must not silently drop levers from a printed map: on paper there is no bar to clear it
     with and no "showing 2 of 34" to explain the absence. */
  .csm-levers li.is-out { display: list-item; }
  .te-chip.is-out { display: flex; }
  .csm-cell-empty { display: none; }
}

/* 85-figures.css — Shared figure primitives, Figure 1 (token cost meter), Figure 3 (decision flow).
   Extracted verbatim from the runbook's original single inline style block, lines 592-696 of the block. */

/* --- shared figure primitives --- */
.fig-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin: 0 0 1rem; font-size: .8rem; color: var(--text-muted);
}
.fig-legend .lk { display: inline-flex; align-items: center; gap: 6px; }
.fig-legend .sw {
  width: 14px; height: 14px; border-radius: 4px; flex: none;
  border: 2px solid var(--border); background: var(--neutral-fill);
}
.fig-legend .sw.recommend { background: var(--positive-fill); border-color: var(--positive-accent); }
.fig-legend .sw.avoid     { background: var(--surface);       border-color: var(--expensive); }
.fig-legend .sw.workload  { background: var(--workload-fill); border-color: var(--workload-accent); }
.fig-legend .sw.baseline  { background: var(--surface);       border-color: var(--expensive); }

.fig-arrow { color: var(--text-muted); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.fig-arrow.down { min-height: 26px; }
.fig-arrow.down::before { content: "\2193"; font-size: 1.15rem; line-height: 1; }

/* ---- Figure 1: token cost meter ----
   Inline SVG, not divs. Two reasons beyond looking better: the diagram now encodes its numbers as
   LENGTH rather than stating them in a chip, and it scales as one unit instead of reflowing.

   What it deliberately does NOT do: invent a cost split. The runbook's price-verification rule
   (the price-verification rule) forbids publishing a number that has not been verified, so the only
   quantities drawn here are the two already-published percentages -- about 90% off repeated-prefix
   input from caching, and a reported 40 to 70% fewer input tokens from context hygiene. Each bar is
   100% of ITS OWN quantity, so nothing implies a ratio between the three rows, and the output row
   claims no reduction at all because no lever cuts the output rate.

   Colour: the dataviz validator was not available when this was authored, so the design avoids
   needing a three-way categorical check. Inside any one bar there are only two fills, one hue against
   a neutral, and every band is directly labelled; the output row's distinct fill sits alone in its own
   row and is never compared against the green. Text wears text tokens throughout. */
.tokmeter { display: block; width: 100%; height: auto; max-width: 720px; margin: 0 auto; }

.tokmeter .tm-term { fill: var(--workload-fill); stroke: var(--workload-accent); stroke-width: 1; }
.tokmeter .tm-term.tm-bill { fill: var(--neutral-fill); stroke: var(--ink); stroke-width: 1.5; }
.tokmeter .tm-term-t { fill: var(--heading); font-size: 14px; font-weight: 700; }
.tokmeter .tm-term-s { fill: var(--text-muted); font-size: 11px; }
.tokmeter .tm-op { fill: var(--text-muted); font-size: 20px; font-weight: 700; }

.tokmeter .tm-rule { stroke: var(--border); stroke-width: 1; }
.tokmeter .tm-sec { fill: var(--text-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.tokmeter .tm-base { fill: var(--bg-elev); stroke: var(--border); stroke-width: 1; }
.tokmeter .tm-base.tm-output { fill: var(--token-fill); stroke: var(--token-accent); }
.tokmeter .tm-cut { fill: var(--cov-yes); }
/* Butts against the solid band so the two read as one continuous saving, with the hatch marking the
   part that is "up to" rather than measured. */
.tokmeter .tm-cut-range-hatch { fill: url(#tm-range-hatch); stroke: var(--cov-yes); stroke-width: 1; }
.tokmeter .tm-hatch-line { stroke: var(--cov-yes); stroke-width: 3; }

.tokmeter .tm-lbl { fill: var(--heading); font-size: 12.5px; font-weight: 700; }
.tokmeter .tm-lbl-s { fill: var(--text-muted); font-size: 11px; }
.tokmeter .tm-in { fill: #fff; font-size: 12px; font-weight: 800; }
.tokmeter .tm-in.tm-in-muted { fill: var(--heading); }
.tokmeter .tm-range-t { fill: var(--heading); font-size: 11px; font-weight: 700; }
.tokmeter .tm-range-tick { stroke: var(--text-muted); stroke-width: 1; }
.tokmeter .tm-out-t { fill: var(--token-heading); font-size: 11.5px; font-weight: 600; }
.tokmeter .tm-leg { fill: var(--text-muted); font-size: 11px; }

/* On a narrow screen the figure scales down as one unit rather than reflowing, so the only thing that
   has to change is letting it use the full width. */
@media (max-width: 620px) { .tokmeter { max-width: none; } }

/* ---- Figure 3: decision flow ----
   Inline SVG so the branches are drawn. The div version carried its structure in indentation and text
   "edges" with no connecting lines at all, which meant the one thing a decision tree exists to show --
   which answer leads where -- was the one thing it did not show.

   Path colour marks a recommended route; neutral paths represent decisions or options to evaluate.
   Text labels carry the meaning, so the advice never rests on colour. */
.decflow { display: block; width: 100%; height: auto; max-width: 720px; margin: 0 auto; }

.decflow .df-q rect { fill: var(--workload-fill); stroke: var(--workload-accent); stroke-width: 1.5; }
.decflow .df-recommend rect { fill: var(--positive-fill); stroke: var(--positive-accent); stroke-width: 1.5; }

.decflow .df-tag { fill: var(--workload-accent); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; }
.decflow .df-t { fill: var(--heading); font-size: 13px; font-weight: 700; }
.decflow .df-s { fill: var(--text-muted); font-size: 10.5px; }

.decflow .df-badge-t { fill: var(--positive-accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }

/* Edges: fill:none matters, or the path closes into a filled blob. */
.decflow .df-edge { fill: none; stroke: var(--text-muted); stroke-width: 1.5; }
.decflow .df-edge.df-e-go { stroke: var(--positive-accent); }
.decflow .df-arrowhead { fill: var(--text-muted); }
.decflow .df-arrowhead.df-go { fill: var(--positive-accent); }

.decflow .df-edge-l { fill: var(--text-muted); font-size: 10.5px; font-weight: 600; }

.decflow .df-sw-q { fill: var(--workload-fill); stroke: var(--workload-accent); }
.decflow .df-sw-go { fill: var(--positive-fill); stroke: var(--positive-accent); }
.decflow .df-leg { fill: var(--text-muted); font-size: 10.5px; }

@media (max-width: 620px) { .decflow { max-width: none; } }

/* 90-assess.css — Lever self-assessment: question rows, segmented controls, tallies, summary panels, coverage bars.
   Extracted verbatim from the runbook's original single inline style block, lines 697-812 of the block. */

/* ---- Lever self-assessment (Security-Improvement-Program style) ---- */
.assess { margin: 1rem 0 1.4rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.assess-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--bg-elev); border-bottom: 1px solid var(--border);
}
.assess-head .assess-title { font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--heading); }
.assess-head .assess-sub { font-size: .8rem; color: var(--text-muted); }
.assess-tally { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; }
.assess-tally .pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); }
.assess-tally .pill.ok { color: var(--positive-accent); border-color: var(--positive-accent); }
.assess-tally .pill.gap.active { color: var(--expensive); border-color: var(--expensive); background: var(--expensive-fill); }
.assess-tally .pill.done { color: var(--positive-accent); border-color: var(--positive-accent); background: var(--positive-fill); }

.assess-q { border-top: 1px solid var(--border); padding: 12px 14px; }
.assess-q:first-of-type { border-top: 0; }
.assess-qrow { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.assess-qtext { flex: 1 1 340px; min-width: 0; font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.assess-qtext .qid { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--text-muted); letter-spacing: .04em; margin-right: 6px; }

.seg { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button {
  appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: .76rem; font-weight: 700; color: var(--text-muted); padding: 6px 11px;
  border-right: 1px solid var(--border); line-height: 1; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--bg-elev); }
.seg button:focus-visible { outline: 2px solid var(--workload-accent); outline-offset: -2px; }
.seg button[aria-pressed="true"][data-v="yes"] { background: var(--positive-accent); color: #fff; }
.seg button[aria-pressed="true"][data-v="wip"] { background: var(--caution-accent); color: #fff; }
.seg button[aria-pressed="true"][data-v="no"]  { background: var(--expensive); color: #fff; }
.seg button[aria-pressed="true"][data-v="na"]  { background: var(--text-muted); color: #fff; }

/* status-driven left border on the question */
.assess-q[data-state="yes"] { border-left: 3px solid var(--positive-accent); }
.assess-q[data-state="wip"] { border-left: 3px solid var(--caution-accent); }
.assess-q[data-state="no"]  { border-left: 3px solid var(--expensive); }
.assess-q[data-state="na"]  { border-left: 3px solid var(--text-muted); }

details.assess-gap { margin: 10px 0 0; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elev); }
details.assess-gap > summary {
  cursor: pointer; list-style: none; padding: 8px 12px; font-size: .82rem; font-weight: 700;
  color: var(--heading); display: flex; align-items: center; gap: 8px;
}
details.assess-gap > summary::-webkit-details-marker { display: none; }
details.assess-gap > summary::before { content: "▸"; color: var(--text-muted); transition: transform .15s ease; }
details.assess-gap[open] > summary::before { transform: rotate(90deg); }
details.assess-gap > summary .gap-tag {
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted);
}
.assess-q[data-state="no"] details.assess-gap > summary .gap-tag,
.assess-q[data-state="wip"] details.assess-gap > summary .gap-tag { color: var(--expensive); border-color: var(--expensive); }
.assess-gap .gap-body { padding: 2px 14px 12px; border-top: 1px solid var(--border); }
.assess-gap .gap-body > *:first-child { margin-top: .6rem; }

/* report summary panel */
.assess-report { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 12px 14px; }
.assess-report .ar-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.assess-report .ar-title { font-size: .8rem; font-weight: 800; color: var(--heading); }
.assess-report .ar-actions { margin-left: auto; display: flex; gap: 8px; }
.assess-btn {
  appearance: none; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 700;
  padding: 6px 12px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); transition: background .15s ease, border-color .15s ease;
}
.assess-btn:hover { border-color: var(--workload-accent); background: var(--workload-fill); }
.assess-btn.primary { background: var(--workload-accent); color: #fff; border-color: var(--workload-accent); }
.assess-btn.primary:hover { filter: brightness(1.05); }
.assess-btn:focus-visible { outline: 2px solid var(--workload-accent); outline-offset: 2px; }
.assess-gaplist { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.assess-gaplist li { font-size: .82rem; color: var(--text); display: flex; gap: 8px; align-items: baseline; }
.assess-gaplist li .gl-state { flex: 0 0 auto; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 1px 7px; border-radius: 999px; }
.assess-gaplist li .gl-state.no  { color: var(--expensive); border: 1px solid var(--expensive); background: var(--expensive-fill); }
.assess-gaplist li .gl-state.wip { color: var(--caution-accent); border: 1px solid var(--caution-accent); background: var(--caution-fill); }
.assess-gaplist a { font-weight: 600; }
.assess-report .ar-clear { font-size: .74rem; color: var(--text-muted); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }
.assess-empty { font-size: .82rem; color: var(--text-muted); margin: 8px 0 0; font-style: italic; }

/* per-question notes */
.assess-notes { display: block; margin: 10px 0 0; }
.assess-notes .an-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.assess-notes textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 2.2rem;
  font: inherit; font-size: .84rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
}
.assess-notes textarea:focus-visible { outline: 2px solid var(--workload-accent); outline-offset: -1px; }

/* coverage bar in the report */
/* ---- coverage meter (site/src/js/viz/coverage.mjs) ----
   Maturity states are a STATUS palette, not a categorical one, so the steps are chosen for
   distinguishability rather than brand variety, and every segment is also labelled with a number.

   These values were selected by running the dataviz skill's validator, not by eye. The previous pair
   for the two most important states -- positive #7AA116 (Fully covered) and caution #B7791F
   (Partially) -- measured ΔE 2.6 under deuteranopia and 13.8 for normal vision, below the 15 floor:
   the two answers the assessment exists to separate looked the same. Re-stepped:

     light  #0F7B5F #E9A13A #CE3311 #8B95A1  -> CVD ΔE 16.6, normal-vision ΔE 23.6   PASS
     dark   #2FA37E #F2B54D #F0765C #9AA5B2  -> CVD ΔE 11.4, normal-vision ΔE 15.6   PASS

   Two validator flags are knowingly accepted rather than fixed:
   - Chroma floor on the N/A gray. Deliberate. N/A is the absence of a status and must not read as one;
     giving it a hue would imply it is an outcome.
   - Lightness band on the dark steps. A dark surface needs lighter marks to keep amber and red apart,
     which puts them above the band's top; the checks that govern whether a reader can tell the states
     apart both pass, and that is the property the band is a proxy for.
   The contrast-vs-surface warning is discharged, not dismissed: the component always renders numbers
   and a legend, so no state is carried by colour alone. */
:root {
  --cov-yes: #0F7B5F;
  --cov-wip: #E9A13A;
  --cov-no:  #CE3311;
  --cov-na:  #8B95A1;
}
html[data-theme="dark"] {
  --cov-yes: #2FA37E;
  --cov-wip: #F2B54D;
  --cov-no:  #F0765C;
  --cov-na:  #9AA5B2;
}

.cov { margin: 12px 0 4px; }
/* The rounded ends live here, not in the SVG: the viewBox is in count units and is stretched to the
   container, so an `rx` in user units stretches with it and the end renders as a taper. */
.cov-bar { display: block; width: 100%; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--border); }
.cov-track { fill: transparent; }
.cov-seg.cov-yes { fill: var(--cov-yes); }
.cov-seg.cov-wip { fill: var(--cov-wip); }
.cov-seg.cov-no  { fill: var(--cov-no); }
.cov-seg.cov-na  { fill: var(--cov-na); }
.cov-swatch.cov-yes rect { fill: var(--cov-yes); }
.cov-swatch.cov-wip rect { fill: var(--cov-wip); }
.cov-swatch.cov-no  rect { fill: var(--cov-no); }
.cov-swatch.cov-na  rect { fill: var(--cov-na); }

.cov-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .55rem; font-size: .78rem; }
.cov-key { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-muted); }
/* Text wears text tokens, never the series colour: the swatch beside it carries identity. */
.cov-key-n { font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; }
.cov-key.is-zero { opacity: .45; }
.cov-key-open .cov-key-n { color: var(--text-muted); }
.cov-key-open::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  border: 1px dashed var(--border); background: var(--bg-elev);
}
.cov-compact .cov-bar { height: 9px; }
.assess-gaplist li .gl-notes { display: block; font-size: .76rem; color: var(--text-muted); font-style: italic; margin-top: 2px; }

@media (max-width: 620px) {
  .tm-formula { flex-direction: column; align-items: stretch; }
  .tm-term { max-width: none; }
  .tm-op { transform: rotate(90deg); }
  .dec-branch { flex-basis: 100%; }
  .assess-qrow { gap: 8px; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .seg button, details.assess-gap > summary::before, .assess-btn { transition: none; }
}

/* Export as PDF: a dedicated printable report node is appended to <body> on demand.
   When printing, hide the whole app and show only that node. */
/* The summary panel's explanatory paragraph. Was a static inline margin on six elements. */
.assess-report p.ar-intro { margin: 6px 0 0; }

#assess-print-root { display: none; }

/* --- Equation-first gap guidance ------------------------------------------------------------
   Each gap panel opens with one short answer (the equation, the rule, the table or the worked example),
   and the rest of the guidance sits in a nested "Read more" collapse for the self-serve reader. The nested
   collapse is visually quieter than the gap panel so the hierarchy reads at a glance. */
.gap-body .gap-lead { font-size: .95rem; }
.gap-body .gap-lead code { white-space: normal; }
details.read-more { margin: .8rem 0 .2rem; border-left: 3px solid var(--border); background: transparent; }
details.read-more > summary {
  cursor: pointer; list-style: none; padding: 4px 10px; font-size: .8rem; font-weight: 700; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
details.read-more > summary::-webkit-details-marker { display: none; }
details.read-more > summary::before { content: "▸"; transition: transform .15s ease; }
details.read-more[open] > summary::before { transform: rotate(90deg); }
details.read-more > summary:hover, details.read-more > summary:focus-visible { color: var(--text); }
details.read-more .rm-body { padding: 0 12px 4px; }
details.read-more .rm-body > *:first-child { margin-top: .4rem; }

/* --- Assessment scope: the picker under each Track 2 figure and the toggled figure boxes -------- */
.scope-picker {
  margin: .4rem auto 1.4rem; padding: 10px 14px 12px; max-width: 720px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elev); color: var(--text);
}
.scope-picker legend { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); padding: 0 6px; }
.scope-picker .scope-help { margin: 0 0 8px; font-size: .8rem; color: var(--text-muted); }
.scope-picker .scope-item { display: inline-flex; align-items: center; gap: 6px; margin: 2px 14px 4px 0; font-size: .86rem; cursor: pointer; }
.scope-picker .scope-item input { accent-color: var(--workload-accent); width: 15px; height: 15px; margin: 0; }
.scope-picker .scope-item input:not(:checked) + span { color: var(--text-muted); text-decoration: line-through; }
.scope-picker .scope-out { margin: 8px 0 0; font-size: .8rem; font-weight: 600; color: var(--text-muted); }
/* --- Persona filter: the role picker in each track dashboard (site/src/js/persona.mjs) ---------- */
.persona-picker {
  margin: .8rem 0 1rem; padding: 10px 14px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elev); color: var(--text);
}
.persona-picker legend { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); padding: 0 6px; }
.persona-picker .persona-help { margin: 0 0 8px; font-size: .84rem; color: var(--text-muted); }
.persona-picker .persona-options label { display: inline-flex; align-items: center; gap: 6px; margin: 2px 16px 4px 0; font-size: .88rem; cursor: pointer; }
.persona-picker .persona-options input { accent-color: var(--workload-accent); width: 15px; height: 15px; margin: 0; }
.persona-picker .persona-count { margin: 6px 0 0; font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.persona-picker .persona-more { margin-top: 6px; font-size: .84rem; }
.persona-picker .persona-more > summary { cursor: pointer; font-weight: 600; color: var(--link, var(--text)); }
.persona-picker .persona-more ul { margin: .4rem 0 0; padding-left: 1.2rem; }
/* A lever with no question for the chosen role. A class, not [hidden], so it never fights scope.mjs, which
   owns `hidden` on the same lever nodes. */
.persona-off { display: none !important; }
.decflow.has-scope .df-scope { cursor: pointer; }
.decflow.has-scope .df-scope:hover rect { stroke-width: 2.5; }
.decflow .df-scope.df-off rect { fill: var(--neutral-fill); stroke: var(--text-muted); stroke-dasharray: 5 4; }
.decflow .df-scope.df-off text { fill: var(--text-muted); opacity: .6; }
.decflow .df-scope.df-off .df-t { text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { details.read-more > summary::before { transition: none; } }

/* Polished parity layer for the dedicated two-track assessments.
   The reviewed external export supplies visual semantics, never runtime code or assets. */

:root {
  --page-bg: #f6f8fb;
  --focus: #ffb84d;
  --radius-lg: 14px;
  --shadow-lg: 0 8px 30px rgba(24,34,48,.09);
  --route-accent: var(--workload-accent);
  --route-fill: var(--workload-fill);
}
html[data-theme="dark"] {
  --page-bg: #0b1118;
  --shadow-lg: 0 10px 34px rgba(0,0,0,.42);
}

html[data-scope="overview"] { --route-accent: var(--workload-accent); --route-fill: var(--workload-fill); }
html[data-scope="t1"] { --route-accent: var(--model-accent); --route-fill: var(--model-fill); }
html[data-scope="t2"] { --route-accent: var(--token-accent); --route-fill: var(--token-fill); }
body { background: var(--page-bg); }

.topbar { background: var(--ink); color: #fff; border-bottom: 3px solid var(--model-accent); backdrop-filter: none; }
.topbar .brand { color: #fff; }
.topbar .brand .dot { color: #ffb84d; }
.topbar .iconbtn { color: #fff; border-color: rgba(255,255,255,.45); }
.topbar .iconbtn:hover { background: rgba(255,255,255,.1); }
.breadcrumb { background: var(--surface); backdrop-filter: none; }

.route-anchor { display: block; position: relative; top: calc(-1 * var(--anchor-offset)); visibility: hidden; }
[data-route-focus="tracks"] { scroll-margin-top: var(--anchor-offset); }
.hero, html[data-scope="overview"] main.content > section, .track-route, #references {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 38px); margin: 24px 0 30px;
}
html[data-scope="overview"] .hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--workload-fill) 68%, var(--surface)), var(--surface) 62%);
}
html[data-scope="overview"] .hero::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -82px;
  border-radius: 50%; background: color-mix(in srgb, var(--model-accent) 18%, transparent); pointer-events: none;
}
html[data-scope="overview"] .hero h1 { font-size: clamp(2rem, 4vw, 3.15rem); max-width: 18ch; }
html[data-scope="overview"] .hero .lede { font-size: 1.05rem; }

.trk-choose { max-width: none; gap: 20px; }
.trk-card { min-height: 300px; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); gap: 8px; }
.trk-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.trk-card-name { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.trk-card-econ { line-height: 1.55; }
.trk-card-meta { margin-top: auto; font-weight: 700; }
.trk-card-progressbar, .track-progress {
  display: block; width: 100%; height: 10px; overflow: hidden; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border);
}
.trk-card-progressbar { margin-top: 8px; }
.trk-card-progress, .track-progress > span {
  display: block; width: 0; height: 100%; border-radius: inherit; background: var(--route-accent); transition: width .2s ease;
}
.trk-card-t1 .trk-card-progress { background: var(--model-accent); }
.trk-card-t2 .trk-card-progress { background: var(--token-accent); }
.trk-card-status { font-size: .78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.trk-card-go { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: var(--route-fill); }

.track-route { max-width: 920px; margin-left: auto; margin-right: auto; }
.track-route > h2 { margin-top: 0; font-size: clamp(1.85rem, 3.5vw, 2.6rem); border-bottom-color: var(--route-accent); }
.track-route-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 18px; font-size: .84rem; font-weight: 700; }
.track-route-actions a { padding: 6px 9px; border-radius: 7px; background: var(--bg-elev); text-decoration: none; }
.track-route-actions a:hover { background: var(--route-fill); }

.track-assessment-overview {
  margin: 26px 0 42px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg);
  border: 1px solid var(--route-accent); background: color-mix(in srgb, var(--route-fill) 38%, var(--surface)); box-shadow: var(--shadow);
}
.track-assessment-heading h3 { margin: 0 0 7px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.track-assessment-heading p { max-width: 68ch; }
.track-kicker { margin: 0 0 4px !important; color: var(--route-accent); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.track-progress-wrap { margin: 18px 0; }
.track-progress-label { margin-bottom: 6px; font-size: .82rem; color: var(--text-muted); font-weight: 750; font-variant-numeric: tabular-nums; }
.track-progress > span { background: var(--route-accent); }
.track-assessment-overview .ad-metrics { gap: 16px 24px; }
.track-assessment-overview .ad-metric { min-width: 92px; }
.track-assessment-overview .ar-actions { margin-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.track-start { display: inline-flex; align-items: center; text-decoration: none; }
.track-start:hover { text-decoration: none; }
#themeToggle { width: auto; min-width: 58px; padding: 0 10px; font-size: .76rem; font-weight: 800; gap: 4px; }
.theme-glyph { font-size: .9rem; line-height: 1; }
.assess-btn.danger { color: var(--expensive); border-color: color-mix(in srgb, var(--expensive) 58%, var(--border)); }
.assess-btn.danger:hover { background: var(--expensive-fill); border-color: var(--expensive); }
.track-gap-summary { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.track-gap-summary h4 { margin: 0 0 8px; font-size: 1rem; }
.track-gap-summary .assess-gaplist li { display: grid; grid-template-columns: auto minmax(150px, .55fr) minmax(220px, 1fr); align-items: start; }
.track-gap-summary .gl-notes { grid-column: 2 / -1; }

.track-route h3.layer { margin: 52px -10px 16px; padding: 10px 12px; border: 0; border-left: 5px solid var(--route-accent); background: var(--route-fill); border-radius: 8px; }
.track-route > h4 { margin-top: 32px; }
.assess { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.assess-head { padding: 13px 16px; }
.assess-q { padding: 16px; }
.assess-qrow { display: grid; grid-template-columns: minmax(250px, 1fr) auto; align-items: start; }
.assess-qtext { font-size: .96rem; line-height: 1.5; }
.seg { border-radius: 9px; }
.seg button { min-height: 36px; padding: 8px 12px; }
details.assess-gap { margin-top: 12px; }
.assess-report { padding: 16px; }

.landing-library {
  margin: 24px 0 30px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.landing-library > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; color: var(--heading); font-weight: 800; }
.landing-library > summary::-webkit-details-marker { display: none; }
.landing-library > summary::before { content: "+"; align-self: flex-end; margin-bottom: -24px; color: var(--route-accent); font-size: 1.3rem; }
.landing-library[open] > summary::before { content: "−"; }
.landing-library > summary small { color: var(--text-muted); font-weight: 500; }
.landing-library-body { padding: 0 22px 26px; }
.landing-library-body > section, .landing-library-body > .mapcard { margin-top: 24px; }
.assessment-separation-note { padding: 16px 18px; border-left: 4px solid var(--workload-accent); background: var(--workload-fill); border-radius: 0 9px 9px 0; }

#references { max-width: 920px; margin-left: auto; margin-right: auto; }
.reference-note { color: var(--text-muted); }
.reference-disclosure { border-top: 1px solid var(--border); margin-top: 15px; padding-top: 10px; }
.reference-disclosure > summary { cursor: pointer; font-weight: 800; color: var(--link); padding: 8px 0; }
.reference-disclosure ol { margin-top: 10px; }

@media (max-width: 760px) {
  .topbar .beta-chip { display: none; }
  #toTop { right: 6px; bottom: 8px; width: 36px; height: 36px; }
  main.content { --content-pad: 14px; }
  .hero, html[data-scope="overview"] main.content > section, .track-route, #references { padding: 18px; border-radius: 10px; }
  .trk-card { min-height: 0; padding: 18px; }
  .track-route-actions { justify-content: space-between; }
  .assess-qrow { grid-template-columns: 1fr; }
  .seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .seg button { white-space: normal; border-bottom: 1px solid var(--border); }
  .track-gap-summary .assess-gaplist li { grid-template-columns: auto 1fr; }
  .track-gap-summary .assess-gaplist li > span:nth-of-type(2), .track-gap-summary .gl-notes { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .trk-card-progress, .track-progress > span { transition: none; } }
@media print {
  .track-route-actions, .landing-library > summary, .reference-disclosure > summary { display: none !important; }
  .landing-library, .reference-disclosure { border: 0; box-shadow: none; }
  .landing-library-body, .reference-disclosure > * { display: block !important; }
}

/* 92-suggest.css — "Suggest a change" links (site/src/js/suggest.mjs).
   Replaces the old feedback chrome in the same cascade slot. One quiet link under each h4 heading and
   one in the page footer, each opening the repository's GitHub issue form in a new tab. Classes only:
   the site serves under `style-src 'self'`, so nothing here may come from an inline style. */

.suggest-change { margin: -6px 0 14px; font-size: .78rem; }
.suggest-link {
  display: inline-block;
  color: var(--text-muted); text-decoration: none;
  padding: 2px 9px; border-radius: 999px;
  border: 1px dashed var(--border);
}
.suggest-link:hover,
.suggest-link:focus-visible { color: var(--text); border-style: solid; background: var(--bg-elev); }
.suggest-footer { margin-top: 14px; font-size: .86rem; color: var(--text-muted); }
.suggest-footer .suggest-link { font-size: .82rem; }
.page-disclaimer { font-size: .82rem; color: var(--text-muted); }

/* 95-print.css — the exported assessment report.

   "Export as PDF" is the browser's own print-to-PDF over a purpose-built DOM, not a vendored PDF
   library. That choice is about maintenance: the report is real markup styled by the same tokens as
   the page, so adding a lever or a field costs the export nothing, whereas a jsPDF implementation is a
   second layout engine to keep in step and ~400KB to vendor under a CSP that forbids CDNs. The cost is
   that the print dialog appears; site/src/js/assessment.mjs mitigates it by swapping document.title,
   which is what the browser derives the suggested filename from.

   Everything here is deliberately ink-on-white rather than themed. A reader printing from dark mode
   wants a legible document, not a black page, and these values are fixed rather than var()-driven so
   the output does not depend on which theme happened to be active. */

#assess-print-root { display: none; }

@media print {
  @page { size: A4; margin: 14mm 13mm 16mm; }

  /* Only the report prints. Everything else -- sidebar, top bar, 28 levers -- is hidden. */
  body.assess-printing > *:not(#assess-print-root) { display: none !important; }
  body.assess-printing #assess-print-root { display: block !important; color: #111; }

  #assess-print-root { font-size: 10.5pt; line-height: 1.45; }

  /* --- cover block --- */
  #assess-print-root .apr-cover { border-bottom: 2px solid #232F3E; padding-bottom: 8px; margin-bottom: 16px; }
  #assess-print-root h1 { font-size: 17pt; margin: 0 0 4px; color: #232F3E; }
  #assess-print-root .apr-scope { font-size: 12pt; font-weight: 700; margin: 0 0 6px; color: #232F3E; }
  /* When the assessment was run (a date only). See assessorLine() in site/src/js/stamp.mjs. */
  #assess-print-root .apr-by { font-size: 9.5pt; color: #444; margin: 0 0 4px; }
  #assess-print-root .apr-cov { font-size: 9.5pt; color: #444; margin: 0; }
  #assess-print-root .apr-out { font-size: 9.5pt; color: #444; margin: 4px 0 0; font-style: italic; }
  #assess-print-root .apr-incomplete {
    margin: 10px 0 14px; padding: 8px 10px; border: 1px solid #8A5A12;
    border-left: 4px solid #8A5A12; background: #FFF8D8; color: #3b2b0c;
  }
  #assess-print-root .apr-appendix {
    margin: 16px 0 0; padding-top: 8px; border-top: 1px solid #999;
    color: #444; font-style: italic;
  }

  #assess-print-root h2 {
    font-size: 12.5pt; margin: 18px 0 6px; padding-bottom: 3px;
    border-bottom: 1px solid #999; color: #232F3E;
    /* A heading stranded at the foot of a page is the most common print defect. */
    break-after: avoid; page-break-after: avoid;
  }
  #assess-print-root h3 { font-size: 11pt; margin: 14px 0 4px; color: #232F3E; break-after: avoid; page-break-after: avoid; }
  #assess-print-root h4 { font-size: 10pt; margin: 10px 0 3px; color: #333; break-after: avoid; page-break-after: avoid; }

  /* --- tables: the coverage-by-layer summary and the gap lists --- */
  #assess-print-root table.apr-table {
    width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 9pt;
  }
  #assess-print-root table.apr-table thead th {
    background: #232F3E; color: #fff; text-align: left; padding: 4px 6px; font-weight: 600;
    /* Repeat the header when a long gap table spans pages. */
    break-inside: avoid;
  }
  #assess-print-root table.apr-table thead { display: table-header-group; }
  #assess-print-root table.apr-table td { padding: 4px 6px; border-bottom: 1px solid #ccc; vertical-align: top; }
  #assess-print-root table.apr-table tr { break-inside: avoid; page-break-inside: avoid; }

  /* Status stays legible in greyscale: the word is the signal, the weight reinforces it. */
  #assess-print-root .apr-st { font-weight: 700; white-space: nowrap; }
  #assess-print-root .apr-st-no { color: #B32D0F; }
  #assess-print-root .apr-st-wip { color: #8A5A12; }

  #assess-print-root .apr-none { font-style: italic; color: #444; }

  /* --- full answer log --- */
  #assess-print-root .apr-q { margin: 0 0 7px; break-inside: avoid; page-break-inside: avoid; }
  #assess-print-root .apr-state { font-weight: 700; }
  #assess-print-root .apr-note { font-style: italic; color: #444; }

  /* Links print as plain text: a blue underline that cannot be clicked is noise on paper. */
  #assess-print-root a { color: #111; text-decoration: none; }

  /* --- "Suggest a change" links do not belong on paper --- */
  /* They are controls that open GitHub; on paper they are noise. The runbook's content prints. */
  .suggest-change,
  .suggest-footer { display: none !important; }
}

/* @generated:css:end */
