/* hub demo: one stylesheet, no external requests. Tokens copied verbatim from the site's site.css (engineering
   notebook); every text/background pair passes WCAG AA. Demo-specific rules follow the shared base. */

:root {
  --paper: #fbfbf9;
  --panel: #f2f4f3;
  --ink: #1b2127;
  --muted: #5a646d;
  --faint: #626c76;
  --rule: #d8dcdf;
  --rule-strong: #b9c0c5;
  --accent: #0e6f63;
  --accent-ink: #0a564d;
  --accent-tint: #e6f3f0;
  --warn-ink: #7a4b00;
  --warn-line: #946016;
  --warn-tint: #fdf3df;
  --fail-ink: #9b2c2c;
  --fail-tint: #fbe9e7;
  --paused: #5a646d;
  --white: #ffffff;

  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --sans-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;

  --measure: 66ch;
  --page-max: 1120px;
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);

  --fs-0: 0.8125rem;
  --fs-1: 0.9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.3125rem;
  --fs-4: 1.75rem;
  --fs-5: clamp(2rem, 4.2vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: var(--fs-2); line-height: 1.55; font-feature-settings: "kern", "liga"; font-variant-numeric: tabular-nums; }
a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}
h1, h2, h3 { font-family: var(--sans-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-4); font-weight: 600; margin-bottom: 0.5rem; }
h2 { font-size: var(--fs-3); font-weight: 600; }
.h-small { font-size: var(--fs-0); font-family: var(--mono); color: var(--faint); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; margin: 1.5rem 0 0.5rem; }
.h-mid { font-size: var(--fs-3); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--panel); padding: 0.05em 0.3em; border-radius: 2px; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-weight: 400; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--white); padding: 0.5rem 0.75rem; z-index: 10; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- frame ---------- */
.page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--pad-x); }
.topbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.topbar .wordmark { font-weight: 600; text-decoration: none; color: var(--ink); }
.topbar .wordmark span { color: var(--muted); font-weight: 400; }
.topbar .demo-title { font-family: var(--mono); font-size: var(--fs-0); color: var(--accent-ink); margin-right: auto; }
.topbar nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-1); }
.topbar nav li { margin: 0; }
.topbar nav a { text-decoration: none; color: var(--muted); }
.topbar nav a:hover { color: var(--ink); }
.banner { border-left: 3px solid var(--accent); background: var(--accent-tint); padding: 0.85rem 1rem; margin: 1.5rem 0 1.5rem; font-size: var(--fs-1); max-width: none; }
.note { border-left: 3px solid var(--accent); background: var(--accent-tint); padding: 0.85rem 1rem; margin: 1rem 0; font-size: var(--fs-1); }
.note--warn { border-left-color: var(--warn-line); background: var(--warn-tint); }
.lede { color: var(--muted); max-width: var(--measure); }
.foot-note { font-size: var(--fs-0); color: var(--muted); max-width: var(--measure); margin-top: 1.25rem; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--ink); margin-bottom: 2rem; }
.tab { font: inherit; font-weight: 500; font-size: var(--fs-1); background: transparent; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 0.6rem 1rem; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.view[hidden] { display: none; }

/* ---------- buttons, fields ---------- */
.btn { font: inherit; font-weight: 500; padding: 0.55rem 1rem; border-radius: 2px; cursor: pointer; background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--panel); color: var(--ink); }
.btn--small { padding: 0.3rem 0.65rem; font-size: var(--fs-0); }
.field { display: block; font-size: var(--fs-1); color: var(--muted); margin: 0.9rem 0 0.3rem; }
textarea, input[type="search"], select { font: inherit; width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--white); color: var(--ink); }
textarea { resize: vertical; font-family: var(--mono); font-size: 0.875em; line-height: 1.45; }
.check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-1); color: var(--ink); }
.check input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--accent); }
.ctl-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: end; margin-top: 0.75rem; }
.ctl-row .field { margin: 0; display: grid; gap: 0.3rem; }
.ctl-row select { width: auto; min-width: 11rem; }
.help { font-size: var(--fs-0); color: var(--muted); margin: 0.6rem 0 1rem; max-width: 44ch; }
.attach { margin-top: 0.75rem; font-size: var(--fs-1); }
.attach summary { cursor: pointer; color: var(--accent-ink); }
.attach textarea { margin-top: 0.5rem; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0.25rem; }
.chip { font: inherit; font-size: var(--fs-0); font-family: var(--mono); padding: 0.3rem 0.6rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- route grid ---------- */
.route-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3rem; }
@media (min-width: 1000px) { .route-grid { grid-template-columns: 24rem minmax(0, 1fr); } }
.decision { border-top: 2px solid var(--ink); padding-top: 1rem; }
.pill-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; }
.pill { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--mono); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; padding: 0.35rem 0.85rem; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--white); color: var(--ink); }
.pill .pip { width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; flex: none; }
.pill[data-tier="local-fast"], .pill[data-tier="local-think"], .pill[data-tier="laptop"] { color: var(--accent-ink); border-color: var(--accent); }
.pill[data-tier="frontier"], .pill[data-tier="design"] { color: var(--ink); background: var(--panel); border-color: var(--ink); }
.pill[data-tier="big-node"] { color: var(--muted); border-color: var(--muted); }
.pill[data-tier="human"] { color: var(--fail-ink); background: var(--fail-tint); border-color: var(--fail-ink); }
.pill[data-tier="unsure"] { color: var(--warn-ink); background: var(--warn-tint); border-color: var(--warn-line); }
.pill[data-tier="unsure"] .pip { background: transparent; border: 1px solid currentColor; }
.rule-id { font-size: var(--fs-1); color: var(--muted); }
.unsure-note { border-left: 3px solid var(--warn-line); background: var(--warn-tint); color: var(--warn-ink); padding: 0.75rem 1rem; font-size: var(--fs-1); margin-top: 1rem; }
.unsure-note[hidden] { display: none; }

