.teaching-lab .readout{white-space:pre-line;font:14px/1.7 ui-monospace,monospace;color:var(--exp-text,#dfe7f5)}
.teaching-lab .control-help{font-size:13px;line-height:1.55;color:var(--exp-muted,#9fb2c3);margin:6px 0 18px}
.teaching-lab .preset-grid{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 22px}
.teaching-lab .btns{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.teaching-lab details{border-top:1px solid var(--exp-border,#334455);margin-top:20px;padding-top:16px}
.teaching-lab summary{cursor:pointer;font-size:14px;color:var(--exp-cyan,#78d7e0);padding:5px 0}
.teaching-lab output{float:right;font-variant-numeric:tabular-nums;color:var(--exp-gold,var(--lab-accent, var(--accent, #e9b86a)))}
.teaching-lab .lesson-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.teaching-lab button[aria-pressed=true]{border-color:var(--exp-cyan,#78d7e0);background:#17323c;color:#e2f7fa}
.teaching-lab .experiment-stage canvas{max-width:100%;touch-action:none}
.teaching-lab[data-world=turing] .experiment-stage canvas{max-width:580px}
.teaching-lab select,.teaching-lab input[type=number]{width:100%;padding:10px;background:#101e28;color:#eef6fa;border:1px solid #405464;border-radius:6px}
.teaching-lab input[type=checkbox]{width:auto;margin-right:8px}
.teaching-lab [hidden]{display:none!important}
.teaching-lab .experiment-stage canvas{max-width:min(100%,calc(var(--scene-aspect,1.4) * 440px))}
.teaching-lab .investigation-start{margin:0 0 18px;padding:12px 20px}
.teaching-lab .investigation-start summary{font-weight:600}
.teaching-lab .gas-scenes{display:grid;grid-template-columns:440fr 410fr;width:100%;gap:8px}
.teaching-lab .gas-scenes canvas{width:100%;max-width:100%}
@media(max-width:760px){.teaching-lab .gas-scenes{grid-template-columns:1fr}.teaching-lab .gas-scenes canvas{max-width:420px;justify-self:center}}
.teaching-lab[data-world=fourier] .experiment-stage canvas,.teaching-lab[data-world=chaos] .experiment-stage canvas{max-width:min(100%,800px)}
