/*! BIO-ORIGIN project=fish-observation-lab-3d; version=3.3.0-web.1; official=https://bio2077.cn/; third-party licenses unchanged */
:root{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#e7effa;background:#071528;font-synthesis:none;--bg:#071528;--panel:#0e2340;--border:#31577e;--accent:#a5d0ff;--muted:#b2c8df;--gold:#dcc28c}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;background:#17385f;border:1px solid var(--border);border-radius:9px;min-height:44px;padding:8px 14px;font-size:18px;cursor:pointer}button:hover{background:#244e7d}button:focus-visible,input:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #d9b971;outline-offset:3px}button.active,button[aria-pressed=true]{color:#071e3a;background:#bad8ff;border-color:#d4e7ff}.primary{background:#b4d6ff;color:#082540;border-color:#b4d6ff;font-weight:600}.primary:hover{background:#cce4ff}button:disabled{opacity:.45;cursor:default}a{color:#b3d7ff}[hidden]{display:none!important}.app{padding:0 24px;height:100dvh;min-height:650px;max-width:1920px;margin:auto;display:grid;grid-template-rows:78px 64px minmax(0,1fr) 34px;gap:0}header{display:flex;gap:24px;align-items:center;border-bottom:1px solid var(--border)}.brand{text-decoration:none;white-space:nowrap;color:#bfdbff;font-size:19px;letter-spacing:1px}.brand b{font-size:23px}.title{display:flex;align-items:baseline;gap:20px}.title h1{font-size:27px;margin:0;white-space:nowrap;font-weight:600;letter-spacing:1px}.title em{font:14px Consolas,monospace;border:1px solid #748c6c;border-radius:5px;padding:3px 6px;vertical-align:middle;color:#d9d6b1;letter-spacing:0}.title>span{font-size:14px;color:var(--muted)}.presentation{margin-left:auto;display:flex;gap:5px}.presentation button,#help{padding:8px 11px;font-size:16px}nav{display:flex;gap:10px;padding:10px 0}nav button{flex:1;background:transparent;border-color:transparent;font-size:20px}nav small{font:12px Consolas,monospace;color:var(--muted);margin-right:10px}nav button.active small{color:#3e6651}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 316px;gap:18px;min-height:0;padding-bottom:5px}.viewer{background:linear-gradient(150deg,#173b63,#0c2341 65%,#0b1e38);border:1px solid var(--border);border-radius:18px;display:flex;flex-direction:column;overflow:hidden;min-width:0;min-height:0}.viewer-head{min-height:72px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:12px 20px;gap:12px;border-bottom:1px solid #c7ddc512}.eyebrow{font:10px Consolas,monospace;letter-spacing:1.8px;color:#a9bd91}.viewer-head h2{font-size:23px;line-height:1.45;margin:4px 0 0;font-weight:500}.viewer-head>div:first-child{min-width:0}#anatomy-actions{display:flex;gap:7px;flex-shrink:0}#anatomy-actions button{font-size:16px;padding:8px 12px}.stage{min-height:0;flex:1;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 45% 48%,#5793d533,transparent 67%)}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.specimen-badge{position:absolute;left:20px;top:17px;display:flex;gap:8px;align-items:center;font-size:12px;color:#bfd2e8;pointer-events:none;letter-spacing:.7px}.specimen-badge i{height:5px;width:5px;border-radius:50%;background:#93c6a6}.camera-tools{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:6px;z-index:3}.camera-tools button{width:62px;min-height:49px;padding:3px 4px;display:flex;gap:0;flex-direction:column;align-items:center;justify-content:center;background:#102f54e8;backdrop-filter:blur(6px)}.camera-tools b{font:22px system-ui;line-height:1.05}.camera-tools span{font-size:15px;line-height:1.5}.camera-tools button[aria-pressed=true]{background:#bad8ff}.view-presets{position:absolute;left:16px;bottom:13px;display:flex;gap:6px}.view-presets button{background:#12365cdd;font-size:15px;padding:6px 12px;min-height:44px}.model-label{position:absolute;padding:6px 12px;border-radius:20px;border:1px solid #9daf87;background:#d7e0bce6;color:#263f2d;pointer-events:none;font-size:17px;box-shadow:0 2px 9px #071a1b22;white-space:nowrap;z-index:2}.caption{min-height:39px;display:flex;gap:10px;justify-content:space-between;align-items:center;padding:8px 18px;font-size:13px;border-top:1px solid #9aab9524;color:var(--muted);flex-shrink:0}.caption strong{font-weight:500;color:#d2e5ff;white-space:nowrap}.control-bar{border-top:1px solid #9aab9524;padding:10px 16px;flex-shrink:0}.structure-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.structure-list button{font-size:17px;padding:8px 3px;min-width:0}.structure-list button span{font:11px Consolas,monospace;color:#9cba9f;margin-right:5px}.structure-list button.active span{color:#4e7055}aside{background:var(--panel);border:1px solid var(--border);border-radius:18px;padding:22px;min-height:0;overflow:auto;scrollbar-width:thin}.tag{font-size:14px;letter-spacing:1px;color:#bad7f5}aside h2{font-size:28px;line-height:1.45;margin:12px 0 8px;font-weight:500}.location{font-size:14px;color:var(--muted);line-height:1.6;margin:0}.explanation{font-size:22px;line-height:1.8;margin:20px 0}.think{background:#264638;border-left:3px solid #bdce9a;padding:13px 15px;border-radius:0 10px 10px 0}.think>span{font-size:13px;letter-spacing:1px;color:#bdd29c}.think p{font-size:18px;line-height:1.7;margin:7px 0 0}.note{font-size:13px;line-height:1.8;color:var(--muted);margin:17px 0}.evidence{font-size:18px;line-height:1.9}.evidence:empty{display:none}.evidence p{margin:9px 0}.evidence i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px}.oxygen{background:#7ceee3}.carbon{background:#e3b770}#next-scene{width:100%;font-size:17px}.transport{display:flex;gap:10px;align-items:center}.transport label{flex:1;display:flex;gap:12px;align-items:center;font-size:18px;white-space:nowrap}.transport input{flex:1;min-width:60px;width:100%}.transport output{font-size:15px;min-width:40px}input[type=range]{accent-color:#add5b2;min-height:32px;cursor:pointer}.gill-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.gill-controls button{font-size:17px;padding:8px 12px}.segmented{display:flex;gap:4px;border-radius:10px;background:#0c2923;padding:3px}.segmented button{border-color:transparent;background:transparent}.segmented button.active{background:#bdd2ae;color:#253d29}.quiz-controls{display:flex;gap:10px;justify-content:flex-end}footer{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#91ad9b;gap:10px}footer button{border:0;background:transparent;color:#9bbba8;font-size:12px;min-height:30px;padding:4px 0}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#18372de8;color:#d9e4c8;font-size:22px;z-index:8;text-align:center;padding:25px}#loading button{margin-top:20px}.quiz{position:absolute;inset:0;padding:26px 38px;background:#17372ff5;overflow:auto;z-index:5}.quiz-meta{display:flex;justify-content:space-between;font-size:15px;color:var(--muted)}.quiz h3{font-size:25px;line-height:1.7;margin:23px 0 18px}#q-answers{display:flex;flex-direction:column;gap:10px}#q-answers button{text-align:left;padding:12px 16px;font-size:19px;line-height:1.6;display:flex;gap:13px;align-items:center}#q-answers button b{font:15px Consolas,monospace;width:28px;flex-shrink:0}#q-answers .correct{border-color:#accea2;background:#365d40}#q-answers .wrong{border-color:#bc8567;background:#563d30}#q-feedback{font-size:17px;line-height:1.8;color:#d0dcc2;margin:15px 0 0}#q-next{float:right;margin-top:10px}.quiz:after{content:"";display:block;clear:both}.result-score{font-size:55px;color:#bddfae;display:block}.quiz-result{font-size:22px;line-height:1.9}dialog{width:min(850px,calc(100% - 28px));max-height:86vh;background:#17362d;color:#deead8;border:1px solid #739271;border-radius:17px;padding:26px 30px;font-size:18px;line-height:1.9}dialog::backdrop{background:#071713ab;backdrop-filter:blur(5px)}dialog p{overflow-wrap:anywhere}.dialog-head{display:flex;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:16px}.dialog-head h2{font-size:25px;margin:0}.dialog-head button{white-space:nowrap}dialog h3{font-size:20px;font-weight:500;color:#cbd8ac;margin-bottom:5px}#toast{position:fixed;bottom:35px;left:50%;transform:translateX(-50%);background:#d1ddbc;color:#25412c;padding:12px 20px;border-radius:12px;box-shadow:0 8px 30px #0004;z-index:40;font-size:18px}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.app[data-presentation=focus] .workspace{grid-template-columns:1fr}.app[data-presentation=focus] aside{display:none}.app[data-presentation=focus] .stage{min-height:0}.app[data-presentation=immersive]{position:fixed;inset:0;max-width:none;min-height:0;height:100dvh;width:100%;padding:0;z-index:20;display:block;background:#0d2922}.app[data-presentation=immersive] header,.app[data-presentation=immersive] nav,.app[data-presentation=immersive] footer,.app[data-presentation=immersive] aside,.app[data-presentation=immersive] .viewer-head,.app[data-presentation=immersive] .caption{display:none}.app[data-presentation=immersive] .workspace{height:100%;padding:0;display:block}.app[data-presentation=immersive] .viewer{height:100%;border:0;border-radius:0}.app[data-presentation=immersive] .stage{height:100%;flex:1}.app[data-presentation=immersive] .control-bar{background:#17352cee;position:absolute;bottom:16px;left:50%;transform:translateX(-50%);border:1px solid var(--border);border-radius:13px;width:min(940px,calc(100% - 180px));z-index:4}.app[data-presentation=immersive] .structure-list{grid-template-columns:repeat(5,minmax(0,1fr))}#exit-immersive{position:absolute;top:18px;right:18px;z-index:8;font-size:18px;background:#254c3ce8}.app:fullscreen{max-width:none}
@media(min-width:1600px){.app{grid-template-rows:84px 70px minmax(0,1fr) 38px;padding:0 32px}.workspace{grid-template-columns:minmax(0,1fr) 350px;gap:22px}aside{padding:28px}.explanation{font-size:24px;line-height:1.9}.viewer-head{min-height:82px}.viewer-head h2{font-size:27px}.structure-list button{font-size:19px}.control-bar{padding:13px 20px}.caption{font-size:15px}}
@media(max-width:1250px){.title>span{display:none}.app{padding:0 16px}.workspace{grid-template-columns:minmax(0,1fr) 290px;gap:12px}.viewer-head{padding:12px 15px}.viewer-head h2{font-size:21px}#anatomy-actions button{font-size:14px;padding:7px 9px}aside{padding:19px}aside h2{font-size:26px}.explanation{font-size:22px}.camera-tools button{width:54px}.structure-list button{font-size:15px}.caption strong{display:none}.transport{flex-wrap:wrap}.gill-controls button{font-size:16px}}
@media(max-width:900px){.app{height:auto;min-height:100dvh;grid-template-rows:auto auto auto auto;gap:0;padding:0 12px}header{flex-wrap:wrap;gap:12px;padding:15px 0}.title{gap:8px}.title h1{font-size:24px}.brand{font-size:14px}.brand b{font-size:18px}.presentation{margin-left:auto}.presentation button,#help{font-size:15px}nav{gap:4px}nav button{font-size:16px;padding:9px 4px}nav small{font-size:10px;margin-right:5px}.workspace{display:grid;grid-template-columns:1fr;gap:12px}.viewer{min-height:620px}.stage{min-height:350px}aside{overflow:visible;padding:22px}.explanation{font-size:22px;margin:14px 0}.think p{font-size:18px}.note{font-size:14px}footer{flex-wrap:wrap;min-height:55px;font-size:12px}.app[data-presentation=focus] .viewer{height:calc(100dvh - 185px);min-height:560px}.app[data-presentation=focus] .stage{min-height:300px}.app[data-presentation=immersive] .stage{min-height:0}.app[data-presentation=immersive] .viewer{min-height:0}.app[data-presentation=immersive] .control-bar{width:calc(100% - 130px)}.title h1 em{font-size:12px}}
@media(max-width:560px){.app{padding:0 8px}header{gap:9px}.brand{display:none}.title h1{font-size:23px}.presentation{width:auto;margin-left:0;gap:4px}.presentation button,#help{padding:7px 10px;font-size:15px}#help{margin-left:auto}nav{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:10px 0}nav button{font-size:16px}nav small{display:none}.viewer{min-height:630px}.viewer-head{flex-wrap:wrap;gap:7px;padding:13px}.viewer-head h2{font-size:21px}#anatomy-actions{width:100%}#anatomy-actions button{font-size:15px;flex:1}.eyebrow{font-size:9px}.stage{min-height:330px}.specimen-badge{font-size:10px;top:14px;left:12px;max-width:calc(100% - 70px);letter-spacing:0}.camera-tools{right:7px;gap:5px}.camera-tools button{width:44px;min-height:44px}.camera-tools b{font-size:20px}.camera-tools span{font-size:11px}.view-presets{left:9px;bottom:10px;gap:4px}.view-presets button{font-size:14px;padding:6px 11px}.model-label{font-size:15px;padding:5px 9px}.caption{padding:10px 12px;font-size:13px}.control-bar{padding:9px}.structure-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.structure-list button{font-size:15px;padding:7px 2px}.structure-list button span{font-size:10px}.transport label{flex-wrap:wrap;flex-basis:100%;font-size:17px}.transport input{min-width:60%;width:auto}.transport button{font-size:16px}.gill-controls{gap:7px}.gill-controls .segmented{flex-basis:100%}.segmented button{flex:1}.gill-controls>button{flex:1}.quiz{padding:20px 17px}.quiz h3{font-size:22px}.quiz-meta{font-size:13px}#q-answers button{font-size:18px;padding:11px}#q-feedback{font-size:16px}.quiz-controls button{font-size:16px}aside h2{font-size:26px}.explanation{font-size:21px}.app[data-presentation=focus] .viewer{height:auto;min-height:650px}.app[data-presentation=immersive] .structure-list{grid-template-columns:repeat(3,minmax(0,1fr))}.app[data-presentation=immersive] .control-bar{width:calc(100% - 72px);bottom:10px;left:8px;transform:none}.app[data-presentation=immersive] .specimen-badge{top:70px}#exit-immersive{top:12px;right:12px;font-size:16px}dialog{padding:20px;font-size:17px}.dialog-head h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* v2.1: every view carries an observation task; the exchange directions dominate. */
.structure-list{grid-template-columns:repeat(6,minmax(0,1fr))}
.structure-list button{font-size:17px}.concept-strip{display:flex;gap:8px;align-items:center;padding:5px 18px;border-bottom:1px solid #91b4a433;flex-shrink:0;background:#0c2341}.concept-strip button{font-size:17px;border-color:transparent;background:transparent;min-height:38px;padding:5px 11px}.concept-strip button.active{background:#a9d1b5;color:#0d2848}.concept-strip b{color:#71998a;font-weight:400}
#world-tags{position:absolute;inset:0;pointer-events:none;z-index:2}.world-tag{position:absolute;transform:translate(-50%,-50%);font-size:20px;line-height:1.45;font-weight:600;white-space:nowrap;padding:5px 10px;border:1px solid;background:#091e38f5;border-radius:8px;color:#f3d4ac;border-color:#b99875}.world-tag.water{color:#9fd9ff;border-color:#64a8cf}.world-tag.blood{color:#ffb6c9;border-color:#d67892}.world-tag.oxygen{color:#83fff0;border-color:#6fe8db}.world-tag.carbon{color:#ffdb89;border-color:#e3b458}
#process-readout{position:absolute;left:230px;right:88px;bottom:14px;text-align:center;background:#e1eacb;color:#153b63;border-radius:8px;padding:8px 10px;font-size:20px;line-height:1.45;z-index:4;pointer-events:none}
.gas-controls,.layer-controls{display:flex;align-items:center;gap:10px;flex-basis:100%;border-top:1px solid #577f6b66;padding-top:9px;margin-top:2px}.gas-controls .segmented{flex-shrink:0}.gas-controls label{display:flex;align-items:center;gap:10px;font-size:17px;flex:1;white-space:nowrap}.gas-controls input{min-width:80px;width:100%;flex:1}.gas-controls output{font-size:15px;min-width:37px}.gas-controls [data-gas=oxygen].active{background:#92e0d0}.gas-controls [data-gas=carbon].active{background:#efcf8f}.inspect-action{width:100%;font-size:18px;line-height:1.5;margin:0 0 15px;text-align:left}.think #reveal-answer{font-size:15px;min-height:38px;padding:5px 9px;margin-top:12px;background:transparent;border-color:#71967f}.think #teaching-answer{font-size:18px;line-height:1.65;color:#e3eed7}.think:has(#teaching-answer:not([hidden])) #think-text{display:none}aside .explanation{margin:15px 0;font-size:22px;line-height:1.65}aside .think{padding:12px 13px}aside .note{font-size:12px;margin:12px 0;line-height:1.6}.gill-controls{padding-top:9px;padding-bottom:9px}.gill-controls button{min-height:44px}.app[data-presentation=immersive] .concept-strip{display:none}.app[data-presentation=immersive] .structure-list{grid-template-columns:repeat(6,minmax(0,1fr))}.app[data-presentation=immersive] #process-readout{bottom:175px}
@media(min-width:901px) and (max-height:800px){aside{padding:17px}aside h2{font-size:25px;margin:9px 0 5px}.location{font-size:13px}aside .explanation{font-size:21px;line-height:1.55;margin:12px 0}.inspect-action{font-size:17px;margin-bottom:12px}.think p{font-size:17px;line-height:1.55}aside .note{display:none}#next-scene{margin-top:12px}.viewer-head{min-height:68px}.viewer-head h2{font-size:22px}.world-tag{font-size:18px}.concept-strip button{font-size:16px}}
@media(max-width:1250px){.structure-list button{font-size:15px}.gas-controls{flex-wrap:wrap}.gas-controls label{min-width:180px}.world-tag{font-size:17px}.concept-strip{gap:3px;padding-left:9px;padding-right:9px}.concept-strip button{font-size:15px;padding:5px 6px}.gas-controls .segmented button{font-size:15px}}
@media(max-width:900px){.world-tag{font-size:18px}.viewer{min-height:660px}.gas-controls label{flex-basis:100%}.gas-controls .segmented{width:100%}.gas-controls .segmented button{flex:1}.structure-list{grid-template-columns:repeat(4,minmax(0,1fr))}aside .note{font-size:14px}aside .explanation{font-size:22px}.inspect-action{font-size:18px}}
@media(max-width:560px){.structure-list{grid-template-columns:repeat(3,minmax(0,1fr))}.structure-list button{font-size:15px}.concept-strip{gap:0;padding:4px}.concept-strip button{font-size:13px;line-height:1.4;white-space:normal;flex:1;padding:4px;min-height:44px}.concept-strip b{font-size:12px}.world-tag{font-size:15px;padding:4px 6px;max-width:165px;white-space:normal}.stage{min-height:365px}.gill-controls .segmented button{font-size:14px;padding:6px}.gill-controls .segmented{width:100%}.layer-controls{flex-wrap:wrap;gap:6px}.layer-controls button{flex:1;white-space:nowrap}.gas-controls{gap:6px}.gas-controls .segmented button{font-size:14px}.gas-controls label{font-size:16px}#process-readout{left:10px;right:60px;bottom:65px;font-size:15px;padding:5px}.app[data-presentation=immersive] #process-readout{bottom:210px}.app[data-presentation=immersive] .structure-list{grid-template-columns:repeat(3,minmax(0,1fr))}.app[data-presentation=immersive] .gill-controls{width:calc(100% - 75px)}.specimen-badge{max-width:calc(100% - 50px)}}
#process-readout{position:static;flex:1;font-size:19px;text-align:left;background:transparent;color:#e3edff;padding:0;pointer-events:auto}.app[data-scene=gill][data-detail=exchange] .caption{min-height:46px}.app[data-scene=gill][data-detail=exchange] .specimen-badge{display:none}
@media(max-width:560px){#process-readout{font-size:16px;line-height:1.5}.app[data-scene=gill][data-detail=exchange] .caption{min-height:55px}}
.world-tag.oxygen,.world-tag.carbon{font-size:22px}
.world-tag{width:max-content}.world-tag[data-world=water]{font-size:22px}

.breath-stages{display:flex;align-items:stretch;gap:10px;padding:10px 18px;background:#081d36;border-bottom:1px solid #4e756266}.breath-stages[hidden]{display:none}.breath-stages button{flex:1;display:flex;align-items:center;justify-content:center;gap:14px;min-height:54px;background:#15385f;color:#bad0e3;border:1px solid #426b94;border-radius:9px;font-size:18px}.breath-stages button.active{color:#082541;background:#c0deff;border-color:#deedff;box-shadow:inset 0 -3px #7daee0}.breath-stages button b{font-size:21px}.breath-stages i{align-self:center;font-style:normal;font-size:25px;color:#a9c9ba}
@media(max-width:700px){.breath-stages{gap:5px;padding:7px}.breath-stages button{flex-direction:column;gap:3px;min-height:66px;padding:6px;font-size:14px}.breath-stages button b{font-size:18px}.breath-stages i{font-size:18px}}
@media(min-width:561px) and (max-height:800px){.camera-tools{gap:4px}.camera-tools button{height:44px;min-height:44px;flex-direction:row;gap:3px}.camera-tools b{font-size:20px}.camera-tools span{font-size:14px}}
@media(max-width:560px){.world-tag.oxygen,.world-tag.carbon{font-size:16px}.viewer>.camera-tools{position:static;transform:none;flex-direction:row;flex-shrink:0;padding:7px 9px;gap:5px;background:#0b2647;border-top:1px solid #4e756266}.viewer>.camera-tools button{position:static;flex:1;width:auto;min-height:44px;flex-direction:row;gap:3px;padding:5px}.viewer>.camera-tools b{font-size:18px}.viewer>.camera-tools span{font-size:12px}.app[data-presentation=immersive] .viewer>.camera-tools{padding-bottom:170px}}

/* v3.1: use the full viewport; put transport controls in the teaching column. */
.app{max-width:none;width:100%;padding:0 12px;grid-template-rows:auto minmax(0,1fr) 30px;min-height:650px}
header{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto auto;gap:12px;min-height:62px;padding:6px 0}
header .brand{grid-column:1;font-size:16px}header .brand b{font-size:20px}header .title{grid-column:2;gap:0}header .title h1{font-size:24px;letter-spacing:0}header .title>span{display:none}
header nav{grid-column:3;grid-row:1;padding:0;gap:4px;min-width:0}header nav button{font-size:18px;min-height:44px;padding:7px 8px;white-space:nowrap}header nav small{display:none}header .presentation{grid-column:4;margin:0}header #help{grid-column:5;font-size:15px;white-space:nowrap}
.workspace{grid-template-columns:minmax(0,1fr) 320px;gap:12px;padding-bottom:0}
.viewer{border-radius:13px}.viewer-head{min-height:54px;padding:7px 14px;gap:10px}.viewer-head .eyebrow{display:none}.viewer-head h2{font-size:22px;margin:0;line-height:1.4}
.viewer-head .concept-strip{margin-left:auto;padding:0;background:transparent;border:0;gap:3px}.viewer-head .concept-strip button{font-size:16px;min-height:40px;padding:4px 7px}
.caption{min-height:32px;padding:5px 13px;font-size:13px}.caption #process-readout{font-size:17px;line-height:1.4}
aside{display:flex;flex-direction:column;padding:14px;border-radius:13px;overflow:auto}aside .tag{font-size:12px;letter-spacing:0}aside h2{font-size:24px;margin:7px 0;line-height:1.4}aside .location{font-size:13px}aside .explanation{font-size:21px;line-height:1.6;margin:12px 0}aside .inspect-action{font-size:18px;margin-bottom:9px;min-height:44px;padding:7px 10px}aside #next-scene{font-size:17px;padding:7px 10px;min-height:44px}aside .note{margin:9px 0;line-height:1.5}
.think{padding:0!important;border-left-width:2px}.think summary{font-size:18px;min-height:44px;padding:8px 11px;cursor:pointer;color:#e7f0ff}.think[open]{padding:0 11px 10px!important}.think[open] summary{padding-left:0}.think>span{display:none}.think p{font-size:18px;line-height:1.5}.think #reveal-answer{margin-top:8px}
.lesson-controls{margin-top:auto;padding-top:12px}.lesson-controls .control-bar{padding:0;border:0}.lesson-controls .transport{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.lesson-controls .transport button{font-size:16px;padding:7px 3px;white-space:nowrap}.lesson-controls .transport label{grid-column:1/-1;display:flex;font-size:16px;gap:7px;min-width:0;min-height:44px;order:2}.lesson-controls .transport label input{width:auto;min-width:50px;flex:1}.lesson-controls .transport output{font-size:14px;min-width:34px}
.lesson-controls .gill-controls{gap:7px;justify-content:stretch}.lesson-controls .gill-controls>button{flex:1;font-size:16px;padding:6px 5px}.lesson-controls .layer-controls{padding-top:7px;gap:5px;flex-wrap:nowrap}.lesson-controls .layer-controls button{font-size:14px;padding:5px 4px;flex:1;white-space:normal}.lesson-controls .gas-controls{padding-top:7px;gap:7px;flex-direction:column}.lesson-controls .gas-controls .segmented{width:100%;gap:2px}.lesson-controls .gas-controls .segmented button{font-size:15px;flex:1;padding:5px 3px;white-space:nowrap}.lesson-controls .gas-controls label{width:100%;font-size:16px;gap:6px;min-height:36px}.lesson-controls .gas-controls input{min-width:50px}.lesson-controls .gas-controls output{font-size:14px;min-width:32px}
#controls-gill>.segmented{display:none}.lesson-controls:empty{display:none}
.app[data-presentation=immersive] #controls-gill>.segmented{display:flex}
aside>.breath-stages{padding:0 0 9px;gap:6px;margin-bottom:8px}.breath-stages button{min-height:48px}.breath-stages button b{font-size:19px}aside>.breath-stages button{flex-direction:column;gap:2px;padding:5px 3px;font-size:14px}aside>.breath-stages button b{font-size:18px}aside>.breath-stages i{font-size:18px}
.app[data-scene=breath] aside>#info-title,.app[data-scene=breath] aside>.location,.app[data-scene=breath] aside>.tag,.app[data-scene=gill] aside>.location{display:none}
.app[data-presentation=focus] .workspace{grid-template-columns:minmax(0,1fr)}.app[data-presentation=focus] .lesson-controls{display:block}
@media(min-width:1001px) and (max-width:1279px){header{grid-template-columns:auto minmax(0,1fr) auto auto;gap:5px 14px;min-height:96px}header .title{grid-column:2}header .presentation{grid-column:3}header #help{grid-column:4}header nav{grid-column:1/-1;grid-row:2;gap:6px}header .title h1{font-size:24px}header nav button{font-size:19px}.workspace{grid-template-columns:minmax(0,1fr) 302px;gap:10px}.viewer-head h2{font-size:20px}.viewer-head .concept-strip button{font-size:15px;padding:4px 5px}.viewer-head{padding:7px 12px}aside{padding:12px}aside .explanation{font-size:20px;line-height:1.55;margin:10px 0}aside h2{font-size:23px}aside .inspect-action{font-size:17px}aside #next-scene{font-size:16px}}
@media(max-width:1000px){.app{height:auto;min-height:100dvh;grid-template-rows:auto auto auto;padding:0 10px}header{display:flex;flex-wrap:wrap;gap:7px 10px;padding:8px 0;min-height:0}header nav{order:10;width:100%;flex-basis:100%;padding:0}header .title{flex:1}header .presentation{margin-left:auto}header .title h1{font-size:23px}.workspace{grid-template-columns:1fr;gap:10px}.viewer{min-height:680px}.stage{min-height:420px}.viewer-head{flex-wrap:wrap;padding:10px 12px}.viewer-head .concept-strip{margin-left:0;flex-basis:100%;justify-content:space-between}.viewer-head h2{font-size:21px}.breath-stages{padding:8px 10px;gap:7px}.breath-stages button{font-size:15px;min-height:52px}.breath-stages button b{font-size:18px}.caption{font-size:13px}.lesson-controls{display:none}aside{overflow:visible}.app[data-presentation=focus] .viewer{height:auto;min-height:680px}.app[data-presentation=immersive] .viewer{min-height:0}}
@media(max-width:560px){.app{padding:0 7px}header .brand{display:none}header .title h1{font-size:20px}header #help{font-size:14px;padding:7px 9px;margin-left:auto}header .presentation{margin-left:0}header .presentation button{font-size:14px;padding:7px 10px}header nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}header nav button{font-size:16px;white-space:normal;padding:6px 3px}.viewer-head .concept-strip{gap:0}.viewer-head .concept-strip button{font-size:13px;flex:1;padding:4px 3px;white-space:normal}.viewer-head .concept-strip b{font-size:12px}.viewer-head h2{font-size:20px}#anatomy-actions{width:100%}.breath-stages{padding:7px;gap:5px}.breath-stages button{min-height:60px;flex-direction:column;font-size:14px;padding:5px;gap:3px}.stage{min-height:440px}.caption #process-readout{font-size:15px}.caption{padding:8px 10px}aside{padding:16px}.app[data-presentation=immersive] .stage{min-height:0}}

/* v3.2 classroom blue: readable teaching controls with a large model viewport. */
:root{color-scheme:dark}
.segmented{background:#0a203d;border-color:#31577e}.segmented button.active{background:#b8dbff;color:#092542}
header #font-size{font-size:18px;min-height:44px;padding:8px 9px;white-space:nowrap}
.app.larger-text header nav button{font-size:24px}.app.larger-text .viewer-head h2{font-size:29px}.app.larger-text .viewer-head .concept-strip button{font-size:22px}.app.larger-text .structure-list button{font-size:23px}.app.larger-text aside h2{font-size:31px}.app.larger-text aside .explanation{font-size:28px}.app.larger-text aside .inspect-action,.app.larger-text aside #next-scene{font-size:23px}.app.larger-text .think summary{font-size:23px}.app.larger-text .lesson-controls button{font-size:22px}.app.larger-text .lesson-controls .transport label,.app.larger-text .lesson-controls .gas-controls label{font-size:22px}.app.larger-text .world-tag{font-size:26px}
:root{--bg:#071528;--panel:#0e2340;--border:#31577e;--accent:#acd4ff;--muted:#b2c8df;color:#e7effa;background:#071528}
body{background:radial-gradient(ellipse at 40% 4%,#16375b 0,#08172b 58%,#061322 100%)}
.app{padding:0 14px;min-height:680px}header{gap:9px;min-height:72px;padding:8px 0;display:flex;flex-wrap:wrap}header .brand{font-size:17px}header .brand b{font-size:23px}header .title h1{font-size:27px;letter-spacing:0}header nav{flex:1;min-width:370px;gap:3px}header nav button{font-size:22px;line-height:1.25;min-height:48px;padding:7px 7px;white-space:normal}header .presentation button,header #help{font-size:18px;padding:8px 9px;min-height:44px}
.workspace{grid-template-columns:minmax(0,1fr) 340px;gap:12px}.viewer{background:linear-gradient(145deg,#173b63,#0b2343 56%,#081b34);border-color:#365d89}.stage{background:radial-gradient(ellipse at 43% 40%,#80b4ed20,transparent 67%)}
.viewer-head{min-height:62px;padding:8px 14px;gap:10px}.viewer-head h2{font-size:26px;line-height:1.35}.viewer-head .concept-strip{gap:3px}.viewer-head .concept-strip button{font-size:20px;min-height:44px;padding:5px 8px}.concept-strip button.active{background:#b8dbff;color:#08223f}
#anatomy-actions button{font-size:19px;padding:7px 10px;min-height:44px}.structure-list button{font-size:21px;min-height:46px;line-height:1.3;padding:6px 3px}.structure-list button span{display:none}
.caption{font-size:17px;min-height:42px;padding:7px 12px}.caption strong{font-size:16px}.caption #process-readout{font-size:22px;line-height:1.4}.specimen-badge{font-size:15px;letter-spacing:0}.world-tag{font-size:24px;line-height:1.3;padding:6px 10px;background:#091e38ed}.world-tag.oxygen,.world-tag.carbon{font-size:25px}.model-label{font-size:21px;background:#e0edffef;color:#102c50;border-color:#a5c9ef}
.camera-tools{right:10px;gap:6px}.camera-tools button{min-width:80px;width:80px;min-height:48px;height:auto;padding:6px;gap:2px;background:#0d2d53ec}.camera-tools b{font-size:22px}.camera-tools span{font-size:18px;white-space:nowrap}.view-presets button{font-size:18px;min-height:44px;padding:6px 11px;background:#12365cdd}
aside{padding:16px;border-color:#365d89;background:linear-gradient(150deg,#132d4e,#0b203b)}aside .tag{font-size:15px;line-height:1.4;color:#b8d5f3}aside h2{font-size:28px;line-height:1.35;margin:8px 0}aside .location{font-size:16px}aside .explanation{font-size:25px;line-height:1.55;margin:12px 0}aside .inspect-action{font-size:21px;min-height:48px;line-height:1.35;margin-bottom:10px;padding:8px 10px}aside #next-scene{font-size:20px;min-height:48px;line-height:1.35;padding:8px 10px}.think summary{font-size:21px;min-height:46px;line-height:1.35;padding:9px 10px}.think p,.think #teaching-answer{font-size:21px;line-height:1.5}.think #reveal-answer{font-size:19px;min-height:44px}.think{background:#153456!important;border-left-color:#86b5e5!important}aside .note{font-size:15px;line-height:1.5;color:#bbd0e5}
.lesson-controls .transport button{font-size:20px;min-height:46px;white-space:normal;padding:7px 4px}.lesson-controls .transport label{font-size:20px;min-height:48px}.lesson-controls .transport output{font-size:17px}.lesson-controls .gill-controls>button{font-size:20px;min-height:46px;padding:7px 6px}.lesson-controls .layer-controls button{font-size:18px;min-height:44px;padding:6px 4px}.lesson-controls .gas-controls .segmented button{font-size:18px;min-height:46px;white-space:normal}.lesson-controls .gas-controls label{font-size:19px;min-height:46px}.lesson-controls .gas-controls output{font-size:17px}
.breath-stages{background:#0b2341;border-color:#365d89}.breath-stages button{background:#15385f;color:#bdd2e9;border-color:#4c739b;font-size:20px;min-height:60px}.breath-stages button.active{background:#c1deff;color:#07213c;border-color:#deedff;box-shadow:inset 0 -3px #7daee0}.breath-stages button b{font-size:24px}aside>.breath-stages button{font-size:17px;min-height:65px}aside>.breath-stages button b{font-size:22px}
.gas-controls,.layer-controls{border-top-color:#41658b66}.gas-controls [data-gas=oxygen].active{background:#9de4e7;color:#072d40}.gas-controls [data-gas=carbon].active{background:#efcf8f;color:#342910}
dialog{color:#e8f1ff;background:#102d4e;border-color:#547fa9;font-size:21px;line-height:1.6}dialog h2{font-size:28px}dialog h3{font-size:24px}dialog a{color:#b5d9ff}.dialog-head button{font-size:20px}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(0,1fr) 376px}aside .explanation{font-size:27px}aside h2{font-size:30px}header nav button{font-size:24px}.viewer-head h2{font-size:28px}.structure-list button{font-size:23px}}
@media(min-width:1001px) and (max-width:1279px){header nav{flex-basis:100%;order:5;min-width:0}header .title h1{font-size:26px}.workspace{grid-template-columns:minmax(0,1fr) 322px}.viewer-head{flex-wrap:wrap}.viewer-head .concept-strip{margin-left:0;flex-basis:100%}aside .explanation{font-size:24px}aside .inspect-action{font-size:20px}}
@media(max-width:1000px){header nav{min-width:0;flex-basis:100%;order:10}header .title h1{font-size:26px}.workspace{grid-template-columns:1fr}.viewer-head h2{font-size:25px}.viewer-head .concept-strip button{font-size:20px}aside .explanation{font-size:25px}.transport button,.gill-controls>button{font-size:20px;min-height:46px}.transport label{font-size:20px}.layer-controls button,.gas-controls .segmented button{font-size:19px;min-height:46px}.gas-controls label{font-size:20px}aside{overflow:visible}}
@media(max-width:560px){.app{padding:0 8px}header .title h1{font-size:24px}header .presentation button,header #help{font-size:17px;padding:7px 10px}header nav button{font-size:20px;min-height:48px}.viewer-head h2{font-size:23px}.viewer-head .concept-strip button{font-size:17px;white-space:normal;min-height:48px;padding:5px 3px}#anatomy-actions button{font-size:18px;min-height:46px}.structure-list button{font-size:19px;min-height:50px}.world-tag{font-size:19px}.world-tag.oxygen,.world-tag.carbon{font-size:20px}.specimen-badge{font-size:13px}.model-label{font-size:19px}.viewer>.camera-tools{background:#0c284b}.viewer>.camera-tools button{min-width:0;font-size:16px;min-height:46px}.viewer>.camera-tools span{font-size:15px}.caption{font-size:15px}.caption #process-readout{font-size:19px}.breath-stages button{font-size:17px;min-height:70px}.breath-stages button b{font-size:22px}.gas-controls .segmented button,.layer-controls button{font-size:18px;min-height:46px}.gas-controls label{font-size:19px}.transport button{font-size:20px}.transport label{font-size:20px}aside h2{font-size:27px}aside .explanation{font-size:24px}.think summary{font-size:21px}}

/* New lessons retain the classroom typography and continuous canvas. */
header nav button{padding-inline:8px}
@media(min-width:1001px) and (max-width:1799px){header{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto}header nav{grid-row:2;grid-column:1/-1;padding:1px 0 3px}header .brand{grid-row:1;grid-column:1}header .title{grid-row:1;grid-column:2}header .presentation{grid-row:1;grid-column:3}header #font-size{grid-row:1;grid-column:4}header #help{grid-row:1;grid-column:5}header nav button{font-size:21px}}
@media(min-width:1800px){header .title h1{font-size:23px}header nav button{font-size:21px;padding:7px}header{gap:9px}.presentation button,#help,#font-size{font-size:16px;padding:7px}}
.app[data-scene=camouflage] aside>:not(#adapt-panel),.app[data-scene=comparison] aside>:not(#adapt-panel){display:none!important}
.app[data-scene=camouflage] .stage,.app[data-scene=comparison] .stage{min-height:360px}
#adapt-panel{min-width:0;display:flex;flex-direction:column;gap:12px;font-size:20px}
#adapt-panel h2{font-size:27px;margin:0}#adapt-panel label{display:flex;flex-direction:column;gap:7px;font-size:20px;color:#c8dff5}
#adapt-panel select{font:inherit;font-size:20px;color:#f1f7ff;min-height:47px;width:100%;background:#112f51;border:1px solid #537ba2;border-radius:8px;padding:8px 7px}
#adapt-panel select option{background:#112f51;color:#eef5ff}#adapt-panel input[type=range]{width:100%;min-width:0;min-height:36px;margin:0}
.adapt-segment,.adapt-actions,.adapt-row{display:flex;gap:7px;flex-wrap:wrap}.adapt-segment button{flex:1;font-size:19px;padding:8px 5px}.adapt-actions button{flex:1;font-size:20px;padding:8px}.adapt-row label{flex:1;min-width:110px}#adapt-panel p{margin:0;line-height:1.6}.adapt-main{font-size:24px;color:#e4f0fd}.adapt-predict{padding:11px;background:#1b3f62;font-size:23px;border-left:3px solid #9ed4ff}.adapt-sub{font-size:18px;color:#b8d1e7}#adapt-panel details{border-top:1px solid #375c80;padding-top:10px}#adapt-panel summary{font-size:20px;cursor:pointer;min-height:44px}#adapt-panel details p{font-size:20px;margin:10px 0}#hunt-result{font-size:25px;color:#f1d49a}#hunt-first{font-size:20px}#hunt-tip{font-size:23px}
.trial-result{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.trial-result>div{display:flex;flex-direction:column;gap:8px;padding:10px 7px;border:1px solid #5a91b9;border-radius:8px;background:#16334f}.trial-result>div+div{border-color:#a68c59;background:#363a37}.trial-result b{font-weight:500;font-size:19px}.trial-result strong{font-size:25px;color:#a8e3ff}.trial-result>div+div strong{color:#edc580}
#adapt-hud{position:absolute;inset:0;pointer-events:none;z-index:3;color:#f0f6fe}#adapt-status{position:absolute;top:18px;right:18px;font-size:22px;background:#071728e6;padding:9px 14px;border:1px solid #5a7b99;border-radius:8px}#adapt-lanes{position:absolute;inset:75px auto 30px 18px;display:flex;flex-direction:column;justify-content:space-around;font-size:21px}#adapt-lanes span{padding:7px 12px;background:#0b1b2ddc;border-left:4px solid #7bd8ff;border-radius:3px;width:fit-content}#adapt-lanes span+span{border-color:#e7bf77}
#hunt-reticle{position:absolute;width:58px;height:58px;border:2px solid #e0edf3bb;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 6px #05243b35;transition:width .12s,height .12s}#hunt-reticle:before,#hunt-reticle:after{content:"";position:absolute;background:#eaf2f3aa}#hunt-reticle:before{left:26px;top:-8px;width:2px;height:70px}#hunt-reticle:after{left:-8px;top:26px;width:70px;height:2px}#hunt-reticle.striking{width:36px;height:36px;border-color:#ffda8c}#hunt-reticle.striking:before{left:15px;height:48px}#hunt-reticle.striking:after{top:15px;width:48px}#hunt-splash{position:absolute;width:100px;height:100px;border:3px solid #a6dcff;border-radius:50%}
.app[data-scene=camouflage] .specimen-badge,.app[data-scene=comparison] .specimen-badge{font-size:15px;top:auto;bottom:12px}
.app.larger-text #adapt-panel label,.app.larger-text #adapt-panel select{font-size:23px}.app.larger-text .adapt-main,.app.larger-text #hunt-tip{font-size:27px}
@media(max-width:1000px){header nav{flex-wrap:wrap}header nav button{flex:1 0 24%;font-size:20px}#adapt-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#adapt-panel>h2,#adapt-panel>.tag,#adapt-panel>.adapt-main,#adapt-panel>details,#adapt-panel>.adapt-predict{grid-column:1/-1}.app[data-scene=camouflage] aside,.app[data-scene=comparison] aside{overflow:visible}#adapt-status{font-size:19px}}
@media(max-width:560px){#adapt-panel{display:flex;padding:3px}header nav button{font-size:18px;padding:8px 3px}.app[data-scene=camouflage] .stage,.app[data-scene=comparison] .stage{height:440px;min-height:440px;flex:none}.app[data-scene=comparison] .stage{height:380px;min-height:380px}#adapt-status{font-size:17px;top:10px;right:9px;padding:7px}#adapt-lanes{font-size:16px;left:9px;top:60px;bottom:40px}.app[data-scene=camouflage] .specimen-badge,.app[data-scene=comparison] .specimen-badge{font-size:12px;left:9px}#adapt-panel h2{font-size:27px}.trial-result strong{font-size:26px}}

.app[data-scene=camouflage] .viewer,.app[data-scene=comparison] .viewer{min-height:0}
@media(min-width:1001px){.app[data-scene=camouflage] aside,.app[data-scene=comparison] aside{padding:13px}.adapt-actions{flex-wrap:nowrap}.adapt-actions button{font-size:18px;white-space:nowrap;padding:8px 4px}}

/* Activity controls remain usable in focus and immersive presentation. */
.app:is([data-scene=camouflage],[data-scene=comparison]):is([data-presentation=focus],[data-presentation=immersive]) aside{display:flex}
.app:is([data-scene=camouflage],[data-scene=comparison]):is([data-presentation=focus],[data-presentation=immersive]) .workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px}
.app:is([data-scene=camouflage],[data-scene=comparison])[data-presentation=focus] .viewer{min-height:0;height:auto}
@media(max-width:1000px){.app:is([data-scene=camouflage],[data-scene=comparison]):is([data-presentation=focus],[data-presentation=immersive]) .workspace{grid-template-columns:1fr;overflow:auto;height:100%}.app:is([data-scene=camouflage],[data-scene=comparison])[data-presentation=immersive] .viewer{height:600px;min-height:600px}.app:is([data-scene=camouflage],[data-scene=comparison])[data-presentation=immersive] aside{overflow:visible}}

/* Website tools stay in the footer rather than floating over the model. */
footer{gap:8px;flex-wrap:wrap;min-height:42px;height:auto}#web-tools{display:flex;gap:6px;align-items:center}#web-tools #bio-project-support{position:static!important;margin:0!important;inset:auto!important;z-index:auto!important}#web-tools button{font-size:12px;min-height:40px;padding:3px 7px}.app{grid-template-rows:auto minmax(0,1fr) auto}
.app[data-web-text=large]{height:auto;min-height:100dvh}.app[data-web-text=large] .workspace{align-items:start}.app[data-web-text=large] .viewer{min-height:720px}.app[data-web-text=large] .stage{min-height:500px}.app[data-web-text=large] aside{overflow:visible}
