body.cpu-page{--bg:#f7f7f3;background:var(--bg)}html:has(body.cpu-page){scroll-behavior:auto}.cpu-page header{position:fixed;inset:0 0 auto;height:54px;padding:10px 24px;max-width:none;background:var(--bg);border-bottom:1px solid #dce1e1;z-index:8}.cpu-page .brand-note{display:none}.cpu-page main{max-width:none;padding:54px 0 0}.cp-story{position:relative}.cp-view{position:sticky;top:54px;height:calc(100svh - 54px);padding:12px 24px;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}.cp-heading{display:flex;align-items:center;gap:50px}.cp-heading span{font:9px var(--mono);color:#65757b}.cp-heading h1{font-size:25px;margin:0;letter-spacing:-.5px}.cp-heading p{font-size:13px;margin:0;color:#58676e}.cp-toolbar{display:flex;align-items:center;gap:22px;padding:10px 0;font:11px var(--mono)}.cp-toolbar label{display:flex;align-items:center;gap:8px}.cp-toolbar select,.cp-controls select{font:11px var(--mono);border:0;background:transparent;color:#25475a}.cp-toolbar>span{margin-left:auto}.cp-canvas{flex:1;min-height:0}.cp-canvas svg{width:100%;height:100%;display:block}.cp-canvas text{text-anchor:middle;font:18px Arial;fill:#243e4c}.cp-canvas .cp-title{font-size:18px;font-weight:600}.cp-canvas .cp-value{font:16px var(--mono);fill:#246078}.cp-canvas .cp-note,.cp-canvas .cp-rail{font:15px Arial;fill:#687e89;paint-order:stroke;stroke:var(--bg);stroke-width:5px}.cp-canvas .cp-section{font:600 20px Arial}.cp-boundary{fill:none;stroke:#b3bec3;stroke-dasharray:6 5}.cp-wire{fill:none;stroke:#4a606e;stroke-width:2.3}.cp-wire.forward{stroke:#6f929f}.cp-wire.control{stroke:#957c9c;stroke-dasharray:6 4}.cp-wire.active{stroke:#007da9;stroke-width:3}.cp-unit>rect,.cp-unit.alu>path{fill:#e7edf2;stroke:#2c4353;stroke-width:2.8}.cp-unit.memory>rect{fill:#eee9da;stroke:#77633f}.cp-memory-lines{fill:none;stroke:#77633f;stroke-width:1.6}.cp-unit.register>rect{fill:#e6eee8;stroke:#395a48}.cp-clock{fill:none;stroke:#395a48;stroke-width:2}.cp-unit.mux>path{fill:#e8e3ed;stroke:#6f587e;stroke-width:2.5}.cp-unit.control>rect{fill:#e8e3ed;stroke:#6f587e}.cp-unit.held>rect{fill:#f3dfb8;stroke:#b1802a}.cp-unit.flushed>rect{fill:#f2d4cc;stroke:#a5513f}.cp-packet circle{fill:#087aa3;stroke:var(--bg);stroke-width:2}.cp-packet text{font:16px var(--mono);fill:#00749c;paint-order:stroke;stroke:var(--bg);stroke-width:6px}.cp-pipeline{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #cbd5d7;padding:6px 0;gap:12px}.cp-pipeline>div{min-width:0}.cp-pipeline b{font:9px var(--mono);color:#5c7883}.cp-pipeline strong{display:block;font:12px var(--mono);margin:4px 0;white-space:nowrap}.cp-pipeline small{display:block;font:9px var(--mono);color:#6b7c83}.cp-pipeline .flushed{opacity:.45;text-decoration:line-through}.cp-bottom{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:5px 0}.cp-bottom>div>span{font:9px var(--mono);color:#576d79}#cp-regs{display:grid;grid-template-columns:repeat(10,1fr);gap:3px}#cp-regs>div{padding:4px;background:#e8eee9}#cp-regs small{display:block;font:9px var(--mono);color:#617469}#cp-regs b{font:13px var(--mono);color:#2b5145}#cp-regs .written{background:#cde5d5}#cp-cache{display:grid;grid-template-columns:1fr 1fr;gap:8px}#cp-cache>div{padding:4px 8px;background:#eeeadd}#cp-cache small{display:block;font:9px var(--mono);color:#7b6c4f}#cp-cache code{font:13px var(--mono)}.cp-controls{display:flex;align-items:center;gap:10px;padding:8px 0;font:10px var(--mono);flex-wrap:wrap}.cp-controls button{border:0;background:transparent;padding:4px;font:11px var(--mono);color:#315c70}.cp-controls input{width:160px;accent-color:#287e9e}.cp-controls #cp-status{margin-left:auto;color:#58717b}.cp-scroll-space{height:450svh;pointer-events:none;margin-top:calc(-100svh + 54px)}#cp-details{position:absolute;inset:20px 6vw;z-index:6;padding:35px;background:var(--bg);border:1px solid #b9c9cc;overflow:auto}#cp-details p{max-width:900px;font-size:14px;line-height:1.7}#cp-details h2{font-size:28px}#cp-details h3{font-size:18px}#cp-close{position:absolute;right:15px;top:10px;border:0;background:none;font-size:24px}.cpu-fallback{padding:10vh 6vw}@media(max-width:800px){.cp-heading{gap:18px}.cp-heading h1{font-size:19px}.cp-heading p{font-size:11px}.cp-view{padding:8px 12px}.cp-canvas{overflow:auto}.cp-canvas svg{min-width:1050px}.cp-pipeline{overflow:auto;grid-template-columns:repeat(5,180px)}.cp-bottom{overflow:auto;grid-template-columns:400px 350px}.cp-controls #cp-status{width:100%;margin:0}.cpu-page header{padding:10px 12px}.cpu-page header nav{font-size:10px;gap:8px}.cpu-page .monogram{display:none}.cp-controls{gap:5px}.cp-controls input{width:100px}}

#cp-sort{flex:none;border-top:1px solid #ccd6d6;padding:4px 0}#cp-sort[hidden],.cp-toolbar [hidden],.cp-controls [hidden]{display:none}.cp-sort-heading{display:flex;justify-content:space-between;gap:10px;font:10px var(--mono);color:#526b72}.cp-sort-heading strong{font-weight:500;color:#254e5e}#cp-bars{display:block;width:100%;height:125px}#cp-bars rect{fill:#7098a4}#cp-bars text{font:10px var(--mono);fill:#355361;text-anchor:middle}#cp-bars .sort-index{font-size:9px;fill:#8a989a}#cp-bars .sort-muted rect{fill:#c8d1d2}#cp-bars .sort-read rect{fill:#087da9}#cp-bars .sort-write rect{fill:#d89d3f}#cp-bars .sort-done rect{fill:#638d69}#cp-bars .sort-incoming{fill:#986621;font-size:12px;paint-order:stroke;stroke:var(--bg);stroke-width:4px}.cp-zero{stroke:#cbd5d5;fill:none}#cp-sort-event{font:10px var(--mono);color:#607781;min-height:14px}.cp-unit.held>rect{fill:#f3dfb8;stroke:#b1802a}@media(max-width:800px){#cp-sort{overflow:auto}#cp-bars{min-width:800px;height:110px}.cp-sort-heading{min-width:650px}.cp-canvas svg{min-width:1000px}.cp-bottom{display:none}}

.cp-sorting:not(.cp-values-visible) .cp-bottom{display:none}.cp-sorting #cp-bars{height:110px}.cp-sorting .cp-heading{gap:30px}.cp-sorting .cp-controls{padding:5px 0}.cpu-page:not(.cp-sorting) #cp-values{display:none}
