:root{font-family:system-ui,sans-serif;color:#172c44;background:#eef4fa}
*{box-sizing:border-box}
body{margin:0}
main{max-width:1280px;margin:auto;padding:clamp(12px,3vw,30px)}
header,.controls,.actions,.liquids{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
header,.controls{justify-content:space-between;margin-bottom:14px}
h1{font-size:clamp(1.65rem,3vw,2.65rem);margin:0}
.subject{color:#335f8c;font-weight:750;letter-spacing:.11em;font-size:.76rem;margin:0 0 4px}
fieldset{border:0;padding:0;margin:0;min-width:0}
legend{font-weight:700;margin-bottom:5px}
button,.liquids label{font:inherit;font-weight:650;min-height:44px;padding:8px 12px;border:1px solid #92a8bc;border-radius:9px;background:white;color:inherit;cursor:pointer}
.liquids label{display:flex;align-items:center;gap:5px}
.liquids label:has(:checked){background:#dcecff;border-color:#275faa}
input{accent-color:#215b9e}
.primary{background:#164e84;border-color:#164e84;color:white}
button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #2064b5;outline-offset:3px}
.views{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr);gap:14px}
.panel,details{background:#fff;border:1px solid #c8d6e3;border-radius:13px;padding:clamp(12px,2vw,20px)}
.panel h2{font-size:clamp(1.1rem,2vw,1.5rem);margin:0}
svg{display:block;width:100%;height:min(39vh,340px);min-height:180px;overflow:visible}
svg text{text-anchor:middle;font-size:20px;font-weight:750;fill:#172c44}
svg .label{font-size:14px}
.wire,.electrode{fill:none;stroke:#334965;stroke-width:3;stroke-linecap:round}
.electrode{stroke-width:13}
#bulb{fill:#e7edf5;stroke:#334965;stroke-width:2}
#bulb.lit{fill:#ffdf72;stroke:#a06600;filter:drop-shadow(0 0 10px #f7bb35)}
.reading,.observation{margin:0;min-height:3em;font-size:clamp(1rem,1.65vw,1.22rem);line-height:1.45}
.reading{font-weight:750}
.reading.active{color:#176344}
.directions{stroke-width:4;stroke-linecap:round}
.directions[hidden]{display:none}
.particle text{dominant-baseline:central;font-size:17px}
details{margin-top:14px}
summary{font-weight:750;cursor:pointer}
details p{max-width:90ch;margin-bottom:0}
#fullscreen-status:empty{display:none}
@media(max-width:690px){.views{grid-template-columns:1fr}svg{height:min(52vw,290px)}}
