.mm-wrap{--mm-a:#f0be63;--mm-b:#78caff;--mm-source:#e3e1ad;--mm-wind:#c4a0f4;--mm-glass:#a6e4dd;--mm-bench:#152638;--mm-axis:#839bb3}.mm-intro{max-width:960px}.mm-intro h1{max-width:940px}.mm-scene{width:100%;display:block;aspect-ratio:850/520;touch-action:none;cursor:grab;user-select:none;min-width:650px}.mm-scene[data-dragging=true]{cursor:grabbing}.mm-scene text,.mm-plot text{fill:var(--text);font-family:system-ui,sans-serif;font-size:17px}.mm-scene .mm-small{font-size:14px}.mm-scene .mm-label{font-size:18px;font-weight:600}.mm-scene .mm-model{fill:var(--mm-b);font-size:15px}.mm-ray-a{stroke:var(--mm-a);stroke-width:3;marker-end:url(#mm-a-arrow);fill:none}.mm-ray-b{stroke:var(--mm-b);stroke-width:3;marker-end:url(#mm-b-arrow);fill:none}.mm-mirror{fill:var(--mm-glass);stroke:var(--text);stroke-width:1}.mm-scene-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:var(--bg)}.mm-caption{font-size:.82rem!important;color:var(--muted);line-height:1.6;margin:10px 0}.mm-legend{display:flex;gap:8px 18px;flex-wrap:wrap;font-size:.8rem;color:var(--muted);margin:12px 0}.mm-legend b{color:var(--mm-a)}.mm-legend span:nth-child(2) b{color:var(--mm-b)}.mm-readouts{grid-template-columns:repeat(3,minmax(0,1fr))}.mm-readouts strong{font-variant-numeric:tabular-nums;font-size:.95rem}.mm-result{border-left:3px solid var(--mm-a);padding:12px 16px;line-height:1.7;background:var(--panel);border-radius:0 10px 10px 0}.mm-plot{width:100%;min-width:550px;display:block;aspect-ratio:850/260}.mm-plot text{font-size:14px}.mm-controls button{width:100%;margin-top:8px}.mm-sources a{overflow-wrap:anywhere}.mm-note{color:var(--muted);font-size:.85rem}.mm-scale-note{color:var(--muted);font-size:.8rem;line-height:1.6}.mm-wrap .optics-equation{max-width:100%}.mm-wrap .optics-equation .katex{font-size:1.1em}.mm-wrap .optics-controls{width:auto}
html[data-theme=light] .mm-wrap{--mm-a:#956000;--mm-b:#1169a0;--mm-source:#82712d;--mm-wind:#7850a6;--mm-glass:#247c81;--mm-bench:#eff4f8;--mm-axis:#566a7d}
@media(max-width:900px){.mm-controls .mm-model-control{grid-column:1/-1}.mm-readouts{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-wrap .optics-toolbar strong{width:100%}.mm-wrap .optics-toolbar{position:static}.mm-wrap .mm-controls button{align-self:end;margin:0}.mm-wrap .mm-result{padding:12px}.mm-wrap .optics-intro h1{font-size:2rem}}
