.mm-wrap{--mm-at:#f4b566;--mm-ar:#6dcfee;--mm-v:#83ddb3;--mm-net:#e9a0f7;--mm-w:#c5c9fa;--mm-body:#375d7b;--mm-ramp:#294b50}.mm-wrap .optics-bench{display:flex;flex-direction:column}.mm-wrap .optics-controls{width:100%;max-width:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;box-sizing:border-box}.mm-controls h2{grid-column:1/-1}.mm-wrap .optics-control{min-width:0}.mm-wrap input,.mm-wrap select{max-width:100%;box-sizing:border-box}.mm-wrap input[type=number]{width:90px}.mm-wrap .optics-apparatus{width:100%;min-width:0;box-sizing:border-box}.mm-scene-box{border:1px solid var(--line);border-radius:14px;background:var(--bg);overflow:hidden}.mm-scene{display:block;width:100%;min-width:0;touch-action:none;cursor:grab;user-select:none}.mm-scene[data-dragging=true]{cursor:grabbing}.mm-scene text,.mm-plot text{fill:var(--text);font:14px system-ui,sans-serif}.mm-scene .mm-grid,.mm-plot .mm-grid{fill:none;stroke:var(--line);stroke-width:1}.mm-axis{fill:none;stroke:var(--muted);stroke-width:1.5}.mm-ramp{fill:var(--mm-ramp);stroke:var(--muted);stroke-width:2}.mm-body{fill:var(--mm-body);stroke:var(--mm-ar);stroke-width:2}.mm-hole{fill:var(--bg);stroke:var(--mm-ar);stroke-width:2}.mm-sphere{fill:var(--mm-body);fill-opacity:.85;stroke:var(--mm-ar);stroke-width:2}.mm-orbit{fill:none;stroke:var(--mm-ar);stroke-width:2;stroke-dasharray:5 4}.mm-spoke{fill:none;stroke:var(--text);stroke-width:3}.mm-point{fill:var(--mm-ar);stroke:var(--text);stroke-width:2}.mm-incline-handle{fill:var(--mm-at);stroke:var(--text);stroke-width:2;cursor:ns-resize}.mm-point[data-motion-handle]{cursor:move}.mm-at,.mm-ar,.mm-net,.mm-v,.mm-w,.mm-alpha{fill:none;stroke-width:3;stroke-linecap:round}.mm-at{stroke:var(--mm-at)}.mm-ar{stroke:var(--mm-ar)}.mm-net{stroke:var(--mm-net)}.mm-v{stroke:var(--mm-v)}.mm-w{stroke:var(--mm-w)}.mm-alpha{stroke:var(--mm-at);stroke-dasharray:5 3}.mm-head{stroke-width:1}.mm-at-label,.mm-alpha-label{fill:var(--mm-at)!important}.mm-ar-label{fill:var(--mm-ar)!important}.mm-net-label{fill:var(--mm-net)!important}.mm-v-label{fill:var(--mm-v)!important}.mm-w-label{fill:var(--mm-w)!important}.mm-timebar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0}.mm-timebar span{font-size:.85rem}.mm-caption{font-size:.86rem;color:var(--muted);line-height:1.6}.mm-invalid{padding:12px;border:2px solid var(--mm-at);border-radius:8px;color:var(--text)}.mm-readouts{grid-template-columns:repeat(3,minmax(0,1fr))}.mm-readouts strong{font-variant-numeric:tabular-nums}.mm-plot{display:block;width:100%;min-width:0}.mm-cursor{fill:none;stroke:var(--text);stroke-width:1;stroke-dasharray:4 4}.mm-equation{max-width:100%;overflow:auto;padding:10px 0}.mm-wrap [hidden]{display:none!important}.mm-wrap .optics-intro{max-width:1000px}.mm-wrap .optics-table{max-width:100%;overflow:auto}.mm-wrap .optics-body,.mm-wrap .optics-bench,.mm-wrap #ew-plots{min-width:0}.mm-wrap .optics-control label{display:block}.mm-wrap select{padding:9px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:7px}.mm-wrap #mm-state{max-width:100%;overflow-wrap:anywhere}
html[data-theme=light] .mm-wrap{--mm-at:#a45c11;--mm-ar:#087f9d;--mm-v:#187349;--mm-net:#8c329c;--mm-w:#5959a0;--mm-body:#adcddd;--mm-ramp:#d8e9df}
@media(max-width:900px){.mm-wrap .optics-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-wrap .optics-toolbar{position:static}.mm-wrap .optics-intro h1{font-size:2rem}.mm-readouts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.mm-wrap .optics-controls{grid-template-columns:1fr}.mm-timebar button{flex:1}.mm-wrap .optics-control{display:grid;grid-template-columns:1fr 80px;gap:6px}.mm-wrap .optics-control label{grid-column:1/-1}.mm-wrap .optics-control input[type=range]{width:100%}.mm-wrap .optics-control select{grid-column:1/-1}}

.mm-scene .mm-top{font-size:12px}

.mm-scene text{pointer-events:none}

/* Large side-view body and proportional local ground. */
body[data-mechanics-lab=rolling] .mm-scene{cursor:default}
.mm-scene .mm-equation-label{font-size:18px;font-weight:750}.mm-scene .mm-top{font-size:12px}.mm-ground-tick{stroke:var(--muted);stroke-width:1.5}.mm-hoop-ring{fill:none;stroke:var(--mm-ar);stroke-width:10}.mm-shell-outline{fill:var(--mm-body);fill-opacity:.12;stroke:var(--mm-ar);stroke-width:3}.mm-shell-meridian{fill:none;stroke:var(--mm-ar);stroke-width:1.5;stroke-dasharray:5 4}.mm-solid-sphere{fill:url(#mm-solid-sphere)}.mm-sphere-equator{fill:none;stroke:var(--mm-ar);stroke-width:1;opacity:.7}.mm-mass-dot{fill:var(--mm-ar);opacity:.7}.mm-contact{fill:var(--mm-at)}.mm-scene .mm-rotation{font-size:32px;fill:var(--mm-w)}.mm-radius-label{paint-order:stroke;stroke:var(--bg);stroke-width:3px;stroke-linejoin:round}.mm-track{stroke:var(--muted);stroke-width:3}.mm-track-marker{fill:var(--mm-v);stroke:var(--bg);stroke-width:2}.mm-progress-label{text-anchor:middle}.mm-track-end,.mm-closeup-label{text-anchor:end}.mm-inertia-link{display:block;font-weight:650;margin:8px 0 14px}.mm-energy-summary{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.mm-energy-summary>strong{font-size:1.1rem}.mm-energy-bar{display:flex;height:12px;border-radius:6px;overflow:hidden;margin:12px 0 8px}.mm-energy-bar span:first-child{background:var(--mm-at)}.mm-energy-bar span:last-child{background:var(--mm-ar)}.mm-energy-labels{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.85rem}.mm-energy-labels span:first-child{color:var(--mm-at)}.mm-energy-labels span:last-child{color:var(--mm-ar)}.mm-energy-summary small{display:block;margin-top:8px;line-height:1.5;color:var(--muted)}
@media(max-width:480px){.mm-scene .mm-equation-label{font-size:15px}.mm-scene text{font-size:12px}.mm-energy-labels{display:grid;gap:5px}}
