/* Exposure lesson — single responsive workbench. Shared lab physics is unchanged. */
body.lesson-lab-shell main.shell{max-width:1280px}
body.lesson-lab-shell .lesson-head{max-width:1100px;padding:18px 0 16px}
body.lesson-lab-shell .lesson-head h1{max-width:1100px;font-size:clamp(1.5rem,3vw,2.35rem);line-height:1.22;letter-spacing:-.035em;margin:0 0 7px}
body.lesson-lab-shell .lesson-head p{font-size:.9rem;line-height:1.55;margin:0;color:var(--muted)}
.exposure-workspace{min-width:0;padding:clamp(12px,1.7vw,20px);border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.exposure-workspace-head{margin-bottom:14px}
.exposure-workspace .studio-overline{display:block;font-size:.69rem;letter-spacing:.09em;text-transform:uppercase;font-weight:800;color:var(--accent)}
.exposure-workspace h2{font-size:clamp(1.08rem,1.8vw,1.43rem);letter-spacing:-.02em;line-height:1.32;margin:5px 0}
.exposure-workspace-head p{max-width:900px;font-size:.8rem;line-height:1.55;color:var(--muted);margin:0}
body.lesson-lab-shell .exposure-workspace .lab{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(310px,.85fr);align-items:start;gap:14px}
body.lesson-lab-shell .exposure-workspace .lab>.panel{min-width:0;border:1px solid var(--border);border-radius:15px;background:var(--surface2);padding:12px}
.exposure-workspace .exposure-lab-heading{margin:0 0 9px}
.exposure-workspace .exposure-lab-heading h3{margin:0;font-size:.92rem;line-height:1.35;color:var(--text)}
body.lesson-lab-shell .exposure-workspace .exposure-stage{position:sticky;top:76px;z-index:3;align-self:start}
body.lesson-lab-shell .exposure-workspace .sky{width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:760/350;position:relative;border-radius:11px;background:#0b1828;overflow:hidden}
body.lesson-lab-shell .exposure-workspace .sky .stars{position:absolute;inset:0;background:none;filter:none;opacity:1;pointer-events:none}
body.lesson-lab-shell .exposure-workspace .sky .stars svg{width:100%;height:100%;display:block}
body.lesson-lab-shell .exposure-workspace .sky .trail{display:none!important}
body.lesson-lab-shell .exposure-workspace .sky:after{display:none!important}
.exposure-workspace .exposure-center-crop{display:none!important}
.exposure-workspace .exposure-live-magnifier{position:absolute;z-index:2;right:10px;bottom:10px;width:min(46%,260px);margin:0;border:1px solid #7085a0;border-radius:10px;background:#091b30;overflow:hidden;color:#f1f8ff;box-shadow:0 5px 18px #0005}
.exposure-workspace .magnifier-header{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:7px 9px}
.exposure-workspace .magnifier-header strong{font-size:.68rem;line-height:1.25;color:#edf5ff}
.exposure-workspace .magnifier-header span{white-space:nowrap;font-size:.68rem;color:#d2e4fa;font-variant-numeric:tabular-nums}
.exposure-workspace .magnifier-sky{border:0;background:#08182c;overflow:hidden}
.exposure-workspace .magnifier-sky svg{display:block;width:100%;height:auto;aspect-ratio:760/215}
.exposure-workspace .magnifier-caption,.exposure-workspace .exposure-live-figures{display:none}
.exposure-workspace .exposure-live-readout{margin:8px 0 0;padding:8px 10px;border-radius:9px;border:1px solid var(--border);background:var(--surface);font-size:.71rem;line-height:1.5;overflow-wrap:anywhere;color:var(--muted)}
.exposure-workspace .decision{margin:9px 0 0;padding:9px 11px;border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:9px;background:var(--surface);font-size:.77rem;line-height:1.52;color:var(--text)}
.exposure-workspace .decision b{color:var(--accent)}
body.lesson-lab-shell .exposure-workspace .controls{display:grid;gap:11px;min-width:0;min-height:0;max-height:none;overflow:visible;padding:12px}
.exposure-workspace .controls .control{min-width:0;padding:0 0 9px;border-bottom:1px solid var(--border)}
.exposure-workspace .controls .control>label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:.79rem;color:var(--text)}
.exposure-workspace .controls .control>label small{font-weight:800;color:var(--accent);font-size:.82rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.exposure-workspace .controls input[type=range]{display:block;width:100%;margin:4px 0 0;min-height:44px;accent-color:var(--accent);touch-action:pan-y pinch-zoom}
.exposure-workspace .controls .exposure-number{display:flex!important;align-items:center;gap:7px;margin:1px 0 0;font-size:.68rem;color:var(--muted)}
.exposure-workspace .controls .exposure-number input{width:94px;min-width:0;min-height:44px;padding:6px 8px;font-size:16px}
.exposure-workspace .controls .exposure-quick{margin:5px 0 0}
.exposure-workspace .controls .exposure-quick>small{display:block;margin-bottom:4px;font-size:.68rem}
.exposure-workspace .controls .exposure-quick-row{display:flex;flex-wrap:wrap;gap:5px}
.exposure-workspace .controls .exposure-quick-row button{min-width:0;min-height:44px;padding:6px 9px;font-size:.73rem}
.exposure-workspace .metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.exposure-workspace .metric{min-width:0;padding:9px;border:1px solid var(--border);border-radius:9px;background:var(--surface)}
.exposure-workspace .metric small{font-size:.64rem;line-height:1.38;color:var(--muted)}
.exposure-workspace .metric strong{display:block;margin-top:5px;font-size:.91rem;line-height:1.3;overflow-wrap:anywhere;color:var(--text);font-variant-numeric:tabular-nums}
.exposure-workspace .sensor-aware{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:0}
.exposure-workspace .sensor-aware summary{display:flex;align-items:center;min-height:44px;padding:8px 11px;cursor:pointer;color:var(--text);font-size:.8rem}
.exposure-workspace .sensor-aware .sensor-aware-note{margin:0;padding:0 11px 7px;font-size:.72rem;color:var(--muted)}
.exposure-workspace .sensor-aware .sensor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px}
.exposure-workspace .sensor-aware .full{grid-column:1/-1}
.exposure-workspace .sensor-aware .pixel-drift{margin:0 10px 10px}
.exposure-workspace .exposure-reset{min-height:42px}
.exposure-workspace .studio-method{margin-top:13px;padding:9px 3px 0;border-top:1px solid var(--border)}
.exposure-workspace .studio-method summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:var(--accent);font-size:.77rem;font-weight:750}
.exposure-workspace .studio-method p{margin:0 0 8px;font-size:.75rem;line-height:1.66;color:var(--muted)}
body.lesson-lab-shell .lesson-deep-dive{margin-top:16px}
body.lesson-lab-shell .exposure-tools{margin:14px 0 24px;border-radius:14px}
body.lesson-lab-shell .exposure-tools h2{font-size:1rem;margin-top:0}
.exposure-workspace :is(button,input,summary):focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media(max-width:900px){
 body.lesson-lab-shell .exposure-workspace .lab{grid-template-columns:minmax(0,1fr)}
 body.lesson-lab-shell .exposure-workspace .exposure-stage{top:64px}
 body.lesson-lab-shell .exposure-workspace .controls{max-height:none;overflow:visible;scrollbar-gutter:auto}
 body.lesson-lab-shell .exposure-workspace .sky{aspect-ratio:760/260;max-height:210px}
 .exposure-workspace .exposure-live-magnifier{width:min(43%,225px)}
}
@media(max-width:640px){
 body.lesson-lab-shell main.shell{width:calc(100% - 20px)}
 body.lesson-lab-shell .lesson-head{padding:10px 0 12px}
 body.lesson-lab-shell .lesson-head h1{font-size:1.32rem;line-height:1.3}
 body.lesson-lab-shell .lesson-head p{font-size:.77rem;line-height:1.48}
 .exposure-workspace{padding:10px;border-radius:15px}
 .exposure-workspace-head{margin-bottom:9px}
 .exposure-workspace h2{font-size:1rem;margin:4px 0}
 .exposure-workspace-head p{font-size:.7rem;line-height:1.45}
 body.lesson-lab-shell .exposure-workspace .lab{gap:9px}
 body.lesson-lab-shell .exposure-workspace .lab>.panel{padding:9px;border-radius:11px}
 body.lesson-lab-shell .exposure-workspace .exposure-stage{top:58px;box-shadow:0 8px 22px #0002}
 .exposure-workspace .exposure-lab-heading{margin-bottom:6px}
 .exposure-workspace .exposure-lab-heading h3{font-size:.79rem}
 body.lesson-lab-shell .exposure-workspace .sky{aspect-ratio:760/270;max-height:165px;min-height:0}
 .exposure-workspace .exposure-live-magnifier{width:47%;max-width:172px;right:6px;bottom:6px}
 .exposure-workspace .magnifier-header{padding:4px 5px}
 .exposure-workspace .magnifier-header strong{font-size:.55rem}
 .exposure-workspace .magnifier-header span{font-size:.56rem}
 .exposure-workspace .exposure-live-readout{font-size:.63rem;line-height:1.4;padding:5px 7px;margin-top:5px}
 .exposure-workspace .decision{font-size:.68rem;line-height:1.38;margin-top:5px;padding:6px 8px}
 .exposure-workspace .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:370px){
 .exposure-workspace .magnifier-header strong{max-width:75px}
 .exposure-workspace .magnifier-header span{font-size:.53rem}
}
@media(prefers-reduced-motion:reduce){.exposure-workspace *{scroll-behavior:auto!important;transition:none!important}}

/* Exposure controls use a responsive grid; no scrolling nested inside lab. */
body.lesson-lab-shell .exposure-workspace .lab{height:auto!important;max-height:none!important;overflow:visible!important}
body.lesson-lab-shell .exposure-workspace .lab>.panel{
  height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
}
body.lesson-lab-shell .exposure-workspace .controls{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 12px!important;align-content:start!important;
  max-height:none!important;height:auto!important;overflow:visible!important;
  overscroll-behavior:auto!important;scrollbar-gutter:auto!important;
}
body.lesson-lab-shell .exposure-workspace .controls>.exposure-lab-heading,
body.lesson-lab-shell .exposure-workspace .controls>:is(.metrics,.sensor-aware,.exposure-reset){
  grid-column:1/-1;min-width:0;
}
body.lesson-lab-shell .exposure-workspace .controls .control{
  min-width:0;padding:6px 8px 7px;border:1px solid var(--border);
  border-radius:10px;background:var(--surface);align-self:start;
}
body.lesson-lab-shell .exposure-workspace .controls .control>label{flex-wrap:wrap;gap:3px 6px;font-size:.74rem}
body.lesson-lab-shell .exposure-workspace .controls .exposure-number{flex-wrap:wrap}
@media(max-width:640px){
  body.lesson-lab-shell .exposure-workspace .controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important}
  body.lesson-lab-shell .exposure-workspace .controls .control{padding:5px 7px}
}
@media(max-width:350px){
  body.lesson-lab-shell .exposure-workspace .controls{grid-template-columns:minmax(0,1fr)}
}

/* The ×8 diagram is optional; never cover the actual full-frame night sky. */
.exposure-workspace .exposure-magnifier-details{
 margin:7px 0 0;
 min-width:0;
 border:1px solid var(--border);
 border-radius:10px;
 background:var(--surface);
 color:var(--text);
 overflow:visible;
}
.exposure-workspace .exposure-magnifier-details>summary{
 display:list-item;
 min-height:44px;
 padding:10px 12px;
 cursor:pointer;
 font-size:.72rem;
 font-weight:700;
 line-height:1.5;
}
.exposure-workspace .exposure-magnifier-details>summary:focus-visible{
 outline:3px solid var(--accent);outline-offset:2px;
}
.exposure-workspace .exposure-magnifier-details>.exposure-live-magnifier{
 position:static;
 inset:auto;
 width:100%;
 max-width:none;
 margin:0;
 border:0;
 border-top:1px solid var(--border);
 border-radius:0 0 10px 10px;
 box-shadow:none;
}
.exposure-workspace .exposure-magnifier-details>.exposure-live-magnifier .magnifier-caption{
 display:block;
 margin:0;
 padding:8px 10px;
 color:#d0e0f3;
 font-size:.67rem;
 line-height:1.4;
}

/* Short landscape Exposure: keep the full live sky above the camera editor
   on narrow phones. At wider landscape sizes use two panes without squeezing
   the four native sliders or precise editors. All controls remain in document
   flow with their 44px touch targets and no nested scroll. */
@media (min-width:761px) and (max-width:900px) and (max-height:520px) and (orientation:landscape) {
 body.lesson-lab-shell .exposure-workspace .lab {
  grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  align-items:start;gap:8px;
 }
 body.lesson-lab-shell .exposure-workspace .exposure-stage {
  position:static;top:auto;z-index:auto;box-shadow:none;
 }
 body.lesson-lab-shell .exposure-workspace .sky {
  aspect-ratio:760/320;max-height:130px;min-height:0;
 }
 body.lesson-lab-shell .exposure-workspace .controls {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px 6px!important;padding:7px!important;
 }
 body.lesson-lab-shell .exposure-workspace .controls .control {
  min-width:0;padding:4px 5px!important;
 }
 .exposure-workspace .controls .control>label {
  font-size:.7rem;line-height:1.2;
 }
 .exposure-workspace .controls .exposure-number {margin-top:0}
 .exposure-workspace .metrics {grid-template-columns:repeat(3,minmax(0,1fr))}
 .exposure-workspace .metric {padding:5px}
 .exposure-workspace .metric strong {margin-top:2px;font-size:.8rem}
 .exposure-workspace .decision {font-size:.7rem;line-height:1.35}
 .exposure-workspace .exposure-live-readout {font-size:.67rem}
}
/* Narrow landscape phones need a complete, readable sky above full-width
   camera controls; the wider two-pane rule must not apply here. */
@media (min-width:480px) and (max-width:599.9999px) and (max-height:520px) and (orientation:landscape) {
 body.lesson-lab-shell .exposure-workspace .lab {
  grid-template-columns:minmax(0,1fr);
  gap:8px;
 }
 body.lesson-lab-shell .exposure-workspace .exposure-stage {
  position:static;top:auto;z-index:auto;box-shadow:none;
 }
 body.lesson-lab-shell .exposure-workspace .sky {
  aspect-ratio:760/320;max-height:none;
 }
 body.lesson-lab-shell .exposure-workspace .controls {
  grid-template-columns:minmax(0,1fr);
  gap:8px!important;
 }
 body.lesson-lab-shell .exposure-workspace .controls .control {
  min-width:0;padding:6px 8px!important;
 }
}

/* Batch 2: couple sky and camera edits within one visible workspace.
 * No fixed-height lab, clipped results, reduced hit targets or nested scroll. */
body.lesson-lab-shell .exposure-workspace .lab{align-items:start;min-width:0}
body.lesson-lab-shell .exposure-workspace .lab> :is(.exposure-stage,.controls){min-width:0}
body.lesson-lab-shell .exposure-workspace .controls :is(input[type="range"],input[type="number"],button){min-height:44px}
@media (max-width:900px) and (min-height:521px){
 body.lesson-lab-shell .exposure-workspace .exposure-stage{position:static;top:auto;box-shadow:none}
 body.lesson-lab-shell .exposure-workspace .lab{gap:8px}
 body.lesson-lab-shell .exposure-workspace .controls{margin-top:0}
}
/* On 600–760px short landscape screens, the old 42/58 split left only
   250–320px for the live sky and the four translated precision editors.
   Keep the actual sky and controls together in a full-width, scrolling lesson.
   Wider landscape screens retain the existing two-pane workspace. */
@media (min-width:761px) and (max-width:900px) and (max-height:430px) and (orientation:landscape){
 body.lesson-lab-shell .lesson-head{padding:7px 0}
 body.lesson-lab-shell .exposure-workspace{padding:8px}
 body.lesson-lab-shell .exposure-workspace .lab{grid-template-columns:minmax(0,42fr) minmax(0,58fr);gap:6px}
 body.lesson-lab-shell .exposure-workspace .exposure-stage{position:static;top:auto;box-shadow:none}
 body.lesson-lab-shell .exposure-workspace .sky{max-height:none;min-height:0;aspect-ratio:760/350}
 body.lesson-lab-shell .exposure-workspace .controls{grid-template-columns:minmax(0,1fr);gap:5px!important;overflow:visible!important}
 body.lesson-lab-shell .exposure-workspace .controls>.control{padding:4px 6px!important}
}
@media (min-width:600px) and (max-width:760px) and (max-height:430px) and (orientation:landscape){
 body.lesson-lab-shell .exposure-workspace .lab{grid-template-columns:minmax(0,1fr);gap:8px}
 body.lesson-lab-shell .exposure-workspace .sky{aspect-ratio:760/270;min-height:155px}
 body.lesson-lab-shell .exposure-workspace .controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 body.lesson-lab-shell .exposure-workspace .controls>.control{min-width:0;padding:7px 8px!important}
 body.lesson-lab-shell .exposure-workspace .controls :is(input[type="range"],input[type="number"],button){min-height:44px}
}
