.sch{display:block;background:#0c1015;cursor:grab;user-select:none;-webkit-user-select:none}
.sch:active{cursor:grabbing}
.sch .world{will-change:transform}
.sch .wire .halo{fill:none;stroke:#0b0f14;stroke-linejoin:round;stroke-linecap:round}
.sch .wire .core,.sch .wire .edge,.sch .wire .stripe,.sch .wire .volt,.sch .wire .flow,.sch .wire .hit{fill:none;stroke-linejoin:round;stroke-linecap:round}
.sch .wire .edge{stroke:#76808c}
.sch .wire .hit{stroke:transparent;cursor:crosshair}
.sch .wire .volt{opacity:0;transition:opacity .25s}
.sch.ov-volts .wire .volt{opacity:.92}
.sch .wire .flow{stroke:#fff;stroke-dasharray:3 13;opacity:0;mix-blend-mode:screen}
.sch:not(.ov-flow) .wire .flow{display:none}
.sch .wire:hover .halo{stroke:#3b82f6;stroke-opacity:.45}
.sch .wire.burnt .core{stroke:#3a2a20;stroke-dasharray:4 3}
.sch .wlabel rect{fill:#0f151c;stroke:#2a3542;stroke-width:1}
.sch .wlabel text{fill:#aeb9c6;font:600 10.5px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.sch.far .wlabel{display:none}
.sch .gsym{fill:none;stroke:#8f9aa7;stroke-width:1.6;stroke-linecap:round}
.sch .gnd.eng .gsym{stroke:#c0a060}
.sch .comp .body{fill:#141b23;stroke:#334152;stroke-width:1.2}
.sch .comp .headbg{fill:#1b2530}
.sch .comp .cid{fill:#7cc4ff;font:700 13px Inter,system-ui,sans-serif}
.sch .comp .ctitle{fill:#8b98a7;font:500 11px Inter,system-ui,sans-serif}
.sch .comp .cstate{fill:#8b98a7;font:600 10px Inter,system-ui,sans-serif}
.sch .comp .tname{fill:#c3ccd6;font:600 10.5px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.sch .comp .tbus{stroke:#5d6b7a;stroke-width:2}
.sch .comp .tjoin{fill:#5d6b7a}
.sch .comp .sep{stroke:#263240;stroke-width:1}
.sch .comp .head{cursor:pointer}
.sch .comp .lock{display:none;fill:none;stroke:#f0b429;stroke-width:1.5}
.sch .comp.locked .lock{display:block}
.sch .comp.locked .body{stroke:#5a4a20;stroke-dasharray:5 4}
.sch .comp.locked .dev{opacity:.45}
.sch .comp.sel .body{stroke:#3b82f6;stroke-width:2.2}
.sch .comp.flash .body{animation:cflash 1.6s ease-out}
@keyframes cflash{0%{stroke:#fff;stroke-width:5}100%{stroke:#334152;stroke-width:1.2}}
.sch .comp-ground .gbox{fill:#11171e;stroke:#2c3744}
.sch .comp-ground .gbar{stroke:#8f9aa7;stroke-width:3;stroke-linecap:round}
.sch .gid{fill:#8b98a7;font:600 10px Inter,system-ui,sans-serif}
.sch .splice{fill:#c3ccd6}
.sch .dlabel{fill:#c3ccd6;font:600 10.5px Inter,system-ui,sans-serif}
.sch .dstate{fill:#8b98a7;font:600 10px Inter,system-ui,sans-serif}
.sch .lead{fill:none;stroke:#8592a1;stroke-width:1.6}
.sch .lead.dash{stroke-dasharray:2 2}
.sch .fuse{fill:#1d2732;stroke:#8592a1;stroke-width:1.2}
.sch .flink{fill:none;stroke:#d8a24a;stroke-width:1.6}
.sch .fbroken{fill:none;stroke:#ff5d5d;stroke-width:2;display:none}
.sch .dev-fuse.blown .flink{display:none}
.sch .dev-fuse.blown .fbroken{display:block}
.sch .dev-fuse.blown .dstate{fill:#ff6b6b}
.sch .dev-fuse.unknown .flink{stroke:#5b6470;stroke-dasharray:2 2}
.sch .coil{fill:#1d2732;stroke:#8592a1;stroke-width:1.2}
.sch .coilx{stroke:#8592a1;stroke-width:1}
.sch .arm{stroke:#d7dee6;stroke-width:2.2;stroke-linecap:round;transition:transform .08s}
.sch .dev.on .arm{stroke:#5ee08a}
.sch .dev-relay.on .coil{fill:#22402c;stroke:#5ee08a}
.sch .dev-relay.on .dstate{fill:#5ee08a}
.sch .lamp{fill:#1d2732;stroke:#8592a1;stroke-width:1.4}
.sch .lfil{stroke:#8592a1;stroke-width:1.4}
.sch .lglow{fill:#ffd77a;opacity:0}
.sch .dev-lamp.lit .lfil{stroke:#fff6d0}
.sch .bat{stroke:#d7dee6;stroke-width:2.4}
.sch .motor{fill:#1d2732;stroke:#8592a1;stroke-width:1.4}
.sch .rotor{stroke:#d7dee6;stroke-width:1.6}
.sch .dev-starter.on .motor{stroke:#5ee08a}
.sch .ecubg{fill:#121a22;stroke:#263240}
.sch .led{fill:#38414d}
.sch .led.on{fill:#5ee08a;filter:drop-shadow(0 0 4px #5ee08a)}
.sch .drv{fill:#1d2732;stroke:#5d6b7a}
.sch .drv.on{fill:#3b82f6;stroke:#9cc8ff}
.sch .pt .dot{fill:#d9e1ea;stroke:#0b0f14;stroke-width:1.4}
.sch .pt-wend .dot{fill:#9aa6b3}
.sch .pt-tp .dot{fill:#d8a24a}
.sch .pt .hit{fill:transparent;cursor:pointer}
.sch.ov-volts .pt .dot{fill:var(--pv,#d9e1ea)}
.sch .pt:hover .dot{stroke:#3b82f6;stroke-width:3}
.sch .pt.closed .dot{fill:#3a4048;stroke:#5a4a20}
.sch .probe .ring{fill:none;stroke-width:2.5;animation:pr 1.6s ease-in-out infinite}
.sch .probe.red .ring{stroke:#ff4d4d}.sch .probe.black .ring{stroke:#e8edf2}
.sch .probe.red .tip{fill:#ff4d4d}.sch .probe.black .tip{fill:#22262c;stroke:#e8edf2;stroke-width:1}
.sch .probe .lead{fill:none;stroke-width:4;stroke-linecap:round}
.sch .probe.red .lead{stroke:#c62828}.sch .probe.black .lead{stroke:#15181c}
@keyframes pr{0%,100%{r:9;opacity:1}50%{r:13;opacity:.55}}
.sch .fx-spark line{stroke:#fff3b0;stroke-width:2.2;stroke-linecap:round;animation:sp .6s ease-out forwards}
@keyframes sp{from{opacity:1;transform:translate(0,0)}to{opacity:0;transform:translate(var(--dx),var(--dy))}}
.sch .fx-smoke circle{fill:#9aa3ad;opacity:0;animation:sm 2.5s ease-out forwards}
@keyframes sm{0%{opacity:.55;transform:translate(0,0) scale(.6)}100%{opacity:0;transform:translate(calc(var(--dx) * .5),var(--dy)) scale(2.4)}}
.sch-tip{position:absolute;display:none;pointer-events:none;background:rgba(10,14,19,.95);border:1px solid #2c3a49;border-radius:8px;padding:7px 9px;font:12px/1.45 Inter,system-ui,sans-serif;color:#dbe3ec;max-width:340px;z-index:20;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.sch-tip .v{color:#7cc4ff;font:700 13px ui-monospace,monospace}.sch-tip .hint{color:#7f8c9a;font-size:11px}.sch-tip .warn{color:#f0b429}
/* ===== 0.15: «бумажная» схема — белый лист как в руководстве по ремонту ===== */
.sch.paper{background:#fff}
.sch.paper .wire .halo{stroke:#fff}
.sch.paper .wire .edge{stroke:#1f252c}
.sch.paper .wire .flow{stroke:#1d4ed8;mix-blend-mode:normal}
.sch.paper .wire:hover .halo{stroke:#3b82f6;stroke-opacity:.3}
.sch.paper .wire.burnt .core{stroke:#6b4a35}
.sch.paper .wlabel rect{fill:#fff;stroke:none}
.sch.paper .wlabel text{fill:#14181d;font-weight:600}
.sch.paper .gsym,.sch.paper .gnd.eng .gsym{stroke:#111}
.sch.paper .comp .body{fill:#fff;stroke:#111;stroke-width:1.3}
.sch.paper .comp .headbg{fill:#fff}
.sch.paper .comp .hline{stroke:#111;stroke-width:1}
.sch.paper .comp .cid{fill:#000}
.sch.paper .comp .ctitle{fill:#2b3138}
.sch.paper .comp .cstate{fill:#4b5563}
.sch.paper .comp .tname{fill:#111}
.sch.paper .comp .tbus{stroke:#111}
.sch.paper .comp .tjoin{fill:#111}
.sch.paper .comp .sep{stroke:#9aa3ad;stroke-dasharray:4 3}
.sch.paper .comp.locked .body{stroke:#a16207}
.sch.paper .comp.locked .dev{opacity:.5}
.sch.paper .comp.sel .body{stroke:#1d4ed8;stroke-width:2.6}
.sch.paper .comp.flash .body{animation:cflashp 1.6s ease-out}
@keyframes cflashp{0%{stroke:#2563eb;stroke-width:6}100%{stroke:#111;stroke-width:1.3}}
.sch.paper .comp-ground .gbox{fill:#fff;stroke:#111}
.sch.paper .comp-ground .gbar{stroke:#111}
.sch.paper .gid{fill:#1f2937}
.sch.paper .splice{fill:#111}
.sch.paper .dlabel{fill:#111}
.sch.paper .dstate{fill:#4b5563}
.sch.paper .lead{stroke:#111}
.sch.paper .fuse{fill:#fff;stroke:#111}
.sch.paper .flink{stroke:#111}
.sch.paper .fbroken{stroke:#dc2626}
.sch.paper .dev-fuse.blown .dstate{fill:#dc2626}
.sch.paper .dev-fuse.unknown .flink{stroke:#9ca3af}
.sch.paper .coil{fill:#fff;stroke:#111}
.sch.paper .coilx{stroke:#111}
.sch.paper .arm{stroke:#111}
.sch.paper .dev.on .arm{stroke:#15803d}
.sch.paper .dev-relay.on .coil{fill:#dcfce7;stroke:#15803d}
.sch.paper .dev-relay.on .dstate{fill:#15803d}
.sch.paper .lamp{fill:#fff;stroke:#111}
.sch.paper .lfil{stroke:#111}
.sch.paper .lglow{fill:#fbbf24}
.sch.paper .dev-lamp.lit .lfil{stroke:#b45309}
.sch.paper .bat{stroke:#111}
.sch.paper .motor{fill:#fff;stroke:#111}
.sch.paper .rotor{stroke:#111}
.sch.paper .dev-starter.on .motor{stroke:#15803d}
.sch.paper .ecubg{fill:#f5f6f8;stroke:#9aa3ad}
.sch.paper .led{fill:#d1d5db}
.sch.paper .led.on{fill:#16a34a;filter:none}
.sch.paper .drv{fill:#fff;stroke:#4b5563}
.sch.paper .drv.on{fill:#2563eb;stroke:#1e3a8a}
.sch.paper .pt .dot{fill:#fff;stroke:#111;stroke-width:1.3}
.sch.paper .pt-wend .dot{fill:#fff;stroke:#4b5563}
.sch.paper .pt-tp .dot{fill:#f59e0b;stroke:#7c4a03}
.sch.paper .pt:hover .dot{stroke:#2563eb;stroke-width:3}
.sch.paper .pt.closed .dot{fill:#e5e7eb;stroke:#a16207}
.sch.paper .probe.black .ring{stroke:#111}
.sch.paper .probe.black .tip{fill:#111;stroke:#111}
.sch.paper .probe.black .lead{stroke:#111}
.sch.paper .fx-spark line{stroke:#f59e0b}
.sch.paper .fx-smoke circle{fill:#6b7280}
.sch .fr-sheet{fill:#fff;stroke:none;filter:drop-shadow(0 2px 6px rgba(0,0,0,.18))}
.sch .fr-out{fill:none;stroke:#111;stroke-width:2}
.sch .fr-tb{fill:#fff;stroke:#111;stroke-width:2}
.sch .fr-ln{stroke:#111;stroke-width:1.2;fill:none}
.sch .fr-t1{fill:#000;font:700 17px "GOST type A","Arial Narrow",Inter,system-ui,sans-serif}
.sch .fr-t2{fill:#111;font:500 13px "GOST type A","Arial Narrow",Inter,system-ui,sans-serif}
.sch .fr-t3{fill:#222;font:500 12px "GOST type A","Arial Narrow",Inter,system-ui,sans-serif}
.sch .fr-sw{stroke-width:5;stroke-linecap:butt}
.sch .fr-sw-e{stroke:#1f252c;stroke-width:7;stroke-linecap:butt}
/* поле схемы и подписи поверх белого листа */
#center.paper{background:#e9ecef}
#center.paper .legend{background:rgba(255,255,255,.94);border-color:#cfd6de;color:#374151}
#center.paper .legend .lg-t{background:#fff;border:1.5px solid #111;width:8px;height:8px}
#center.paper .legend .lg-w{background:#fff;border:1.5px solid #4b5563}
#center.paper .legend .lg-p{background:#f59e0b}
.sch.paper .comp.locked .body{stroke:#111;stroke-dasharray:none;fill:#fcfcfa}
.sch.paper .comp .lock{stroke:#b45309}
