.re-wrap{--re-a:#68d8ed;--re-b:#f4bf71;--re-c:#cb9cf2}.re-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(225px,.38fr);gap:16px;width:100%}.re-wrap .optics-bench{display:block}.re-wrap .optics-apparatus{min-width:0;width:100%;box-sizing:border-box}.re-wrap #ew-live{margin:0;min-width:0;align-self:stretch}.re-wrap .optics-readouts{grid-template-columns:1fr}.re-wrap .optics-readouts strong{font-size:1.15rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.re-wrap #ew-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%;max-width:none;margin-top:16px;box-sizing:border-box}.re-wrap #ew-settings h2,.re-wide{grid-column:1/-1}.re-wrap .optics-control{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:6px;min-width:0}.re-wrap .optics-control label{grid-column:1/-1}.re-wrap input{min-width:0;width:100%;box-sizing:border-box}.re-wrap select{grid-column:1/-1;width:100%;min-width:0;padding:9px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px}.re-wrap svg{width:100%;display:block;background:var(--bg);border:1px solid var(--line);border-radius:12px}.re-wrap svg text{font:15px system-ui,sans-serif;fill:var(--text)}.re-wrap svg .re-small{font-size:12px}.re-timebar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.re-caption{font-size:.85rem;color:var(--muted);line-height:1.6}.re-frame{font-size:.85rem;font-weight:650}.re-grid{fill:none;stroke:var(--line);stroke-width:1}.re-axis{fill:none;stroke:var(--muted);stroke-width:1.5}.re-path-a,.re-path-b,.re-path-c{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.re-path-a{stroke:var(--re-a)}.re-path-b{stroke:var(--re-b);stroke-dasharray:7 5}.re-path-c{stroke:var(--re-c)}.re-dot{fill:var(--re-a);stroke:var(--text);stroke-width:1.5}.re-dot-b{fill:var(--re-b);stroke:var(--text);stroke-width:1.5}.re-water{fill:var(--re-a);fill-opacity:.08;stroke:var(--re-a);stroke-opacity:.3}.re-bank{fill:var(--re-b);fill-opacity:.1;stroke:var(--re-b);stroke-opacity:.4}.re-car-a{fill:var(--re-a);stroke:var(--text);stroke-width:1}.re-car-b{fill:var(--re-b);stroke:var(--text);stroke-width:1}.re-floor{fill:var(--re-a);fill-opacity:.03;stroke:var(--line);stroke-width:1.5}.re-cursor{stroke:var(--text);stroke-dasharray:3 5;fill:none}.re-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:.85rem}.re-legend span:first-child{color:var(--re-a)}.re-legend span:nth-child(2){color:var(--re-b)}.re-legend span:nth-child(3){color:var(--re-c)}.re-equation{overflow:auto;padding:10px 0}.re-wrap .optics-table{overflow:auto;max-width:100%}.re-wrap [hidden]{display:none!important}.re-wrap #ew-guide li{margin-bottom:10px}.re-wrap .optics-body{min-width:0}
html[data-theme=light] .re-wrap{--re-a:#08788d;--re-b:#9b5c10;--re-c:#8142a8}
@media(max-width:1000px){.re-stage{grid-template-columns:minmax(0,1fr) 220px}.re-wrap #ew-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.re-wrap .optics-toolbar{position:static}}
@media(max-width:720px){.re-stage{grid-template-columns:1fr}.re-wrap .optics-readouts{grid-template-columns:repeat(2,minmax(0,1fr))}.re-wrap #ew-settings{grid-template-columns:1fr}.re-wrap svg text{font-size:17px}.re-wrap .optics-intro h1{font-size:2rem}}
/* Immediate controls belong to the apparatus, next to the animation. */
.re-inline-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;background:var(--bg);border:1px solid var(--line);border-radius:12px;margin:10px 0}.re-inline-controls .optics-control{font-size:.85rem}.re-inline-controls select{width:100%}.re-wrap .re-marker{fill:var(--re-b)}.re-wrap .re-support{stroke:var(--muted);stroke-width:8;stroke-linecap:round;fill:none}.re-wrap .re-rod{stroke:var(--text);stroke-width:3;fill:none}.re-wrap .re-anchor{fill:var(--text)}.re-wrap .re-shadow{fill:#000;opacity:.18}.re-wrap #re-scene{height:auto;aspect-ratio:auto;max-height:none}.re-wrap #re-scene text{font-size:19px}.re-wrap #re-scene .re-small{font-size:14px}.re-wrap #re-caption{padding:12px;border-left:3px solid var(--re-a);background:var(--bg)}
@media(max-width:520px){.re-inline-controls{grid-template-columns:1fr}.re-wrap #re-scene text{font-size:24px}.re-wrap #re-scene .re-small{font-size:19px}}
