:root {
  color-scheme: dark;
  --page:#0b1017; --ink:#f3f5f8; --muted:#adbacb; --line:#344253;
  --gpu:#c2a9f4; --gpu-wash:#211c2c; --htp:#8ee8c2; --htp-wash:#132821;
  --cpu:#9bbdff; --failed:#efb578; --hover:#1b2633;
  font-family:"Segoe UI","Aptos",Helvetica,sans-serif;
  color:var(--ink); background:var(--page); font-synthesis:none;
  text-rendering:optimizeLegibility; scrollbar-color:#52657b var(--page);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; }
::selection { background:var(--htp); color:var(--page); }
a { color:var(--ink); text-underline-offset:.22em; }
a:hover { color:var(--htp); }
/* Reference links: look like the text around them, underlined quietly; mint on hover. */
a.ref { color:inherit; text-decoration:underline; text-decoration-color:rgba(173,186,203,.55); text-decoration-thickness:1px; text-underline-offset:.22em; }
a.ref:hover { color:var(--htp); text-decoration-color:var(--htp); }
.editing a.ref { pointer-events:none; }
@media print { a.ref { text-decoration:none; } }
:focus-visible { outline:2px solid var(--htp); outline-offset:5px; }
.skip { position:absolute; top:-80px; left:24px; padding:12px; background:var(--htp); color:var(--page); z-index:3; }
.skip:focus { top:12px; }
.skip:hover { color:var(--page); }
.page { max-width:1080px; margin:auto; padding:0 36px 32px; }
.editor { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; border-bottom:1px solid var(--line); padding:17px 0; }
#edit-status { flex-basis:100%; color:var(--muted); font-size:13px; line-height:1.6; }
#edit-status:empty { display:none; }
button { color:var(--ink); background:transparent; border:1px solid #526175; padding:10px 14px; min-height:44px; border-radius:4px; cursor:pointer; font:inherit; font-size:13px; transition:background-color 150ms,border-color 150ms; }
button:hover { background:var(--hover); border-color:var(--ink); }
button[aria-pressed="true"] { color:var(--htp); background:var(--htp-wash); border-color:var(--htp); }
.intro { padding:45px 0 28px; }
h1 { max-width:34ch; margin:0 0 25px; font-size:58px; line-height:1.08; font-weight:620; letter-spacing:-.035em; }
h2 { font-size:26px; line-height:1.25; font-weight:600; letter-spacing:-.025em; margin:0 0 17px; }
p { max-width:73ch; margin:0; font-size:17px; line-height:1.7; color:var(--muted); }
p + p { margin-top:16px; }
.intro p { max-width:67ch; font-size:20px; line-height:1.65; }
section { padding:29px 0 36px; }
section + section { border-top:1px solid var(--line); padding-top:35px; }
figure { margin:24px 0 0; }
blockquote { max-width:52ch; font-size:23px; line-height:1.5; margin:24px 0; letter-spacing:-.015em; }
.nowrap { white-space:nowrap; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.table-wrap { margin-top:24px; overflow-x:auto; }
.bench { width:100%; border-collapse:collapse; font-size:15px; line-height:1.5; }
.bench th, .bench td { text-align:left; padding:13px 18px 13px 0; border-bottom:1px solid var(--line); vertical-align:top; }
.bench thead th { padding-top:0; font-size:13px; font-weight:550; color:var(--muted); border-bottom-color:#526175; }
.bench tbody th { font-weight:550; color:var(--ink); white-space:nowrap; }
.bench td[data-rtf], .bench td.blocked, .bench td.muted { white-space:nowrap; font-variant-numeric:tabular-nums; }
.bench .cpu { color:var(--cpu); }
.bench .npu { color:var(--htp); }
.bench td.blocked { color:var(--failed); }
.bench td.muted { color:var(--muted); }
.bench .gpu { color:var(--gpu); }
.bench.llm td[data-prefill], .bench.llm td[data-decode], .bench.llm td.blocked { text-align:right; padding-right:28px; }
.bench.llm thead th:nth-child(3), .bench.llm thead th:nth-child(4) { text-align:right; padding-right:28px; }
.bench td:last-child { color:var(--muted); padding-right:0; }
.note-box { display:flex; flex-wrap:wrap; align-items:center; gap:8px 24px; width:fit-content; max-width:100%; margin-top:16px; padding:12px 18px; border:1px solid var(--line); font-size:14px; line-height:1.6; color:var(--muted); }
.formula { color:var(--ink); }
.formula math { font-size:17px; font-family:"Latin Modern Math","STIX Two Math","Cambria Math",math,serif; }
.formula mtext { font-family:"Segoe UI","Aptos",Helvetica,sans-serif; font-size:.8em; }
.formula mfrac { padding:0 .15em; }
.formula mfrac mtext { padding:.1em .25em; }
.sub { margin:38px 0 8px; font-size:17px; font-weight:600; letter-spacing:-.01em; line-height:1.4; }
.sub:first-of-type { margin-top:22px; }
.tldr { margin:14px 0 0; font-size:16px; line-height:1.6; }
.tldr a { color:var(--htp); }
.tldr a:hover { color:var(--ink); }
.demo { margin:8px 0 12px; }
.demo video { display:block; width:100%; max-height:min(78vh,720px); background:#05080c; border:1px solid var(--line); }
.demo-status { max-width:none; padding:56px 24px; border:1px dashed #526175; text-align:center; font-size:15px; }
.closing { max-width:none; margin:20px 0 28px; padding-top:24px; border-top:1px solid var(--line); font-size:20px; line-height:1.6; color:var(--ink); }
.closing a { color:var(--htp); }
.listening-pair { display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.listening { min-width:0; border-top:1px solid var(--line); padding-top:14px; }
.listening h3 { margin:0 0 12px; font-size:15px; font-weight:550; line-height:1.5; }
.listening h3 span { color:var(--failed); margin-left:10px; font-weight:400; }
.recovered h3 span { color:var(--htp); }
audio { display:block; width:100%; height:42px; }
.listening a { display:inline-block; margin-top:10px; font-size:12px; color:var(--muted); }
.audio-status { margin-top:12px; font-size:13px; color:var(--failed); }
.chart { position:relative; height:300px; margin:34px 16px 58px 52px; border-left:1px solid #526175; border-bottom:1px solid #526175; }
.chart svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.chart line, .chart polyline { vector-effect:non-scaling-stroke; }
.threshold { stroke:var(--muted); stroke-width:1; stroke-dasharray:4 4; }
.series { fill:none; stroke-linejoin:round; }
.series.orig { stroke:var(--failed); stroke-width:2.2; }
.series.kept { stroke:var(--htp); stroke-width:2.6; }
.tick { position:absolute; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.tick.y { right:calc(100% + 9px); transform:translateY(-50%); }
.tick.x { top:calc(100% + 9px); transform:translateX(-50%); white-space:nowrap; }
.tick.x.end { transform:translateX(-100%); }
.note { position:absolute; font-size:12px; color:var(--muted); white-space:nowrap; }
.threshold-note { right:6px; transform:translateY(-120%); }
.stop-note { top:3%; margin-left:24px; color:var(--htp); }
.never-note { right:6px; transform:translateY(-50%); color:var(--failed); }
.axis-name { position:absolute; font-size:12px; color:var(--muted); }
.axis-name.y { left:-52px; top:-27px; }
.axis-name.x { right:0; top:calc(100% + 30px); }
.legend { display:flex; flex-wrap:wrap; gap:8px 22px; padding:0; margin:0 0 14px; list-style:none; font-size:13px; color:var(--muted); }
.legend .orig::before { border-color:var(--failed); }
.legend .kept::before { border-color:var(--htp); }
.legend li::before { content:""; display:inline-block; width:22px; margin-right:8px; vertical-align:middle; border-top:3px solid; }
.editing [data-edit] { outline:1px dashed var(--htp); outline-offset:6px; cursor:text; overflow-wrap:anywhere; }
.editing [data-edit]:focus { outline:2px solid var(--htp); }
summary { cursor:pointer; color:var(--muted); font-size:13px; padding:8px 0; width:fit-content; }
@media (max-width:760px) {
  h1 { font-size:43px; }
  .page { padding:0 24px 26px; }
}
@media (max-width:540px) {
  .page { padding:0 20px 24px; }
  .intro { padding-top:32px; }
  h1 { font-size:36px; }
  h2 { font-size:25px; }
  .intro p { font-size:18px; }
  blockquote { font-size:21px; }
  .listening-pair { grid-template-columns:1fr; gap:23px; }
  .chart { height:240px; margin:32px 18px 58px 42px; }
  .axis-name.y { left:-42px; }
  .legend { flex-direction:column; gap:6px; }
  .bench, .bench tbody { display:block; }
  .bench thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .bench tr { display:grid; grid-template-columns:1fr 1fr; gap:3px 14px; padding:13px 0; border-bottom:1px solid var(--line); }
  .bench th, .bench td { padding:0; border:0; }
  .bench tbody th { grid-column:1 / -1; }
  .bench td[data-label]::before { content:attr(data-label); display:block; color:var(--muted); font-size:12px; font-weight:400; }
  .bench td:last-child { grid-column:1 / -1; margin-top:4px; }
  .bench td:last-child::before { content:none; }
  .bench.llm tr { grid-template-columns:1fr 1fr 1fr; }
  .bench.llm td[data-prefill], .bench.llm td[data-decode], .bench.llm td.blocked { text-align:left; padding-right:0; }
  .bench.llm td:last-child:empty { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  button { transition:none; }
}
@media print {
  :root { --page:white; --ink:#15202b; --muted:#344253; --line:#bbc5cf; --gpu:#68418d; --gpu-wash:#f5eefc; --htp:#177553; --htp-wash:#edf8f1; --cpu:#245fab; --failed:#9a4c0f; --hover:#e7edf5; }
  body { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  .editor, .skip, .figure-controls, audio, .demo video { display:none; }
  figure { break-inside:avoid; }
}

/* System flow figure: swimlanes, one lane per device; one column per step in the order it happens.
   Gap columns are a fixed 14px and lane rows have fixed heights, so the SVG connectors are exact (generated by evidence/build-system-flow.py). */
  .qflow {
    --q-bg:#0b1017; --q-text:#f3f5f8; --q-muted:#adbacb; --q-line:#344253;
    --q-npu:#8ee8c2; --q-gpu:#c2a9f4; --q-cpu:#9bbdff;
    box-sizing:border-box; margin:6px 0 0; padding:0; color:var(--q-text);
  }
  .qflow *, .qflow *::before, .qflow *::after { box-sizing:border-box; }
  .qflow-swim { display:grid; grid-template-columns:78px minmax(0,1fr) repeat(7,14px minmax(0,1fr)); grid-template-rows:96px repeat(3,112px); }
  .qflow-steps { display:contents; }
  .qflow-lane { grid-column:1 / -1; z-index:0; display:flex; align-items:center; border-top:1px solid var(--q-line); }
  .qflow-lane-computer { background:rgba(255,255,255,.022); border-top:0; }
  .qflow-lane-cpu { background:rgba(155,189,255,.045); border-top:1px solid #54667f; }
  .qflow-lane-gpu { background:rgba(194,169,244,.05); }
  .qflow-lane-npu { background:rgba(142,232,194,.045); border-bottom:1px solid var(--q-line); }
  .qflow-lane-name { width:78px; padding-left:8px; display:flex; flex-direction:column; font-size:13px; font-weight:650; line-height:1.25; color:var(--q-muted); }
  .qflow-lane-name small { font-size:12px; font-weight:500; color:var(--q-muted); }
  .qflow-lane-cpu .qflow-lane-name { color:var(--q-cpu); }
  .qflow-lane-gpu .qflow-lane-name { color:var(--q-gpu); }
  .qflow-lane-npu .qflow-lane-name { color:var(--q-npu); }
  .qflow-node {
    --q-route:var(--q-cpu); grid-row:var(--row); grid-column:var(--col); z-index:2; align-self:center; position:relative; min-width:0; height:88px;
    margin:0; padding:8px 7px; list-style:none; background:var(--q-bg); border:1px solid var(--q-line); border-radius:3px;
    display:flex; flex-direction:column; gap:4px; overflow:hidden;
  }
  .qflow-title { display:block; font-size:13px; font-weight:600; line-height:1.25; color:var(--q-text); }
  .qflow-detail { display:block; font-size:12px; line-height:1.35; color:var(--q-muted); }
  .qflow-computer { --q-route:var(--q-muted); }
  .qflow-gpu { --q-route:var(--q-gpu); border-color:var(--q-gpu); }
  .qflow-npu { --q-route:var(--q-npu); border-color:var(--q-npu); }
  .qflow-gpu .qflow-title, .qflow-npu .qflow-title { color:var(--q-route); }
  .qflow-optional { border-style:dashed; }
  .qflow-where, .qflow-mobile-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .qflow-edge, .qflow-loop { z-index:1; position:relative; pointer-events:none; }
  .qflow-edge svg, .qflow-loop svg { display:block; width:100%; height:100%; overflow:visible; }
  .qflow-edge path, .qflow-loop path { fill:none; stroke:var(--q-muted); stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round; }
  .qflow-loop { width:14px; }
  .qflow-loop-label { position:absolute; left:20px; top:112px; transform:translateY(-50%); font-size:12px; line-height:1.2; white-space:nowrap; color:var(--q-muted); }
  .qflow-box { z-index:1; align-self:center; height:100px; margin:0 -5px; border:1px dashed var(--q-npu); border-radius:5px; }
  .qflow-prov-h, .qflow-prov-v { z-index:1; position:relative; pointer-events:none; }
  .qflow-prov-h::before { content:""; position:absolute; left:0; right:7px; top:48px; border-top:2px dotted var(--q-npu); }
  .qflow-prov-v::before { content:""; position:absolute; left:calc(50% - 1px); top:48px; height:calc(100% - 48px - 112px + 6px - 2px); border-left:2px dotted var(--q-npu); }
  .qflow-prov-v::after { content:""; position:absolute; left:calc(50% - 5px); bottom:106px; border:5px solid transparent; border-top:7px solid var(--q-npu); border-bottom:0; }
  .qflow-prov-label { z-index:1; align-self:start; margin:56px 0 0; padding:0; max-width:none; font-size:12px; line-height:1.4; color:var(--q-npu); }
  @media (max-width:1039px) {
    /* Narrow screens: the same steps as a plain ordered list, each tagged with the device it runs on. */
    .qflow { max-width:660px; }
    .qflow-swim { display:block; }
    .qflow-steps { display:block; margin:0; padding:0; }
    .qflow-lane, .qflow-edge, .qflow-loop, .qflow-box, .qflow-prov-h, .qflow-prov-v, .qflow-prov-label { display:none; }
    .qflow-node { height:auto; margin:0 0 30px; padding:13px 14px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; align-items:start; overflow:visible; }
    .qflow-node { border-left:3px solid var(--q-route); }
    .qflow-node:last-child { margin-bottom:0; }
    .qflow-title { font-size:16px; line-height:1.35; }
    .qflow-detail { grid-column:1 / -1; font-size:13px; }
    .qflow-where { position:static; grid-column:2; grid-row:1; width:auto; height:auto; clip-path:none; overflow:visible; color:var(--q-route); font-size:12px; font-weight:600; line-height:1.4; white-space:nowrap; }
    .qflow-mobile-only { position:static; grid-column:1 / -1; width:auto; height:auto; clip-path:none; overflow:visible; white-space:normal; font-size:12px; line-height:1.6; color:var(--q-npu); }
    .qflow-p4 .qflow-mobile-only, #qflow-p4 .qflow-mobile-only { color:var(--q-muted); }
    .qflow-node:not(:last-child)::after { content:"\2193"; content:"\2193" / ""; position:absolute; left:18px; bottom:-24px; font-size:15px; line-height:1; color:var(--q-muted); }
    }
  @media print {
    .qflow { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
    .qflow-node { break-inside:avoid; }
  }
