/* The mobile experiment shares a viewport; details retain their own scroll area. */
.step .step-wide{border:0;padding:0;border-radius:0;font:inherit;background:none;color:inherit}.step .step-compact,.compact-context,.mobile-details{display:none}.panel-scenarios{margin:24px 0}.modal .calculation-trail{display:block}.modal .calculation-steps{grid-template-columns:1fr}.modal .carbon-explanation{display:block}.modal .carbon-inputs>div{display:flex;flex-wrap:wrap}.modal #panel-science{padding:12px;width:100%}
@media(max-width:760px){
 html{min-height:100%;scroll-padding-bottom:16px}body{height:100vh;height:100dvh;min-height:580px;display:flex;flex-direction:column;overflow:auto}
 .header{flex:0 0 auto;min-height:48px;width:100%;padding:2px 14px;gap:10px;flex-wrap:nowrap}.header .brand{font-size:25px}.brand-icon{width:30px;height:30px;font-size:19px;border-radius:7px}.header .event{display:none}.header .text-button{font-size:13px;min-height:44px;margin:0 0 0 auto;white-space:nowrap}
 body>footer,.intro,.bottom-note{display:none}main#main{flex:1 0 0;min-height:0;display:flex;flex-direction:column;width:100%;padding:0 10px max(8px,env(safe-area-inset-bottom));gap:6px}
 .steps{flex:0 0 44px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border:0;gap:4px}.step{min-width:0;min-height:44px;padding:0;display:flex;justify-content:center;align-items:center;border-radius:0;border-bottom:2px solid var(--line);font-size:14px;gap:0}.step .step-number,.step .step-wide{display:none}.step .step-compact{display:inline;border:0;padding:0;margin:0;font:inherit;color:inherit;background:transparent;border-radius:0}.step.active{border-bottom-color:var(--ink)}
 #workspace.workspace{flex:1 0 0;min-height:0;display:flex;flex-direction:column;overflow:visible;gap:0;border-radius:12px;background:#fff}
 #workspace>.stage{order:0;flex:1 1 0;min-height:115px;overflow:hidden;border-radius:11px 11px 0 0;padding:7px 12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:center;gap:8px}
 #workspace>.stage .stage-top,#workspace>.stage .stage-bottom,#workspace>.stage>.diagram-note,#workspace>.stage .legend{display:none}
 .stage .sample-diagram{width:100%;height:100%;max-width:none;max-height:270px;margin:0}.sample-diagram svg{width:100%;height:100%}.sample-diagram svg>text,.sample-diagram svg>path{display:none}
 .specimen-label{margin:0;text-align:left}.specimen-label .tiny-label{font-size:12px;letter-spacing:.5px}.specimen-label h3{font-size:20px;line-height:1.2;margin:8px 0}.specimen-label p{font-size:13px;line-height:1.45}
 #workspace>.controls{order:1;flex:0 0 auto;padding:9px 14px 12px;display:flex;flex-direction:column;gap:6px}.controls>.section-meta{display:none}.controls>h2{font-size:20px;line-height:1.2;letter-spacing:-.5px;margin:0 0 2px}.controls>h2 br{display:none}.controls>h2{font-size:0}.controls>h2::after{content:attr(data-mobile-title);font-size:20px;line-height:1.25}.controls>.muted{display:none}
 .controls .material{margin:0;padding:10px 12px;min-height:62px;gap:12px}.material .swatch{width:28px;height:35px}.material strong{font-size:17px}.material small{font-size:13px;margin-top:3px;line-height:1.3}.controls>.info-note{font-size:12px;line-height:1.4;margin:2px 0;gap:7px}.controls>.info-note>span{margin-top:1px}.controls .primary{min-height:46px;padding:12px 15px;font-size:15px;margin:0}
 #workspace[data-step="1"]>.controls{gap:3px}.mix-inputs{display:flex;flex-direction:column;gap:0}.ingredient{display:grid;grid-template-columns:115px minmax(0,1fr);align-items:center;min-height:53px;gap:10px;margin:0}.ingredient-head{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0}.ingredient-head label{font-size:13px;line-height:1.2}.ingredient-dot{width:7px;height:7px;margin-right:6px}.number-wrap{padding-right:6px;border:0;background:transparent}.number-wrap input{width:72px;min-height:30px;padding:3px 5px 3px 0;text-align:left;font-size:16px}.number-wrap span{font-size:12px}.ingredient input[type=range]{height:44px;min-width:0}.water-limits{display:none}.controls .form-error{font-size:12px;line-height:1.4;margin:0}.controls .form-error:empty{display:none}
 .controls .mix-ratio{border:0;padding:0;margin:0;min-height:35px;font-size:12px;gap:4px;flex-wrap:nowrap}.mix-ratio .back{min-height:35px;font-size:12px;text-align:right}.mix-ratio b{margin-left:4px}.controls .inline-volume{display:none}.stage .vessel{width:100%;height:100%;max-width:none;margin:0;max-height:260px}.volume-result{padding:0;text-align:left}.volume-result .tiny-label{font-size:12px;letter-spacing:.5px;line-height:1.4;display:block}.volume-result p{margin:6px 0;line-height:1.1}.volume-result strong{font-size:clamp(27px,8vw,38px);letter-spacing:-1px}.volume-result p>span{font-size:16px}.volume-result>span:last-child{font-size:14px}
 #workspace>.house-stage{display:flex;flex-direction:column;gap:0;justify-content:center}.house-stage .house-diagram{flex:1 1 0;min-height:0;width:100%;height:0;max-width:450px;max-height:370px;margin:0}.house-carbon{flex:0 0 auto;padding:0 0 8px}.house-carbon p{margin:4px 0}.house-carbon strong{font-size:38px}.house-carbon .tiny-label{font-size:12px;letter-spacing:.5px}.house-carbon>span:last-child{font-size:13px}.controls .house-stats{margin:3px 0;padding:8px 12px;gap:12px}.house-stats>div{gap:1px}.house-stats span{font-size:12px}.house-stats strong{font-size:25px}.house-stats small{font-size:16px}.controls .scaling{display:none}.controls .mobile-details{display:block;min-height:40px;padding:8px 12px;font-size:14px}.controls:has(.house-stats)>.info-note{display:none}
 #workspace.results-workspace{display:flex}.results{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding:10px 12px}.results>.section-meta,.results>.calculation-trail,.results>.result-detail,.results>.learning,.results>.result-footnote{display:none}.result-heading{display:block;margin:0}.result-heading h2{font-size:23px;line-height:1.2;margin:0;letter-spacing:-.7px}.result-heading .muted,.result-badge{display:none}.compact-context{display:block;font-size:12px;line-height:1.5;margin:0;color:#53634f}
 .results>.comparison{flex:1 1 0;min-height:160px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.comparison>.compare-card{min-width:0;padding:10px 8px;display:flex;flex-direction:column}.comparison>.compare-card.chosen{padding:9px 7px}.compare-card-top{display:block;flex:0 0 auto}.compare-card h3{font-size:19px}.compare-card-top>span{font-size:10px;letter-spacing:0;line-height:1.3;text-align:left;margin-top:4px;min-height:26px;max-width:none}.comparison .house-diagram{flex:1 1 0;min-height:40px;width:100%;height:0;max-height:240px;margin:0}.compare-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 5px;flex:0 0 auto}.compare-value strong{font-size:clamp(24px,7vw,34px);line-height:1.2;letter-spacing:-1px}.compare-value>span{font-size:13px}.comparison .compare-card>p{font-size:12px;line-height:1.4;min-height:33px;margin:5px 0 0;text-align:center}.comparison .carbon-track,.comparison .factor-label,.comparison .carbon-explanation{display:none}
 .results>.difference{flex:0 0 auto;margin:0;padding:10px 12px;gap:10px;align-items:center;border-radius:8px}.difference-icon{font-size:25px}.difference>div>span{font-size:11px;line-height:1.3}.difference strong{font-size:28px;line-height:1.1;margin-top:5px}.difference small{font-size:17px}.difference>p{display:none}
 .results>.mobile-details{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:9px 12px;flex:0 0 auto;font-size:14px}.result-actions{display:flex;flex-direction:row;gap:8px;align-items:center;margin:0;flex:0 0 auto}.result-actions #restart{font-size:13px;flex:0 1 35%;min-height:46px;line-height:1.3}.result-actions .primary{flex:1;width:auto;max-width:none;min-height:46px;padding:10px 12px;font-size:14px}
 .modal{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(22px,env(safe-area-inset-bottom))}.modal .calculation-trail{padding:15px}.modal .calculation-steps strong{font-size:19px}.modal .carbon-equation{flex-wrap:wrap}.keyboard-open body{height:auto;min-height:100dvh}.keyboard-open main#main{flex:none}.keyboard-open #workspace>.stage{min-height:140px;max-height:180px}.keyboard-open #workspace>.house-stage{min-height:240px}
}
@media(max-width:760px) and (max-height:619px){body{height:auto;min-height:100vh}main#main{flex:none}.workspace>.stage{height:125px!important;flex:none!important}.workspace>.house-stage{height:245px!important}.results>.comparison{height:205px;flex:none}.results{flex:none}}
.phone-heading{display:none}.steps .step .step-wide,.steps .step.active .step-compact{background:transparent;color:inherit;border:0;padding:0}.steps .step .step-wide{border-radius:0;font:inherit}.controls>h2 .desktop-heading{font-size:inherit}
@media(max-width:760px){body>.header,main#main{margin:0}.keyboard-open #workspace.workspace{flex:none}}
@media(max-width:760px) and (max-height:619px){#workspace.workspace{flex:none;min-height:0}.results{flex:none}.results>.comparison{flex:none}}
@media(max-width:760px){.controls>h2::after{content:none}.controls>h2 .desktop-heading{display:none}.controls>h2 .phone-heading{display:inline;font-size:20px}.controls>h2{font-size:20px}.controls>.info-note{max-width:100%}}
@media(max-width:350px){.ingredient{grid-template-columns:100px minmax(0,1fr);gap:6px}.controls .mix-ratio{gap:2px}.mix-ratio .back{max-width:128px}.header .brand{font-size:23px}.specimen-label h3{font-size:18px}.results{padding:10px 8px}.result-heading h2{font-size:22px}}
