/* Screenshot review: keep the working player, fit activities to its available height. */
.module-shell{height:100dvh}.module-topbar{position:relative;z-index:100;isolation:isolate}.module-meta{position:relative;z-index:1;align-items:center}#fullscreenButton{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-width:112px;min-height:40px;cursor:pointer;pointer-events:auto;touch-action:manipulation;flex-shrink:0}#fullscreenButton *{pointer-events:none}.workspace{container-type:size;min-height:0;overflow:hidden}.lesson-scene{position:absolute;inset:0;min-height:0;padding:16px 320px 14px 22px;overflow-y:auto;scroll-padding:16px}.lesson-scene.active{gap:0}.lesson-scene>*{flex-shrink:0}.medium-panel{overflow:visible;flex-shrink:0}.comparison-heading{padding:0!important;margin:0 0 12px}.comparison-heading h2{font-size:1.3rem}.comparison-heading p{font-size:.85rem}.comparison-kicker{font-size:.7rem}.instruction-popup{position:absolute;width:286px;right:16px;top:16px;max-height:calc(100% - 32px);z-index:40}.instruction-header{padding:12px 16px}.instruction-body{padding:14px}.instruction-body h2{font-size:1.05rem}.instruction-body p{font-size:.84rem;line-height:1.45}.instruction-goal{margin-top:10px;padding:10px}.instruction-restore{z-index:41}#metabolismActions .comparison-takeaway{padding:10px;margin-top:12px}#metabolismActions strong{font-size:.86rem}#metabolismActions p{font-size:.8rem}#exploreATPButton{width:100%;margin:12px 0 0;font-size:.82rem}#metabolismFallback{display:none}.workspace:has(#instructionPopup[hidden]) #metabolismFallback,.workspace:has(#instructionBody[hidden]) #metabolismFallback{display:inline-flex}
/* Compact Step 1 without hiding its action buttons. */
.cell-entry{padding:0;flex:1 1 auto}.cell-button img{width:min(480px,100%);height:clamp(160px,48cqh,360px);object-fit:contain}.entry-caption{margin:10px 0;font-size:.8rem}.introduction-panel{padding:16px}.molecule-introduction{margin:10px 0;gap:24px}.molecule-introduction img{height:clamp(80px,20cqh,130px)}.definition{font-size:.95rem;margin:10px auto}.intro-explanation{font-size:.82rem;margin:10px auto 14px}.reaction-panels{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.reaction-panel{padding:12px}.reaction-heading{min-height:32px;gap:4px}.reaction-heading h3{font-size:.9rem}.run-status{font-size:.62rem;padding:4px}.reaction-stage{height:clamp(130px,25cqh,190px);margin:7px 0}.enzyme-visual{width:96px;height:96px;top:40px}.reacting-substrate{width:38px;height:40px;top:5px}.enzyme-stage[data-phase="bound"] .reacting-substrate{transform:translate(-50%,25px)}.no-enzyme-label{top:76px}.sample-tray{margin:6px 0}.molecule-slot{height:25px}.reaction-readings strong{font-size:.9rem;margin-top:2px}.run-progress{margin-top:6px}.run-feedback{min-height:2.8em;margin:7px 0;font-size:.75rem}.comparison-conditions{margin-bottom:8px;font-size:.73rem}.run-button{background:var(--bb-green);color:white;border-color:var(--bb-green);min-height:36px}.run-button:hover:not(:disabled){background:var(--bb-green-dark);color:white}.comparison-takeaway{padding:10px 12px;margin-top:10px}.comparison-takeaway p{font-size:.8rem;margin-top:4px}.comparison-takeaway strong{font-size:.9rem}.model-note{font-size:.66rem;margin-top:8px}
/* Step 2: compact equations, uncropped ATP, in-place energy cue. */
.metabolic-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.metabolic-card{padding:16px 10px;gap:10px}.reaction-symbol{min-height:clamp(65px,17cqh,115px)}.metabolic-intro{font-size:.83rem;margin:0 0 12px}.metabolic-card>strong{font-size:.96rem}.metabolic-card>span:not(.reaction-symbol){font-size:.76rem}.metabolic-progress{margin:12px 0}.reaction-detail{padding:24px;width:min(720px,calc(100% - 28px));max-height:calc(100dvh - 32px)}.reaction-detail h3{font-size:1.25rem;margin:10px 28px 12px 0}.reaction-detail p{font-size:.87rem;line-height:1.45}.reaction-equation{display:flex;justify-content:center;gap:18px;padding:14px;margin:14px 0}.reaction-equation div{flex:0 1 auto;gap:6px;max-width:55%}.reaction-arrow{flex:none}.enzyme-role{padding:12px 14px}.atp-back{margin-bottom:8px;min-height:32px}.atp-panel{padding:14px}.atp-panel h3{font-size:1.12rem;margin:6px 0}.atp-panel p{font-size:.8rem;line-height:1.4;margin:8px 0}.atp-reveal-button{margin:8px auto}.atp-reveal-button img{width:240px;height:clamp(100px,25cqh,180px);object-fit:contain}.atp-reveal-button:hover img{transform:scale(1.025)}.atp-diagram{margin:8px 0;overflow:hidden}.atp-diagram svg{width:100%;min-width:0;height:clamp(120px,30cqh,240px)}.hydrolysis-equation{font-size:1rem;margin:8px 0}.hydrolysis-feedback{min-height:0}.energy-release{color:#815600;background:#fff2c9;border:1px solid #e5bb53;border-radius:10px;padding:6px;font-size:.85rem;font-weight:750;margin:6px auto;animation:energy-arrives .75s ease-out}.energy-release span{display:inline-block;color:#c18916;font-size:1.2rem;animation:energy-travel 1.3s ease-out 2}.energy-detail .cellular-work{padding:14px;margin:10px 0}.energy-detail .work-examples{gap:8px;margin:12px 0}.energy-detail .atp-recycling{margin:14px 0}#reviewCellularWork{margin-left:6px;font-size:.78rem}#stepTwoDone{display:none}/* Completion is already stated in the instructions. */
/* Step 3 and 4: use width and height limits rather than giant diagrams. */
.pathway-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pathway-panel{padding:14px}.pathway-panel p{font-size:.81rem;margin:8px 0}.pathway-top h3{font-size:1rem}.enlarge-pathway{font-size:.68rem;padding:7px}.polymer-model{height:clamp(150px,37cqh,270px);margin:8px 0}.pathway-feedback{min-height:2.4em}.structure-panel{padding:14px}.structure-panel p{font-size:.8rem;line-height:1.4;margin:8px 0}.active-site-button{width:min(100%,410px)}.active-site-button svg{height:clamp(150px,40cqh,300px)}.structure-model{width:100%;max-width:560px;height:clamp(120px,29cqh,225px);margin:6px auto}.structure-status{font-size:.76rem}.substrate-options{margin:8px 0;gap:10px}.substrate-options button{padding:8px;font-size:.75rem}.substrate-options svg{height:46px}.structure-feedback{min-height:2.8em}.structure-panel .model-note{font-size:.66rem}.structure-panel .control-button{min-height:34px}.pathway-grid.expanded .polymer-model{height:clamp(170px,42cqh,310px)}
@keyframes energy-arrives{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes energy-travel{from{transform:translateX(-16px);opacity:.2}to{transform:translateX(0);opacity:1}}
@media(max-width:1000px) and (min-width:721px){.lesson-scene{padding-right:270px;padding-left:14px}.instruction-popup{width:244px;right:12px}.reaction-heading{flex-wrap:wrap}.run-status{display:none}.metabolic-card{gap:8px}.metabolic-card>strong{font-size:.8rem}.reaction-symbol{font-size:1.3rem}.pathway-top{gap:5px}.pathway-top h3{font-size:.87rem}.enlarge-pathway{font-size:.6rem}.pathway-panel{padding:9px}.structure-model{height:clamp(120px,27cqh,200px)}}
@media(max-height:740px) and (min-width:721px){.module-topbar{min-height:58px;padding:7px 16px}.module-footer{min-height:50px;padding:6px 14px}.lesson-scene{padding-top:12px;padding-bottom:10px}.comparison-heading{margin-bottom:8px}.comparison-heading h2{font-size:1.18rem}.comparison-heading p{font-size:.78rem}.reaction-stage{height:130px}.stage-caption{font-size:.58rem}.enzyme-visual{height:82px;top:35px}.run-feedback{font-size:.71rem;min-height:2.8em}.model-note{margin-top:5px}.comparison-takeaway{margin-top:7px;padding:8px 10px}.structure-panel{padding:10px}.structure-model{height:clamp(110px,25cqh,180px)}.atp-diagram svg{height:clamp(110px,25cqh,190px)}.instruction-body p{font-size:.8rem}.instruction-body{padding:12px}.instruction-header{padding:10px 14px}}
@media(max-width:720px){.lesson-scene{padding:52px 12px 12px;position:absolute;min-height:0}.instruction-popup{position:absolute;top:10px;right:10px;width:min(300px,calc(100% - 20px));max-height:calc(100% - 20px)}.comparison-heading{padding:0!important}.medium-panel{border-radius:16px}.reaction-panels{gap:8px}.reaction-panel{padding:8px}.reaction-heading h3{font-size:.77rem}.run-status{display:none}.reaction-readings{font-size:.63rem;gap:5px}.run-feedback{min-height:4.2em}.run-button{font-size:.7rem}.sample-tray{gap:2px}.molecule-slot img{width:13px}.molecule-slot.converted img{width:7px}.reaction-stage{height:128px}.stage-caption{font-size:.55rem}.reaction-conditions{font-size:.68rem}.pathway-grid{grid-template-columns:1fr}.pathway-panel .polymer-model{height:145px}.pathway-feedback{min-height:0}.metabolic-cards{gap:7px}.metabolic-card{padding:10px 6px;gap:8px}.metabolic-card>strong{font-size:.76rem}.metabolic-card>span:not(.reaction-symbol){font-size:.66rem}.reaction-symbol{min-height:65px;font-size:1.2rem}.metabolic-card>span:nth-of-type(2){min-height:4em}.structure-model{height:145px}.structure-status{font-size:.7rem}.structure-panel{padding:10px}.substrate-options svg{height:38px}.substrate-options button{font-size:.67rem;padding:6px}.atp-panel{padding:12px}.atp-diagram svg{height:auto;max-height:190px}.atp-panel .molecule-key{font-size:.65rem}.reaction-detail{padding:22px 16px}.reaction-equation{gap:10px;padding:12px}.reaction-equation strong{font-size:.82rem}.cell-button img{height:36cqh}.energy-detail .work-examples{flex-direction:column}#reviewCellularWork{display:block;margin:8px auto 0}}
#fullscreenButton{border-radius:6px}.atp-diagram text{font-size:21px}.polymer-model{height:clamp(135px,29cqh,225px)}.workspace:not(:has(#pathwaysScene.active)) #pathwaysDone{display:none}#pathwaysDone{margin-top:12px;padding:10px}#pathwaysDone p{font-size:.8rem}#pathwaysDone strong{font-size:.86rem}
@media(max-width:720px){.pathway-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pathway-grid.expanded{grid-template-columns:1fr}.pathway-panel{padding:9px}.pathway-top{display:block}.pathway-top h3{font-size:.9rem;margin-bottom:7px}.enlarge-pathway{font-size:.6rem;padding:5px}.pathway-panel p{font-size:.72rem}.pathway-panel .polymer-model{height:120px}.pathway-panel>.control-button{font-size:.68rem;padding:7px}.pathway-grid.expanded .polymer-model{height:200px}.pathway-feedback{min-height:3em}}
