:root{color-scheme:dark;--bg:#08151c;--panel:#102630;--panel2:#0c1e26;--line:#294550;--text:#edf6f4;--muted:#9bb0b2;--amber:#f4a340;--mint:#4ecb9b;--blue:#66c9ff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 18% 0,rgba(36,107,112,.23),transparent 32rem),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.topbar{height:76px;border-bottom:1px solid rgba(119,158,163,.2);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,4vw,60px);background:rgba(8,21,28,.9);position:sticky;top:0;z-index:5}.suite-home-link{display:flex;align-items:center;gap:9px;color:var(--muted);text-decoration:none;font-size:14px;font-weight:700}.suite-home-link img{width:27px}.suite-home-link span{color:#557078}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,#83eed0,#33b88f);display:grid;place-items:center;color:#092019;font-size:30px;font-weight:900}.brand h1{font-size:17px;margin:0}.brand p{margin:2px 0 0;color:var(--muted);font-size:10px;letter-spacing:.15em;text-transform:uppercase}.header-right{display:flex;align-items:center;gap:18px;color:var(--muted);font:700 11px ui-monospace,monospace;letter-spacing:.1em}.header-right button,.text-button{background:none;border:1px solid var(--line);border-radius:8px;padding:9px 12px;color:#d0dfde;cursor:pointer}.header-right button:hover,.text-button:hover{border-color:var(--amber);color:var(--amber)}main{width:min(1480px,calc(100% - 40px));margin:auto}.intro{display:flex;justify-content:space-between;align-items:end;gap:40px;padding:52px 0 32px}.eyebrow{font-size:10px;font-weight:900;letter-spacing:.17em;color:var(--amber)}.intro h2{font-size:clamp(38px,5vw,61px);line-height:.98;letter-spacing:-.05em;margin:12px 0}.intro h2 em{color:#82e1c2;font-style:normal}.intro>div:first-child>p:last-child{max-width:680px;color:var(--muted);line-height:1.65;margin-bottom:0}.progress{width:min(300px,34vw);padding:16px 18px;background:var(--panel);border:1px solid var(--line);border-radius:13px}.progress div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:center}.progress span{font-size:9px;color:var(--muted);letter-spacing:.13em;font-weight:800}.progress b{font-size:12px}.progress-track{height:5px;background:#07151b;border-radius:6px;margin-top:13px;overflow:hidden}.progress-track i{height:100%;width:0;display:block;background:linear-gradient(90deg,#44c99a,#ffd181);transition:width .3s}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px}.panel{border:1px solid var(--line);background:linear-gradient(145deg,rgba(16,38,48,.98),rgba(11,29,37,.98));border-radius:16px;box-shadow:0 20px 50px #0003}.drawing-panel{padding:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 4px 15px}.panel-heading h2,.brief-panel h2,.learning-panel h2{font-size:21px;margin:5px 0}.panel-heading .eyebrow,.brief-panel .eyebrow,.learning-panel .eyebrow{margin:0}.wire-status{font-size:12px;color:var(--muted)}.board-scroll{overflow:auto;border:1px solid #25414a;border-radius:12px;background-color:#0a1b22;background-image:radial-gradient(#25404a 1px,transparent 1px);background-size:19px 19px}#board{width:100%;min-width:650px;height:auto;display:block}.component rect.body{fill:#122c36;stroke:#41606a;stroke-width:1.5}.component text{font-family:Inter,system-ui,sans-serif;pointer-events:none}.component .name{fill:#edf6f4;font-size:15px;font-weight:800}.component .kind{fill:#93aaad;font:10px ui-monospace,monospace;letter-spacing:.08em}.component .symbol{fill:none;stroke:#d6e4df;stroke-width:2}.component.source .symbol{stroke:#f4a340}.component.load .symbol{stroke:#66c9ff}.component.control .symbol{stroke:#4ecb9b}.terminal{fill:#0b1820;stroke:#b7cac6;stroke-width:2;cursor:pointer;transition:all .12s}.terminal:hover,.terminal.selected{fill:#ffd181;stroke:#fff;stroke-width:3;filter:drop-shadow(0 0 7px #f4a340)}.terminal-label{fill:#d1dfdc;font:10px ui-monospace,monospace;pointer-events:none}.wire{fill:none;stroke:#edb65e;stroke-width:3.2;stroke-linecap:round;cursor:pointer}.wire:hover{stroke:#ff7669;stroke-width:5}.board-note{fill:#758f93;font:11px ui-monospace,monospace;letter-spacing:.08em}.board-footer{display:flex;align-items:center;gap:19px;padding:13px 2px 0;color:var(--muted);font-size:10px}.board-footer span{display:flex;align-items:center;gap:6px;white-space:nowrap}.legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.source-dot{background:var(--amber)}.control-dot{background:var(--mint)}.load-dot{background:var(--blue)}.board-footer .tip{margin-left:auto}.brief-panel{padding:23px;display:flex;flex-direction:column;min-height:475px}.brief-panel h2{font-size:25px;margin:8px 0 12px}.scenario{font-size:13px;line-height:1.6;color:#c0d0d0;margin:0 0 10px}.requirements{list-style:none;padding:0;margin:7px 0}.requirements li{position:relative;padding:10px 10px 10px 31px;margin:5px 0;border:1px solid rgba(78,105,111,.28);border-radius:9px;background:#0a1b22;color:#d8e4e0;font-size:12px;line-height:1.4}.requirements li:before{content:attr(data-n);position:absolute;left:11px;top:10px;color:var(--amber);font:800 10px ui-monospace,monospace}.actions{display:grid;gap:7px;margin-top:auto;padding-top:14px}.check-button,.next-button{background:linear-gradient(135deg,#8ae8c9,#43c99b);color:#082019;border:0;border-radius:9px;padding:13px 15px;text-align:left;font-weight:900;display:flex;justify-content:space-between;cursor:pointer}.check-button:hover,.next-button:not(:disabled):hover{filter:brightness(1.08);transform:translateY(-1px)}.text-button{font-size:11px}.feedback,.hint{font-size:12px;line-height:1.5;margin-top:10px}.feedback.success{color:#7fe3bd}.feedback.error{color:#ff9e8d}.hint{padding:10px;border-left:2px solid var(--amber);background:#1c2c2b;color:#e4c890}.brief-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;margin-top:15px;color:#799398;font:9px ui-monospace,monospace;letter-spacing:.08em}.learning-panel{display:grid;grid-template-columns:230px 1fr 150px;gap:20px;align-items:center;margin:18px 0 45px;padding:20px 23px}.learning-panel p:not(.eyebrow){font-size:12px;line-height:1.6;color:var(--muted);margin:0}.next-button{display:block;text-align:center;white-space:nowrap}.next-button:disabled{opacity:.38;cursor:not-allowed}.next-button span{padding-left:12px}.suite-home-link:hover{color:var(--text)}@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr) 300px}.intro{padding-top:35px}.learning-panel{grid-template-columns:190px 1fr}.learning-panel .next-button{grid-column:2;justify-self:start;width:150px}}@media(max-width:760px){.topbar{height:64px;padding:0 14px}.brand-mark{width:32px;height:32px}.brand h1{font-size:14px}.brand p{display:none}.suite-home-link{font-size:0}.suite-home-link img{width:25px}.header-right{font-size:9px;gap:7px}.header-right button{padding:7px}.intro{display:block;padding:30px 0 20px}.intro h2{font-size:44px}.progress{width:100%;margin-top:21px}.workspace{grid-template-columns:1fr}.brief-panel{min-height:0}.board-footer{flex-wrap:wrap}.board-footer .tip{margin-left:0}.learning-panel{display:block}.learning-panel p:not(.eyebrow){margin:12px 0}.learning-panel .next-button{width:100%}main{width:calc(100% - 24px)}}
.level-nav{padding:14px 18px;margin-bottom:18px}.tier-buttons,.level-buttons{display:flex;flex-wrap:wrap;gap:8px}.tier-buttons{padding-bottom:12px;border-bottom:1px solid var(--line)}.level-buttons{padding-top:12px}.tier-buttons button,.level-buttons button{border:1px solid var(--line);background:#0a1b22;color:var(--muted);border-radius:8px;padding:8px 11px;cursor:pointer;font:700 11px ui-monospace,monospace}.tier-buttons button.active,.level-buttons button.active{border-color:var(--mint);background:#16382f;color:#d5ffe9}.level-buttons button.done{color:var(--mint)}.tier-buttons button:hover,.level-buttons button:hover{border-color:var(--amber);color:var(--text)}.diagram-reference{border-top:1px solid var(--line);margin-top:16px;padding-top:13px}.diagram-reference summary{cursor:pointer;color:var(--mint);font-size:12px;font-weight:800}.diagram-reference p{font-size:11px;line-height:1.5;color:var(--muted)}.diagram-reference a{color:var(--amber);font-size:11px;line-height:1.5}.diagram-reference img{display:block;max-width:100%;max-height:390px;object-fit:contain;background:white;margin-top:12px;border-radius:7px}
.header-right a{color:#d0dfde;text-decoration:none;border:1px solid var(--line);border-radius:8px;padding:9px 12px;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-right a:hover{border-color:var(--amber);color:var(--amber)}
.wired-standings{padding:20px 23px;margin:0 0 45px}.wired-standings h2{margin:6px 0 15px}.wired-standings ol{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.wired-standings li{padding:10px 12px;border:1px solid var(--line);border-radius:8px;color:#d0dfde;font-size:12px}
@media(max-width:760px){.header-right a{max-width:85px;padding:7px}}

.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:12px;align-items:stretch}.board-scroll{min-width:0;touch-action:pan-x pan-y}.board-scroll #board{min-width:680px;width:100%;height:auto;aspect-ratio:5/3;max-height:620px}.parts-tray{border:1px solid #25414a;border-radius:12px;background:#0a1b22;padding:14px;min-width:0}.tray-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.tray-heading .eyebrow{margin:0}.tray-heading>span:last-child{color:var(--muted);font-size:9px;text-align:right}.parts-tray>p{font-size:11px;line-height:1.5;color:var(--muted);margin:9px 0 12px}.tray-pieces{display:grid;gap:7px;max-height:500px;overflow:auto}.tray-piece{display:flex;align-items:center;gap:9px;text-align:left;padding:9px;border:1px solid #294550;border-radius:9px;background:#102630;color:var(--text);cursor:grab}.tray-piece:hover,.tray-piece.selected{border-color:var(--mint);background:#15382f}.tray-piece:active{cursor:grabbing}.piece-symbol{flex:0 0 25px;width:25px;height:25px;display:grid;place-items:center;border-radius:7px;color:#092019;background:#75dfb7;font-size:18px;font-weight:900}.piece-symbol.spare{background:#3b4546;color:#d4a95e}.tray-piece b,.tray-piece small{display:block}.tray-piece b{font-size:10px;line-height:1.3}.tray-piece small{font-size:9px;color:var(--muted);margin-top:3px}.ladder-backdrop{fill:#091920}.ladder-rail{stroke:#e9b760;stroke-width:4}.ladder-rung{stroke:#36515a;stroke-width:1.3;stroke-dasharray:5 5}.rail-label,.rung-number{fill:#c6944b;font:700 10px ui-monospace,monospace}.rung-number{fill:#718b90}.component{cursor:grab;touch-action:none}.component:active{cursor:grabbing}.component .body{fill:#122c36;stroke:#41606a;stroke-width:1.5}.component text{font-family:Inter,system-ui,sans-serif;pointer-events:none}.component .name{fill:#edf6f4;font-size:13px;font-weight:800}.component .kind{fill:#93aaad;font:9px ui-monospace,monospace;letter-spacing:.06em}.component .symbol{fill:none;stroke:#d6e4df;stroke-width:2}.component.source .symbol{stroke:#f4a340}.component.load .symbol{stroke:#66c9ff}.component.control .symbol{stroke:#4ecb9b}.component.decoy .body{fill:#292b2a;stroke:#8a7141;stroke-dasharray:4 3}.component.decoy .kind,.component.decoy .symbol{stroke:#b38c4b;fill:#b38c4b}.component.decoy .name{fill:#d6c39e}.component .terminal{fill:#0b1820;stroke:#b7cac6;stroke-width:2;cursor:crosshair;transition:all .12s}.component .terminal:hover,.component .terminal.selected{fill:#ffd181;stroke:#fff;stroke-width:3;filter:drop-shadow(0 0 7px #f4a340)}.component .terminal-label{fill:#d1dfdc;font:9px ui-monospace,monospace;pointer-events:none}.board-note{fill:#758f93;font:10px ui-monospace,monospace;letter-spacing:.06em}
@media(max-width:1250px){.builder-layout{grid-template-columns:minmax(0,1fr) 200px}.parts-tray{padding:11px}}
@media(max-width:900px){.builder-layout{grid-template-columns:1fr}.tray-pieces{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));max-height:220px}.parts-tray{order:2}.board-scroll{order:1}.board-scroll #board{max-height:none}}
.rail-terminal{fill:#f4a340;stroke:#fff0cf;stroke-width:2;cursor:crosshair}.rail-terminal:hover,.rail-terminal.selected{fill:#fff0cf;stroke:#fff;stroke-width:3;filter:drop-shadow(0 0 7px #f4a340)}
.level-modal{width:min(620px,calc(100% - 28px));max-height:min(86vh,760px);padding:0;border:1px solid #41606a;border-radius:18px;background:#102630;color:var(--text);box-shadow:0 28px 100px #000b}.level-modal::backdrop{background:#031015d9;backdrop-filter:blur(5px)}.level-modal-content{padding:clamp(22px,5vw,38px)}.level-modal .eyebrow{margin:0 0 9px}.modal-level-tag{color:#8eb4b4;font:700 10px ui-monospace,monospace;letter-spacing:.12em}.level-modal h2{font-size:clamp(27px,5vw,38px);line-height:1.05;margin:9px 0 12px;letter-spacing:-.03em}.level-modal .scenario{font-size:14px;margin:0 0 20px}.level-modal h3{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#80dfbe;margin:0}.level-modal .requirements{max-height:32vh;overflow:auto;margin:8px 0 14px}.modal-parts-note{color:#93aaad;font-size:11px;line-height:1.5;border-top:1px solid var(--line);padding-top:12px;margin:0 0 16px}.level-modal .check-button{width:100%;font-size:14px}
.board-scroll #board.checking{pointer-events:none}.wire.flowing{stroke:#fff1b5;stroke-width:4.5;stroke-dasharray:12 8;filter:drop-shadow(0 0 5px #ffd56b);animation:current-flow .55s linear infinite}.component.closing .contact-blade{transform:rotate(12deg);transform-origin:81px 65px;transition:transform .35s ease}.component.actuating .coil-symbol{animation:coil-pulse .34s ease-in-out infinite alternate}.component.spinning .motor-symbol{transform-box:fill-box;transform-origin:95px 65px;animation:motor-spin .35s linear infinite}.component.actuating .body{stroke:#f4c76c;filter:drop-shadow(0 0 5px #f4a340)}#board.result-pass .required-wire{stroke:#61e3ae;filter:drop-shadow(0 0 4px #4ecb9b)}#board.result-fail .required-wire{stroke:#e5b85e}#board.result-fail .extra-wire{stroke:#ff6e66;filter:drop-shadow(0 0 4px #ff6e66)}#board.result-pass .ladder-rail{stroke:#61e3ae}#board.result-fail .ladder-rail{stroke:#ff8c72}
@keyframes current-flow{to{stroke-dashoffset:-40}}@keyframes coil-pulse{from{opacity:.55;stroke-width:2}to{opacity:1;stroke-width:3.4}}@keyframes motor-spin{to{transform:rotate(360deg)}}
.result-modal{width:min(470px,calc(100% - 28px));padding:0;border:1px solid #41606a;border-radius:18px;background:#102630;color:var(--text);box-shadow:0 28px 100px #000b}.result-modal::backdrop{background:#031015d9;backdrop-filter:blur(5px)}.result-modal-content{padding:30px}.result-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;font-size:25px;font-weight:900;margin-bottom:17px}.result-modal .eyebrow{margin:0;font-size:10px}.result-modal h2{font-size:29px;line-height:1.1;margin:8px 0}.result-modal-content>p:last-of-type{font-size:13px;line-height:1.6;color:#bdcecd;margin:0}.result-modal.passed{border-color:#3b9d7a}.result-modal.passed .result-icon{background:#174c3e;color:#8bffcf}.result-modal.passed .eyebrow{color:#71e0b1}.result-modal.failed{border-color:#a95c4c}.result-modal.failed .result-icon{background:#562e2b;color:#ffb2a0}.result-modal.failed .eyebrow{color:#ff9e8d}.result-actions{display:flex;justify-content:space-between;gap:10px;margin-top:24px}.result-actions .text-button{background:#0a1b22}.result-actions .check-button{min-width:145px}.result-actions [hidden]{display:none}
