/* Electricity & Circuits Lab – the circuit board (static/labkit/electric-board.js).
   The layout (.dg-modes, .dg-wrap, .dg-side, .dg-tray, .dg-board, .dg-bar) is shared with digital-board.css. */
.eb-props { min-height: 0; }
.eb-props select { margin-left: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; }
.eb-warn { display: block; min-height: 1.2em; color: #b91c1c; font-size: 14px; font-weight: 600; }

/* the parts */
.eb-part { cursor: grab; }
.eb-hit { fill: transparent; }
.eb-part.is-sel .eb-hit { fill: rgba(245, 158, 11, .12); stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 5 4; rx: 10; }
.eb-leg { stroke: #78716c; stroke-width: 3; fill: none; }
.eb-term { fill: #fff; stroke: #0f172a; stroke-width: 2; cursor: crosshair; }
.eb-term:hover { fill: rgb(var(--c-accent-1, 30 74 59)); }
.eb-battery { fill: #1f2937; stroke: #0f172a; stroke-width: 2; }
.eb-battery-tip { fill: #d4af37; }
.eb-t-light { font: 700 13px Inter, system-ui, sans-serif; fill: #fde68a; pointer-events: none; }
.eb-t { font: 600 12px Inter, system-ui, sans-serif; fill: #44403c; pointer-events: none; }
.eb-sign { font: 700 15px Inter, system-ui, sans-serif; fill: #b91c1c; pointer-events: none; }
.eb-res { fill: #e7d3a7; stroke: #a8865b; stroke-width: 1.5; }
.eb-res.is-burnt { fill: #292524; }
.eb-halo { fill: rgba(253, 224, 71, .55); filter: blur(4px); }
.eb-glass { stroke: #a8a29e; stroke-width: 1.5; }
.eb-filament { fill: none; stroke: #78716c; stroke-width: 1.5; }
.eb-filament.is-on { stroke: #f97316; }
.eb-cap { fill: #a8a29e; stroke: #57534e; }
.eb-diode { fill: #fecaca; stroke: #7f1d1d; stroke-width: 2; }
.eb-diode.is-on { fill: #ef4444; }
.eb-diode.is-burnt { fill: #292524; }
.eb-led-glow { fill: rgba(239, 68, 68, .35); filter: blur(3px); }
.eb-pivot { fill: #475569; }
.eb-lever { stroke: #475569; stroke-width: 4; stroke-linecap: round; }
.eb-lever.is-on { stroke: #16a34a; }
.eb-motor { fill: #cbd5e1; stroke: #334155; stroke-width: 2; }
.eb-blade { stroke: #334155; stroke-width: 3; stroke-linecap: round; }
.eb-meter { fill: #fffbeb; stroke: #92400e; stroke-width: 2; }
.eb-meter-t { font: 800 12px Inter, system-ui, sans-serif; fill: #92400e; pointer-events: none; }
.eb-meter-read { font: 700 9.5px "JetBrains Mono", ui-monospace, monospace; fill: #0f172a; pointer-events: none; }

/* the wires and the charges flowing along them */
.eb-wire { fill: none; stroke: #b45309; stroke-width: 4; stroke-linecap: round; pointer-events: none; }
.eb-wire.is-sel { stroke: #f59e0b; stroke-width: 6; }
.eb-wire.is-drawing { stroke: rgb(var(--c-accent-1, 30 74 59)); stroke-dasharray: 6 6; }
.eb-wire-hit { fill: none; stroke: transparent; stroke-width: 16; cursor: pointer; }
.eb-charge { fill: #facc15; stroke: #a16207; stroke-width: 1; pointer-events: none; }
