.power-layout{display:grid;grid-template-columns:minmax(490px,1.7fr) minmax(330px,1fr);gap:20px;padding:20px;max-width:1600px;margin:auto;min-height:calc(100dvh - 70px)}.bench-panel,.power-sidebar>section,.power-mission{background:#fff;border:1px solid #dae3df;border-radius:18px}.bench-panel{display:flex;flex-direction:column;overflow:hidden}.bench-title{display:flex;align-items:center;justify-content:space-between;padding:18px 25px 10px}.bench-title h2{font-size:22px;margin:5px 0}.bench-title small{font-size:10px;letter-spacing:.14em;color:#a87932;font-weight:800}.bench-title img{width:63px;height:63px}.meters{display:grid;grid-template-columns:repeat(3,1fr);margin:0 23px;border:1px solid #dde6df;border-radius:13px;background:#f5f8f3;padding:13px 4px}.meters>div{text-align:center;border-right:1px solid #dde6df}.meters>div:last-child{border:0}.meters small,.meters span{display:block;font-size:11px;color:#688275}.meters strong{display:block;font-variant-numeric:tabular-nums;font-size:27px;color:#2b5c49;line-height:1.5}.meters span{font-size:10px}.workbench{flex:1;min-height:335px;position:relative;margin:16px;background:#faf6e9;border:1px solid #eee1c1;border-radius:14px;overflow:hidden;background-image:radial-gradient(#cfbe983c 1px,transparent 1px);background-size:22px 22px}.wire-layer{position:absolute;inset:0;width:100%;height:100%}.wire-layer path{fill:none;stroke:#c8b994;stroke-width:5;stroke-dasharray:8 8;stroke-linecap:round}.wire-layer path.connected{stroke:#577d85;stroke-dasharray:none}.workbench.powered .wire-layer path.connected{stroke:#dea845;stroke-dasharray:10 9;animation:flow 1s linear infinite}.bench-slots{display:grid;grid-template-columns:repeat(3,1fr);height:100%;min-height:335px;padding:55px 10px 65px;position:relative;gap:12px;pointer-events:none;align-items:center}.part-zone{text-align:center;pointer-events:auto;cursor:pointer;border:2px dashed transparent;border-radius:15px;padding:5px;min-width:0;outline-offset:2px}.part-zone.focus-slot,.part-zone.drag-over{background:#fff8dfbd;border-color:#d5ad59}.part-zone>small{display:block;font-size:9px;letter-spacing:.05em;color:#a58a53;font-weight:800;min-height:24px}.part-zone strong{display:block;font-size:14px;margin-top:8px;color:#5f502e}.part-zone>span{font-size:10px;display:block;color:#91794d;margin-top:4px;min-height:14px}.component{height:115px;display:grid;place-items:center;position:relative}.component svg{width:100%;max-width:126px;height:112px;overflow:visible}.empty-component{font-size:34px;color:#ccb77f;width:100px;border:2px dashed #d9c694;border-radius:18px;margin:auto;background:#fffdf733}.terminals{position:absolute;inset:0;pointer-events:none}.terminal{position:absolute;width:25px;height:25px;margin:-12px 0 0 -12px;border:3px solid #fff;background:#617c84;border-radius:50%;box-shadow:0 2px 3px #3b51555c;cursor:crosshair;pointer-events:auto;z-index:4;font-size:11px;color:#fff;font-weight:900;padding:0}.terminal.selected{outline:3px solid #e3b54c;outline-offset:3px}.terminal.connected{background:#ab7d35}.bench-sticker{position:absolute;bottom:12px;right:15px;transform:rotate(-4deg);font-size:11px;background:#fff8cc;color:#9b7c30;border-radius:5px;padding:5px 12px;font-weight:850}.bench-controls{display:flex;gap:8px;padding:0 20px;flex-wrap:wrap}.bench-controls button{font-size:13px}.circuit-feedback{font-size:13px;line-height:1.55;margin:14px 23px 5px;min-height:42px;color:#4f6c6f}.load-voltage{padding:0 23px 20px;font-size:11px;color:#8b9b95}.power-sidebar{display:flex;flex-direction:column;gap:13px;min-width:0}.power-mission{padding:20px;background:#fffdf7}.chapter-label{font-size:10px;font-weight:800;letter-spacing:.12em;color:#ab822a}.power-mission h1{font-size:23px;margin:9px 0}.power-mission p{line-height:1.6;font-size:13px;color:#5f7473;margin:8px 0}.power-mission summary{cursor:pointer;font-size:12px;color:#9b772e;font-weight:800;margin-top:12px}.parts-shelf{padding:17px}.parts-shelf header{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:8px}.parts-shelf h2,.lab-notebook h2{font-size:15px;margin:0}.parts-shelf header span{font-size:10px;color:#8a9b9b}.shelf-tabs{display:flex;border-bottom:1px solid #e4eae7;margin-bottom:14px;gap:6px}.shelf-tabs button{border:0;background:none;color:#879595;font-size:11px;font-weight:750;padding:8px 5px;border-bottom:3px solid transparent;flex:1}.shelf-tabs [aria-selected=true]{color:#8c6727;border-color:#d8af54}.parts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.shelf-part{border:1px solid #e6e9e3;border-radius:11px;background:#fafbf7;color:#566564;padding:8px 3px;font-size:10px;cursor:grab;min-width:0}.shelf-part.selected{border-color:#d4a958;background:#fff5d8;box-shadow:0 0 0 1px #d4a958}.shelf-part svg{width:58px;height:55px;display:block;margin:auto auto 5px}.shelf-part strong{display:block;font-size:12px;margin-bottom:3px}.part-tip{font-size:11px;line-height:1.5;color:#859991;margin:12px 0 0}.lab-notebook{padding:17px}.lab-notebook>p{font-size:12px;color:#697d75;line-height:1.6}.lab-notebook #observations{max-height:160px;overflow:auto;font-size:11px;color:#6d847a}.observation{padding:8px;border-left:3px solid #9cbbb0;background:#f3f7f3;margin-top:6px;border-radius:0 6px 6px 0}.observation.warn{border-color:#dfb463;background:#fff8e7}.model-note{font-size:10px;line-height:1.5;color:#8b9997;margin:0 7px}.component.lit .led-light{fill:#ffbd56;filter:drop-shadow(0 0 14px #ffc53e)}.component.broken .led-light{fill:#99a7ad}.component.broken .led-crack{display:block}.led-crack{display:none}.component.spinning .fan-blades{transform-origin:64px 53px;animation:spin 1s linear infinite}#powerQuestion{margin-top:14px;font-size:12px}#powerQuestion div{display:flex;gap:8px;margin-top:7px}#powerAnswer{width:100px;padding:8px;border:1px solid #bed2c7;border-radius:8px}#powerQuestion[hidden]{display:none}@keyframes flow{to{stroke-dashoffset:-38}}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1000px){.power-layout{padding:12px;gap:12px;grid-template-columns:minmax(390px,1.3fr) minmax(310px,1fr)}.part-zone strong{font-size:12px}.bench-title{padding:14px 18px}.parts-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.power-layout{display:flex;flex-direction:column}.bench-panel{min-height:600px}.parts-grid{grid-template-columns:repeat(3,1fr)}.power-sidebar{display:grid;grid-template-columns:1fr}.bench-slots{gap:4px}.power-mission{order:-1}}@media(prefers-reduced-motion:reduce){.component.spinning .fan-blades,.workbench.powered .wire-layer path.connected{animation:none}}

@media(min-width:761px){.power-layout{height:calc(100dvh - 70px);min-height:0}.bench-panel{min-height:0}.power-sidebar{overflow:auto;scrollbar-width:thin;padding-right:3px}.bench-title{height:64px;flex:none;padding:10px 22px}.bench-title img{width:49px;height:49px}.bench-title h2{font-size:20px;margin:3px 0}.meters{padding:8px 4px}.meters strong{font-size:24px;line-height:1.3}.meters small{font-size:10px}.meters span{font-size:9px}.workbench{min-height:230px;margin:12px 16px}.bench-slots{min-height:230px;padding:22px 10px 40px}.component{height:93px}.component svg{height:90px}.part-zone>small{min-height:19px;font-size:8px}.part-zone strong{margin-top:4px}.bench-controls button{min-height:40px;padding:9px 13px}.circuit-feedback{font-size:12px;line-height:1.4;margin:10px 22px 4px;min-height:34px}.load-voltage{font-size:10px;padding-bottom:12px}.empty-component{width:82px}.part-zone>span{font-size:9px}}

.shelf-part{touch-action:none;user-select:none}.shelf-part svg{pointer-events:none}.part-drag-ghost{position:fixed!important;width:90px;z-index:1000;pointer-events:none;box-shadow:0 10px 30px #183e4740;opacity:.92}