.waterfall { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); font-size: var(--fs-1); }
.waterfall li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); margin: 0; align-items: baseline; }
.waterfall .st { font-family: var(--mono); font-size: var(--fs-0); white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4em; }
.waterfall .st::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; border: 1px solid currentColor; flex: none; }
.waterfall .st-matched { color: var(--accent-ink); }
.waterfall .st-matched::before { background: currentColor; }
.waterfall .st-no { color: var(--muted); }
.waterfall .st-skipped { color: var(--faint); }
.waterfall .st-skipped::before { border-style: dashed; }
.waterfall li.hit { background: var(--accent-tint); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; }
.waterfall li.hit.hit-human { background: var(--fail-tint); }
.waterfall li.hit.hit-unsure { background: var(--warn-tint); }
.waterfall li.dim { color: var(--faint); }
.waterfall .lbl { font-weight: 500; }
.waterfall .ev { display: block; color: var(--muted); font-size: var(--fs-0); }
.waterfall .ev code { background: transparent; padding: 0; }
.waterfall .post { grid-column: 1 / -1; font-family: var(--mono); font-size: var(--fs-0); color: var(--faint); padding-top: 0.6rem; }

.meter { font-size: var(--fs-0); color: var(--muted); }
.meter-bar { position: relative; height: 0.55rem; background: var(--panel); border: 1px solid var(--rule-strong); border-radius: 2px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--accent); width: 0; }
.meter-marks i { position: absolute; top: 0; width: 1px; height: 100%; background: var(--ink); opacity: 0.5; }
.meter-ticks { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-family: var(--mono); margin-top: 0.35rem; }
.meter-ticks span::before { content: "|"; color: var(--rule-strong); margin-right: 0.35rem; }
.meter-text { margin-top: 0.1rem; }

.next { border: 1px solid var(--rule); background: var(--white); padding: 0.9rem 1rem; font-size: var(--fs-1); }
.next .chain { font-family: var(--mono); font-size: var(--fs-0); color: var(--accent-ink); margin-bottom: 0.4rem; }
.next p { margin: 0; }
.next.is-human { border-color: var(--fail-ink); background: var(--fail-tint); }
.next.is-unsure { border-color: var(--warn-line); background: var(--warn-tint); }
.see-graph { font-size: var(--fs-1); margin-top: 0.75rem; }

