:root{--text:#4b4654;--text-muted:#7a7484;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#7c2fd0;--accent-bg:#7c2fd014;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/1.6 var(--sans);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=640px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#c4c7cf;--text-muted:#8b909b;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc1f}}body{margin:0}#root{max-width:720px;margin:0 auto;padding:0 16px 8px}#root:has(article.chapter){box-sizing:border-box;flex-direction:column;max-width:none;height:100svh;min-height:560px;display:flex}#root:has(article.chapter)>main{flex:1;min-height:0;display:flex}article.chapter{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}article.chapter>div{flex-direction:column;flex:1;min-height:0;display:flex}a{color:var(--accent)}h1,h2,h3{color:var(--text-h);font-weight:600;line-height:1.2}h1{letter-spacing:-.02em;margin:8px 0 16px;font-size:40px}@media (width<=640px){h1{font-size:30px}}code{font-family:var(--mono);background:var(--code-bg);color:var(--text-h);border-radius:4px;padding:2px 6px;font-size:.85em}.site-header{z-index:10;border-bottom:1px solid var(--border);background:var(--bg);align-items:center;gap:12px;min-width:0;margin-bottom:16px;padding:8px 0;font-size:14px;line-height:1.4;display:flex;position:sticky;top:0}.site-title{color:var(--text-h);flex-shrink:0;font-weight:600;text-decoration:none}.header-chapter{border-left:1px solid var(--border);min-width:0;font-size:inherit;letter-spacing:0;white-space:nowrap;align-items:baseline;gap:8px;margin:0;padding-left:12px;font-weight:400;display:flex}.header-chapter-number{letter-spacing:.06em;text-transform:uppercase;color:var(--accent);flex-shrink:0;font-size:12px;font-weight:600}.header-chapter-title{text-overflow:ellipsis;color:var(--text-h);font-weight:600;overflow:hidden}.header-chapter-subtitle{color:var(--text-muted);flex-shrink:0}@media (width<=640px){.header-chapter-subtitle{display:none}}.lede{margin:0 0 40px;font-size:1.15em}.chapter-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.chapter-list a{border:1px solid var(--border);color:inherit;border-radius:8px;flex-direction:column;gap:2px;padding:16px 20px;text-decoration:none;transition:border-color .15s,background .15s;display:flex}.chapter-list a:hover{border-color:var(--accent);background:var(--accent-bg)}.chapter-number{letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin:0;font-size:.8em;font-weight:600}.chapter-title{color:var(--text-h);font-size:1.2em;font-weight:600}.chapter-subtitle{color:var(--text-muted)}.placeholder{color:var(--text-muted);font-style:italic}#root:has(.intro-reopen) .site-header{padding-right:40px}.header-nav{flex-shrink:0;gap:8px;margin-left:auto;display:flex}.header-nav a{border:1px solid var(--border);color:var(--text-h);white-space:nowrap;border-radius:6px;padding:2px 10px;font-size:13px;text-decoration:none}.header-nav a:hover{border-color:var(--accent);background:var(--accent-bg);color:var(--accent)}.chapter-tab-panel{flex-direction:column;flex:1;min-height:0;display:flex}.chapter-tab-panel>*{flex:1;min-height:0}.chapter-tabs{border-bottom:1px solid var(--border);gap:4px;margin:0 0 14px;display:flex}.chapter-tabs button{font:inherit;color:var(--text);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:6px 14px;font-size:14px}.chapter-tabs button:hover{color:var(--text-h)}.chapter-tabs button.is-current{border-bottom-color:var(--accent);color:var(--text-h);font-weight:600}.split-button{display:flex;position:relative}.split-button>.split-button-main{border-radius:6px 0 0 6px}.split-button>.split-button-toggle{border-radius:0 6px 6px 0;place-items:center;margin-left:-1px;padding-inline:8px;display:grid}.split-button>.split-button-toggle svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:10px;height:6px}.split-button>.split-button-toggle[aria-expanded=true]{border-color:var(--accent);background:var(--accent-bg)}.split-button.is-down>.split-button-toggle svg{transform:rotate(180deg)}.split-button-menu{z-index:5;border:1px solid var(--border);background:var(--bg);border-radius:8px;flex-direction:column;width:270px;padding:4px;display:flex;position:absolute;bottom:calc(100% + 6px);right:0;box-shadow:0 6px 20px #00000026}.is-down>.split-button-menu{inset:calc(100% + 6px) auto auto 0}.split-button-menu .split-button-item{text-align:left;background:0 0;border-color:#0000;align-items:flex-start;gap:6px;width:100%;padding:6px 8px;font-size:13px;display:flex}.split-button-menu .split-button-item:hover:not(:disabled),.split-button-menu .split-button-item:focus-visible{background:var(--accent-bg);border-color:#0000;outline:none}.split-button-menu .split-button-label{flex-direction:column;gap:1px;display:flex}.split-button-menu strong{font-size:13.5px;font-weight:600}.split-button-menu small{color:var(--text-muted);font-size:11.5px;line-height:1.4}.split-button-check{color:var(--accent);flex:0 0 12px;font-size:13px}.nn{--ink:var(--text-h);--edge:var(--border);--pos:#2f6fd6;--neg:#d64545;--zoom-duration:.5s;margin:0}@media (prefers-color-scheme:dark){.nn{--pos:#6ea0f0;--neg:#f07a7a}}.nn-stage{justify-content:center;align-items:flex-start;display:flex}.nn-examples{flex-direction:column;flex-shrink:0;align-items:stretch;gap:4px;width:50px;margin-right:auto;display:flex}.nn-examples-label{letter-spacing:.06em;text-transform:uppercase;text-align:center;color:var(--text-muted);margin-bottom:4px;font-size:10px;font-weight:600}.nn-example{border:1px solid var(--border);background:var(--bg);cursor:pointer;border-radius:5px;justify-content:space-between;align-items:center;gap:4px;padding:3px 5px;display:flex}.nn-example:hover{border-color:var(--accent)}.nn-example.is-current{border-color:var(--accent);background:var(--accent-bg)}.nn-example-digit{font-family:var(--mono);color:var(--text-h);font-size:12px;font-weight:600}.nn-example-grid{grid-template-rows:1fr 2fr 2fr 1fr 2fr 2fr 1fr;grid-template-columns:1fr 2fr 2fr 1fr;width:16px;height:29px;display:grid}.nn-example-grid .is-on{background:var(--ink)}.nn-grid-panel{opacity:0;width:0;transition:width var(--zoom-duration) ease, opacity var(--zoom-duration) ease;padding-top:4px;overflow:hidden}.nn--zoomed .nn-grid-panel{opacity:1;width:42%}.nn-grid{aspect-ratio:6/11;grid-template-rows:1fr 2fr 2fr 1fr 2fr 2fr 1fr;grid-template-columns:1fr 2fr 2fr 1fr;gap:4px;width:72%;min-width:96px;max-width:200px;margin:0 auto;display:grid}.nn-cell{border:1.5px solid var(--border);background:var(--bg);cursor:pointer;min-width:0;min-height:0;font-family:var(--mono);color:var(--text-muted);border-radius:4px;padding:0;font-size:14px;transition:background .1s,border-color .1s}.nn-cell.is-on{background:var(--ink);border-color:var(--ink);color:var(--bg);font-weight:600}.nn-cell.is-hovered{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}.nn-cell:focus-visible{outline:none}.nn-grid-panel.is-preview .nn-cell{pointer-events:none;transition:opacity .15s}.nn-cell.is-dim{opacity:.25}.nn-cell.is-lit{box-shadow:0 0 0 2px var(--bg), 0 0 0 4px var(--ink)}.nn-sum{min-height:58px;font-family:var(--mono);color:var(--text-muted);flex-wrap:wrap;justify-content:center;align-items:baseline;gap:2px 6px;margin:10px auto 0;font-size:13px;display:flex}.nn-sum-note{font-family:var(--sans);text-align:center;flex-basis:100%;font-size:11px}.nn-sum-term.is-positive{color:var(--pos);font-weight:600}.nn-sum-term.is-negative{color:var(--neg);font-weight:600}.nn-sum-term small{font-family:var(--sans);color:var(--text-muted);margin-left:2px;font-size:10px}.nn-sum-activation{text-align:center;flex-basis:100%}.nn-sum-total{color:var(--text-h);font-weight:600}.nn-cell.is-positive,.nn-cell.is-negative{color:var(--text-h);font-weight:600}:is(.nn-cell.is-positive,.nn-cell.is-negative).is-strong{color:#fff}.nn-cell.is-positive{background:color-mix(in srgb, var(--pos) calc(var(--w,1) * 100%), var(--bg));border-color:var(--pos)}.nn-cell.is-negative{background:color-mix(in srgb, var(--neg) calc(var(--w,1) * 100%), var(--bg));border-color:var(--neg)}.nn-panel-header{white-space:nowrap;justify-content:space-between;align-items:center;gap:8px;width:72%;min-width:96px;max-width:200px;margin:0 auto 8px;font-size:13px;display:flex}.nn-panel-title{color:var(--text-h);font-weight:600}.nn-bias{color:var(--text-muted);align-items:center;gap:6px;font-size:12px;display:flex}.nn-bias-input{box-sizing:border-box;border:1.5px solid var(--border);background:var(--bg);width:46px;height:22px;color:var(--text-h);font-family:var(--mono);text-align:center;appearance:textfield;border-radius:4px;padding:0 4px;font-size:12px;font-weight:600}.nn-bias-input::-webkit-inner-spin-button{appearance:none;margin:0}.nn-bias-input::-webkit-outer-spin-button{appearance:none;margin:0}.nn-bias-input.is-positive{border-color:var(--pos);background:color-mix(in srgb, var(--pos) 12%, var(--bg))}.nn-bias-input.is-negative{border-color:var(--neg);background:color-mix(in srgb, var(--neg) 12%, var(--bg))}.nn-bias-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-bg);outline:none}.nn-network{width:480px;max-width:100%;transition:width var(--zoom-duration) ease;overflow:auto hidden}.nn--zoomed .nn-network{width:58%}.nn-network::-webkit-scrollbar{height:8px}.nn-network::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}.nn-network-svg{height:auto;max-height:calc(100svh - 160px);display:block}.nn-layer-label{letter-spacing:.06em;text-transform:uppercase;text-anchor:middle;fill:var(--text-muted);font-size:12px;font-weight:600}.nn-layer-trigger{cursor:pointer;outline:none}.nn-layer-trigger:hover,.nn-layer-trigger:focus-visible,.nn-layer-trigger[aria-expanded=true]{fill:var(--accent)}.nn-layer-menu-bridge{fill:#0000}.nn-layer-menu-box{fill:var(--bg);stroke:var(--border);filter:drop-shadow(0 4px 6px #0000001f)}.nn-layer-menu-item{cursor:pointer;outline:none}.nn-layer-menu-item rect{fill:#0000}.nn-layer-menu-item text{dominant-baseline:central;text-anchor:middle;fill:var(--text-h);font-size:12px;font-weight:600}.nn-layer-menu-item:hover rect,.nn-layer-menu-item:focus-visible rect{fill:var(--accent-bg)}.nn-layer-menu-item.is-checked text{fill:var(--accent)}.nn-layer-menu-item.is-danger text{fill:var(--neg)}.nn-layer-menu-item.is-danger:hover rect,.nn-layer-menu-item.is-danger:focus-visible rect{fill:color-mix(in srgb, var(--neg) 12%, var(--bg))}.nn-layer-name-input{box-sizing:border-box;border:1.5px solid var(--accent);background:var(--bg);width:100%;height:100%;color:var(--text-h);font:inherit;text-align:center;border-radius:4px;outline:none;padding:0 4px;font-size:11px;font-weight:600}.nn-output.is-winner .nn-digit,.nn-output.is-winner .nn-value{fill:var(--accent);font-weight:700}.nn-edge{stroke:var(--edge);opacity:.5;transition:opacity .15s}.nn-edge.is-positive{stroke:var(--pos)}.nn-edge.is-negative{stroke:var(--neg)}.nn-edge.is-active{opacity:.9}.nn-edge.is-weighted{opacity:calc(.06 + .94 * var(--strength))}.nn-edge.is-selected{opacity:1}.nn-edge.is-selected.is-weighted{opacity:calc(.3 + .7 * var(--strength))}.nn-edge.is-hovered{stroke:var(--accent);opacity:1}.nn-input-hit{fill:var(--accent-bg);stroke:var(--accent);stroke-dasharray:4 4;opacity:.6;cursor:pointer;transition:opacity .15s}.nn-input-hit:hover,.nn-input-hit:focus-visible{opacity:1;outline:none}.nn-input .nn-hit{fill:#0000}.nn-input .nn-node{fill:var(--bg);stroke:var(--text-muted);stroke-width:1.5px;transition:fill .1s}.nn-input.is-on .nn-node{fill:var(--ink);stroke:var(--ink)}.nn-input.is-hovered .nn-node{stroke:var(--accent);stroke-width:3px}.nn-input[role=button]{cursor:pointer;outline:none}.nn-input:not([role=button]){pointer-events:none}.nn-hidden{cursor:pointer;outline:none}.nn-hidden .nn-node{fill:color-mix(in srgb, var(--pos) calc(var(--strength) * 60%), var(--bg));stroke:var(--text-muted);stroke-width:1.5px}.nn-hidden:hover .nn-node,.nn-hidden:focus-visible .nn-node{stroke:var(--accent)}.nn-hidden.is-selected .nn-node{stroke:var(--accent);stroke-width:3px}.nn-hidden-value{dominant-baseline:central;text-anchor:middle;font-family:var(--mono);fill:var(--text-h);pointer-events:none;font-size:8px}.nn-add-node{cursor:pointer;outline:none}.nn-add-node rect{fill:var(--bg);stroke:var(--accent);stroke-dasharray:3 3}.nn-add-node text{dominant-baseline:central;text-anchor:middle;fill:var(--accent);font-size:11px;font-weight:600}.nn-add-node:hover rect,.nn-add-node:focus-visible rect{fill:var(--accent-bg);stroke-dasharray:none}.nn-output .nn-node{fill:color-mix(in srgb, var(--pos) calc(var(--strength) * 60%), var(--bg));stroke:var(--text-muted);stroke-width:1.5px}.nn-input-value{dominant-baseline:central;text-anchor:end;font-family:var(--mono);fill:var(--text-muted);font-size:10px}.nn-input.is-on .nn-input-value{fill:var(--text-h);font-weight:600}.nn-input.is-hovered .nn-input-value{fill:var(--accent)}.nn-digit,.nn-value{dominant-baseline:central;font-size:14px}.nn-digit{text-anchor:middle;fill:var(--text-h);pointer-events:none;font-weight:600}.nn-value{font-family:var(--mono);fill:var(--text)}.nn-controls{align-items:center;gap:8px;min-height:32px;margin-top:8px;display:flex}.nn-controls button{font:inherit;border:1px solid var(--border);background:var(--bg);color:var(--text-h);cursor:pointer;border-radius:6px;padding:4px 12px;font-size:14px}.nn-controls button:hover:not(:disabled){border-color:var(--accent)}.nn-controls button:disabled{cursor:default;opacity:.5}.nn-controls-spacer{flex:1}.nn-hint{color:var(--text-muted);margin:0;font-size:14px}@media (prefers-reduced-motion:reduce){.nn{--zoom-duration:0s}}.nn-output[role=button]{cursor:pointer;outline:none}.nn-output[role=button]:hover .nn-node,.nn-output[role=button]:focus-visible .nn-node,.nn-output[role=button].is-selected .nn-node{stroke:var(--accent);stroke-width:3px}.nn-focus{transform-origin:210px 212px;animation:.35s nn-zoom-in}@keyframes nn-zoom-in{0%{opacity:0;transform:scale(.9)}}.nn-focus-edge{--edge-color:var(--text-muted);cursor:pointer;outline:none}.nn-focus-edge.is-positive{--edge-color:var(--pos)}.nn-focus-edge.is-negative{--edge-color:var(--neg)}.nn-focus-edge .nn-focus-edge-hit{stroke:#0000;stroke-width:16px}.nn-focus-edge .nn-focus-edge-line{stroke:var(--edge-color);opacity:.6}.nn-focus-edge.is-weighted .nn-focus-edge-line{opacity:calc(.08 + .92 * var(--strength))}.nn-focus-edge .nn-focus-badge{fill:var(--bg);stroke:var(--edge-color);stroke-width:1.5px}.nn-focus-edge.is-positive .nn-focus-badge,.nn-focus-edge.is-negative .nn-focus-badge{fill:var(--edge-color)}.nn-focus-edge.is-positive .nn-focus-badge-text,.nn-focus-edge.is-negative .nn-focus-badge-text{fill:#fff}.nn-focus-edge.is-zero .nn-focus-edge-line{opacity:.15;stroke-dasharray:2 3}.nn-focus-edge.is-zero:not(:hover,:focus-visible,.is-hovered,.is-selected) :is(.nn-focus-badge,.nn-focus-badge-text){display:none}:is(.nn-focus-edge:hover,.nn-focus-edge:focus-visible,.nn-focus-edge.is-hovered) .nn-focus-edge-line{opacity:1}:is(.nn-focus-edge:hover,.nn-focus-edge:focus-visible,.nn-focus-edge.is-hovered) .nn-focus-badge{stroke:var(--accent);stroke-width:2.5px}.nn-focus-badge-text{dominant-baseline:central;text-anchor:middle;font-family:var(--mono);fill:var(--text-h);pointer-events:none;font-size:9px;font-weight:600}.nn-focus-node{cursor:pointer;outline:none}.nn-focus-node:hover .nn-mini-frame,.nn-focus-node:focus-visible .nn-mini-frame,.nn-focus-node.is-hovered .nn-mini-frame{stroke:var(--accent);stroke-width:2px}.nn-mini-frame{fill:var(--bg);stroke:var(--border);stroke-width:1px}.nn-mini-cell{fill:var(--bg);stroke:var(--border);stroke-width:.5px}.nn-mini-cell.is-positive{fill:var(--pos);stroke:var(--pos)}.nn-mini-cell.is-negative{fill:var(--neg);stroke:var(--neg)}.nn-mini-cell.is-lit{stroke:var(--ink);stroke-width:1px}.nn-mini-cell.is-dim{opacity:.3}.nn-focus-firing,.nn-focus-firing-label{dominant-baseline:central;text-anchor:end;font-family:var(--mono);fill:var(--text-h);font-size:9px}.nn-focus-firing-label{letter-spacing:.04em;text-transform:uppercase;fill:var(--text-muted);cursor:help;outline:none;font-family:inherit;font-size:8px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.nn-focus-firing-label:hover,.nn-focus-firing-label:focus-visible{fill:var(--accent)}.nn-focus-firing-info{font-size:9px;text-decoration:none}.nn-focus-activation{dominant-baseline:central;text-anchor:end;font-family:var(--mono);fill:var(--text-h);font-size:10px}.nn-focus-digit{font-size:20px}.nn-focus-digit.is-long{font-family:var(--mono);font-size:12px}.nn-focus-bias-label{dominant-baseline:central;text-anchor:end;fill:var(--text-muted);font-size:11px}.nn-focus-sum{text-anchor:middle;font-family:var(--mono);fill:var(--text);font-size:12px}.nn-focus-sum-total{fill:var(--text-h);font-weight:600}@media (prefers-reduced-motion:reduce){.nn-focus{animation:none}}.nn-cell.is-selected{outline:2px solid var(--text-h);outline-offset:1px}.nn-cell.is-long{letter-spacing:-.03em;padding:0;font-size:10px}.nn-focus-edge.is-selected .nn-focus-badge{stroke:var(--text-h);stroke-width:3px}.nn-bias strong{font-family:var(--mono);color:var(--text-h)}.nn-focus-bias-value{dominant-baseline:central;font-family:var(--mono);fill:var(--text-h);font-size:12px;font-weight:600}.nn-dead{cursor:help;dominant-baseline:central;outline:none;font-size:14px}.nn-dead:focus-visible{filter:drop-shadow(0 0 2px var(--accent))}.nn-tip{pointer-events:none}.nn-tip p{border:1px solid var(--border);background:var(--bg);color:var(--text-h);border-radius:6px;margin:0;padding:6px 8px;font-size:9.5px;line-height:1.35;box-shadow:0 2px 8px #00000026}.nn--fill{flex-direction:column;flex:1;min-height:0;display:flex}.nn--fill .nn-stage{flex:1;min-height:0}.nn--fill .nn-network,.nn--fill.nn--zoomed .nn-network{flex:1;width:auto;height:100%;container-type:size}.nn--fill .nn-network-svg{max-width:none;height:auto;max-height:none;margin:0 auto}.nn--fill.nn--zoomed .nn-grid-panel{width:min(36%,420px)}.nn--fill .nn-layer-label{font-size:10px}.nn--fill .nn-grid,.nn--fill .nn-panel-header{width:80%;max-width:min(320px,54.5455svh - 180px)}.nn-focus-back{cursor:pointer;outline:none}.nn-focus-back rect{fill:var(--bg);stroke:var(--border)}.nn-focus-back text{dominant-baseline:central;text-anchor:middle;fill:var(--text-h);font-size:11px}:is(.nn-focus-back:hover,.nn-focus-back:focus-visible) rect{stroke:var(--accent)}:is(.nn-focus-back:hover,.nn-focus-back:focus-visible) text{fill:var(--accent)}.intro{border:1px solid var(--border);background:var(--bg);width:min(660px,100vw - 32px);max-height:calc(100svh - 48px);color:var(--text);border-radius:12px;padding:0;box-shadow:0 20px 50px #00000040}.intro::backdrop{background:#08060d73}.intro-body{padding:20px 28px 16px;font-size:14px;line-height:1.5}.intro-body h2{margin:0 0 10px;font-size:20px}.intro-body h3{margin:16px 0 4px;font-size:15px}.intro-body p{margin:0 0 8px}.intro-body ol,.intro-body ul{margin:0 0 8px;padding-left:20px}.intro-body li{margin-bottom:2px}.intro-body strong{color:var(--text-h)}.intro-aside{color:var(--text-muted);font-size:13px}.intro-actions{justify-content:flex-end;margin-top:12px;display:flex}.intro-actions button{font:inherit;background:var(--accent);color:var(--bg);cursor:pointer;border:0;border-radius:6px;padding:6px 16px;font-size:14px;font-weight:600}.intro-reopen{z-index:11;border:1px solid var(--border);background:var(--bg);width:28px;height:28px;color:var(--text-h);font:inherit;cursor:pointer;border-radius:50%;font-size:15px;font-weight:600;position:fixed;top:7px;right:16px;box-shadow:0 2px 6px #0000001a}.intro-reopen:hover{border-color:var(--accent);color:var(--accent)}.intro-videos{background:var(--accent-bg);border-radius:8px;margin:0 0 14px;padding:10px 14px}.intro-videos p{color:var(--text-muted);margin:0 0 4px;font-size:13px}.intro-videos ul{margin:0;padding-left:18px}.intro-videos li{margin:0}.intro-videos a{font-weight:600}
