.free-lab{--free-line:#365044;--free-muted:#9bae9e;color:#e9f0e5;background:#101c16;min-height:100svh;padding:0 max(16px,50vw - 640px) 24px}.free-lab button,.free-lab a{-webkit-tap-highlight-color:transparent}.free-lab button{cursor:pointer;transition:background .16s,color .16s,border-color .16s}.free-lab button:disabled{opacity:.3;cursor:default}.free-lab button:focus-visible,.free-lab a:focus-visible{outline-offset:4px;outline:2px solid #d1fa91}.free-header{z-index:20;align-items:center;gap:16px;height:72px;display:flex;position:relative}.free-back{border:1px solid var(--free-line);color:#b9cbbc;border-radius:50%;place-items:center;width:40px;height:40px;display:grid}.free-header h1{letter-spacing:.08em;align-items:center;gap:9px;font-size:16px;font-weight:700;display:flex}.free-brand-mark{color:#c6f58b}.free-learn{color:#b5c9b4;align-items:center;gap:8px;margin-left:auto;font-size:12px;display:flex}.free-workspace{border:1px solid var(--free-line);background:#14231b;border-radius:20px}.free-stage{height:clamp(280px,100svh - 370px,710px);position:relative}.free-stage .circuit3d{border:0;border-radius:20px 20px 0 0;height:100%}.free-stage .circuit3d-window{height:100%!important}.free-view-tools{z-index:17;pointer-events:none;justify-content:space-between;align-items:center;display:flex;position:absolute;top:16px;left:20px;right:16px}.free-mode-tag{color:#a8bd9f;letter-spacing:.15em;align-items:center;gap:7px;font:10px ui-monospace,monospace;display:flex}.free-mode-tag>span{background:#c6f58b;border-radius:50%;width:5px;height:5px;box-shadow:0 0 8px #a9e78480}.free-tool-group{pointer-events:auto;background:#17271de8;border:1px solid #3d5745;border-radius:12px;padding:3px;display:flex}.free-icon{color:#acbfae;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;min-width:42px;height:42px;display:inline-flex}.free-icon:hover:not(:disabled),.free-icon[aria-pressed=true]{color:#d7ff9c;background:#314a35}.free-stage-bottom{z-index:17;pointer-events:none;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex;position:absolute;bottom:18px;left:20px;right:20px}.free-touch-hint{color:#afc4ae;background:#122019df;border-radius:50px;align-items:center;gap:7px;padding:8px 12px;font-size:11px;display:inline-flex}.free-bulb-tabs{pointer-events:auto;flex-wrap:wrap;justify-content:center;gap:5px;display:flex}.free-bulb-tabs button{color:#d0dfc6;background:#182b20ee;border:1px solid #486245;border-radius:30px;justify-content:center;align-items:center;gap:5px;min-width:42px;height:36px;padding:0 10px;font-size:11px;display:inline-flex}.free-bulb-tabs button[aria-pressed=true]{color:#233320;background:#caef92;border-color:#caef92}.free-bulb-tabs button span{font-variant-numeric:tabular-nums;border-left:1px solid #79906780;padding-left:5px}.free-current{background:#15261dee;border:1px solid #486245;border-radius:30px;align-items:center;gap:8px;padding:7px 13px;font-size:10px;display:flex}.free-current b{color:#d4f39c;font-variant-numeric:tabular-nums;font-size:15px}.free-dock{z-index:19;border-top:1px solid var(--free-line);background:#1a2d22;border-radius:0 0 20px 20px;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex;position:relative}.free-dock-start,.free-dock-end{align-items:center;gap:8px;display:flex}.free-dock-button{color:#dce9cd;background:#243d2b;border:1px solid #49634b;border-radius:10px;align-items:center;gap:9px;height:46px;padding:0 16px;font-size:12px;font-weight:700;display:flex}.free-dock-button b{color:#d2f3a5;border-left:1px solid #637356;padding-left:9px}.free-dock-button>span{white-space:nowrap}.free-dock-button>svg{flex-shrink:0}.free-dock-button:hover,.free-dock-button[aria-expanded=true]{background:#355238}.free-add{color:#23331e;background:#cef394;border-color:#cef394}.free-add:hover{background:#ddffa9}.free-popover-anchor{position:relative}.free-popover{background:#1b3024;border:1px solid #6b8d62;border-radius:14px;min-width:220px;padding:8px;position:absolute;bottom:calc(100% + 14px);left:0;box-shadow:0 16px 40px #0008}.free-part-menu{background:#1c3025f5;border:1px solid #8fb375;border-radius:13px;width:260px;padding:6px;box-shadow:0 12px 40px #0006}.free-part-heading{color:#d6efbc;justify-content:space-between;align-items:center;gap:8px;padding:0 5px 4px 8px;font-size:11px;display:flex}.free-part-heading>span{align-items:center;gap:6px;display:flex}.free-part-heading>button{color:#a7bfa6;border-radius:6px;place-items:center;width:32px;height:30px;display:grid}.free-part-heading>button:hover{background:#39513e}.free-part-actions{gap:3px;display:flex}.free-duplicate{color:#d8f3b5;background:#304932;border:1px solid #688957;border-radius:7px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:37px;margin-bottom:5px;padding:6px;font-size:11px;display:flex}.free-duplicate span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.assembly-bar{z-index:18;color:#b6caa9;align-items:center;gap:8px;padding:0 0 10px;font-size:11px;display:flex;position:relative}.assembly-bar>span{margin-right:auto}.assembly-bar button{color:#d9f1b9;background:#2b402d;border:1px solid #6f8c56;border-radius:8px;align-items:center;gap:7px;min-height:38px;padding:8px 13px;display:flex}.assembly-bar button[aria-expanded=true]{color:#223a23;background:#cbea9d}.assembly-builder{z-index:18;background:#1b3023;border:1px solid #718b59;border-radius:13px;max-width:600px;margin:0 auto 12px;padding:12px;position:relative}.assembly-heading{align-items:center;gap:10px;font-size:12px;display:flex}.assembly-heading>span{color:#b5c8a3;margin-left:auto;font-size:10px}.assembly-heading>button{place-items:center;width:30px;height:30px;display:grid}.assembly-presets{gap:7px;margin:8px 0 12px;display:flex}.assembly-presets>button{color:#c7dcb8;background:#223d2b;border:1px solid #496841;border-radius:8px;flex:1;align-content:center;justify-items:center;gap:3px;min-width:0;padding:6px;font-size:11px;display:grid}.assembly-presets>button[aria-pressed=true]{background:#375234;border-color:#d2f29a;box-shadow:inset 0 0 0 1px #d2f29a}.assembly-preview{color:#bad793;width:100%;max-width:210px;max-height:130px;display:block}.assembly-presets .assembly-preview{width:80px;max-width:100%;height:48px}.assembly-controls{gap:8px;display:flex}.assembly-controls>div{flex:1;align-items:center;gap:5px;font-size:11px;display:flex}.assembly-controls>div>span{margin-right:auto}.assembly-controls button{border:1px solid #526d48;border-radius:6px;flex-shrink:0;place-items:center;width:32px;height:34px;display:grid}.assembly-controls b{text-align:center;min-width:28px;font-size:17px}.assembly-controls small{margin-left:3px;font-size:10px;font-weight:400}.assembly-result{border-top:1px solid #3a543b;justify-content:space-between;align-items:center;gap:15px;margin-top:12px;padding-top:12px;display:flex}.assembly-result>button{color:#1f341e;white-space:nowrap;background:#cbed99;border-radius:8px;justify-content:center;align-items:center;gap:6px;min-height:42px;padding:12px;font-size:12px;font-weight:700;display:flex}@media (max-width:450px){.assembly-controls{flex-direction:column;gap:7px}.assembly-result .assembly-preview{max-width:112px}.assembly-result>button{padding:10px;font-size:11px}}.free-part-actions>button{color:#cce1c1;border-radius:8px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:5px;min-width:54px;height:61px;font-size:10px;display:flex}.free-part-actions>button:hover:not(:disabled){background:#3c5640}.free-part-actions>button:nth-child(-n+2){background:#2a4432}.free-presets{grid-template-columns:repeat(2,1fr);gap:4px;min-width:204px;display:grid;left:auto;right:0}.free-presets button{color:#d1e4c4;border-radius:8px;flex-direction:column;align-items:center;gap:8px;padding:14px;font-size:11px;display:flex}.free-presets button:hover{background:#324e38}.free-scale-note{z-index:16;text-align:center;color:#9aac93;padding:6px;font-size:10px;position:relative}.free-numberbar{justify-content:flex-end;padding:10px 12px 0;display:flex}.free-purpose{justify-content:space-between;align-items:center;gap:12px;padding:16px 0;display:flex}.free-purpose h1{font-size:17px;font-weight:700}.free-purpose p{color:#b8cda9;align-items:center;gap:6px;font-size:11px;display:flex}@media (max-width:640px){.free-purpose{flex-direction:column;align-items:flex-start;gap:5px;padding-block:12px}.free-purpose p{font-size:10px}}.free-stage-bottom .circuit-numbers{border:1px solid #486245;border-radius:12px;padding:7px 12px}.free-mission{z-index:19;color:#b5c8ad;justify-content:space-between;align-items:center;gap:10px;min-height:58px;margin-top:12px;display:flex;position:relative}.free-mission-start{align-items:center;gap:10px;padding:10px 4px;font-size:12px;display:flex}.free-mission-count{border:1px solid #4b6145;border-radius:50%;place-items:center;width:19px;height:19px;font:10px ui-monospace,monospace;display:grid}.free-mission-title{align-items:center;gap:10px;font-size:12px;display:flex}.free-mission-title>svg{color:#c6f58b;flex-shrink:0}.free-mission-title p{line-height:1.6}.free-mission-step{color:#9eae95;white-space:nowrap;font:11px ui-monospace,monospace}.free-mission-buttons{flex-shrink:0;align-items:center;gap:5px;display:flex}.free-mission-buttons>button:not(.free-icon),.free-mission-buttons>a{color:#20341e;background:#c6f58b;border-radius:8px;align-items:center;gap:6px;padding:10px 12px;font-size:12px;display:flex}.free-mission.is-complete{color:#d4f39c}.free-schematic{background:#e8eee0;border-radius:20px 20px 0 0;place-items:center;height:100%;padding:60px 16px 52px;display:grid;position:relative}.free-schematic>svg{max-height:100%}.free-plan{width:100%;height:100%}.free-plan-bulb{cursor:pointer}.free-plan-bulb:focus-visible{outline:none}.free-plan-bulb:focus-visible circle:nth-child(2){stroke:#759b4c;stroke-width:.12px}.free-stage:has(.free-schematic) .free-mode-tag{color:#49664c}.free-schematic-actions{z-index:18;position:absolute;top:80px;left:50%;transform:translate(-50%)}.free-stage .circuit3d-fallback+svg{background:#e8eee0}.free-stage .circuit3d-fallback-actions{z-index:18;position:absolute;top:82px;left:50%;transform:translate(-50%)}.free-mobile-actions{display:none}@media (max-width:700px){.free-lab{padding:0 10px 16px}.free-header{gap:10px;height:60px}.free-header h1{font-size:14px}.free-back{width:34px;height:34px}.free-workspace{border-radius:14px}.free-stage{height:clamp(250px,100svh - 390px,570px)}.free-stage.is-editing{height:clamp(200px,100svh - 520px,434px)}.free-stage .circuit3d-selection,.free-schematic-actions,.free-stage .circuit3d-fallback-actions{display:none}.free-mobile-actions{z-index:18;border-top:1px solid var(--free-line);background:#1c3025;padding:5px 8px;display:block;position:relative}.free-mobile-actions .free-part-menu{width:100%;box-shadow:none;border:0;border-radius:0;padding:0}.free-stage .circuit3d{border-radius:14px 14px 0 0}.free-view-tools{top:10px;left:13px;right:9px}.free-tool-group{padding:2px}.free-icon{min-width:38px;height:40px}.free-dock{border-radius:0 0 14px 14px;gap:4px;padding:10px 9px}.free-dock-start,.free-dock-end{gap:3px}.free-dock-button{gap:6px;height:44px;padding:0 10px;font-size:11px}.free-stage-bottom{gap:6px;bottom:14px;left:10px;right:10px}.free-mission{margin-top:6px}.free-mission-title{gap:7px;font-size:11px}}@media (max-width:360px){.free-dock-button{gap:3px;padding:0 6px}.free-dock-button>svg{width:16px}.free-dock-end .free-icon{min-width:30px}.free-dock-button b{padding-left:5px}}@media (prefers-reduced-motion:reduce){.free-lab button{transition:none}}.branch-workbench{grid-template-columns:minmax(0,1fr) 330px;align-items:start;gap:14px;display:grid}.branch-lab .free-purpose{padding:8px 0}.branch-lab .free-purpose>div{display:flex}.branch-lab .free-stage{height:clamp(380px,100svh - 255px,760px)}.branch-controls{z-index:18;background:#18291f;border:1px solid #365044;border-radius:18px;min-width:0;padding:15px;position:relative}.branch-heading{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.branch-heading h2{align-items:center;gap:7px;font-size:13px;font-weight:700;display:flex}.branch-heading>button{color:#bad198;align-items:center;gap:2px;min-height:36px;font-size:11px;display:flex}.branch-tree{gap:8px;display:grid}.branch-parallel{border-left:2px solid #6c8860;gap:8px;padding-left:9px;display:grid}.branch-series{gap:15px;display:grid}.branch-row{background:#223728;border:1px solid #435c42;border-radius:10px;align-items:center;gap:3px;padding:5px;display:flex}.branch-row[data-active=true]{background:#284638;border-color:#a8dff7;box-shadow:inset 3px 0 #a8dff7}.branch-parts{flex-wrap:wrap;flex:1;align-items:center;gap:0;min-width:0;min-height:44px;padding:5px 2px;display:flex}.branch-parts>span{color:#d2e9b2;flex-direction:column;align-items:center;padding:0 3px;display:inline-flex;position:relative}.branch-parts b{margin-top:3px;font:10px ui-monospace,monospace}.branch-stepper{flex-shrink:0;align-items:center;gap:1px;display:flex}.branch-stepper button{background:#2d4531;border:1px solid #527048;border-radius:7px;place-items:center;width:40px;height:44px;display:grid}.branch-stepper button:last-child{color:#20321d;background:#c9ed9b;border-color:#c9ed9b}.branch-stepper b{text-align:center;min-width:21px;font:16px ui-monospace,monospace}.branch-delete{color:#a3b69b;flex-shrink:0;place-items:center;width:33px;height:44px;display:grid}.branch-copy{color:#c8dfa9;border:1px dashed #59734b;border-radius:8px;justify-content:center;align-items:center;gap:7px;width:100%;min-height:44px;margin-top:7px;font-size:11px;display:flex}.battery-heading{border-top:1px solid #365044;margin-top:20px;padding-top:15px}.battery-rows{color:#c9e3ad;justify-content:center;gap:5px;margin-bottom:12px;display:grid}.battery-rows>div{gap:8px;display:flex}.battery-step{justify-content:space-between;align-items:center;gap:10px;margin-top:7px;display:flex}.battery-step>span{color:#b6c7ad;font-size:11px}.branch-samples{color:#9fb193;margin-top:18px;font-size:11px}.branch-samples summary{cursor:pointer;padding:10px 0}.branch-samples>div{flex-wrap:wrap;gap:5px;display:flex}.branch-samples button{border:1px solid #425d3e;border-radius:7px;padding:10px}@media (max-width:900px){.branch-workbench{grid-template-columns:minmax(0,1fr);gap:10px}.branch-lab .free-stage{height:clamp(270px,43svh,460px)}.branch-controls{padding:10px 12px}.branch-heading{margin-bottom:6px}.branch-lab .free-purpose{flex-direction:row;align-items:center}.branch-parts>span{padding-inline:6px}}.branch-controls .assembly-controls{flex-direction:column}.branch-controls .assembly-result .assembly-preview{max-width:80px}.branch-controls .assembly-result>button{padding:10px;font-size:11px}.branch-controls .assembly-builder{padding:9px}.branch-tabs{border-bottom:1px solid #365044;gap:6px;padding-bottom:10px;display:flex}.branch-tabs button{color:#aabea1;border:1px solid #425b40;border-radius:10px;flex:1;justify-content:center;align-items:center;gap:8px;min-height:44px;font-size:12px;display:flex}.branch-tabs button[aria-pressed=true]{color:#23371f;background:#c9ed9b;border-color:#c9ed9b}.branch-tabs b{opacity:.7;font:12px ui-monospace,monospace}.branch-controls .branch-heading{border:0;justify-content:flex-end;margin:0;padding:0}.branch-controls .branch-heading h2{display:none}.branch-scroll{scrollbar-width:thin;scrollbar-color:#536c4a transparent;overscroll-behavior:contain;max-height:calc(100svh - 310px);padding:2px 3px 6px;overflow-y:auto}.branch-delete{width:44px}.branch-limit{text-align:center;color:#c9d9b6;padding:5px;font-size:11px;display:block}.branch-samples{margin-top:8px}.free-notice{z-index:20;background:#223b29;border:1px solid #4c6d42;border-radius:10px;justify-content:center;align-items:center;gap:12px;margin-top:10px;padding:8px 12px;font-size:12px;display:flex;position:relative}.free-notice button{color:#d2f0a6;align-items:center;gap:5px;min-height:36px;display:inline-flex}@media (max-width:900px){.branch-lab .free-stage{height:clamp(220px,32svh,360px)}.branch-scroll{max-height:260px}.branch-tabs{padding-bottom:5px}.branch-controls{padding-top:8px}.branch-controls .branch-heading>button{min-height:30px}.branch-lab .free-numberbar{padding-top:6px}}.free-save-state{color:#a5b999;margin-left:10px;font-size:10px;font-weight:400;display:inline-block}@media (max-width:400px){.free-save-state{margin:2px 0 0;font-size:9px;display:block}}.branch-lab .free-numberbar{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:7px;padding:10px}.branch-lab .free-numberbar .circuit-number-toggle{margin-left:auto}.branch-parts>span+span:before{content:"";background:#a7c390;width:6px;height:1px;position:absolute;top:8px;left:-3px}.branch-workbench{grid-template-columns:minmax(0,1fr) 360px}.connection-editor{padding-top:12px}.connection-editor h2{align-items:center;gap:7px;font-size:12px;font-weight:700;display:flex}.connection-editor h2>span{color:#b9caae;border:1px solid #708568;border-radius:50%;place-items:center;width:20px;height:20px;font:11px ui-monospace,monospace;display:grid}.connection-targets{flex-wrap:wrap;gap:5px;margin-top:9px;display:flex}.connection-targets button{color:#d2e2c7;border:1px solid #486146;border-radius:9px;justify-content:center;align-items:center;gap:4px;min-width:44px;min-height:44px;padding:6px 10px;font-size:12px;display:inline-flex}.connection-targets button[aria-pressed=true],.connection-groups button[aria-pressed=true]{color:#c1ecff;background:#254c51;border-color:#a8dff7;box-shadow:inset 0 0 0 1px #a8dff7}.connection-groups{flex-wrap:wrap;gap:4px;margin-top:5px;display:flex}.connection-groups button{color:#bdcfb1;border:1px solid #486146;border-radius:7px;min-height:38px;padding:5px 9px;font-size:10px}.connection-destination{margin-top:16px}.connection-legend{color:#aaba9e;align-items:center;gap:4px;margin:7px 0;font-size:10px;display:flex}.connection-legend b{color:#ffdb78;border:1px solid #ffdb78;border-radius:50%;place-items:center;width:16px;height:16px;line-height:1;display:grid}.connection-choices{grid-template-columns:1fr 1fr;gap:8px;display:grid}.connection-choices>button{color:#def1c5;background:#203728;border:1px solid #688957;border-radius:12px;min-width:0;padding:9px 7px 11px}.connection-choices>button:hover:not(:disabled){background:#2f4630;border-color:#fadd85}.connection-preview{width:100%;height:104px;margin-bottom:8px;display:block}.connection-choices strong{font-size:13px}.connection-copy{color:#d6eab7;border:1px dashed #6b845a;border-radius:9px;justify-content:center;align-items:center;gap:7px;width:100%;min-height:44px;margin-top:9px;padding:6px;font-size:11px;display:flex}.connection-delete{color:#b0bba9;align-items:center;gap:5px;min-height:44px;margin:5px 0 0 auto;font-size:11px;display:flex}.branch-controls .branch-scroll{max-height:calc(100svh - 240px)}.battery-adjust{padding-top:15px}.battery-adjust>.assembly-preview{min-height:80px;margin:0 auto 16px}@media (max-width:900px){.branch-workbench{grid-template-columns:minmax(0,1fr)}.branch-controls .branch-scroll{max-height:none;overflow:visible}.connection-preview{height:92px}}