/* ---------- workflows view ---------- */
.counter { font-family: var(--mono); font-size: var(--fs-0); color: var(--muted); margin-bottom: 1.25rem; }
.wf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; }
@media (min-width: 721px) { .wf-grid { grid-template-columns: 17rem minmax(0, 1fr); } .wf-select, .wf-select-label { display: none; } }
@media (max-width: 720px) { .wf-list { display: none; } }
@media (min-width: 721px) { .wf-grid.is-wide { grid-template-columns: minmax(0, 1fr); } .wf-grid.is-wide .wf-list { display: none; } .wf-grid.is-wide .wf-select, .wf-grid.is-wide .wf-select-label { display: block; } .wf-grid.is-wide .wf-list-col { max-width: 24rem; } }
@media (max-width: 720px) { .wide-ctl { display: none; } }
.wf-list { border-top: 2px solid var(--ink); max-height: 70vh; overflow: auto; }
.wf-group { font-family: var(--mono); font-size: var(--fs-0); color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.7rem 0 0.2rem; }
.wf-row { display: block; width: 100%; text-align: left; font: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--rule); padding: 0.5rem 0.4rem; cursor: pointer; color: var(--ink); }
.wf-row:hover { background: var(--panel); }
.wf-row[aria-pressed="true"] { background: var(--accent-tint); box-shadow: inset 3px 0 0 var(--accent); }
.wf-row .nm { font-weight: 500; font-size: var(--fs-1); overflow-wrap: anywhere; }
.wf-row .mt { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.wf-row[hidden] { display: none; }
.badge { display: inline-block; font-family: var(--mono); font-size: 0.7rem; padding: 0.05em 0.4em; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--muted); background: var(--white); }
.badge--err { color: var(--accent-ink); border-color: var(--accent); }
.graph-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.graph-ctl { display: flex; gap: 1rem; }
.wf-meta { font-family: var(--mono); font-size: var(--fs-0); color: var(--muted); margin: 0.3rem 0 0.4rem; }
.wf-note { font-size: var(--fs-1); color: var(--muted); margin-bottom: 0.75rem; }
.wf-note:empty { display: none; }
.graph-wrap { border: 1px solid var(--rule); background: var(--white); overflow: auto; max-height: 80vh; }
.graph-wrap[hidden] { display: none; }
.graph-wrap svg { display: block; }
.gnode { cursor: pointer; }
.gnode rect { fill: var(--white); stroke: var(--rule-strong); stroke-width: 1; }
.gnode.k-trigger rect { stroke: var(--accent); stroke-width: 1.5; }
.gnode.k-ai rect { fill: var(--accent-tint); stroke: var(--accent); stroke-dasharray: 3 2; }
.gnode.k-code rect { fill: var(--panel); }
.gnode.k-branch rect { stroke: var(--ink); }
.gnode.off rect { stroke-dasharray: 2 3; fill: var(--paper); }
.gnode.off text { fill: var(--faint); }
.gnode:hover rect, .gnode.sel rect { stroke: var(--accent-ink); stroke-width: 2; }
.gnode text { font-family: var(--sans); font-size: 12px; fill: var(--ink); pointer-events: none; }
.gnode text.kd { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.gnode .credpip { fill: var(--warn-line); }
.gnode .port { fill: var(--white); stroke: var(--rule-strong); }
.gedge { fill: none; stroke: var(--rule-strong); stroke-width: 1.3; }
.gedge.ai { stroke: var(--accent); stroke-dasharray: 4 3; }
.gedge.hl { stroke: var(--accent-ink); stroke-width: 2.2; }
.glabel { font-family: var(--mono); font-size: 9px; fill: var(--muted); }
.glabel.hl { fill: var(--accent-ink); font-weight: 600; }
svg.has-hl .gnode:not(.hl) rect { opacity: 0.45; }
svg.has-hl .gnode:not(.hl) text { opacity: 0.5; }
svg.has-hl .gedge:not(.hl) { opacity: 0.35; }
.gnode.hl rect { stroke: var(--accent-ink); stroke-width: 2; }
.gband { stroke: var(--rule); stroke-dasharray: 2 4; }
.node-card { border: 1px solid var(--rule-strong); border-left: 3px solid var(--accent); background: var(--panel); padding: 0.85rem 1rem; margin-top: 1rem; font-size: var(--fs-1); }
.node-card[hidden] { display: none; }
.node-card h3 { font-size: var(--fs-2); margin-bottom: 0.3rem; }
.node-card dl { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.2rem 1rem; margin: 0; }
.node-card dt { font-family: var(--mono); font-size: var(--fs-0); color: var(--faint); }
.node-card dd { margin: 0; }
.node-card .closecard { float: right; }
.legend { font-family: var(--mono); font-size: var(--fs-0); color: var(--muted); margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.lg::before { content: ""; display: inline-block; width: 1.4rem; height: 0; border-top: 2px solid var(--rule-strong); margin-right: 0.4rem; vertical-align: middle; }
.lg-ai::before { border-top-color: var(--accent); border-top-style: dashed; }
.lg-cred::before { width: 0.5rem; height: 0.5rem; border: 0; border-radius: 50%; background: var(--warn-line); }
.lg-off::before { border-top-style: dotted; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.table-wrap[hidden] { display: none; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-1); line-height: 1.4; }
caption { text-align: left; font-family: var(--mono); font-size: var(--fs-0); color: var(--muted); padding: 0 0 0.75rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 1rem 0.6rem 0; border-top: 1px solid var(--rule); }
thead th { font-weight: 500; color: var(--muted); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: var(--fs-0); }
tbody tr:last-child td { border-bottom: 2px solid var(--ink); }
td.num, th.num { font-family: var(--mono); font-size: 0.875em; }

/* ---------- access matrix ---------- */
.matrix { margin-top: 0.75rem; }
.matrix td.cell { white-space: nowrap; }
.matrix td.cell .dash { color: var(--faint); }
.matrix td.cell small { display: block; white-space: normal; color: var(--muted); font-size: var(--fs-0); }
.matrix td.client { font-weight: 500; }
.matrix td.client small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-0); }
.verb { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--mono); font-size: 0.72rem; padding: 0.25em 0.5em; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--white); color: var(--muted); white-space: nowrap; }
.verb::before { content: ""; width: 0.45em; height: 0.45em; border-radius: 50%; background: currentColor; }
.verb--read { color: var(--accent-ink); border-color: var(--accent); }
.verb--write { color: var(--white); background: var(--accent-ink); border-color: var(--accent-ink); }
.verb--claim { color: var(--white); background: var(--accent); border-color: var(--accent); }
.verb--guarded { color: var(--warn-ink); border-color: var(--warn-line); background: var(--warn-tint); }
.verb--draft { color: var(--accent-ink); border-color: var(--accent); border-style: dashed; }
.verb--internal { color: var(--muted); border-style: dashed; }
.verb--internal::before { background: transparent; border: 1px solid currentColor; }
.matrix-notes { font-size: var(--fs-0); color: var(--muted); max-width: var(--measure); }
.tools-panel { border: 1px solid var(--rule); background: var(--white); padding: 1rem 1.25rem; margin: 1.25rem 0; }
.tools-panel[hidden] { display: none; }
.tools-panel h2 { font-size: var(--fs-2); margin-bottom: 0.25rem; }
.tools-panel .summary { color: var(--muted); font-size: var(--fs-1); }
.tools-panel table { margin-top: 0.75rem; }
.tools-panel td.tn { font-family: var(--mono); font-size: 0.875em; white-space: nowrap; }
.rule-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.rule-card { border-top: 2px solid var(--accent); padding-top: 0.75rem; font-size: var(--fs-1); }
.rule-card h3 { font-size: var(--fs-1); font-family: var(--sans); font-weight: 600; margin-bottom: 0.4rem; }
.rule-card p { color: var(--muted); }

