.td-wrap{--td-ocean:#5bbfed;--td-field:#81d9b5;--td-land:#244c64}.td-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%;box-sizing:border-box}.td-controls h2,.td-controls .td-presets{grid-column:1/-1}.td-controls .optics-control{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;margin:0;min-width:0}.td-controls label{grid-column:1/-1}.td-controls input{max-width:100%;min-width:0}.td-controls input[type=number]{width:100px!important}.td-scene-box{border:1px solid var(--line);border-radius:14px;background:var(--bg);overflow:hidden}.td-scene,.td-plot{display:block;width:100%;min-width:0}.td-scene text,.td-plot text{fill:var(--text);font:13px system-ui,sans-serif}.td-ocean{fill:var(--td-ocean);fill-opacity:.25;stroke:var(--td-ocean);stroke-width:3}.td-earth{fill:var(--td-land);fill-opacity:.7;stroke:var(--line);stroke-width:1}.td-grid{fill:none;stroke:var(--line);stroke-width:1}.td-axis{fill:none;stroke:var(--muted);stroke-dasharray:4 5;opacity:.45}.td-vector{fill:none;stroke:var(--td-field);stroke-width:2}.td-moon{fill:#d2d5d8;stroke:#7d8790}.td-sun{fill:#ffce72;stroke:#d69238;stroke-width:2}.td-probe{fill:#ef959b;stroke:var(--bg);stroke-width:2}.td-probe-label{fill:#ef959b!important}.td-side-label{font-size:11px!important}.td-total-curve{fill:none;stroke:var(--td-ocean);stroke-width:3}.td-lunar-curve{fill:none;stroke:var(--muted);stroke-width:2;stroke-dasharray:6 4}.td-cursor{stroke:var(--text);stroke-dasharray:3 4}.td-timebar,.td-presets{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}.td-caption{font-size:.85rem;color:var(--muted);line-height:1.7}.td-readouts{grid-template-columns:repeat(2,minmax(0,1fr))}.td-readouts>div{min-width:0}.td-readouts strong{font-size:1rem!important;overflow-wrap:anywhere}.td-equation{overflow:auto;padding:10px 0}.td-explanation{border-left:3px solid var(--td-field);padding:12px 16px;background:var(--bg);line-height:1.7}.td-wrap [hidden]{display:none!important}.td-wrap .optics-intro{max-width:1000px}.td-wrap .optics-body,.td-wrap #ew-plots{min-width:0}.td-plot text{font-size:12px}html[data-theme=light] .td-wrap{--td-ocean:#087cac;--td-field:#137f55;--td-land:#cfdfdf}html[data-theme=light] .td-probe-label{fill:#a63d48!important}@media(max-width:900px){.td-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.td-wrap .optics-toolbar{position:static}}@media(max-width:480px){.td-controls{grid-template-columns:1fr}.td-scene text{font-size:11px}.td-side-label{font-size:10px!important}.td-timebar button{flex:1}}
