.diagram-card{border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);background:#fff;padding:20px}.diagram-controls{text-align:center;flex-direction:column;align-items:center;gap:12px;margin-top:12px;display:flex}.diagram-button{background:var(--color-blue-soft);color:var(--color-blue-dark);cursor:pointer;border:1px solid #c9dafc;border-radius:10px;padding:10px 18px;font-family:inherit;font-size:.95rem;font-weight:600;transition:background .15s,border-color .15s}.diagram-button:hover:not(:disabled){background:#dce8ff;border-color:#a9c4fa}.diagram-button:disabled{cursor:not-allowed;opacity:.5}.diagram-status{max-width:440px;color:var(--color-text-muted);margin:0;font-size:.925rem}.diagram-verdict{border-radius:10px;flex-direction:column;gap:2px;max-width:440px;margin:0;padding:10px 16px;font-size:.925rem;display:flex}.diagram-verdict.is-on{color:#065f46;background:#e7f8f1}.diagram-verdict.is-off{color:#92400e;background:#fff4e0}.sketch{width:100%;max-width:440px;height:auto;margin:0 auto;display:block}.sketch text{font-family:var(--font-sans);text-anchor:middle}.sketch-wire path{fill:none;stroke:var(--color-navy);stroke-width:4px;stroke-linecap:round;stroke-linejoin:round}.sketch-wire.is-broken path{stroke:#94a3b8}.sketch-wire-end{fill:#fff;stroke:#ef4444;stroke-width:2.5px}.sketch path.sketch-wire-hit{stroke:#0000;stroke-width:22px;cursor:pointer}.sketch-wire:hover path:not(.sketch-wire-hit){stroke:var(--color-blue)}.sketch-flow{fill:none;stroke:#f59e0b;stroke-width:5px;stroke-linecap:round;stroke-dasharray:.1 14;pointer-events:none;animation:1.2s linear infinite sketch-flow}@keyframes sketch-flow{to{stroke-dashoffset:-14.1px}}.sketch-battery-body{fill:#1e2b47}.sketch-battery-cap{fill:#ef4444}.sketch-battery-nub{fill:#94a3b8}.sketch-battery-label{fill:#fff;font-size:11px;font-weight:700}.sketch-sign{font-size:20px;font-weight:700}.sketch-sign-pos{fill:#ef4444}.sketch-sign-neg{fill:var(--color-navy)}.sketch-switch-hit{fill:#0000}.sketch-switch.is-clickable{cursor:pointer}.sketch-switch.is-clickable .sketch-switch-hit{fill:var(--color-blue-soft);stroke:#c9dafc;stroke-dasharray:4 4}.sketch-switch-lever{stroke:var(--color-navy);stroke-width:4px;stroke-linecap:round;transform-box:fill-box;transform-origin:0;transition:transform .2s}.sketch-switch.is-open .sketch-switch-lever{transform:rotate(-32deg)}.sketch-switch-contact{fill:#fff;stroke:var(--color-navy);stroke-width:2.5px}.sketch-bulb-glass{fill:#f1f5f9;stroke:#64748b;stroke-width:2.5px}.sketch-bulb.is-lit .sketch-bulb-glass{fill:#fde68a;stroke:#f59e0b}.sketch-bulb-glow{fill:#fde68a;opacity:.6}.sketch-bulb-filament{fill:none;stroke:#64748b;stroke-width:1.8px;stroke-linejoin:round}.sketch-bulb.is-lit .sketch-bulb-filament{stroke:#b45309}.sketch-bulb-base{fill:#94a3b8}.sketch-labels text{fill:var(--color-text-muted);font-size:12px;font-weight:600}.sketch-terminal{cursor:pointer}.sketch-terminal-ring{fill:#2563eb14;stroke:var(--color-blue);stroke-width:2px;stroke-dasharray:4 3}.sketch-terminal-dot{fill:var(--color-blue)}.sketch-terminal:hover .sketch-terminal-ring,.sketch-terminal.is-selected .sketch-terminal-ring{fill:#2563eb33;stroke-dasharray:none;stroke-width:3px}.sketch-terminal.is-correct .sketch-terminal-ring{fill:#10b98133;stroke:var(--color-green);stroke-dasharray:none;stroke-width:3px}.sketch-terminal.is-correct .sketch-terminal-dot{fill:var(--color-green)}.sketch-terminal.is-wrong{cursor:not-allowed}.sketch-terminal.is-wrong .sketch-terminal-ring{fill:#ef44441a;stroke:#ef4444}.sketch-terminal.is-wrong .sketch-terminal-dot{fill:#ef4444}.charge-flow{width:100%;max-width:480px;margin:0 auto;display:block}.diagram-caption-text{font-family:var(--font-sans);text-anchor:middle;fill:var(--color-text-muted);font-size:12px;font-weight:600}.charge-wire{fill:#fbe3c4;stroke:#d39a5b;stroke-width:2px}.charge{fill:var(--color-blue);animation:.9s ease-in-out infinite alternate charge-jiggle}@keyframes charge-jiggle{0%{transform:translate(-1.5px,1px)}to{transform:translate(1.5px,-1px)}}.charge-row.is-flowing{animation:3s linear infinite charge-drift}@keyframes charge-drift{0%{transform:translate(20px)}to{transform:translate(340px)}}.charge-arrow path{fill:none;stroke:var(--color-blue);stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round}.charge-arrow text{font-family:var(--font-sans);text-anchor:middle;fill:var(--color-blue-dark);font-size:11px}.slider-label{color:var(--color-text);font-size:.95rem}.slider{width:100%;max-width:360px;accent-color:var(--color-blue);cursor:pointer}.meter-row{gap:12px;display:flex}.meter{background:var(--color-surface-alt);min-width:120px;color:var(--color-text-muted);border-radius:10px;flex-direction:column;padding:8px 14px;font-size:.8rem;display:flex}.meter strong{color:var(--color-navy);font-variant-numeric:tabular-nums;font-size:1.15rem}.load-source{text-align:center;color:var(--color-text-muted);margin:0 0 14px;font-weight:600}.load-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.load-tile{background:var(--color-surface-alt);color:var(--color-blue);border-radius:14px;flex-direction:column;align-items:center;gap:4px;padding:16px 8px;display:flex}.load-tile strong{color:var(--color-navy)}.load-arrow{color:var(--color-text-muted)}.load-output{color:#b45309;background:#fff4e0;border-radius:999px;padding:2px 10px;font-size:.85rem;font-weight:600}@media (prefers-reduced-motion:reduce){.charge,.charge-row.is-flowing,.sketch-flow{animation-duration:6s}}.lab-grid.has-levels{grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:8px;display:grid}.levels{width:100%;max-width:150px;margin:0 auto;display:block}.levels text{font-family:var(--font-sans)}.levels-title,.levels-caption{text-anchor:middle;fill:var(--color-text-muted);font-size:11px;font-weight:600}.levels-caption{fill:var(--color-blue-dark)}.levels-axis{stroke:#c9d3e6;stroke-width:2px}.levels-tick{text-anchor:end;fill:var(--color-text-muted);font-size:10px}.levels-bar{fill:var(--color-blue-soft);stroke:var(--color-blue);stroke-width:1.5px}.levels-pos{stroke:#ef4444;stroke-width:2.5px}.levels-neg{stroke:var(--color-navy);stroke-width:2.5px}.levels-label{fill:var(--color-navy);font-size:11px;font-weight:700}.levels-label-pos{fill:#dc2626}@media (width<=520px){.lab-grid.has-levels{grid-template-columns:1fr}.levels{max-width:120px}}.meter-volt strong{color:#b45309}.meter-amp strong{color:var(--color-blue-dark)}.meter-large{text-align:center;min-width:200px}.meter-large strong{font-size:1.6rem}.diagram-status.is-warning{color:#9f1239;background:#fff1f2;border-radius:10px;padding:8px 12px}.probe-point{cursor:pointer}.probe-hit{fill:#0000}.probe-dot{fill:#fff;stroke:var(--color-blue);stroke-width:2.5px}.probe-point:hover .probe-dot{fill:var(--color-blue-soft)}.probe-point.is-red .probe-dot{fill:#ef4444;stroke:#b91c1c}.probe-point.is-black .probe-dot{fill:#1e293b;stroke:#0f172a}.probe-label{fill:var(--color-blue-dark);font-size:12px;font-weight:700}.probe-readout{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.probe-chip{border-radius:999px;padding:4px 10px;font-size:.8rem;font-weight:600}.probe-chip-red{color:#b91c1c;background:#fdecec}.probe-chip-black{color:#0f172a;background:#e2e8f0}.probe-next{color:var(--color-text-muted);margin:0;font-size:.8rem}.counter-row{animation:4s linear infinite counter-drift}@keyframes counter-drift{0%{transform:translate(0)}to{transform:translate(320px)}}.counter-gate{stroke:#ef4444;stroke-width:2.5px;stroke-dasharray:5 4}.counter-key{font-family:var(--font-sans);text-anchor:middle;fill:var(--color-text-muted);font-size:11px}.segmented{background:var(--color-surface-alt);border:1px solid var(--color-border);border-radius:12px;flex-wrap:wrap;justify-content:center;padding:4px;display:inline-flex}.segmented button{color:var(--color-text-muted);cursor:pointer;background:0 0;border:none;border-radius:9px;padding:8px 14px;font-family:inherit;font-size:.9rem;font-weight:600}.segmented button.is-active{color:var(--color-blue-dark);box-shadow:var(--shadow-sm);background:#fff}.sketch-flow-electron{stroke:#3b82f6}.diagram-verdict.is-electron{background:var(--color-blue-soft);color:var(--color-blue-dark)}@media (prefers-reduced-motion:reduce){.counter-row{animation-duration:16s!important}}.compare-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.compare-col{border:1px solid var(--color-border);border-radius:var(--radius-md);background:#fff;border-top-width:4px;padding:18px}.compare-volt{border-top-color:#f59e0b}.compare-amp{border-top-color:var(--color-blue)}.compare-col h3{font-size:1.15rem}.compare-col dl{margin:0}.compare-col dt{letter-spacing:.05em;text-transform:uppercase;color:var(--color-text-muted);margin-top:10px;font-size:.72rem;font-weight:600}.compare-col dd{color:var(--color-navy);margin:2px 0 0;font-weight:500}@media (width<=520px){.compare-grid{grid-template-columns:1fr}}
