:root{color-scheme:dark;--bg:#111519;--panel:#191e23;--line:#30373d;--muted:#87929a;--text:#e7ecee;--accent:#bde6d5}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font:13px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;background:#242b30;border:1px solid #394249;border-radius:9px;padding:8px 12px;transition:background .18s,border-color .18s}button:hover{background:#333e44;border-color:#65776e}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled,input:disabled{opacity:.32;cursor:default}button.on,.chip.on{background:#35483f;border-color:#80aa96;color:#dbf4e8}.topbar{height:82px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #262d32;position:relative;z-index:3}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;letter-spacing:1.2px;font-weight:650;font-size:14px}.brand-mark{width:34px;height:37px;border:1px solid #94b9a7;border-radius:5px;display:grid;place-items:center;color:var(--accent);font-size:23px}.brand small{display:block;font-size:10px;letter-spacing:3px;color:#909c9e;margin-top:1px;font-weight:400}.topbar nav{display:flex;gap:5px;background:#1b2126;padding:4px;border-radius:11px}.topbar nav button{background:none;border-color:transparent;padding:7px 18px;font-size:12px;color:#a4afb6}.topbar nav button.active{color:#e1f2eb;background:#323e38}.top-note{color:#829088;font-size:11px;letter-spacing:.6px}#app{position:fixed;left:304px;right:0;top:83px;bottom:138px}#app canvas{display:block;width:100%;height:100%;touch-action:none}#hud{position:fixed;left:28px;top:110px;bottom:43px;width:248px;overflow-y:auto;scrollbar-width:thin;padding-right:3px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#9caf9e}h1{font-size:29px;line-height:1.32;letter-spacing:1px;margin:15px 0 11px;font-weight:500}.intro{font-size:11px;color:#8d9ba2;line-height:1.9;margin:0 0 20px}.metrics{display:flex;justify-content:space-between;align-items:center;margin:0 0 25px}.metrics span{display:flex;flex-direction:column;color:#83908f;font-size:10px;gap:1px}.metrics b{font-size:20px;line-height:1.4;font-weight:500;color:#c4d3cc;font-variant-numeric:tabular-nums}.metrics i{height:24px;width:1px;background:#2e363a}section{border-top:1px solid var(--line);padding:16px 0 13px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;font-size:12px}.section-title output{font-variant-numeric:tabular-nums;color:#a8cab8;font-size:12px}input[type=range]{width:100%;height:18px;margin:0;accent-color:var(--accent);cursor:pointer}.stage-scale{display:flex;justify-content:space-between;color:#6f7b84;font-size:10px;margin:2px 0 13px}.stages{display:flex;gap:8px}.stages button{flex:1;display:flex;justify-content:space-between;align-items:center;font-size:11px;padding:7px 9px}.stages b{font-size:10px;font-weight:400;color:#8ca594}.stages .active{border-color:#758f80;background:#2b3931}.muted{font-size:10px;color:#818e93;margin:9px 0 0}.power-row{display:flex;justify-content:space-between;align-items:center;margin-top:13px}.power-row>span{display:flex;align-items:center;gap:7px;color:#9ba7ac;font-size:11px}#power{font-size:11px;min-width:60px;padding:5px 10px}#powerDot{width:5px;height:5px;border-radius:50%;background:#647078}#powerDot.on{background:#bde6d5;box-shadow:0 0 8px #bde6d555}.screen-note{color:#67757d;font-size:10px;margin:7px 0 0}.text-button{background:none;border-color:transparent;color:#8e9b9b;padding:2px 0;font-size:11px}.text-button:hover{background:none;border-color:transparent;color:#d3e7db}#groups{display:flex;flex-wrap:wrap;gap:6px}.chip{font-size:10px;padding:5px 10px;border-radius:6px;background:#1d252a}.hint{font-size:10px;color:#67767f;line-height:1.9;margin-top:10px}#info{display:none;position:fixed;right:26px;top:105px;max-width:280px;width:calc(100% - 52px);padding:21px;background:#1b232bec;border:1px solid #3b464c;border-radius:13px;backdrop-filter:blur(18px);z-index:4}#info h2{font-size:17px;margin:10px 22px 4px 0;font-weight:500}#info .g{font-size:11px;color:#a0cbb5}#info p{font-size:11px;color:#a0adb4;line-height:1.8}#info .tris{font-size:9px;color:#677c84;overflow-wrap:anywhere}.close{position:absolute;right:10px;top:10px;border:0;background:none;font-size:20px;color:#84959e;padding:0 6px}.timeline{position:fixed;left:332px;right:32px;bottom:43px;padding:15px 18px;border:1px solid #333e43;background:#1b2228;border-radius:13px}.timeline-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#c1cec8;margin-bottom:12px}.timeline-heading>span:first-child{display:flex;gap:8px;align-items:center}.accent-dot{width:5px;height:5px;background:#bbdfcb;border-radius:50%}#assembleProg{font-size:10px;color:#93a0a6;font-variant-numeric:tabular-nums}.timeline-controls{display:flex;gap:9px;align-items:center}.timeline-controls button{white-space:nowrap;font-size:11px;padding:7px 12px}.timeline-controls #timeline{flex:1;min-width:40px;margin:0 8px}.timeline-controls .primary{background:#bde6d5;color:#193c2b;border-color:#bde6d5;font-weight:600;min-width:89px}.timeline-controls .primary:hover{background:#d4f2e5}.timeline-controls #reset{padding-left:8px}footer{position:fixed;bottom:13px;left:28px;right:32px;display:flex;justify-content:space-between;color:#52616a;font-size:9px;letter-spacing:.4px}#loading{position:fixed;left:304px;right:0;top:83px;bottom:138px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#111519;z-index:2;color:#b9c9c0}#loading p{font-size:11px;color:#7e9198}.loader{width:30px;height:30px;border:1px solid #35413f;border-top-color:#bde6d5;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:21px}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-height:820px) and (min-width:761px){#hud{top:100px}h1{font-size:24px;margin:10px 0}.intro{margin-bottom:13px;font-size:10px}.metrics{margin-bottom:15px}.metrics b{font-size:18px}section{padding:12px 0 10px}.section-title{margin-bottom:7px}.hint{margin-top:6px}.screen-note{margin:4px 0 0}}
@media(max-width:1000px){.top-note{display:none}.topbar nav button{padding:7px 10px}.timeline-controls #reset{display:none}.timeline{left:309px;right:18px;padding:13px}.timeline-controls{gap:6px}}
@media(max-width:760px){.topbar{height:66px;padding:0 17px}.brand{font-size:11px;gap:8px}.brand-mark{width:28px;height:30px;font-size:19px}.brand small{font-size:8px}.topbar nav{gap:0;padding:2px}.topbar nav button{font-size:10px;padding:5px 7px}#viewWiring{display:none}#app{left:0;top:67px;bottom:285px}#loading{left:0;top:67px;bottom:285px}#hud{left:14px;right:14px;top:auto;bottom:120px;width:auto;height:156px;border:1px solid #303a40;border-radius:12px;background:#191f25;padding:10px 13px;display:grid;grid-template-columns:1fr 1fr;gap:15px;overflow:auto}#hud>.eyebrow,#hud>h1,.intro,.metrics,.systems,.hint{display:none}#hud section{border:0;padding:0}.stage-scale{margin-bottom:9px}.stages{gap:4px}.stages button{font-size:9px;padding:5px}.stages b{display:none}.section-title{font-size:11px}.screen-note{font-size:9px}.timeline{left:14px;right:14px;bottom:28px;padding:10px 12px}.timeline-heading{font-size:10px;margin-bottom:8px}.timeline-controls button{font-size:10px;padding:6px 9px}.timeline-controls .primary{min-width:72px}.timeline-controls #timeline{margin:0 0 0 4px}footer{left:17px;right:17px;bottom:6px;font-size:8px}#info{top:78px;right:15px;width:230px;padding:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.loader{animation:none}}

#hud{scrollbar-width:thin;scrollbar-color:#3b4649 #171c20}
