:root{--paper:#f3f0e5;--ink:#17353b;--muted:#6d7c78;--line:#d4d8ca;--mint:#a9d9bd;--gold:#e7bb61;--coral:#db795f;color-scheme:light}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--paper);color:var(--ink)}button{font:inherit;color:inherit;background:#faf8f0;border:1px solid #c7d0c3;border-radius:6px;padding:8px 12px;cursor:pointer;touch-action:manipulation}button:hover:enabled{filter:brightness(.94);border-color:#577a6c}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #b37020;outline-offset:3px}a{color:inherit}kbd{font:10px Arial,sans-serif;border:1px solid currentColor;border-radius:3px;padding:2px 4px;opacity:.65}header{max-width:1480px;margin:auto;display:flex;align-items:center;gap:24px;padding:13px 30px;border-bottom:1px solid var(--line)}header img,footer img{display:block}.home{font-size:12px;text-decoration:none;font-weight:700}nav{margin-left:auto;display:flex;gap:6px}nav button{font-size:11px;padding:7px 10px;background:transparent}main{max-width:1400px;margin:auto;padding:20px 30px 8px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.9px;margin:0 0 8px}h1{font-size:clamp(25px,3.05vw,45px);letter-spacing:-1.7px;line-height:1.12;margin:0}h1 em{font-family:Georgia,serif;color:#a85c3f;font-weight:400}.badge{font-size:14px;letter-spacing:0;background:#d8dfc7;display:inline-block;padding:9px 8px;margin-left:12px;border-radius:40% 40% 48% 48%;vertical-align:middle}.tagline{font:italic 14px/1.5 Georgia,serif;border-left:2px solid var(--gold);padding-left:18px;margin:0}.game{border:1px solid #b7c5b9;border-radius:12px;overflow:hidden;background:#fcfaf1;box-shadow:0 12px 40px #203d3210}.hud{display:grid;grid-template-columns:1fr 1fr 1fr 1.3fr;border-bottom:1px solid var(--line);padding:16px 24px;gap:20px}.hud>div{border-right:1px solid var(--line)}.hud>div:last-child{border:0}.hud small{display:block;font-size:9px;letter-spacing:1.3px;font-weight:700}.hud strong{display:block;font-size:27px;letter-spacing:-1px;margin-top:4px}.hud strong span{font-size:15px;margin-left:3px}.hud>div:nth-child(2) strong{color:#467159}.hud>div:nth-child(3) strong{color:#ac7734}.focus-hud{align-self:center}.focus-hud small{display:flex;justify-content:space-between;gap:5px}.focus-hud b{font-size:10px;letter-spacing:0}progress{display:block;width:100%;height:7px;appearance:none;border:0;background:#dce1d3;border-radius:10px;overflow:hidden}progress::-webkit-progress-bar{background:#dce1d3}progress::-webkit-progress-value{background:#558e76;border-radius:10px}progress::-moz-progress-bar{background:#558e76}.focus-hud progress{margin-top:12px;width:95%}.low progress::-webkit-progress-value{background:#ca6d49}.desk{display:grid;grid-template-columns:minmax(0,1fr) 335px}.field{background:#14343c;min-width:0;display:flex;flex-direction:column;color:#d5e4d7}.scene-label,.scene-foot{display:flex;justify-content:space-between;gap:8px;padding:14px 20px;font-size:9px;letter-spacing:1.4px;font-weight:700}.scene-label i{display:inline-block;width:6px;height:6px;background:#a1d4a0;border-radius:50%;margin-right:6px;box-shadow:0 0 12px #a6ea81}.scene{flex:1;min-height:220px;display:flex;align-items:center;justify-content:center;overflow:hidden}.scene svg{display:block;width:100%;height:100%;max-height:330px}.scene-foot{padding-top:0;font-size:8px;color:#9bb5b0}.officer{display:flex;align-items:center;gap:12px;background:#102a31;padding:12px 20px;min-height:60px}.mini-badge{display:grid;place-items:center;border:1px solid #b6a05b;background:#776d3f42;color:#e8d389;border-radius:35% 35% 48% 48%;width:29px;height:32px;font-size:12px;font-weight:800;flex:none}.officer p{font:italic 13px/1.4 Georgia,serif;flex:1;margin:0}.officer button{flex:none;background:#e6bb70;border-color:#e6bb70;color:#243b35;font-size:12px;font-weight:700}.officer button:disabled{opacity:.55}.officer kbd{margin-left:6px}.dossier{padding:20px 22px;display:flex;flex-direction:column;gap:10px;min-width:0;background:repeating-linear-gradient(transparent,transparent 25px,#e4e4d426px) #faf8ec}.dossier-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.dossier-top .eyebrow{margin:0;font-size:8px}.dossier-top>span:last-child{font-size:9px;font-weight:700;color:#9a603c}h2{font-size:25px;letter-spacing:-.6px;margin:0}.cell-quote{font:italic 13px/1.4 Georgia,serif;color:#7e755f;margin:0;min-height:36px}dl{margin:0;display:grid;gap:12px}dl>div{border-left:2px solid #ccd5bd;padding-left:11px}dt{font-size:9px;text-transform:uppercase;letter-spacing:1.2px;font-weight:700;color:#6c7768;margin-bottom:4px}dd{margin:0;font-size:12px;line-height:1.45}.case-timer{margin-top:auto;font-size:9px;color:#7c826d}.case-timer progress{height:4px;margin-top:7px}.tip{display:flex;gap:15px;align-items:center;background:#f4e6bc;padding:11px 20px;border-top:1px solid #d8c68e;border-bottom:1px solid #d8c68e;min-height:49px;font-size:12px;line-height:1.4}.tip b{font-size:9px;letter-spacing:1px;white-space:nowrap}.decisions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:13px 20px 7px}.decisions button{display:flex;align-items:center;text-align:left;gap:11px;padding:10px 13px;border-radius:7px;min-height:60px}.decisions button>span:nth-child(2){flex:1;font-size:15px;font-weight:700}.decisions small{display:block;font-size:10px;font-weight:400;margin-top:4px}.decisions button>span:last-child{font-size:25px}.decisions [data-action=approve]{background:#e0ecd8;border-color:#a6bf9c}.decisions [data-action=repair]{background:#f1e5be;border-color:#ceba7b}.decisions [data-action=apoptosis]{background:#efdad0;border-color:#d5ac9c}.feedback{font-size:11px;line-height:1.5;min-height:32px;padding:3px 20px 8px;margin:0;color:#637561}.feedback.bad{color:#a24f36}.welcome,.results{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:18px 20px;background:#e8ecdf}.welcome>div,.results>div{flex:1}.welcome b{font-size:10px;letter-spacing:1px}.welcome p,.results p{font-size:12px;line-height:1.5;margin:7px 0 0;max-width:560px}.primary{background:#214d42;color:#fff7e5;border-color:#214d42;font-weight:700}.welcome button,.results button{font-size:12px;white-space:nowrap}.science-note{font-size:10px;color:#7a8170;line-height:1.6;max-width:1000px;margin:13px 0}.about{max-width:1400px;margin:24px auto 0;padding:18px 30px;display:flex;align-items:center;gap:23px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.about-star{font-size:40px;color:#b86444}.about p{font-size:11px;line-height:1.7;margin:0}.device-note{margin-left:auto;font-size:8px;line-height:1.8;letter-spacing:.5px}footer{max-width:1400px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 30px;font-size:10px}footer a{text-decoration:none}dialog{max-width:580px;width:calc(100% - 30px);max-height:88dvh;border:1px solid #aebda8;border-radius:12px;padding:27px;background:var(--paper);color:var(--ink);box-shadow:0 20px 100px #0004}dialog::backdrop{background:#082b32c9;backdrop-filter:blur(4px)}dialog p,dialog li{font-size:13px;line-height:1.65}dialog li{margin-bottom:9px}dialog h3{font-size:16px;margin-top:24px}.pitch-slide{background:#173840;color:#ebeee2;padding:24px;border-radius:8px;margin-top:20px}.pitch-slide>span{font-size:9px;letter-spacing:2px;color:#b6ceaa}.pitch-slide strong{display:block;font:italic 39px/1.1 Georgia,serif;margin-top:20px}.pitch-slide p{color:#c0cba9}.chart{color:#dbbb74;font-size:40px;letter-spacing:15px}.pitch-slide small{font-size:10px}[hidden]{display:none!important}
body:is(.ready,.running){height:100dvh;display:flex;flex-direction:column}body:is(.ready,.running) header{width:100%;padding-top:8px;padding-bottom:8px;flex:none}body:is(.ready,.running) main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;padding-top:12px;padding-bottom:0}body:is(.ready,.running) .heading{margin-bottom:10px;flex:none}body:is(.ready,.running) h1{font-size:32px}body:is(.ready,.running) .game{display:flex;flex-direction:column;flex:1;min-height:0}body:is(.ready,.running) .hud{padding-top:10px;padding-bottom:10px;flex:none}body:is(.ready,.running) .desk{flex:1;min-height:0}body:is(.ready,.running) .field{min-height:0}body:is(.ready,.running) .scene{min-height:0}body:is(.ready,.running) .scene svg{max-height:none}body:is(.ready,.running) .dossier{justify-content:center;gap:10px;padding:14px 20px}body:is(.ready,.running) .case-timer{margin-top:5px}body:is(.ready,.running) .science-note,body:is(.ready,.running) .about{display:none}body:is(.ready,.running) footer{padding-top:9px;padding-bottom:9px;width:100%;font-size:9px;flex:none}body:is(.ready,.running) footer img{width:85px}body:is(.ready,.running) .feedback{min-height:35px}body:is(.ready,.running) .decisions{padding-top:8px}body:is(.ready,.running) .scene-label{padding-top:10px;padding-bottom:8px}body:is(.ready,.running) .scene-foot{padding-bottom:8px}
@media(min-width:900px) and (max-height:730px){body:is(.ready,.running) .dossier{gap:6px}body:is(.ready,.running) dl{gap:8px}body:is(.ready,.running) .cell-quote{min-height:0}body:is(.ready,.running) .officer{padding-top:8px;padding-bottom:8px;min-height:45px}body:is(.ready,.running) .decisions button{min-height:48px;padding-top:6px;padding-bottom:6px}body:is(.ready,.running) .hud strong{font-size:23px}}
@media(max-width:800px){header{padding:10px 15px;gap:15px}header img{width:110px}.home{font-size:10px}nav button{padding:7px;font-size:10px}main{padding:17px 15px 8px}.tagline{display:none}.heading{margin-bottom:15px}.desk{grid-template-columns:minmax(0,1fr) 280px}.dossier{padding:16px;gap:8px}dd{font-size:11px}.scene{min-height:200px}.scene-label{font-size:8px;letter-spacing:.7px;padding:12px}.officer{padding:10px 12px;gap:8px}.officer p{font-size:11px}.officer button{padding:8px}.officer kbd{display:none}.welcome,.results{flex-wrap:wrap}.welcome>div,.results>div{flex-basis:100%}.about{margin-top:14px;padding:15px}.device-note{display:none}footer{padding:15px;font-size:8px}.decisions button{padding:8px;gap:7px}.decisions button>span:nth-child(2){font-size:13px}.decisions button>span:last-child{font-size:18px}body:is(.ready,.running) h1{font-size:29px}body:is(.ready,.running) .dossier{padding:12px 14px}body:is(.ready,.running) .officer{min-height:45px;padding:8px 12px}body:is(.ready,.running) .hud{padding:10px 16px;gap:14px}}
@media(max-width:580px){header{gap:10px;padding:8px 10px;flex-wrap:wrap}header img{width:97px}nav{gap:4px}nav button{font-size:9px;padding:6px}.home{font-size:9px}main{padding:14px 10px 5px}h1{font-size:29px;letter-spacing:-1px}.badge{font-size:11px;padding:6px;margin-left:7px}.eyebrow{font-size:7px;letter-spacing:1.2px}.hud{padding:11px 12px;gap:9px;grid-template-columns:1fr 1fr 1fr 1.25fr}.hud small{font-size:7px;letter-spacing:.5px}.hud strong{font-size:22px}.focus-hud small{display:block}.focus-hud b{margin-left:4px;font-size:8px}.focus-hud progress{margin-top:8px}.desk{display:flex;flex-direction:column}.scene{min-height:0;height:160px;flex:none}.scene svg{height:100%}.scene-label{padding:9px 12px 3px;font-size:7px}.scene-foot{padding:0 12px 6px;font-size:7px;letter-spacing:.5px}.officer{padding:7px 12px;min-height:37px}.mini-badge{width:22px;height:25px;font-size:9px}.officer p{font-size:11px}.officer button{padding:6px 8px;font-size:10px}.dossier{padding:12px;display:grid;grid-template-columns:1fr auto;gap:6px 10px}.dossier-top{grid-column:1/-1}.dossier h2{font-size:20px}.cell-quote{grid-column:1/-1;min-height:0;font-size:11px}.dossier dl{grid-column:1/-1;gap:5px}.dossier dl>div{display:flex;gap:8px;border:0;padding:0}dt{flex:none;width:73px;font-size:8px;margin:0;line-height:1.5;letter-spacing:.4px}dd{font-size:11px;line-height:1.4}.case-timer{grid-column:1/-1;margin:0;font-size:8px}.case-timer progress{margin-top:3px}.tip{padding:8px 12px;gap:9px;font-size:10px;min-height:42px}.tip b{font-size:7px;max-width:53px;white-space:normal}.decisions{padding:8px 8px 4px;gap:5px}.decisions button{min-height:50px;padding:7px 6px;gap:5px}.decisions button>span:nth-child(2){font-size:11px}.decisions small{font-size:8px;line-height:1.25}.decisions button>span:last-child{display:none}.decisions kbd{font-size:8px;padding:2px 3px}.feedback{padding:4px 10px 8px;font-size:10px;min-height:36px}.welcome,.results{padding:12px;gap:7px}.welcome p,.results p{font-size:11px}.welcome button,.results button{font-size:11px;padding:8px}.science-note{font-size:9px}.about{gap:12px}.about p{font-size:10px}.about-star{font-size:29px}footer{padding:10px;gap:8px;flex-wrap:wrap}footer img{width:80px}footer>span:last-child{font-size:8px}body:is(.ready,.running) header{padding:6px 10px}body:is(.ready,.running) main{padding:8px 8px 0}body:is(.ready,.running) h1{font-size:24px}body:is(.ready,.running) .heading{margin-bottom:6px}body:is(.ready,.running) .eyebrow{margin-bottom:4px;font-size:6px}body:is(.ready,.running) .hud{padding:7px 10px;gap:6px}body:is(.ready,.running) .hud strong{font-size:19px;margin-top:2px}body:is(.ready,.running) .desk{flex:1}body:is(.ready,.running) .field{flex:1;min-height:100px}body:is(.ready,.running) .scene{flex:1;height:0}body:is(.ready,.running) .scene svg{min-height:0}body:is(.ready,.running) .scene-label{padding:6px 10px 0}body:is(.ready,.running) .scene-foot{padding:0 10px 4px}body:is(.ready,.running) .officer{padding:5px 10px;min-height:34px}body:is(.ready,.running) .dossier{display:grid;gap:4px;padding:8px 10px;flex:none}body:is(.ready,.running) .dossier h2{font-size:18px;line-height:1.05}body:is(.ready,.running) .cell-quote{display:none}body:is(.ready,.running) .dossier dl{gap:3px}body:is(.ready,.running) dt{font-size:7px;width:65px}body:is(.ready,.running) dd{font-size:10px;line-height:1.3}body:is(.ready,.running) .dossier-top .eyebrow{font-size:7px;margin:0}body:is(.ready,.running) .dossier-top>span:last-child{font-size:8px}body:is(.ready,.running) .case-timer{margin:0;font-size:7px}body:is(.ready,.running) .case-timer span{display:none}body:is(.ready,.running) .case-timer progress{margin:2px 0 0}body:is(.ready,.running) .tip{font-size:9px;min-height:35px;padding:6px 10px}body:is(.ready,.running) .decisions{padding:6px 6px 2px}body:is(.ready,.running) .decisions button{min-height:42px;padding:5px}body:is(.ready,.running) .feedback{font-size:9px;min-height:32px;padding:4px 10px 5px}body:is(.ready,.running) footer{padding:5px 10px}body:is(.ready,.running) footer>span:last-child{display:none}body:is(.ready,.running) footer img{width:65px}}
@media(max-height:480px) and (min-width:581px){header{padding:5px 15px}header img{width:95px}body:is(.ready,.running) main{padding:6px 15px 0}body:is(.ready,.running) .heading{margin-bottom:5px}body:is(.ready,.running) h1{font-size:23px}body:is(.ready,.running) .heading .eyebrow{font-size:6px;margin-bottom:3px}body:is(.ready,.running) .badge{font-size:10px;padding:4px 6px}body:is(.ready,.running) .hud{padding:5px 14px;grid-template-columns:1fr 1fr 1fr 1.3fr}body:is(.ready,.running) .hud strong{font-size:18px;display:inline-block;margin-top:2px}body:is(.ready,.running) .hud small{font-size:7px}body:is(.ready,.running) .desk{grid-template-columns:minmax(0,1fr) 300px}body:is(.ready,.running) .scene-label{padding:5px 12px 0;font-size:7px}body:is(.ready,.running) .scene-foot{padding:0 12px 3px;font-size:6px}body:is(.ready,.running) .officer{min-height:29px;padding:3px 10px}body:is(.ready,.running) .mini-badge{width:20px;height:22px;font-size:9px}body:is(.ready,.running) .officer p{font-size:10px}body:is(.ready,.running) .officer button{font-size:9px;padding:4px 7px}body:is(.ready,.running) .dossier{padding:7px 12px;gap:4px}body:is(.ready,.running) .dossier h2{font-size:17px}body:is(.ready,.running) .cell-quote{display:none}body:is(.ready,.running) .dossier dl{gap:5px}body:is(.ready,.running) dt{font-size:7px;margin-bottom:2px}body:is(.ready,.running) dd{font-size:10px;line-height:1.25}body:is(.ready,.running) .case-timer{margin:0;font-size:7px}body:is(.ready,.running) .case-timer span{display:none}body:is(.ready,.running) .case-timer progress{margin:0}body:is(.ready,.running) .tip{min-height:28px;padding:5px 12px;font-size:10px}body:is(.ready,.running) .tip b{font-size:7px}body:is(.ready,.running) .decisions{padding:5px 10px 2px;gap:6px}body:is(.ready,.running) .decisions button{min-height:35px;padding:4px 8px}body:is(.ready,.running) .decisions button>span:nth-child(2){font-size:11px}body:is(.ready,.running) .decisions small{font-size:8px;margin-top:2px}body:is(.ready,.running) .decisions button>span:last-child{font-size:17px}body:is(.ready,.running) .feedback{font-size:9px;min-height:24px;padding:3px 10px 5px}body:is(.ready,.running) footer{padding:4px 15px}body:is(.ready,.running) footer img{width:65px}body:is(.ready,.running) footer>span:last-child{font-size:7px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Put the launch actions first, directly below the title. */
.welcome{border:1px solid #b6c6ac;border-radius:10px;margin-bottom:16px;padding:16px 20px;gap:14px}
.welcome #start{font-size:17px;padding:14px 25px;min-height:50px;box-shadow:0 3px 0 #132f29}
.welcome #practice{font-size:13px;padding:14px 16px;min-height:50px}
@media(max-width:800px){.welcome>div{order:2}.welcome{gap:10px;padding:14px}}
@media(max-width:580px){.welcome{margin-bottom:12px;padding:12px;gap:9px}.welcome #start{font-size:16px;padding:12px 15px;flex:1}.welcome #practice{font-size:11px;padding:12px 8px;flex:1}.welcome>div{flex-basis:100%}.welcome p{margin-top:4px}.welcome b{font-size:9px}}
/* Give the opening checkpoint a real stage height, independent of SVG intrinsic sizing. */
body:not(.running) .scene{position:relative;flex:none;height:clamp(320px,40vh,440px)}
body:not(.running) .scene svg{position:absolute;inset:0;width:100%;height:100%;max-height:none}
@media(max-width:800px) and (min-width:581px){body:not(.running) .scene{height:300px}}
@media(max-width:580px){body:not(.running) .scene{height:clamp(170px,48vw,260px)}}
/* Keep intrinsic SVG sizing from pushing the control row out of a short viewport. */
body:is(.ready,.running) .desk{grid-template-rows:minmax(0,1fr)}body:is(.ready,.running) .scene{position:relative}body:is(.ready,.running) .scene svg{position:absolute;inset:0;width:100%;height:100%}body:is(.ready,.running) .scene-label,body:is(.ready,.running) .scene-foot,body:is(.ready,.running) .officer{flex-shrink:0}body:is(.ready,.running) .dossier{min-height:0}
@media(min-width:801px) and (max-height:650px){body:is(.ready,.running) .cell-quote{display:none}body:is(.ready,.running) .dossier{gap:6px}body:is(.ready,.running) .dossier dl{gap:7px}body:is(.ready,.running) .dossier h2{font-size:21px}body:is(.ready,.running) .case-timer span{display:none}body:is(.ready,.running) .case-timer progress{margin-top:2px}}
@media(max-width:360px){body:is(.ready,.running) header{flex-wrap:nowrap;gap:6px}body:is(.ready,.running) header img{width:72px}body:is(.ready,.running) .home{font-size:8px;white-space:nowrap}body:is(.ready,.running) nav{gap:3px}body:is(.ready,.running) nav button{font-size:8px;padding:6px 4px}body:is(.ready,.running) h1{font-size:23px}}
/* Reserve more of short desktop windows for the checkpoint itself. */
@media(min-width:801px) and (min-height:481px) and (max-height:760px){
 body:is(.ready,.running) header{padding:5px 24px}body:is(.ready,.running) header img{width:112px}
 body:is(.ready,.running) main{padding-top:7px}body:is(.ready,.running) .heading{margin-bottom:6px}body:is(.ready,.running) h1{font-size:25px}body:is(.ready,.running) .heading .eyebrow{font-size:7px;margin-bottom:4px}body:is(.ready,.running) .badge{font-size:11px;padding:6px 7px}body:is(.ready,.running) .tagline{font-size:11px;line-height:1.3}
 body:is(.ready,.running) .hud{padding:7px 20px}body:is(.ready,.running) .hud strong{font-size:21px;margin-top:2px}body:is(.ready,.running) .hud small{font-size:8px}
 body:is(.ready,.running) .tip{min-height:34px;padding:7px 16px;font-size:11px}body:is(.ready,.running) .decisions button{min-height:45px;padding-top:6px;padding-bottom:6px}body:is(.ready,.running) .decisions{padding-top:6px}body:is(.ready,.running) .feedback{min-height:29px;font-size:10px;padding-bottom:5px}body:is(.ready,.running) footer{padding-top:5px;padding-bottom:5px}body:is(.ready,.running) footer img{width:70px}
}
/* Fit the entire decision board before Start as well as during the shift. */
body.ready .welcome{flex:none;padding:8px 12px;margin-bottom:8px;gap:10px}
body.ready .welcome>div{display:none}
body.ready .welcome #start{min-height:42px;padding:9px 24px;font-size:16px}
body.ready .welcome #practice{min-height:42px;padding:9px 16px;font-size:12px}
body.ready .scene{position:relative;flex:1;min-height:0;height:auto}
body.ready .scene svg{position:absolute;inset:0;width:100%;height:100%;max-height:none}
@media(max-width:580px){body.ready .dossier{display:none}body.ready .field{min-height:0}body.ready .welcome{padding:6px 8px;margin-bottom:6px}body.ready .welcome #start{font-size:15px}body.ready .welcome #practice{font-size:10px}}
@media(min-width:581px) and (max-height:760px){body.ready .dossier{display:none}body.ready .desk{grid-template-columns:minmax(0,1fr)}body.ready .welcome{padding:5px 10px;margin-bottom:5px}body.ready .welcome #start,body.ready .welcome #practice{min-height:36px;padding-top:7px;padding-bottom:7px}}
/* Keep decisions directly below each cell dossier, beside the taller checkpoint. */
.desk{grid-template-columns:minmax(0,1fr) 365px}
.inspection{display:flex;flex-direction:column;min-height:0;min-width:0;background:#faf8ec;border-left:1px solid var(--line)}
.inspection .dossier{flex:1;min-height:0}
body:is(.ready,.running) .inspection .decisions{flex:none;display:grid;grid-template-columns:1fr;padding:10px 16px 14px;gap:7px;margin-top:auto}
body:is(.ready,.running) .inspection .decisions button{min-height:47px;padding:7px 12px}
body:is(.ready,.running) .inspection .decisions button>span:nth-child(2){font-size:14px}
body:is(.ready,.running) .inspection .decisions small{font-size:10px}
body.ready .desk{grid-template-columns:minmax(0,1fr) 365px}
@media(max-width:800px) and (min-width:581px){.desk,body.ready .desk{grid-template-columns:minmax(0,1fr) 300px}}
@media(min-width:581px) and (max-height:480px){body:is(.ready,.running) .desk{grid-template-columns:minmax(0,1fr) 320px}body:is(.ready,.running) .inspection .decisions{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px 7px 7px}body:is(.ready,.running) .inspection .decisions button{min-height:37px;padding:4px;gap:4px}body:is(.ready,.running) .inspection .decisions button>span:nth-child(2){font-size:9px}body:is(.ready,.running) .inspection .decisions small{font-size:7px}body:is(.ready,.running) .inspection .decisions button>span:last-child{display:none}body:is(.ready,.running) .inspection .decisions kbd{font-size:7px;padding:1px 2px}}
@media(max-width:580px){.inspection{flex:none;border:0}body:is(.ready,.running) .inspection .dossier{flex:none}body:is(.ready,.running) .inspection .decisions{grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 6px 7px;gap:5px}body:is(.ready,.running) .inspection .decisions button{min-height:43px;padding:5px;gap:5px}body:is(.ready,.running) .inspection .decisions button>span:nth-child(2){font-size:11px}body:is(.ready,.running) .inspection .decisions small{font-size:8px}}
/* A bright tissue playground, with dark labels and a contrasting officer desk. */
.field{background:radial-gradient(ellipse at 12% 10%,#dcf68e 0,transparent 55%),radial-gradient(ellipse at 100% 90%,#73d9f2 0,transparent 57%),linear-gradient(135deg,#73e5bf,#39cbbb)}
.scene-label{color:#174e4e}.scene-label i{background:#26724e;box-shadow:0 0 12px #f4ff9a}.scene-foot{color:#235a58}
/* Never center an oversized dossier upward into the status bar. */
body:is(.ready,.running) .inspection .dossier{justify-content:safe center}
.inspection .dossier>*,.inspection .dossier dl>div{flex-shrink:0}
@media(min-width:581px) and (min-height:481px) and (max-height:850px){
 body:is(.ready,.running) .inspection .decisions{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:7px 10px 10px}
 body:is(.ready,.running) .inspection .decisions button{min-height:49px;padding:5px;gap:4px}
 body:is(.ready,.running) .inspection .decisions button>span:nth-child(2){font-size:11px}
 body:is(.ready,.running) .inspection .decisions small{font-size:8px;line-height:1.25}
 body:is(.ready,.running) .inspection .decisions button>span:last-child{display:none}
 body:is(.ready,.running) .inspection .decisions kbd{font-size:8px;padding:1px 3px}
}
@media(min-width:581px) and (min-height:481px) and (max-height:650px){
 body:is(.ready,.running) .inspection .dossier{padding:8px 12px;gap:5px}
 body:is(.ready,.running) .inspection .dossier h2{font-size:19px}
 body:is(.ready,.running) .inspection .cell-quote{display:none}
 body:is(.ready,.running) .inspection .dossier dl{gap:6px}
 body:is(.ready,.running) .inspection .dossier dt{font-size:8px;margin-bottom:3px}
 body:is(.ready,.running) .inspection .dossier dd{font-size:11px;line-height:1.3}
 body:is(.ready,.running) .inspection .case-timer{margin-top:2px}
 body:is(.ready,.running) .inspection .case-timer span{display:none}
 body:is(.ready,.running) .inspection .case-timer progress{margin-top:2px}
}
.p53-description{font-size:11px;line-height:1.4;color:#173f36;font-weight:700;margin:5px 0 0;max-width:650px;text-decoration:underline;text-decoration-color:#f2cd54;text-decoration-thickness:.55em;text-underline-offset:-.35em;text-decoration-skip-ink:none}
@media(max-width:580px){.p53-description{font-size:9px;margin-top:4px}body:is(.ready,.running) .heading .eyebrow{display:none}}
@media(min-width:581px) and (max-height:480px){
 .p53-description{font-size:9px;line-height:1.25;margin-top:3px}
 body:is(.ready,.running) .inspection .dossier{padding:5px 10px;gap:3px;justify-content:flex-start}
 body:is(.ready,.running) .inspection .dossier dl{gap:4px}
 body:is(.ready,.running) .inspection .dossier dl>div{display:flex;gap:7px;border:0;padding:0}
 body:is(.ready,.running) .inspection .dossier dt{flex:none;width:58px;font-size:7px;line-height:1.3;margin:0;letter-spacing:.3px}
 body:is(.ready,.running) .inspection .dossier dd{font-size:9px;line-height:1.25}
 body:is(.ready,.running) .inspection .dossier h2{font-size:16px}
 body:is(.ready,.running) .inspection .case-timer{margin-top:1px}
}
@media(min-width:581px) and (max-height:480px){body:is(.ready,.running) .inspection .dossier{padding:3px 10px;gap:2px}body:is(.ready,.running) .inspection .dossier dl{gap:3px}}
/* Gentle cellular motion and decision routes; outcome motion follows active model time. */
.specimen-breathe{transform-origin:344px 150px;animation:cell-breathe 3.8s ease-in-out infinite}
.dna-strand{animation:dna-glimmer 3.2s ease-in-out infinite}.dna-strand:nth-child(odd){animation-delay:-1.6s}
.inspection-sweep{animation:inspection-sweep 4s ease-in-out infinite;pointer-events:none}
.repair-enzyme{animation:repair-enzyme 1.8s ease-in-out infinite}
.scene[data-motion]:not([data-motion="inspect"]) .inspection-sweep{visibility:hidden}
.scene[data-motion="apoptosis"] .specimen-breathe,.scene[data-motion="approve"] .specimen-breathe,.scene[data-motion="repair"] .specimen-breathe{animation:none}
.decision-warning #specimen-motion{filter:drop-shadow(0 0 4px #e57b42)}
.motion-paused *{animation-play-state:paused!important}
@keyframes cell-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
@keyframes dna-glimmer{0%,100%{opacity:.65}50%{opacity:1}}
@keyframes inspection-sweep{0%,100%{transform:translateY(0);opacity:0}15%,85%{opacity:.4}50%{transform:translateY(116px);opacity:.4}}
@keyframes repair-enzyme{0%,100%{transform:translateY(-7px)}50%{transform:translateY(7px)}}
@media(prefers-reduced-motion:reduce){.specimen-breathe,.dna-strand,.inspection-sweep,.repair-enzyme{animation:none!important}.inspection-sweep{display:none}}
