/* Branding and a viewport-fitted desktop workspace. */
.brand{display:inline-flex;align-items:center;line-height:1;flex:none;letter-spacing:0}.brand img{display:block;object-fit:contain;width:190px;height:auto;max-width:100%}.cover-top .brand img{width:250px}.sidebar-head .brand img{width:180px}
.sidebar-extras,.sidebar-meta,.lab-reference-links{display:flex;align-items:center;gap:7px}.sidebar-extras button,.lab-reference-links button{flex:1}.sidebar-meta{justify-content:space-between}.sidebar-meta small{font-size:10px;color:#7c8c85;text-align:right}.sidebar-meta #grade-label{font-size:12px;white-space:nowrap}.sidebar-extras button{font-size:13px}.lab-reference-links button{font-size:14px}
@media(min-width:801px){
 html,body{height:100%;margin:0;overflow:hidden}
 #welcome{height:100dvh;min-height:0;overflow:hidden;grid-template-columns:60% 40%}
 .cover{padding:20px 5%;min-height:0;gap:12px;justify-content:space-between}
 .cover-top{flex-shrink:0}.cover-top .eyebrow{font-size:9px;max-width:170px;text-align:right}
 .cover h1{font-size:clamp(34px,3.4vw,54px);line-height:1.12;margin:0;letter-spacing:-1.4px;flex-shrink:0}
 #cover-art{margin:0;width:min(100%,calc((100dvh - 260px) * 900 / 560));max-width:760px;height:auto;aspect-ratio:900/560;flex:none;border-width:7px}
 #cover-art svg{height:100%;max-height:none}.cover-foot{padding:0;margin:0;font-size:14px;flex-shrink:0}
 .welcome-copy{padding:20px 8%;gap:14px;min-height:0;justify-content:center}.welcome-copy .toolbar{margin-bottom:auto}.welcome-copy h2{font-size:40px;line-height:1.08}.welcome-copy p{font-size:16px;line-height:1.5}.welcome-copy #intro p+p{margin-top:8px}.welcome-copy>small{font-size:11px}
 .grade-select button{padding:9px 12px;min-height:50px;margin:6px 0}.grade-select span{font-size:12px;margin-top:2px}#start{margin-top:auto;min-height:44px}
 #lab{height:100dvh;min-height:0;grid-template-columns:clamp(310px,29%,400px) minmax(0,1fr);overflow:hidden}
 .sidebar{min-height:0;padding:12px 16px 10px 25px;overflow:hidden;gap:0}
 .sidebar-head{min-height:52px;flex:none;gap:6px}.sidebar-head .toolbar{gap:0}.sidebar-head .toolbar button{font-size:19px;min-height:34px;padding:3px 5px}
 .help-row{margin:4px 0 8px;flex:none}.help-row button{font-size:15px;min-height:32px;padding:3px 6px}.help-row button:last-child{padding:3px 12px}
 .highlight{font-size:13px;margin-bottom:6px}.activity-tabs{gap:6px;margin-bottom:10px;flex:none}.activity-tabs button{min-height:54px;font-size:13px;padding:5px 3px}.activity-tabs small{font-size:10px;margin-bottom:2px}
 #controls{flex:none;min-height:0}.instructions{font-size:15px;line-height:1.4;margin-bottom:10px}.part-options{grid-template-columns:1fr 1fr;gap:6px}.part-options button{font-size:13px;min-height:43px;padding:7px 5px;gap:5px}.part-dot{width:21px;height:21px;font-size:11px}
 .wide{font-size:14px;min-height:36px;padding:7px;margin-top:9px}.hint{font-size:13px;line-height:1.45;margin:10px 0;padding:9px 10px}.choices{gap:6px;margin:8px 0}.choices button{font-size:14px;min-height:37px;padding:7px}
 .weather-lab-steps{gap:8px;margin:8px 0 10px}.weather-lab-steps li{padding:0 0 0 33px}.weather-lab-steps li:before{width:24px;height:24px;top:1px;font-size:13px}.weather-lab-steps b{font-size:14px;line-height:1.4}.weather-lab-steps span{font-size:13px;line-height:1.35;margin-top:1px}
 .lab-reference-links button{font-size:13px;min-height:36px;padding:6px}.sidebar-bottom{margin-top:auto;padding-top:10px;gap:5px;flex:none}.sidebar-extras button{font-size:12px;min-height:34px;padding:6px 5px}.sidebar-meta #grade-label{min-height:24px;padding:0;margin:0;font-size:11px}
 .workspace{padding:18px 22px 14px;min-height:0;overflow:hidden;gap:9px}.workspace:has(.cycle-vector){gap:9px}.stage-header{flex:none}.stage-header h2{font-size:clamp(23px,2.1vw,30px);line-height:1.15;margin:5px 0}.stage-header p:last-child{font-size:14px;line-height:1.4}.stage-header .eyebrow{font-size:10px}.desk-tools button{width:40px;min-width:40px;height:42px;min-height:42px;font-size:24px}.desk-tools{gap:6px}
 .workspace #scene,.workspace #scene:has(.cycle-vector),.workspace #scene:has(.weather-sim-board){flex:1;min-height:0!important;height:auto;margin:0;width:100%;container-type:size}
 .cycle-board.cycle-vector{width:min(100cqw,calc(100cqh * 900 / 560));height:auto;aspect-ratio:900/560;max-width:100%;max-height:100%;flex:none}
 .weather-sim-board:not(:fullscreen){width:min(100cqw,calc(100cqh * 429 / 389));height:auto;aspect-ratio:429/389;max-height:100%;max-width:100%;flex:none}
 #caption{font-size:12px;line-height:1.35}#playback{gap:7px;flex-wrap:nowrap}#playback:empty{display:none}#playback button{font-size:14px;min-height:38px;padding:8px}
 #discovery{padding:10px 12px;max-height:none;overflow:visible;gap:10px}#discovery h3{font-size:18px;margin-bottom:2px}#discovery p{font-size:14px;line-height:1.4}#discovery>button{font-size:19px;min-height:36px;padding:6px}
 .cloud-grid{grid-template-rows:repeat(2,minmax(0,1fr));height:100%;gap:12px;overflow:visible;min-height:0}.cloud-grid:has([data-tool]){grid-template-rows:repeat(3,minmax(0,1fr))}
 .cloud-grid .cloud-card,.cloud-grid:has(.tool-icon) .cloud-card{min-height:0;padding:9px;gap:2px;overflow:visible}.cloud-card h3{font-size:18px;line-height:1.25;margin:4px 3px 1px}.cloud-card p{font-size:13px;line-height:1.3;margin:0 3px 3px}
 .cloud-picture{min-height:0;max-height:none;height:0;flex:1}.tool-icon{min-height:0;height:0;flex:1;padding:3px}.tool-icon svg{height:100%;width:auto;max-width:100%}
 .large-text .instructions{font-size:16px}.large-text .part-options button{font-size:14px}.large-text #discovery p{font-size:16px}
}
@media(min-width:801px) and (max-height:680px){
 .sidebar{padding-top:7px;padding-bottom:7px}.sidebar-head{min-height:43px}.sidebar-head .brand img{width:156px}.help-row{margin:3px 0 6px}.activity-tabs{margin-bottom:7px}.activity-tabs button{min-height:47px}.instructions{font-size:14px;margin-bottom:7px}.weather-lab-steps{gap:6px}.weather-lab-steps b{font-size:13px}.weather-lab-steps span{font-size:12px}.hint{margin:8px 0;padding:7px 9px;font-size:12px}.part-options button{min-height:38px;padding:5px}.sidebar-bottom{padding-top:7px}.sidebar-extras button{min-height:31px}.highlight{font-size:12px}.lab-reference-links button{min-height:33px;font-size:12px}.wide{min-height:33px;font-size:13px}.workspace{padding:12px 17px;gap:7px}.stage-header h2{font-size:24px}.welcome-copy{gap:10px;padding-top:14px;padding-bottom:14px}.welcome-copy h2{font-size:34px}.welcome-copy p{font-size:14px}.grade-select button{min-height:44px;padding:7px 10px}.cover-top .brand img{width:210px}.cover h1{font-size:38px}.cover{padding-top:15px;padding-bottom:15px}#cover-art{width:min(100%,calc((100dvh - 220px) * 900 / 560))}
}
@media(max-width:1050px) and (min-width:801px){.sidebar-head .brand img{width:156px}.sidebar-head .toolbar button{padding:3px}.sidebar-meta small{font-size:9px}.stage-header h2{font-size:23px}.stage-header p:last-child{font-size:13px}.cycle-label{font-size:10px}}
@media(max-width:800px){.cover-top .brand img{width:220px}.sidebar-head .brand img{width:180px}.sidebar-extras button{font-size:13px}.sidebar-bottom{padding-top:16px}.sidebar-meta{flex-wrap:wrap}.lab-reference-links button{font-size:13px;min-height:44px}}

/* Keep the welcome action and school branding together. */
.explore-entry{display:flex;align-items:center;gap:14px;width:100%;margin-top:auto;flex-shrink:0}.explore-logo{display:block;width:clamp(100px,9vw,128px);height:auto;flex:none}.explore-entry #start{flex:none;min-width:0;width:auto;min-height:36px;margin-top:0;margin-left:auto;padding:8px 12px;font-size:12px;gap:14px}

/* Compact activity-sidebar branding. */
.sidebar-head .brand img{width:125px}
@media(min-width:801px) and (max-width:1050px){.sidebar-head .brand img{width:115px}}
