#electrolysis-depth{border:1px solid #c7d2fe;border-radius:14px;padding:24px;margin:24px 0;background:white;color:#172033}#electrolysis-depth h3{font-family:Fraunces,Georgia,serif;font-size:24px;line-height:1.3;margin:0 0 12px}#electrolysis-depth p{font-size:15px;line-height:1.75}#electrolysis-depth .edp-controls{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}#electrolysis-depth button,#electrolysis-depth select{font:inherit;min-height:44px;border:1px solid #c4b5fd;border-radius:8px;background:#faf9ff;color:#4c1d95;padding:8px 12px;max-width:100%}#electrolysis-depth button[aria-pressed=true]{background:#ede9fe;border-color:#7c3aed}#electrolysis-depth button:focus-visible,#electrolysis-depth select:focus-visible{outline:3px solid #7c3aed;outline-offset:3px}#electrolysis-depth label{font-size:14px;display:grid;gap:6px;flex:1 1 240px}#edp-diagram{width:100%;max-width:570px;margin:auto;background:#fafbfe;border-radius:12px}#edp-diagram svg{display:block;width:100%;height:auto}#edp-diagram [data-ion]{cursor:pointer}#edp-diagram [data-ion]:focus{outline:none;stroke:#6d28d9;stroke-width:3px}#electrolysis-depth .edp-panels{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}#electrolysis-depth .edp-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:16px;min-width:0}#electrolysis-depth h4{margin:0 0 8px;font-size:16px}#electrolysis-depth .edp-species{display:flex;flex-wrap:wrap;gap:8px}#electrolysis-depth .edp-equation{overflow-wrap:anywhere;font-family:'DM Mono',monospace;font-size:14px;line-height:1.8}#edp-step{padding:12px 16px;border-left:3px solid #7c3aed;background:#faf5ff}#edp-particle-note{min-height:72px}#electrolysis-depth .edp-scope,#electrolysis-depth .edp-limits{font-size:12px;color:#526174}#electrolysis-depth .edp-steps{display:flex;flex-wrap:wrap;gap:6px}#electrolysis-depth .edp-steps button{font-size:13px;flex:1 1 120px}#electrolysis-depth details{margin:16px 0 0}#electrolysis-depth summary{font-size:14px}#electrolysis-depth .edp-observation{border-top:1px solid #e2e8f0;padding-top:14px}#electrolysis-depth button:disabled{opacity:.5;cursor:default}@media(max-width:600px){#electrolysis-depth{padding:16px}#electrolysis-depth .edp-panels{grid-template-columns:1fr}#electrolysis-depth h3{font-size:22px}#electrolysis-depth p{font-size:14px}}@media(prefers-reduced-motion:reduce){#electrolysis-depth *{scroll-behavior:auto!important}}

#electrolysis-depth label,#electrolysis-depth select{min-width:0;width:100%;box-sizing:border-box}

/* Live bench: the diagram keeps its identity while particles move within it. */
#electrolysis-depth{border-color:#e0d9ed;box-shadow:0 12px 36px #22335408;padding:clamp(18px,3vw,36px);overflow:hidden}
#electrolysis-depth>h3{font-size:clamp(26px,3vw,38px);letter-spacing:-.025em}
#electrolysis-depth>.edp-scope{color:#8066a2;letter-spacing:.1em;font-size:10px;font-weight:700}
#edp-diagram{max-width:none;background:transparent;border:1px solid #e2e8f0;overflow:hidden;border-radius:18px;box-shadow:0 8px 25px #34456108}
#edp-live-canvas,#edp-event-canvas{display:block;width:100%;height:auto;cursor:crosshair;touch-action:pan-y}
#electrolysis-depth .edp-live-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px;background:#fff;border-bottom:1px solid #edf0f5}
#electrolysis-depth .edp-view-switch,#electrolysis-depth .edp-motion-controls{display:flex;flex-wrap:wrap;gap:5px}
#electrolysis-depth .edp-live-toolbar button{font-size:12px;min-height:40px;padding:7px 10px;border-color:transparent;background:#f5f5f9;color:#59677b}
#electrolysis-depth .edp-live-toolbar button[aria-pressed=true]{background:#ede8f7;color:#603e98;border-color:#d5c6eb}
#electrolysis-depth .edp-live-readout{margin:0;padding:14px 20px;background:#fff;font-size:13px;line-height:1.65;border-top:1px solid #edf0f5;color:#526176}
#electrolysis-depth .edp-event{margin:0;padding:22px;background:#fff;border-top:1px solid #edf0f5}
#electrolysis-depth .edp-event-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
#electrolysis-depth .edp-event-heading .edp-scope{font-size:9px;letter-spacing:.1em;margin:0 0 5px;color:#8b779f}
#electrolysis-depth .edp-event-heading h4{font-family:Fraunces,Georgia,serif;font-size:21px;font-weight:500;margin:0}
#electrolysis-depth .edp-event-heading button{font-size:12px;margin:3px 0;min-height:40px;padding:7px 10px}
#electrolysis-depth .edp-event-equation{font-family:'DM Mono',monospace;font-size:clamp(13px,1.7vw,18px);color:#543c77;text-align:center;margin:14px 0;padding:12px;background:#faf8fe;border-radius:8px;overflow-wrap:anywhere}
#electrolysis-depth #edp-event-caption{font-size:12px;color:#64748b;margin:0;line-height:1.7}
#electrolysis-depth .edp-steps{gap:0;border:1px solid #e5deef;border-radius:12px;overflow:hidden;margin-top:20px}
#electrolysis-depth .edp-steps button{border:0;border-radius:0;background:#fff;font-size:12px;color:#786888;min-height:50px}
#electrolysis-depth .edp-steps button[aria-pressed=true]{background:#f1edf8;color:#583487}
#electrolysis-depth #edp-step{border-left:0;border-radius:9px;background:#f7f5fb;font-size:13px;margin-bottom:18px}
#electrolysis-depth .edp-panel{border:0;background:#f7f8fc;padding:20px}
#electrolysis-depth #edp-particle-note{min-height:0;background:#faf8fe;border-radius:10px;padding:14px 18px;border:1px solid #ece5f6;font-size:13px}
#electrolysis-depth .edp-species{margin-top:18px}
@media(max-width:600px){#electrolysis-depth .edp-event{padding:14px}#electrolysis-depth .edp-live-toolbar{padding:10px}#electrolysis-depth .edp-view-switch{width:100%}#electrolysis-depth .edp-view-switch button{flex:1}#electrolysis-depth .edp-motion-controls{width:100%}#electrolysis-depth .edp-live-toolbar button{font-size:11px}#electrolysis-depth .edp-steps button{flex-basis:50%}#electrolysis-depth .edp-event-heading h4{font-size:19px}}
#electrolysis-depth .edp-live-follow{margin:0;padding:0 20px 17px;background:#fff;font-size:12px;line-height:1.7;color:#765a99}
