/* 회로놀이터 lab.css — 주인 20장(§5·§6·§8·§9-2). 그림 칠·채널 효과·움직임.
   생성 구역(토큰·칠 클래스·종류별 효과·인쇄)은 scripts/build_lab_css.py 가 lab/draw/style.py 에서 다시 쓴다 — 손으로 고치지 않는다.
   그 아래 손 구역(배치·움직임)만 손으로 고친다. 모든 var(--채널…) 는 대체값을 가진다(시험 D5). */
/* >>> generated by scripts/build_lab_css.py — 손으로 고치지 않는다 */
:root{--lab-paper:#ffffff;--lab-plate:#eef2f5;--lab-ink:#1b2530;--lab-muted:#4e5a66;--lab-edge:#34414d;--lab-wire:#3d4a56;--lab-wire-flow:#b45309;--lab-pole-pos:#c0262d;--lab-pole-neg:#1f5fbf;--lab-glow-ray:#b45309;--lab-glow-fill:#fde68a;--lab-heat:#c2410c;--lab-iso-top:#f4f6f8;--lab-iso-left:#d5dce2;--lab-iso-right:#b9c3cc;--lab-plot-main:#0f766e;--lab-plot-grid:#e3e8ed;--lab-net-1:#7c3aed;--lab-net-2:#0f766e;--lab-net-3:#b45309;--lab-net-4:#be185d;--lab-net-5:#4d7c0f;--lab-net-6:#475569;--phys-cc-0:#1a1a1a;--phys-cc-1:#8b4513;--phys-cc-2:#d32f2f;--phys-cc-3:#f57c00;--phys-cc-4:#fbc02d;--phys-cc-5:#2e7d32;--phys-cc-6:#1565c0;--phys-cc-7:#7b1fa2;--phys-cc-8:#808080;--phys-cc-9:#f5f5f5;--phys-cc-10:#c9a227;--phys-cc-11:#b8bec6;--phys-cc-12:#e8d3a9;--phys-res-body:#e8d3a9;--phys-led-0:#e53935;--phys-led-1:#43a047;--phys-led-2:#1e88e5;--phys-led-3:#fdd835;--phys-led-4:#f5f5f5;}
@media (prefers-color-scheme: dark){:root{--lab-paper:#141b21;--lab-plate:#1b242c;--lab-ink:#e6edf3;--lab-muted:#a9b6c2;--lab-edge:#a3b1bd;--lab-wire:#9aa8b4;--lab-wire-flow:#fbbf24;--lab-pole-pos:#ff8a8a;--lab-pole-neg:#8db8ff;--lab-glow-ray:#fcd34d;--lab-glow-fill:#fde68a;--lab-heat:#fb923c;--lab-iso-top:#33404b;--lab-iso-left:#26313a;--lab-iso-right:#1e272f;--lab-plot-main:#2dd4bf;--lab-plot-grid:#26313a;--lab-net-1:#c4b5fd;--lab-net-2:#5eead4;--lab-net-3:#fcd34d;--lab-net-4:#f9a8d4;--lab-net-5:#bef264;--lab-net-6:#cbd5e1;}}
.lab-plate{fill:var(--lab-plate,#eef2f5)}
.scene-dark{fill:#000000}
.wire-line{fill:none;stroke:var(--lab-wire,#3d4a56);stroke-width:3px}
.wire-flow{fill:none;stroke:var(--lab-wire-flow,#b45309);stroke-width:3px;stroke-dasharray:4 12}
.wire-arrow{fill:var(--lab-wire-flow,#b45309);stroke:var(--lab-paper,#ffffff);stroke-width:1px}
.wire-dot{fill:var(--lab-wire,#3d4a56)}
.lead{fill:none;stroke:var(--lab-wire,#3d4a56);stroke-width:2px}
.lab-label{fill:var(--lab-ink,#1b2530);font-size:18px;font-family:system-ui, sans-serif}
.lab-text{fill:var(--lab-ink,#1b2530);font-size:18px;font-family:system-ui, sans-serif;stroke:var(--lab-paper,#ffffff);stroke-width:4px;stroke-linejoin:round;paint-order:stroke}
.pole-text{fill:var(--lab-ink,#1b2530);font-size:18px;font-family:system-ui, sans-serif;stroke:var(--lab-paper,#ffffff);stroke-width:4px;stroke-linejoin:round;paint-order:stroke}
.pole-pos-text{fill:var(--lab-pole-pos,#c0262d)}
.pole-neg-text{fill:var(--lab-pole-neg,#1f5fbf)}
.net-box{fill:var(--lab-paper,#ffffff);stroke-width:2px}
.net-text{fill:var(--lab-ink,#1b2530);font-size:18px;font-family:system-ui, sans-serif}
.net-1{stroke:var(--lab-net-1,#7c3aed)}
.net-2{stroke:var(--lab-net-2,#0f766e)}
.net-3{stroke:var(--lab-net-3,#b45309)}
.net-4{stroke:var(--lab-net-4,#be185d)}
.net-5{stroke:var(--lab-net-5,#4d7c0f)}
.net-6{stroke:var(--lab-net-6,#475569)}
.iso-top{fill:var(--lab-iso-top,#f4f6f8);stroke:var(--lab-edge,#34414d);stroke-width:1.5px}
.iso-left{fill:var(--lab-iso-left,#d5dce2);stroke:var(--lab-edge,#34414d);stroke-width:1.5px}
.iso-right{fill:var(--lab-iso-right,#b9c3cc);stroke:var(--lab-edge,#34414d);stroke-width:1.5px}
.edge-line{fill:none;stroke:var(--lab-edge,#34414d);stroke-width:1.5px}
.sym-line{fill:none;stroke:var(--lab-edge,#34414d);stroke-width:2px}
.sym-body{fill:var(--lab-paper,#ffffff);stroke:var(--lab-edge,#34414d);stroke-width:2px}
.sym-plate{fill:var(--lab-edge,#34414d);stroke:none}
.pole-pos{fill:var(--lab-pole-pos,#c0262d);stroke:var(--lab-edge,#34414d);stroke-width:1.5px}
.pole-neg{fill:var(--lab-pole-neg,#1f5fbf);stroke:var(--lab-edge,#34414d);stroke-width:1.5px}
.glass{fill:var(--lab-paper,#ffffff);fill-opacity:0.55;stroke:var(--lab-edge,#34414d);stroke-width:1.5px}
.glow-fill{fill:var(--lab-glow-fill,#fde68a);stroke:none}
.glow-ray{fill:none;stroke:var(--lab-glow-ray,#b45309);stroke-width:2px}
.filament{fill:none;stroke:var(--lab-edge,#34414d);stroke-width:1.5px}
.heat-fill{fill:var(--lab-heat,#c2410c);stroke:none}
.res-body{fill:var(--phys-res-body,#e8d3a9);stroke:var(--lab-edge,#34414d);stroke-width:1.5px}
.lcd{fill:var(--lab-plate,#eef2f5);stroke:var(--lab-edge,#34414d);stroke-width:1.5px}
.lever{fill:none;stroke:var(--lab-ink,#1b2530);stroke-width:4.5px}
.knob{fill:var(--lab-ink,#1b2530);stroke:var(--lab-paper,#ffffff);stroke-width:1.5px}
.cc-0{fill:var(--phys-cc-0,#1a1a1a);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-1{fill:var(--phys-cc-1,#8b4513);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-2{fill:var(--phys-cc-2,#d32f2f);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-3{fill:var(--phys-cc-3,#f57c00);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-4{fill:var(--phys-cc-4,#fbc02d);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-5{fill:var(--phys-cc-5,#2e7d32);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-6{fill:var(--phys-cc-6,#1565c0);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-7{fill:var(--phys-cc-7,#7b1fa2);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-8{fill:var(--phys-cc-8,#808080);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-9{fill:var(--phys-cc-9,#f5f5f5);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-10{fill:var(--phys-cc-10,#c9a227);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-11{fill:var(--phys-cc-11,#b8bec6);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.cc-12{fill:var(--phys-cc-12,#e8d3a9);stroke:var(--lab-edge,#34414d);stroke-width:1px}
.plot-bg{fill:var(--lab-paper,#ffffff)}
.plot-grid{fill:none;stroke:var(--lab-plot-grid,#e3e8ed);stroke-width:1px}
.plot-axis{fill:none;stroke:var(--lab-muted,#4e5a66);stroke-width:1px}
.plot-line{fill:none;stroke-width:2.5px}
.plot-line--main{stroke:var(--lab-plot-main,#0f766e)}
.plot-line--ref{stroke:var(--lab-muted,#4e5a66);stroke-dasharray:6 4}
.plot-tick{fill:var(--lab-muted,#4e5a66);font-size:13px;font-family:system-ui, sans-serif}
.plot-na{fill:var(--lab-muted,#4e5a66);font-size:13px;font-family:system-ui, sans-serif}
.plot-dot{fill:var(--lab-plot-main,#0f766e);stroke:var(--lab-paper,#ffffff);stroke-width:2px}
.plot-over{fill:var(--lab-plot-main,#0f766e);stroke:none}
.plot-marker-label{fill:var(--lab-ink,#1b2530);font-size:13px;font-family:system-ui, sans-serif}
.part-breadboard_top .fx-hmid-x{transform:translateX(calc(var(--hcol,0) * 24px))}
.part-breadboard_top[data-hhalf="0"]{--hhalf-0:inline}
.part-breadboard_top[data-hhalf="1"]{--hhalf-0:inline}
.part-breadboard_top .fx-hmid{display:var(--hhalf-0,none)}
.part-breadboard_top[data-hhalf="0"]{--hhalf-1:translateY(0px)}
.part-breadboard_top[data-hhalf="1"]{--hhalf-1:translateY(144px)}
.part-breadboard_top .fx-hmid-y{transform:var(--hhalf-1,translateY(0px))}
.part-breadboard_top[data-rail="0"]{--rail-0:inline}
.part-breadboard_top .fx-rail0{display:var(--rail-0,none)}
.part-breadboard_top[data-rail="1"]{--rail-1:inline}
.part-breadboard_top .fx-rail1{display:var(--rail-1,none)}
.part-breadboard_top[data-rail="2"]{--rail-2:inline}
.part-breadboard_top .fx-rail2{display:var(--rail-2,none)}
.part-breadboard_top[data-rail="3"]{--rail-3:inline}
.part-breadboard_top .fx-rail3{display:var(--rail-3,none)}
.part-bulb .fx-glow{opacity:var(--glow,0)}
.part-bulb .fx-rays{opacity:calc(var(--glow,0) * 4)}
.part-capacitor .fx-charge{opacity:var(--charge,0)}
.part-ldr .fx-sun{opacity:var(--light,0)}
.part-led[data-color="0"]{--color-0:var(--phys-led-0,#e53935)}
.part-led[data-color="1"]{--color-0:var(--phys-led-1,#43a047)}
.part-led[data-color="2"]{--color-0:var(--phys-led-2,#1e88e5)}
.part-led[data-color="3"]{--color-0:var(--phys-led-3,#fdd835)}
.part-led[data-color="4"]{--color-0:var(--phys-led-4,#f5f5f5)}
.part-led .fx-lens{fill:var(--color-0,var(--phys-led-0,#e53935))}
.part-led .fx-glow{opacity:var(--glow,0)}
.part-led .fx-rays{opacity:calc(var(--glow,0) * 4)}
.part-meter[data-mode="0"]{--mode-0:inline}
.part-meter .fx-mode-v{display:var(--mode-0,none)}
.part-meter[data-mode="1"]{--mode-1:inline}
.part-meter .fx-mode-a{display:var(--mode-1,none)}
.part-meter[data-mode="2"]{--mode-2:inline}
.part-meter .fx-mode-o{display:var(--mode-2,none)}
.part-multimeter_face[data-dial="0"]{--dial-0:rotate(-40deg)}
.part-multimeter_face[data-dial="1"]{--dial-0:rotate(0deg)}
.part-multimeter_face[data-dial="2"]{--dial-0:rotate(40deg)}
.part-multimeter_face .fx-knob{transform:var(--dial-0,rotate(-40deg))}
.part-multimeter_face[data-ol="1"]{--ol-0:inline}
.part-multimeter_face .fx-ol{display:var(--ol-0,none)}
.part-multimeter_face[data-ol="1"]{--ol-1:none}
.part-multimeter_face .fx-lcdnum{display:var(--ol-1,inline)}
.part-resistor .fx-heat{opacity:var(--heat,0)}
.part-resistor_bands[data-b1="1"]{--b1-0:var(--phys-cc-1,#8b4513)}
.part-resistor_bands[data-b1="2"]{--b1-0:var(--phys-cc-2,#d32f2f)}
.part-resistor_bands[data-b1="3"]{--b1-0:var(--phys-cc-3,#f57c00)}
.part-resistor_bands[data-b1="4"]{--b1-0:var(--phys-cc-4,#fbc02d)}
.part-resistor_bands[data-b1="5"]{--b1-0:var(--phys-cc-5,#2e7d32)}
.part-resistor_bands[data-b1="6"]{--b1-0:var(--phys-cc-6,#1565c0)}
.part-resistor_bands[data-b1="7"]{--b1-0:var(--phys-cc-7,#7b1fa2)}
.part-resistor_bands[data-b1="8"]{--b1-0:var(--phys-cc-8,#808080)}
.part-resistor_bands[data-b1="9"]{--b1-0:var(--phys-cc-9,#f5f5f5)}
.part-resistor_bands .fx-b1{fill:var(--b1-0,var(--phys-cc-12,#e8d3a9))}
.part-resistor_bands[data-b2="0"]{--b2-0:var(--phys-cc-0,#1a1a1a)}
.part-resistor_bands[data-b2="1"]{--b2-0:var(--phys-cc-1,#8b4513)}
.part-resistor_bands[data-b2="2"]{--b2-0:var(--phys-cc-2,#d32f2f)}
.part-resistor_bands[data-b2="3"]{--b2-0:var(--phys-cc-3,#f57c00)}
.part-resistor_bands[data-b2="4"]{--b2-0:var(--phys-cc-4,#fbc02d)}
.part-resistor_bands[data-b2="5"]{--b2-0:var(--phys-cc-5,#2e7d32)}
.part-resistor_bands[data-b2="6"]{--b2-0:var(--phys-cc-6,#1565c0)}
.part-resistor_bands[data-b2="7"]{--b2-0:var(--phys-cc-7,#7b1fa2)}
.part-resistor_bands[data-b2="8"]{--b2-0:var(--phys-cc-8,#808080)}
.part-resistor_bands[data-b2="9"]{--b2-0:var(--phys-cc-9,#f5f5f5)}
.part-resistor_bands .fx-b2{fill:var(--b2-0,var(--phys-cc-12,#e8d3a9))}
.part-resistor_bands[data-b3="0"]{--b3-0:var(--phys-cc-0,#1a1a1a)}
.part-resistor_bands[data-b3="1"]{--b3-0:var(--phys-cc-1,#8b4513)}
.part-resistor_bands[data-b3="2"]{--b3-0:var(--phys-cc-2,#d32f2f)}
.part-resistor_bands[data-b3="3"]{--b3-0:var(--phys-cc-3,#f57c00)}
.part-resistor_bands[data-b3="4"]{--b3-0:var(--phys-cc-4,#fbc02d)}
.part-resistor_bands[data-b3="5"]{--b3-0:var(--phys-cc-5,#2e7d32)}
.part-resistor_bands[data-b3="6"]{--b3-0:var(--phys-cc-6,#1565c0)}
.part-resistor_bands[data-b3="10"]{--b3-0:var(--phys-cc-10,#c9a227)}
.part-resistor_bands[data-b3="11"]{--b3-0:var(--phys-cc-11,#b8bec6)}
.part-resistor_bands .fx-b3{fill:var(--b3-0,var(--phys-cc-12,#e8d3a9))}
.part-resistor_bands[data-b4="1"]{--b4-0:var(--phys-cc-1,#8b4513)}
.part-resistor_bands[data-b4="2"]{--b4-0:var(--phys-cc-2,#d32f2f)}
.part-resistor_bands[data-b4="10"]{--b4-0:var(--phys-cc-10,#c9a227)}
.part-resistor_bands[data-b4="11"]{--b4-0:var(--phys-cc-11,#b8bec6)}
.part-resistor_bands[data-b4="12"]{--b4-0:var(--phys-cc-12,#e8d3a9)}
.part-resistor_bands .fx-b4{fill:var(--b4-0,var(--phys-cc-12,#e8d3a9))}
.part-resistor_bands[data-b4="12"]{--b4-1:4 3}
.part-resistor_bands .fx-b4{stroke-dasharray:var(--b4-1,none)}
.part-spdt[data-pos="0"]{--pos-0:rotate(-27deg)}
.part-spdt[data-pos="1"]{--pos-0:rotate(27deg)}
.part-spdt .fx-lever{transform:var(--pos-0,rotate(-27deg))}
.part-switch[data-on="0"]{--on-0:rotate(-30deg)}
.part-switch[data-on="1"]{--on-0:rotate(0deg)}
.part-switch .fx-lever{transform:var(--on-0,rotate(-30deg))}
.scene .fx-dark{opacity:calc(var(--ambient,1) * -0.6 + 0.6)}
[data-show="0"],[data-show="x"]{display:none}
.part[data-na="1"]{opacity:.45}
@media print{:root{--lab-paper:#ffffff;--lab-plate:#eef2f5;--lab-ink:#1b2530;--lab-muted:#4e5a66;--lab-edge:#34414d;--lab-wire:#3d4a56;--lab-wire-flow:#b45309;--lab-pole-pos:#c0262d;--lab-pole-neg:#1f5fbf;--lab-glow-ray:#b45309;--lab-glow-fill:#fde68a;--lab-heat:#c2410c;--lab-iso-top:#f4f6f8;--lab-iso-left:#d5dce2;--lab-iso-right:#b9c3cc;--lab-plot-main:#0f766e;--lab-plot-grid:#e3e8ed;--lab-net-1:#7c3aed;--lab-net-2:#0f766e;--lab-net-3:#b45309;--lab-net-4:#be185d;--lab-net-5:#4d7c0f;--lab-net-6:#475569;}}
/* <<< generated */

/* ── 손 구역: 배치 ── */
.lab-defs { position: absolute; width: 0; height: 0; overflow: hidden }   /* display:none·hidden 으로 숨기지 않는다(a11y-12) */
.plot[data-na="1"] .plot-body { display: none }
.plot:not([data-na="1"]) .plot-na { display: none }
.plot-marker:not([data-over="1"]) .plot-over-up { display: none }
.plot-marker:not([data-over="-1"]) .plot-over-down { display: none }

/* ── 손 구역: 움직임(20장 §6 — 한 주기 16 = dasharray 4+12, a11y-23) ── */
@keyframes lab-flow { from { stroke-dashoffset: 0 } to { stroke-dashoffset: -16 } }
.wire[data-flow="0"] .wire-flow, .wire[data-flow="x"] .wire-flow { visibility: hidden }
.wire:not([data-flow="1"]) .wire-arrow--fwd, .wire:not([data-flow="-1"]) .wire-arrow--rev { display: none }
@media (prefers-reduced-motion: no-preference) {
  .wire[data-flow="1"] .wire-flow  { animation: lab-flow calc(var(--dur, 8) * 1s) linear infinite }
  .wire[data-flow="-1"] .wire-flow { animation: lab-flow calc(var(--dur, 8) * 1s) linear infinite reverse }
  .part-switch .fx-lever, .part-spdt .fx-lever, .part-multimeter_face .fx-knob { transition: transform .15s }
}
.lab--still .wire-flow { animation: none }
@supports selector(:has(*)) { .lab:has(#still:checked) .wire-flow { animation: none } }
