/* Shared lab frame: align pages across themes without clipping diagrams or focus. */
html body main:is(.moon-lab,.telescope-lab,[data-spectra-lab]){box-sizing:border-box;width:min(1320px,calc(100% - 72px))!important;max-width:1320px;margin-inline:auto;overflow:visible!important;padding-inline:clamp(18px,2.4vw,32px)}
main:is(.moon-lab,.telescope-lab,[data-spectra-lab]) :is(.ml-grid,.tl-layout,.sp-layout,.ml-reading,.sp-explain)>*{min-width:0}
main:is(.moon-lab,.telescope-lab,[data-spectra-lab]) :is(svg,canvas){max-width:100%}
html[data-site-theme="day"] .telescope-lab input[type="number"]:not(:disabled):not([readonly]),html[data-site-theme="day"] .telescope-lab select:not(:disabled){background:#fff!important;color:#17394b!important}
@media(max-width:900px){.moon-lab .ml-grid,.telescope-lab .tl-layout,[data-spectra-lab] .sp-layout{grid-template-columns:minmax(0,1fr)}.moon-lab .ml-views{order:-1}}
@media(max-width:800px){html body main:is(.moon-lab,.telescope-lab,[data-spectra-lab]){width:calc(100% - 24px)!important;padding-inline:18px}}
@media(max-width:540px){html body main:is(.moon-lab,.telescope-lab,[data-spectra-lab]){width:100%!important;padding-inline:14px;border-radius:0}}

@media(max-width:540px){.moon-lab svg text{font-size:22px}[data-spectra-lab] .sp-chart text{font-size:30px!important}}