/* ---------- footer ---------- */
.footer { margin-top: 4rem; padding-top: 1.5rem; padding-bottom: 3rem; border-top: 2px solid var(--ink); font-size: var(--fs-1); color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 2.5rem; }
.footer .mono { display: block; color: var(--faint); }
.footer p { max-width: var(--measure); }
.footer ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer li { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .footer .cols { grid-template-columns: 1fr; }
  .footer .mono { margin-bottom: 0.5rem; }
  .waterfall li { grid-template-columns: 1fr; gap: 0.1rem; }
  .pill { font-size: 1.25rem; }
  .graph-wrap { max-height: 60vh; }
  .ctl-row select { min-width: 0; width: 100%; }
  .ctl-row .field { width: 100%; }
  th, td { padding-right: 0.75rem; }
  .matrix td.cell { white-space: normal; }
  .matrix thead { display: none; }
  .matrix caption { display: block; width: auto; }
  .matrix, .matrix tbody, .matrix tr, .matrix td { display: block; }
  .matrix tr { border-top: 1px solid var(--rule); padding: 0.75rem 0; }
  .matrix tbody tr:last-child { border-bottom: 2px solid var(--ink); }
  .matrix td, .matrix tbody tr:last-child td { border: 0; padding: 0.2rem 0; }
  .matrix td.cell { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.5rem; align-items: center; }
  .matrix td.cell::before { content: attr(data-label); font-family: var(--mono); font-size: var(--fs-0); color: var(--faint); }
  .matrix td.client { padding-bottom: 0.4rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .chip, .btn, a, .tab, .wf-row { transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease; }
  .gnode rect, .gedge { transition: opacity 160ms ease, stroke 160ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- print: the waterfall and the matrix print; the graph prints as its table ---------- */
@media print {
  .skip, .tabs, .topbar nav, .chips, .btn, .graph-ctl, .see-graph, .tools-panel[hidden], .graph-wrap { display: none !important; }
  .view[hidden] { display: block; }
  .table-wrap[hidden] { display: block; }
  html { background: #fff; }
  body { font-size: 11pt; color: #000; }
  .page { max-width: none; padding: 0 0.25in; }
  a { color: inherit; text-decoration: none; }
  .route-grid, .wf-grid { grid-template-columns: 1fr; }
  .wf-list { max-height: none; }
  .waterfall li, .rule-card, .next, .node-card { break-inside: avoid; }
  .view { break-before: page; }
  .view:first-of-type { break-before: auto; }
}
