:root {
  color-scheme: dark;
  --bg: #090e17;
  --panel: #111a27;
  --panel-soft: #0d1521;
  --line: #253247;
  --text: #edf2fa;
  --muted: #a2afc3;
  --dim: #75859e;
  --blue: #91b7ff;
  --green: #68dec0;
  --amber: #f6cc80;
  --violet: #c3a6ff;
  --red: #ff929b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body:not(.reading) { overflow: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, select { color: var(--text); cursor: pointer; }
button { border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 10px 15px; }
button:hover:not(:disabled) { background: #1a283b; border-color: #627791; }
button:disabled { cursor: not-allowed; opacity: .4; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
p, h1, h2, h3 { margin: 0; }
code, pre, kbd { font-family: var(--mono); }
kbd { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; background: var(--panel); padding: 14px; }
.skip-link:focus { top: 10px; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--line); background: #090e17f5; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text); }
.brand > span { font-size: 21px; font-weight: 750; letter-spacing: -.8px; line-height: 1; }
.brand-dot { color: var(--green); }
.brand small { display: block; font-size: 8px; font-weight: 600; letter-spacing: 1.6px; margin-top: 5px; color: var(--dim); }
.top-context { font-family: var(--mono); font-size: 10px; letter-spacing: .9px; color: var(--muted); }
.top-context > span:first-child { margin: 0 14px; color: var(--line); }
.top-actions { display: flex; align-items: center; gap: 7px; }
.top-actions button { background: transparent; border-color: transparent; font-size: 12px; padding: 9px 10px; }
.top-actions kbd { margin-left: 5px; }
#fullscreen-button { font-size: 23px; line-height: 1; }
.shell { display: grid; grid-template-columns: 176px minmax(0, 1fr); height: calc(100dvh - 150px); }
.chapter-rail { padding: 22px 12px 16px 18px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid #1b2739; overflow-y: auto; scrollbar-width: none; }
.chapter-button { display: flex; align-items: flex-start; gap: 10px; background: none; border: 0; border-left: 2px solid transparent; border-radius: 0; padding: 9px 7px 9px 10px; text-align: left; color: var(--dim); flex: none; }
.chapter-button .chapter-number { font: 11px var(--mono); line-height: 18px; }
.chapter-button strong { font-size: 12px; display: block; font-weight: 650; }
.chapter-button small { display: block; font-size: 10px; line-height: 1.5; margin-top: 3px; color: var(--dim); }
.chapter-button[aria-current="true"] { border-color: var(--green); color: var(--green); background: #68dec008; }
.rail-bottom { margin-top: auto; padding: 20px 12px 0; border-top: 1px solid var(--line); font: 9px/1.8 var(--mono); color: var(--dim); }
.rail-bottom span { color: var(--green); }
main { overflow: auto; position: relative; scroll-behavior: auto; background:
  radial-gradient(900px 600px at 92% -8%, #91b7ff12, transparent 60%),
  radial-gradient(800px 600px at -5% 105%, #68dec00d, transparent 60%),
  linear-gradient(#ffffff05 1px, transparent 1px) 0 0 / 44px 44px,
  linear-gradient(90deg, #ffffff05 1px, transparent 1px) 0 0 / 44px 44px; }
.slide { padding: 43px clamp(25px, 4.2vw, 80px) 26px; min-height: 100%; display: flex; flex-direction: column; gap: 25px; }
.slide[hidden] { display: none; }
.slide-head { max-width: 1080px; }
.eyebrow { color: var(--green); letter-spacing: 2px; font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow .step { color: var(--dim); margin-right: 10px; font-family: var(--mono); }
h1 { font-size: clamp(56px, 6.4vw, 102px); font-weight: 780; letter-spacing: -5px; line-height: .99; white-space: pre-line; }
h2 { font-size: clamp(29px, 2.9vw, 46px); line-height: 1.12; letter-spacing: -1.65px; font-weight: 730; }
.lead { font-size: clamp(15px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 960px; margin-top: 17px; }
.slide-body { flex: 1; display: flex; flex-direction: column; gap: 21px; }
.slide-bottom { margin-top: auto; }
.takeaway { display: flex; gap: 14px; align-items: baseline; padding: 16px 19px; border: 1px solid #68dec029; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; background: #68dec005; font-size: 14px; line-height: 1.55; }
.takeaway-label { flex: none; font: 9px var(--mono); letter-spacing: 1px; color: var(--green); }
.source-footer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; margin-top: 12px; font-size: 10px; color: var(--dim); }
.source-footer a { color: var(--muted); text-decoration-color: #394a62; }
.source-more { font-size: 10px; padding: 0; border: 0; background: none; color: var(--blue); }
.simple-note { margin: 15px 0 0; padding: 16px 19px; background: #f6cc8008; border: 1px solid #f6cc8030; border-radius: 9px; color: var(--amber); font-size: 15px; line-height: 1.7; }
.simple-note strong { display: block; font: 10px var(--mono); letter-spacing: 1px; margin-bottom: 7px; }
.simple-note[hidden] { display: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.cards.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cards.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card { --tone: var(--blue); position: relative; backdrop-filter: blur(4px); background: linear-gradient(135deg, #142033 0%, var(--panel-soft) 95%); border: 1px solid var(--line); border-radius: 12px; padding: 23px; }
[data-tone="green"] { --tone: var(--green); }
[data-tone="amber"] { --tone: var(--amber); }
[data-tone="violet"] { --tone: var(--violet); }
[data-tone="red"] { --tone: var(--red); }
.card[data-tone="green"] { background: linear-gradient(135deg, #102b2b60, var(--panel-soft)); }
.card[data-tone="violet"] { background: linear-gradient(135deg, #261e3c80, var(--panel-soft)); }
.card[data-tone="amber"] { background: linear-gradient(135deg, #332a1c60, var(--panel-soft)); }
.card-tag { display: flex; justify-content: space-between; align-items: center; font: 9px var(--mono); letter-spacing: 1px; color: var(--tone); margin-bottom: 23px; gap: 10px; }
.card-tag .index { color: var(--dim); }
.card h3 { font-size: 21px; font-weight: 650; letter-spacing: -.5px; line-height: 1.25; margin-bottom: 12px; }
.card p { font-size: 14px; line-height: 1.75; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 20px; align-items: stretch; }
.split .cards { display: flex; flex-direction: column; gap: 12px; }
.split .card { padding: 18px 20px; }
.split .card h3 { font-size: 17px; margin-bottom: 6px; }
.split .card-tag { display: none; }
.code-panel { border: 1px solid var(--line); border-radius: 12px; background: #080e18; overflow: hidden; display: flex; flex-direction: column; }
.code-header { border-bottom: 1px solid var(--line); padding: 16px 19px; font: 9px var(--mono); color: var(--dim); letter-spacing: 1px; display: flex; gap: 13px; align-items: center; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #41516a; }
pre { margin: 0; padding: 25px; color: #b9cef2; font-size: clamp(12px, 1.15vw, 16px); line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.comparison .card { padding: 29px; }
.comparison .card h3 { font-size: 27px; }
.comparison .card p { font-size: 17px; }
.examples { display: grid; gap: 10px; padding: 19px 23px; background: #0d1623; border: 1px solid var(--line); border-radius: 10px; }
.examples p { font-size: 14px; line-height: 1.65; display: flex; gap: 12px; color: var(--muted); }
.examples span { color: var(--green); }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.65; }
th { text-align: left; font: 10px var(--mono); letter-spacing: 1px; color: var(--dim); background: #162235; padding: 17px 20px; }
td { padding: 16px 20px; border-top: 1px solid var(--line); color: var(--muted); background: #0e1725; }
td:first-child { color: var(--text); font-weight: 600; width: 24%; }
tr:nth-child(even) td { background: #111c2a; }
.diagram-frame { position: relative; padding: 19px 18px 23px; border: 1px solid #22324a; border-radius: 13px; background: linear-gradient(180deg, #0d1626ee, #0a111ccc); box-shadow: inset 0 1px 0 #ffffff08, 0 20px 60px -30px #000; }
.diagram-frame::before, .diagram-frame::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--green); opacity: .55; pointer-events: none; }
.diagram-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 13px 0 0 0; }
.diagram-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 13px 0; }
.diagram-caption { font: 9px var(--mono); letter-spacing: 1px; color: var(--dim); display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 19px; }
.diagram-caption span:last-child { color: var(--muted); letter-spacing: 0; }
.live-dot { color: var(--green); display: inline-flex; align-items: center; gap: 7px; }
.live-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.diagram { position: relative; display: grid; grid-template-columns: repeat(var(--columns),minmax(0,1fr)); grid-template-rows: repeat(var(--rows),minmax(88px,auto)); column-gap: clamp(30px, 4.6vw, 76px); row-gap: 46px; isolation: isolate; }
.node { --tone: var(--blue); --glow: #91b7ff; position: relative; z-index: 2; grid-column: var(--col); grid-row: var(--row); width: 100%; min-width: 0; background: linear-gradient(160deg, #17243acc, #0f1828e6); border: 1px solid #3b506e; border-radius: 11px; text-align: left; padding: 13px 14px 14px; align-self: center; backdrop-filter: blur(6px); box-shadow: 0 0 0 0 transparent; animation: node-breathe 6s ease-in-out infinite; animation-delay: calc(var(--order, 0) * .55s); transition: transform .2s, box-shadow .2s, border-color .2s; }
.node:hover { transform: translateY(-2px); border-color: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 14%, transparent), 0 10px 30px -10px color-mix(in srgb, var(--glow) 45%, transparent); }
.node[data-tone="green"] { --tone: var(--green); --glow: #68dec0; background: linear-gradient(160deg, #123230cc, #0d1f1fe6); border-color: #2b5a51; }
.node[data-tone="violet"] { --tone: var(--violet); --glow: #c3a6ff; background: linear-gradient(160deg, #261f40cc, #171329e6); border-color: #554674; }
.node[data-tone="amber"] { --tone: var(--amber); --glow: #f6cc80; background: linear-gradient(160deg, #2e281dcc, #1d1912e6); border-color: #635035; }
.node[data-tone="red"] { --tone: var(--red); --glow: #ff929b; background: linear-gradient(160deg, #331d23cc, #1f1216e6); border-color: #6c3a43; }
@keyframes node-breathe { 0%, 82%, 100% { box-shadow: 0 0 0 0 transparent; } 88% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 55%, transparent), 0 0 26px -4px color-mix(in srgb, var(--glow) 55%, transparent); } }
.node-top { color: var(--tone); display: flex; justify-content: space-between; margin-bottom: 9px; font: 9px var(--mono); opacity: .85; }
.node-head { display: flex; gap: 11px; align-items: center; }
.node-text { min-width: 0; }
.node strong { display: block; font-size: 15px; line-height: 1.25; letter-spacing: -.2px; }
.node small { display: block; font-size: 11px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; color: var(--tone, var(--blue)); }
.ic svg { width: 100%; height: 100%; }
.ic svg.line path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic svg.brand path { fill: currentColor; }
.node-ic { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: color-mix(in srgb, var(--glow) 12%, #0b1220); border: 1px solid color-mix(in srgb, var(--glow) 30%, transparent); }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.wire { fill: none; stroke: #3c5170; stroke-width: 1.4; }
.wire.optional { stroke-dasharray: 4 5; }
.wire-flow { fill: none; stroke-width: 1.8; stroke-dasharray: 3 13; opacity: .7; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.k-blue { --k: var(--blue); } .k-green { --k: var(--green); } .k-amber { --k: var(--amber); } .k-violet { --k: var(--violet); } .k-red { --k: var(--red); }
.wire-flow { stroke: var(--k); }
.packet { fill: var(--k); filter: drop-shadow(0 0 4px var(--k)); }
.payload rect { fill: #0a1220; stroke: var(--k); stroke-width: 1; opacity: .95; }
.payload text { font: 8.5px var(--mono); fill: var(--k); text-anchor: middle; }
.wire-label { font: 9px var(--mono); fill: #a8b9cd; text-anchor: middle; paint-order: stroke; stroke: #0b1320; stroke-width: 5px; stroke-linejoin: round; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 30px; flex: 1; padding: 10px 0 20px; }
.hero h1 > span { background: linear-gradient(90deg, var(--blue), var(--green)); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero .lead { font-size: 17px; max-width: 480px; margin-top: 24px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-chips span { font: 10px var(--mono); letter-spacing: .6px; color: var(--muted); border: 1px solid #2a3b55; background: #0f1828; padding: 6px 10px; border-radius: 999px; }
.hero-chips span::before { content: '◆ '; color: var(--green); }
.hero-keys { font-size: 11px; color: var(--dim); display: flex; gap: 13px; align-items: center; margin-top: 24px; }
.hero-keys button { font-size: 12px; background: var(--green); color: #081d1a; border-color: var(--green); font-weight: 650; box-shadow: 0 0 24px -6px var(--green); }
/* Orbit cover for the teaching diagram */
.orbit-wrap { display: flex; justify-content: center; align-items: center; }
.orbit { position: relative; width: min(520px, 42vw); aspect-ratio: 1; }
.orbit-glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, #68dec01f, #91b7ff0a 55%, transparent 70%); filter: blur(6px); animation: pulse-glow 5s ease-in-out infinite; }
@keyframes pulse-glow { 50% { transform: scale(1.08); opacity: .7; } }
.ring-track { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed #26364f; transform: translate(-50%, -50%); }
.ring-track.t1 { width: 60%; height: 60%; }
.ring-track.t2 { width: 96%; height: 96%; border-style: solid; border-color: #1c2a3f; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); animation: spin 70s linear infinite; }
.ring.r1 { width: 60%; height: 60%; }
.ring.r2 { width: 96%; height: 96%; animation-duration: 110s; animation-direction: reverse; }
.sat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(var(--rr) * -1)) rotate(calc(var(--a) * -1)); }
.r1 .sat { --rr: min(156px, 12.6vw); }
.r2 .sat { --rr: min(250px, 20.2vw); }
.sat-badge { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #111b2b; border: 1px solid #2f415d; box-shadow: 0 6px 20px -8px #000; animation: counter 70s linear infinite; }
.r2 .sat-badge { animation-duration: 110s; animation-direction: reverse; }
.sat-ic { width: 24px; height: 24px; color: #dfe7f5; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes counter { to { transform: rotate(-360deg); } }
.orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: radial-gradient(circle at 30% 30%, #1b3a3a, #0d1a24); border: 1px solid #3c7f70; box-shadow: 0 0 0 8px #68dec00d, 0 0 50px -6px #68dec070; text-align: center; }
.core-ic { width: 30px; height: 30px; color: var(--green); }
.orbit-core strong { font: 700 13px var(--mono); letter-spacing: 2px; color: var(--green); }
.orbit-core small { font-size: 9px; color: var(--muted); max-width: 90%; line-height: 1.4; }
/* Cards with icons */
.card-tag-left { display: inline-flex; align-items: center; gap: 9px; }
.card-ic { width: 26px; height: 26px; padding: 5px; border-radius: 7px; background: color-mix(in srgb, var(--tone) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent); }
.cards.eight { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.cards.eight .card { padding: 17px; }
.cards.eight .card-tag { margin-bottom: 14px; }
.cards.eight .card h3 { font-size: 17px; margin-bottom: 7px; }
.cards.eight .card p { font-size: 12.5px; line-height: 1.6; }
.card { transition: border-color .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--tone) 50%, var(--line)); transform: translateY(-2px); }
/* Layers (ecosystem map) */
.layers { display: grid; gap: 9px; }
.layer { --tone: var(--blue); display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 16px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-left: 3px solid var(--tone); border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 7%, #0d1521), #0c131e); }
.layer[data-tone="green"] { --tone: var(--green); } .layer[data-tone="amber"] { --tone: var(--amber); } .layer[data-tone="violet"] { --tone: var(--violet); }
.layer-label { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.layer-index { grid-row: span 2; font: 10px var(--mono); color: var(--tone); padding-top: 3px; }
.layer-label strong { font-size: 15px; }
.layer-label small { font-size: 11px; color: var(--dim); }
.layer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.layer-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: #121c2c; border: 1px solid #2a3a53; font-size: 12.5px; }
.layer-chip em { font-style: normal; font: 9px var(--mono); color: var(--dim); }
.chip-ic { width: 18px; height: 18px; color: #dfe7f5; }
/* Rings (blast radius) */
.rings-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; align-items: center; }
.rings { position: relative; width: min(430px, 100%); aspect-ratio: 1; margin: 0 auto; }
.ring-band { --tone: var(--blue); position: absolute; left: 50%; top: 50%; width: var(--size); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--tone) 70%, transparent); background: color-mix(in srgb, var(--tone) 6%, transparent); display: flex; justify-content: center; animation: ring-pulse 4s ease-in-out infinite; animation-delay: calc(var(--i) * .45s); }
.ring-band[data-tone="green"] { --tone: var(--green); } .ring-band[data-tone="amber"] { --tone: var(--amber); } .ring-band[data-tone="red"] { --tone: var(--red); }
.ring-band span { position: absolute; top: 7%; font: 600 10px var(--mono); letter-spacing: .5px; color: var(--tone); text-transform: uppercase; text-align: center; max-width: 60%; }
@keyframes ring-pulse { 50% { box-shadow: 0 0 26px -2px color-mix(in srgb, var(--tone) 45%, transparent); } }
.rings-core { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font: 10px var(--mono); color: var(--green); }
.rings-core .ic { width: 26px; height: 26px; color: var(--green); }
.cards.stacked { grid-template-columns: 1fr; gap: 11px; }
.cards.stacked .card { padding: 16px 19px; }
.cards.stacked .card-tag { margin-bottom: 9px; }
.cards.stacked .card h3 { font-size: 17px; margin-bottom: 5px; }
/* Improvement cycle */
.cycle-stage { position: relative; height: clamp(400px, 52vh, 520px); }
.cycle-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cycle-ring { fill: none; stroke: #2c3e59; stroke-width: 1.4; }
.cycle-node { --tone: var(--blue); position: absolute; transform: translate(-50%, -50%); width: 168px; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; row-gap: 2px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 11px; background: linear-gradient(160deg, #16233acc, #0e1727f0); border: 1px solid color-mix(in srgb, var(--tone) 40%, #2b3b55); z-index: 2; }
.cycle-node[data-tone="green"] { --tone: var(--green); } .cycle-node[data-tone="amber"] { --tone: var(--amber); } .cycle-node[data-tone="violet"] { --tone: var(--violet); }
.cycle-node .cycle-num { grid-column: 1 / -1; font: 9px var(--mono); color: var(--tone); }
.cycle-node .ic { width: 22px; height: 22px; grid-row: span 2; }
.cycle-node strong { font-size: 14px; }
.cycle-node small { font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.cycle-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 210px; padding: 20px; border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; background: radial-gradient(circle at 35% 30%, #2d2616, #120f0a); border: 1px solid #7a6233; box-shadow: 0 0 0 8px #f6cc800a, 0 0 50px -8px #f6cc8066; }
.cycle-center .ic { width: 28px; height: 28px; color: var(--amber); }
.cycle-center strong { font-size: 15px; color: var(--amber); line-height: 1.25; }
.cycle-center small { font: 9px var(--mono); color: var(--muted); letter-spacing: .5px; }
/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; counter-reset: step; }
.timeline-item { --tone: var(--blue); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-top: 2px solid var(--tone); border-radius: 11px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 7%, #0e1624), #0c131e); }
.timeline-item[data-tone="green"] { --tone: var(--green); } .timeline-item[data-tone="amber"] { --tone: var(--amber); } .timeline-item[data-tone="violet"] { --tone: var(--violet); } .timeline-item[data-tone="red"] { --tone: var(--red); }
.timeline-marker { display: flex; align-items: center; justify-content: space-between; }
.timeline-marker .ic { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: color-mix(in srgb, var(--tone) 13%, transparent); }
.timeline-num { font: 700 22px var(--mono); color: color-mix(in srgb, var(--tone) 45%, transparent); }
.timeline-body h3 { font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.timeline-body p { font-size: 12px; line-height: 1.6; color: var(--muted); }
.timeline-body .timeline-evidence { margin-top: 9px; color: var(--text); font-size: 11.5px; }
.timeline-evidence span { font: 9px var(--mono); color: var(--tone); }
.recipe-list.four .recipe { padding: 16px 20px; }
table.wide td:first-child { width: 14%; }
table:has(tbody tr:nth-child(8)) td { padding: 10px 18px; font-size: 13px; line-height: 1.5; }
table.wide td { font-size: 13px; padding: 13px 16px; }
.rag-stack { display: grid; gap: 15px; }
.rag-stack .node { padding: 13px; }
.rag-stack .node-top { margin-bottom: 7px; }
.recipe-list { display: grid; gap: 15px; }
.recipe { --tone: var(--blue); border: 1px solid var(--line); background: var(--panel-soft); border-radius: 12px; padding: 21px 24px; display: grid; grid-template-columns: 215px minmax(0,1fr); gap: 20px; align-items: start; }
.recipe[data-tone="green"] { --tone: var(--green); }
.recipe[data-tone="amber"] { --tone: var(--amber); }
.recipe .card-tag { margin-bottom: 10px; }
.recipe h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.4px; }
.recipe-steps { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; }
.recipe-step { font-size: 12px; padding: 10px 12px; background: #172436; border: 1px solid #2a3c56; border-radius: 6px; }
.recipe-arrow { color: var(--tone); }
.recipe-text { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 13px; }
.decision-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 22px; }
.decision-options { display: flex; flex-direction: column; gap: 9px; }
.decision-options button { text-align: left; padding: 14px 16px; font-size: 13px; background: #111b29; }
.decision-options button[aria-pressed="true"] { color: var(--green); background: #142a29; border-color: #418071; }
.decision-result { border: 1px solid #375367; border-radius: 12px; background: linear-gradient(130deg,#132638,#0b1724); padding: 31px; }
.decision-result .eyebrow { margin-bottom: 22px; }
.decision-result h3 { font-size: 28px; line-height: 1.2; letter-spacing: -.7px; margin-bottom: 17px; }
.decision-result > p:not(.eyebrow) { font-size: 16px; line-height: 1.75; color: var(--muted); }
.decision-result .recipe-steps { margin: 25px 0; }
.avoid { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--amber); line-height: 1.6; }
.parity-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 13px 16px; border: 1px solid #3e566f; border-radius: 10px; background: #122235; }
.parity-toolbar label { font-size: 12px; color: var(--muted); }
.parity-toolbar select { flex: 1; min-width: 170px; }
.parity-toolbar button { font-size: 12px; }
.parity-toolbar .parity-run { background: var(--green); border-color: var(--green); color: #08231e; font-weight: 650; }
.parity-toolbar .parity-run:hover:not(:disabled), .lab-controls .primary:hover:not(:disabled), .hero-keys button:hover:not(:disabled), .source-cta:hover:not(:disabled) { background: #91f0d8; border-color: #91f0d8; color: #08231e; }
.parity-table td { padding: 10px 18px; }
.parity-table td:not(:first-child) { font: 17px var(--mono); }
.parity-table td[data-match="true"] { color: var(--green); }
.parity-table td[data-match="false"] { color: var(--red); background: #351c2966; }
.parity-status { padding: 12px 16px; border: 1px solid #425975; border-radius: 9px; font-size: 13px; line-height: 1.55; }
.parity-status[data-status="passed"] { color: var(--green); border-color: #418071; background: #102b24; }
.parity-status[data-status="blocked"] { color: var(--red); border-color: #945464; background: #301b25; }
.parity-explanation, .parity-multiset { font-size: 13px; color: var(--muted); line-height: 1.65; }
.parity-scope, .parity-limits { font-size: 11px; color: var(--dim); line-height: 1.65; }
.parity-raw { border: 1px solid var(--line); border-radius: 9px; padding: 13px 16px; }
.parity-raw summary { cursor: pointer; font-size: 12px; color: var(--blue); }
.parity-raw-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.parity-raw-grid pre { font-size: 11px; max-height: 230px; overflow: auto; padding: 15px; }
.slide[data-layout="parity-demo"] .slide-body { gap: 12px; }
.source-local { color: var(--amber) !important; font-size: 10px !important; }
.evidence-document { max-width: 1060px; margin: 0 auto; padding: 48px 30px 64px; }
.evidence-document h1 { white-space: normal; font-size: 48px; line-height: 1.15; letter-spacing: -1.6px; }
.evidence-document p, .evidence-document li { font-size: 15px; line-height: 1.85; color: var(--muted); }
.evidence-document > p { margin-top: 20px; }
.evidence-document section { padding-top: 40px; scroll-margin-top: 20px; }
.evidence-document h2 { font-size: 28px; margin-bottom: 18px; }
.evidence-document section p { margin: 14px 0; }
.evidence-document li { margin: 9px 0; }
.evidence-document code { font-size: 12px; overflow-wrap: anywhere; color: var(--text); }
.evidence-document .eyebrow { font-size: 10px; color: var(--green); }
@media (max-width: 800px) {
  .parity-raw-grid { grid-template-columns: 1fr; }
  .parity-toolbar select { width: 100%; flex-basis: 100%; }
  .evidence-document { padding: 28px 20px; }
  .evidence-document h1 { font-size: 35px; }
}
@media print {
  .parity-toolbar { display: none; }
  .parity-status, .parity-table td[data-match="false"] { color: #142136 !important; background: #f6f8fb !important; }
  .evidence-document section { break-before: page; }
}
.lab-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: #f6cc8008; border: 1px solid #f6cc8036; border-radius: 10px; }
.demo-tag { font: 9px var(--mono); color: var(--amber); letter-spacing: 1.1px; }
.lab-toolbar label { color: var(--muted); font-size: 11px; margin-left: auto; }
select { background: #111d2d; border: 1px solid var(--line); padding: 9px; border-radius: 7px; font-size: 12px; max-width: 100%; }
.lab-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 18px; }
.lab-left { display: flex; flex-direction: column; gap: 14px; }
.lab-left .diagram { gap: 35px 33px; }
.lab-request { padding: 14px 17px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; line-height: 1.6; background: #131e2e; }
.lab-request span { display: block; color: var(--dim); font: 9px var(--mono); margin-bottom: 8px; letter-spacing: 1px; }
.lab-status { padding: 13px 16px; background: #0d1928; border-radius: 8px; border: 1px solid #30465f; font-size: 13px; line-height: 1.6; }
.lab-status[data-status="waiting"] { border-color: #947d4f; color: var(--amber); }
.lab-status[data-status="failed"], .lab-status[data-status="denied"], .lab-status[data-status="cancelled"] { border-color: #824650; color: var(--red); }
.lab-status[data-status="completed"] { border-color: #418071; color: var(--green); }
.lab-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.lab-controls button { font-size: 12px; padding: 10px 13px; }
.lab-controls .primary { color: #091c18; background: var(--green); border-color: var(--green); font-weight: 650; }
.lab-controls .danger { color: var(--red); }
.approval-box { background: #f6cc8009; border: 1px solid #967842; border-radius: 10px; padding: 16px; font-size: 12px; color: var(--amber); line-height: 1.7; }
.approval-box code { color: var(--text); overflow-wrap: anywhere; }
.approval-box pre { padding: 10px 0; font-size: 12px; color: var(--text); }
.approval-box .lab-controls { margin-top: 12px; }
.log-panel { border: 1px solid var(--line); background: #0a111c; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-height: 355px; }
.log-head { padding: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.log-head span { font: 9px var(--mono); color: var(--muted); }
.log-head button { font-size: 10px; padding: 6px 9px; }
.log-events { padding: 8px; height: 205px; overflow: auto; flex-shrink: 0; }
.log-empty { color: var(--dim); padding: 18px 13px; font-size: 12px; line-height: 1.8; }
.log-event { display: flex; width: 100%; gap: 10px; align-items: baseline; padding: 9px 10px; text-align: left; border: 1px solid transparent; background: none; border-radius: 6px; font-size: 11px; }
.log-event time { font: 10px var(--mono); color: var(--dim); }
.log-event .event-name { color: var(--muted); line-height: 1.4; }
.log-event .event-index { color: var(--green); font: 10px var(--mono); }
.log-event[aria-pressed="true"] { border-color: #3d556c; background: #132335; }
.log-event[data-error="true"] .event-name { color: var(--red); }
.event-details { border-top: 1px solid var(--line); flex: 1; }
.event-details .detail-label { display: block; font: 9px var(--mono); letter-spacing: 1px; color: var(--dim); padding: 12px 16px 0; }
.event-details pre { font-size: 10px; padding: 12px 16px; line-height: 1.75; max-height: 200px; overflow: auto; }
.lab-metrics { display: flex; flex-wrap: wrap; gap: 8px 16px; font: 10px var(--mono); color: var(--dim); padding-top: 4px; }
.lab-metrics b { color: var(--muted); font-weight: 400; }
.node.is-done::after { content: '✓'; position: absolute; right: 10px; bottom: 9px; color: var(--green); font-size: 11px; }
.node.is-active { border-color: var(--green); background: #122d2b; }
.node.is-blocked { border-color: var(--amber); }
.node.is-error { border-color: var(--red); }
@media (min-width: 1151px) {
  .slide[data-layout="lab"] { padding-top: 26px; gap: 17px; }
  .slide[data-layout="lab"] h2 { font-size: 34px; }
  .slide[data-layout="lab"] .lead { font-size: 15px; margin-top: 11px; }
  .slide[data-layout="lab"] .eyebrow { margin-bottom: 10px; }
  .slide[data-layout="lab"] .slide-body { gap: 12px; }
  .lab-toolbar { padding: 8px 13px; }
  .lab-left { gap: 10px; }
  .lab-left .diagram-frame { padding: 12px 15px; }
  .lab-left .diagram-caption { margin-bottom: 12px; font-size: 8px; }
  .lab-left .diagram { grid-template-rows: repeat(2,minmax(64px,auto)); gap: 24px 33px; }
  .lab-left .node { padding: 10px 12px; }
  .lab-left .node-top { margin-bottom: 5px; }
  .lab-left .node strong { font-size: 13px; }
  .lab-left .node small { font-size: 10px; margin-top: 3px; }
  .lab-request { padding: 10px 14px; font-size: 12px; }
  .lab-request span { margin-bottom: 4px; }
  .lab-status { padding: 10px 14px; font-size: 12px; }
  .approval-box { padding: 12px 14px; font-size: 11px; }
  .approval-box pre { padding: 7px 0; font-size: 11px; }
  .approval-box .lab-controls { margin-top: 7px; }
  .lab-controls button { padding: 9px 12px; font-size: 11px; }
  .log-panel { min-height: 330px; }
  .log-events { height: 155px; }
  .event-details pre { max-height: 180px; }
  .slide[data-layout="lab"] .takeaway { font-size: 12px; padding: 12px 16px; }
}
.navigation { position: fixed; left: 0; right: 0; bottom: 0; height: 72px; background: #0b111bf5; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 32px; z-index: 10; }
.nav-progress { position: absolute; height: 2px; top: -1px; left: 0; right: 0; background: #213047; }
.nav-progress span { height: 100%; display: block; background: linear-gradient(90deg,var(--blue),var(--green)); width: 0; }
.nav-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.page-counter { font: 12px var(--mono); color: var(--green); white-space: nowrap; }
#page-title { font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 310px; }
.nav-middle { display: flex; gap: 10px; }
.nav-middle button { border: 0; background: transparent; font-size: 11px; color: var(--muted); padding: 9px; }
#notes-button[aria-pressed="true"] { color: var(--amber); }
.nav-right { display: flex; gap: 8px; }
.nav-right button { font-size: 13px; }
#next-button { background: #dfeafd; color: #12233b; border-color: #dfeafd; padding: 10px 18px; }
#next-button span { margin-left: 15px; }
dialog { color: var(--text); background: #101a29; border: 1px solid #3a4e6a; box-shadow: 0 24px 100px #0008; padding: 28px; }
dialog::backdrop { background: #03070dcc; backdrop-filter: blur(5px); }
.drawer { max-width: min(660px, calc(100vw - 32px)); width: 660px; height: min(82dvh,850px); border-radius: 15px; overflow: auto; }
.wide-drawer { width: 850px; max-width: min(850px, calc(100vw - 32px)); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.drawer-head h2 { font-size: 29px; letter-spacing: -1px; }
.drawer-head .eyebrow { margin-bottom: 9px; }
.drawer-head button { border: 0; background: none; padding: 7px; }
.search-label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 8px; }
input[type="search"] { background: #0a1220; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 13px 15px; width: 100%; margin-bottom: 18px; }
.toc-group { font: 10px var(--mono); letter-spacing: 1px; color: var(--green); padding: 18px 0 9px; }
.toc-item { display: flex; width: 100%; align-items: baseline; gap: 15px; padding: 12px; border: 0; border-radius: 7px; background: none; text-align: left; }
.toc-item .toc-number { font: 11px var(--mono); color: var(--dim); }
.toc-item strong { font-weight: 500; font-size: 13px; line-height: 1.5; }
.toc-item[aria-current="true"] { color: var(--green); background: #68dec008; }
.drawer-intro { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 20px; }
.source-item { padding: 16px 0; border-top: 1px solid var(--line); }
.source-item a { font-size: 14px; font-weight: 600; }
.source-item p { margin-top: 8px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.inspector { max-width: min(550px,calc(100vw - 32px)); width: 550px; border-radius: 13px; }
#inspector-body { line-height: 1.8; color: var(--muted); font-size: 16px; }
.source-cta { align-self: flex-start; background: var(--green); color: #08231e; border-color: var(--green); font-weight: 650; }
body.reading { height: auto; }
body.reading .topbar { position: sticky; top: 0; z-index: 10; }
body.reading .shell { height: auto; }
body.reading .chapter-rail { position: sticky; top: 78px; height: calc(100dvh - 150px); }
body.reading main { overflow: visible; }
body.reading .slide { min-height: calc(100dvh - 150px); border-bottom: 1px solid var(--line); padding-top: 55px; padding-bottom: 55px; }
body.reading .slide:last-child { margin-bottom: 72px; }
@media (min-width: 1600px) { .slide { padding-top: 60px; gap: 35px; } .card { padding: 30px; } .card p { font-size: 16px; } td { padding: 20px 24px; font-size: 16px; } }
@media (max-width: 1150px) {
  .shell { grid-template-columns: 140px minmax(0,1fr); }
  .chapter-rail { padding-left: 10px; }
  .chapter-button { gap: 7px; padding-left: 7px; }
  .top-context { display: none; }
  .slide { padding: 30px 27px 23px; gap: 21px; }
  .card { padding: 19px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 13px; }
  .hero { gap: 20px; }
  h1 { letter-spacing: -3px; }
  .hero .lead { font-size: 15px; }
  .hero .diagram { gap: 30px 13px; }
  .hero .node { padding: 11px 8px; }
  .hero .node small { font-size: 9px; }
  .hero .node strong { font-size: 12px; }
  .diagram { column-gap: 25px; }
  .node { padding: 12px 10px; }
  .node strong { font-size: 13px; }
  .node small { font-size: 10px; }
  .nav-middle { gap: 0; }
  #page-title { max-width: 180px; }
  .recipe { grid-template-columns: 170px minmax(0,1fr); gap: 15px; padding: 18px; }
  .recipe-steps { gap: 6px; }
  .recipe-step { font-size: 11px; padding: 8px; }
  .decision-layout { grid-template-columns: 225px minmax(0,1fr); }
}
@media (max-width: 800px) {
  .topbar { height: 66px; padding: 0 15px; gap: 10px; }
  .brand small { display: none; }
  .top-actions { gap: 0; }
  .top-actions button { font-size: 10px; padding: 8px; }
  .top-actions kbd, #fullscreen-button { display: none; }
  .shell { grid-template-columns: minmax(0,1fr); height: calc(100dvh - 132px); }
  .chapter-rail { display: none; }
  .slide { padding: 28px 20px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
  .hero h1 { font-size: 64px; }
  .hero .lead { max-width: 580px; }
  .cards, .cards.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cards.two, .split, .lab-grid, .decision-layout { grid-template-columns: 1fr; }
  .card-tag { margin-bottom: 16px; }
  .comparison .card p { font-size: 15px; }
  .recipe { grid-template-columns: 1fr; }
  .recipe .card-tag { margin-bottom: 8px; }
  .recipe { gap: 15px; }
  .decision-options { flex-direction: row; flex-wrap: wrap; }
  .decision-options button { flex-grow: 1; font-size: 11px; padding: 11px; }
  .decision-result { padding: 23px; }
  .navigation { padding: 0 15px; height: 66px; gap: 8px; }
  #page-title { display: none; }
  .nav-middle button { padding: 8px; font-size: 10px; }
  #replay-button span { display: none; }
  #replay-button { font-size: 18px; }
  .nav-right button { padding: 9px 12px; }
  #next-button { font-size: 11px; padding: 10px 12px; }
  #next-button span { margin-left: 5px; }
  .takeaway { display: block; font-size: 12px; }
  .takeaway-label { display: block; margin-bottom: 8px; }
  .diagram-caption { font-size: 8px; letter-spacing: .3px; }
  .diagram-caption span:last-child { display: none; }
  .diagram-frame { overflow-x: auto; padding: 16px; }
  .diagram { min-width: calc(var(--columns) * 140px); column-gap: 32px; }
  .hero .diagram, .lab-left .diagram { min-width: 0; }
  .architecture-diagram .diagram { min-width: 700px; }
  .node strong { font-size: 13px; }
  .node small { font-size: 10px; }
  .table-wrap table { min-width: 580px; }
  td { font-size: 12px; padding: 13px 15px; }
  th { padding: 14px 15px; }
  .lab-toolbar label { margin-left: 0; }
  .log-events { height: 190px; }
  body.reading .topbar { top: 0; }
}
@media (max-width: 440px) {
  .top-actions button { padding: 7px 5px; font-size: 9px; }
  .brand > span { font-size: 18px; }
  .brand img { width: 25px; }
  .cards { grid-template-columns: 1fr; }
  .cards.four { grid-template-columns: 1fr; }
  .hero h1 { font-size: 59px; }
  h2 { font-size: 29px; letter-spacing: -1px; }
  .hero .node strong { font-size: 11px; }
  .hero .diagram { column-gap: 15px; }
  .page-counter { font-size: 10px; }
  .nav-middle button { font-size: 9px; }
  .nav-right { gap: 5px; }
  .lab-left .diagram { gap: 32px 23px; }
  .lab-left .node { padding: 12px 10px; }
}

.slide[data-layout="flow"] .slide-body:not(:has(.cards)) > .diagram-frame .diagram { row-gap: 74px; column-gap: clamp(40px, 6vw, 96px); grid-template-rows: repeat(var(--rows), minmax(104px, auto)); }
.slide[data-layout="flow"] .slide-body:not(:has(.cards)) > .diagram-frame .node { padding: 16px 16px 18px; }
.lab-diagram .live-dot { display: none; }
.lab-left .node-ic { width: 26px; height: 26px; padding: 5px; }
.lab-left .node { animation: none; }
.rag-stack .node-ic { width: 28px; height: 28px; padding: 5px; }
@media (max-width: 1150px) {
  .cards.eight { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cycle-node { width: 140px; padding: 8px 10px; }
  .cycle-center { width: 170px; }
  .node-ic { width: 28px; height: 28px; padding: 5px; }
  .layer { grid-template-columns: 170px minmax(0,1fr); }
}
@media (max-width: 800px) {
  .orbit { width: min(340px, 84vw); }
  .r1 .sat { --rr: min(102px, 25vw); }
  .r2 .sat { --rr: min(163px, 40vw); }
  .sat-badge { width: 38px; height: 38px; left: -19px; top: -19px; border-radius: 11px; }
  .sat-ic { width: 19px; height: 19px; }
  .orbit-core strong { font-size: 10px; }
  .orbit-core small { display: none; }
  .layer { grid-template-columns: 1fr; gap: 10px; }
  .rings-layout { grid-template-columns: 1fr; }
  .rings { width: min(320px, 90%); }
  .timeline { grid-template-columns: 1fr; }
  .cards.eight { grid-template-columns: 1fr; }
  .cycle-stage { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .cycle-svg { display: none; }
  .cycle-node, .cycle-center { position: static; transform: none; width: auto; }
  .cycle-center { grid-column: 1 / -1; order: 99; aspect-ratio: auto; border-radius: 12px; }
  table.wide { min-width: 720px; }
}
@media (max-width: 440px) {
  .cycle-stage { grid-template-columns: 1fr; }
  .hero-chips span { font-size: 9px; }
}
@media print {
  .node, .ring-band, .orbit-glow, .ring, .sat-badge, .live-dot::before { animation: none !important; }
  .wire-flow, .packet, .payload { display: none; }
  .layer, .timeline-item, .cycle-node, .cycle-center, .layer-chip { background: #f6f8fb !important; }
  .cycle-stage { height: 460px; }
  .orbit { width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color-scheme: light; --text: #142136; --muted: #34455d; --dim: #485b73; --bg: white; --line: #c1cedc; --green: #146751; --blue: #205aad; --amber: #795100; --violet: #653f96; --red: #a02738; }
  body, body.reading { height: auto; background: white; }
  .topbar, .chapter-rail, .navigation, .hero-keys, .lab-controls, .lab-toolbar, dialog, .skip-link { display: none !important; }
  .shell, body.reading .shell { display: block; height: auto; }
  main, body.reading main { overflow: visible; background: white; }
  .slide, .slide[hidden], body.reading .slide { display: flex !important; padding: 24px; min-height: 0; margin: 0 !important; break-before: page; gap: 18px; border: 0; }
  .slide:first-child { break-before: auto; }
  h2 { font-size: 28px; } h1 { font-size: 60px; }
  .lead { font-size: 13px; }
  .card, .node, .recipe, .diagram-frame, .code-panel, .examples, .decision-result, .log-panel, .lab-request, .lab-status, .recipe-step { background: #f6f8fb !important; box-shadow: none; border-color: #bcc9d9 !important; }
  .node strong { color: #142136; }
  .node-top { color: #346283; }
  .wire-label { fill: #34455d; stroke: #fff; }
  .card p, td { font-size: 11px; }
  .card h3 { font-size: 17px; }
  .card { padding: 15px; }
  .card-tag { margin-bottom: 10px; }
  td, th { background: #f6f8fb !important; padding: 11px 13px; }
  pre { color: #22487c; font-size: 11px; }
  .simple-note { display: block !important; color: #614513; font-size: 12px; }
  .takeaway { font-size: 11px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero h1 > span { color: #205aad; background: none; }
  .slide { break-inside: avoid; }
  .source-footer { font-size: 8px; }
}
