/* Audience options and the opening sequence. Existing labs remain intact. */
:root{font-size:18px;--bar:#09131bf2;--surface:#10232e;--surface-2:#0d1c26;--modal:#020a11e8;--chart-grid:rgba(176,218,228,.16)}
:root[data-theme="light"]{color-scheme:light;--bg:#f6f9fb;--panel:#fff;--ink:#142c3a;--muted:#3d5a69;--quiet:#526d7b;--cyan:#087b83;--amber:#9a4c08;--line:#c3d3dc;--soft:#e8f3f5;--bar:#fffffff5;--surface:#fff;--surface-2:#edf4f7;--modal:#d9e5edee;--chart-grid:#c6d7df}
.topbar,.bottombar{background:var(--bar)}
.top-actions button,.footer-actions button,.top-actions .lab-home{font-size:.86rem;min-height:42px}
.top-actions .lab-home{display:inline-flex;align-items:center}
.brand{font-size:.8rem}.chapter{font-size:.78rem}.deck-controls span{font-size:.84rem}
.short-label{display:none}.theme-toggle{min-width:57px}.hub-tools{display:flex;align-items:center;gap:16px}.hub-tools>a{font-size:.88rem;color:var(--muted)}
.slide h2{font-size:clamp(2.6rem,3.9vw,4.6rem)}
.eyebrow,.diagram-label,.study-year{font-size:.84rem}.source{font-size:.88rem;line-height:1.5}.small-note{font-size:.97rem!important;line-height:1.5}
.slide :is(.pipeline p,.phone-comparison p,.side-note p,.bridge-diagram p,.rat-points p,.fly-detail p){font-size:clamp(1.03rem,1.35vw,1.3rem)}
.slide :is(.pipeline span,.study-year,.film-label,.tracking-stack>span,.event-paper>span,.reference-grid span){font-size:.83rem}
.text-link,.paper-links .primary,.event-paper .text-link{font-size:.98rem}
.clinical-caption,.monitor-copy p,.vns-copy p,.future-copy,.tracking-questions p,.connectome-caption,.invite-copy{font-size:clamp(1.1rem,1.6vw,1.65rem)}
.event-meta>span,.event-by,.event-meta strong{font-size:.93rem}.reference-grid a{font-size:1.04rem}
.cover-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:clamp(28px,4vw,70px);flex:1;align-items:center}
.cover-main{display:flex;flex-direction:column;align-self:stretch;min-width:0}
.cover h1{font-size:clamp(3.7rem,6.4vw,7rem);line-height:1.02;letter-spacing:-.055em}
.cover-sub{font-size:clamp(1.5rem,2.1vw,2.2rem)}.cover-path{font-size:1rem;gap:18px}
.cover-bottom p{font-size:1rem}.cover-bottom p span{font-size:.88rem}
.join-code{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;text-decoration:none;min-width:0;color:var(--ink)}
.join-code img{display:block;width:224px;height:224px;max-width:100%;padding:0;background:#fff;border:8px solid #fff;border-radius:8px;box-shadow:0 12px 40px #0002;image-rendering:pixelated}
.join-code>span{font-size:1rem;font-weight:650;line-height:1.3}.join-code small{font-size:.86rem;color:var(--muted);line-height:1.4}
.opening-lab-header{display:grid;grid-template-columns:minmax(0,1fr) 172px;gap:30px;align-items:start;margin-bottom:18px;flex-shrink:0}
.opening-lab-header h2{margin-bottom:12px}.opening-context{font-size:1.04rem;color:var(--muted);max-width:700px;line-height:1.4;margin-bottom:0}
.experiment-code{gap:7px}.experiment-code img{width:160px;height:160px;border-width:5px}.experiment-code>span{font-size:.83rem}.experiment-code small{font-size:.76rem}
.speed-slide .sat-intro{font-size:1.05rem}.speed-slide .sat-status{font-size:.94rem}.speed-slide .sat-reading{font-size:.97rem}.speed-slide .sat-method{font-size:.88rem}
.sat-hud,.sat-hud strong,.sat-strategy,.sat-strategy span{font-size:.88rem}.sat-instructions{font-size:.85rem}.sat-actions button,.sat-actions .sat-text-button{font-size:.94rem;min-height:44px}
.sat-table-wrap table,.sat-table-wrap th{font-size:.86rem}.sat-chart text{font-size:14px;fill:var(--sat-muted)}.sat-chart .sat-axis-title{font-size:12px;fill:var(--sat-ink)}
.sat-chart .sat-grid{stroke:var(--chart-grid)}.sat-strategy select{max-width:100%}
.pose-controls button,.fly-controls button{font-size:.94rem}.pose-controls label,.pose-readout,.fly-controls label{font-size:.94rem}
.fly-stage>span{font-size:.78rem!important}.fly-stage strong{font-size:1.35rem}.fly-kind{font-size:.8rem!important}.fly-detail .text-link{font-size:.94rem}.feedback-return{font-size:.88rem}
.presenter-layout{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,1.6fr);gap:clamp(30px,5vw,80px);align-items:start;max-width:1500px;flex:1}
.presenter-profile{padding-top:6px}.presenter-photo{display:block;width:190px;height:190px;object-fit:contain;border:2px solid var(--cyan);border-radius:50%;margin-bottom:22px}
.presenter-profile h2{font-size:clamp(2.5rem,3.4vw,3.7rem);margin-bottom:20px;line-height:1.03}
.presenter-profile p{font-size:1.08rem;line-height:1.55;color:var(--muted);margin-bottom:20px}.presenter-profile .presenter-university{font-size:1rem;color:var(--quiet);max-width:300px}
.presenter-story h3{font-size:clamp(1.9rem,2.65vw,3rem);line-height:1.12;letter-spacing:-.04em;margin-bottom:24px}.presenter-story h3 br{display:none}
.presenter-timeline{list-style:none;padding:0;margin:0 0 24px;border-left:2px solid var(--line)}
.presenter-timeline li{display:grid;grid-template-columns:minmax(135px,.65fr) minmax(0,1.35fr);gap:25px;padding:16px 0 16px 28px;border-bottom:1px solid var(--line);position:relative}
.presenter-timeline li:before{content:"";position:absolute;left:-7px;top:24px;width:12px;height:12px;border-radius:50%;background:var(--cyan)}
.presenter-timeline li:last-child:before{background:var(--amber)}.presenter-timeline strong{font-size:1.3rem;color:var(--cyan);display:block;margin-bottom:7px}.presenter-timeline li:last-child strong{color:var(--amber)}
.presenter-timeline span{font-size:.92rem;line-height:1.45;color:var(--quiet)}.presenter-timeline p{font-size:1.06rem;color:var(--muted);line-height:1.45;margin:0;align-self:center}
.presenter-contacts{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px 24px;font-style:normal}
.presenter-contacts a{display:block;text-decoration:none;font-size:.96rem;color:var(--ink);line-height:1.4;overflow-wrap:anywhere}.presenter-contacts a:hover{color:var(--cyan)}
.presenter-contacts span{display:block;font-size:.82rem;color:var(--quiet);margin-bottom:4px}
.modal{background:var(--modal)}.modal-inner{background:var(--surface)}.share-url{background:var(--surface-2);color:var(--cyan)!important}.contents-list button{font-size:1rem}.contents-list button span{font-size:.85rem}
.bridge-diagram>div{background:var(--surface-2)}.research-film{background:linear-gradient(140deg,var(--panel),var(--surface-2));border-color:var(--line)}.mission-list>a{background:var(--panel)}
.fly-stage{background:var(--surface-2);color:var(--muted);border-color:var(--line)}.fly-stage.fly-selected{background:var(--soft);color:var(--cyan);border-color:var(--cyan)}
.fly-detail{background:linear-gradient(115deg,var(--panel),var(--surface-2));border-color:var(--line)}.fly-detail h3{color:var(--ink)}
.pose-controls button,.fly-controls button{background:var(--surface-2);color:var(--ink);border-color:var(--line)}.pose-controls button:hover,.fly-controls button:hover{background:var(--soft)}
.pose-controls label,.fly-controls label,.fly-detail p{color:var(--muted)}.pose-controls output,.fly-kind,.fly-detail a{color:var(--cyan)}.pose-controls button[aria-pressed=true]{background:var(--cyan);color:var(--bg);border-color:var(--cyan)}
[data-theme="light"] .pose-canvas{background:#f4f9fb;border-color:var(--line)}
[data-theme="light"] .join-view{background:radial-gradient(ellipse at 100% 0%,#d8ecf1,transparent 70%),var(--bg)}
[data-theme="light"] .sat-lab{--sat-cyan:#087d89;--sat-amber:#9a4d09;--sat-green:#397b45;--sat-ink:#142c3a;--sat-muted:#3d5a69;--sat-line:#bfd0db}
[data-theme="light"] .sat-arena{background:radial-gradient(ellipse at 50% 80%,#def0f3,transparent 75%),#f4fafc}
[data-theme="light"] .sat-target{border-color:#07515b;box-shadow:0 0 0 5px #087d8914,0 0 25px #087d8924}
[data-theme="light"] .sat-target.anchor{background:#a65b0c;border-color:#713900;box-shadow:0 0 0 5px #a65b0c14}
[data-theme="light"] .sat-ghost{border-color:#6eabb4;background:#087d8909}[data-theme="light"] .sat-position{color:#4c6b79}
[data-theme="light"] .sat-centerline{border-color:#b6ced8}[data-theme="light"] .sat-miss{background:#fff0da}
[data-theme="light"] .sat-strategy select{background:#fff}[data-theme="light"] .sat-instructions{color:var(--muted)}
[data-theme="light"] .sat-actions .sat-primary{color:#fff}[data-theme="light"] .sat-actions .sat-primary:hover{background:#086a73}
[data-theme="light"] .sat-table-wrap th,[data-theme="light"] .sat-table-wrap td{border-color:var(--line)}
[data-theme="light"] .primary{color:#fff}[data-theme="light"] .primary:hover{background:#086a73;color:#fff}
[data-theme="light"] .cover{background:radial-gradient(ellipse at 85% 48%,#d9edf1,transparent 52%)}
[data-theme="light"] .brand img{filter:brightness(0) saturate(100%);opacity:.85}
[data-theme="light"] .fly-loop [data-flow-step]{opacity:1}
[data-theme="light"] .visit-window{color:#fff}
[data-theme="light"] #satChart circle[fill="#70e2ec"]{fill:var(--sat-cyan);opacity:1}
[data-theme="light"] #satChart circle[fill="#ffbc74"]{fill:var(--sat-amber);opacity:1}
[data-theme="light"] #satChart circle[fill="#a5e0ba"]{fill:var(--sat-green);opacity:1}
[data-theme="light"] #satChart path[stroke="#70e2ec"]{stroke:var(--sat-cyan)}
[data-theme="light"] #satChart path[stroke="#ffbc74"]{stroke:var(--sat-amber)}
[data-theme="light"] #satChart path[stroke="#a5e0ba"]{stroke:var(--sat-green)}
[data-theme="light"] .sat-swatch[style*="#70e2ec"]{background:var(--sat-cyan)!important}
[data-theme="light"] .sat-swatch[style*="#ffbc74"]{background:var(--sat-amber)!important}
[data-theme="light"] .sat-swatch[style*="#a5e0ba"]{background:var(--sat-green)!important}
@media(max-height:900px) and (min-width:801px){
 .slide{padding-top:22px}.slide h2{font-size:clamp(2.5rem,3.6vw,3.8rem)}.source{font-size:.85rem}.eyebrow{margin-bottom:10px}
 .cover h1{font-size:clamp(3.7rem,6vw,6.7rem)}.cover-sub{font-size:1.7rem}.cover-path{font-size:1rem}.cover-bottom{padding-top:16px}
 .opening-lab-header{margin-bottom:15px;grid-template-columns:minmax(0,1fr) 154px}.opening-lab-header h2{font-size:2.6rem;line-height:1.04;margin-bottom:10px}.opening-lab-header h2 br{display:none}.opening-context{font-size:1rem;max-width:760px}
 .experiment-code img{width:144px;height:144px}.experiment-code small{display:none}.speed-slide .sat-intro{display:none}.speed-slide .sat-arena{height:185px}
 .speed-slide .sat-chart{max-width:460px;min-height:170px}.speed-slide .sat-chart-empty{height:170px}
 .presenter-photo{width:160px;height:160px;margin-bottom:18px}.presenter-profile h2{font-size:2.55rem;margin-bottom:16px}
 .presenter-profile p{font-size:1rem;margin-bottom:18px}.presenter-story h3{font-size:2rem;margin-bottom:14px}.presenter-timeline{margin-bottom:18px}.presenter-timeline li{padding-top:12px;padding-bottom:12px}
 .presenter-timeline p{font-size:1rem}.presenter-timeline span{font-size:.88rem}.presenter-contacts{gap:12px 20px}
}
@media(max-width:1000px){.cover-layout{grid-template-columns:minmax(0,1fr) 200px}.cover-code img{width:190px;height:190px}.presenter-layout{gap:30px;grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr)}.presenter-timeline li{grid-template-columns:1fr;gap:9px}.presenter-contacts{grid-template-columns:1fr}.chapter{display:none}}
@media(max-width:800px){.cover-layout{grid-template-columns:1fr;gap:32px}.cover-main{min-height:0}.cover-code{align-items:flex-start;text-align:left}.cover-code img{width:180px;height:180px}.cover-bottom{margin-top:20px}.presenter-layout{grid-template-columns:1fr}.presenter-profile{display:grid;grid-template-columns:140px minmax(0,1fr);gap:0 22px;align-items:start}.presenter-photo{grid-row:span 4;width:140px;height:140px;margin:0}.presenter-profile h2{font-size:2.3rem}.presenter-profile h2 br{display:none}.presenter-profile p{font-size:1rem;margin-bottom:13px}.presenter-profile .presenter-university{font-size:.92rem}.presenter-profile .text-link{grid-column:2}.presenter-timeline li{grid-template-columns:minmax(110px,.7fr) minmax(0,1.3fr)}.presenter-contacts{grid-template-columns:1fr 1fr}.slide h2{font-size:2.65rem}.opening-lab-header{grid-template-columns:minmax(0,1fr) 140px;gap:20px}.experiment-code img{width:132px;height:132px}.experiment-code small{display:none}.opening-context{font-size:1rem}.speed-slide .sat-layout{gap:28px}}
@media(max-width:600px){
 :root{font-size:18px}.js .deck-view{grid-template-rows:64px minmax(0,1fr) 62px}.topbar{height:64px;gap:7px;padding:0 12px}.bottombar{height:62px;padding:0 12px;gap:8px}
 .top-actions{gap:4px;margin-left:auto}.top-actions button,.top-actions .lab-home{font-size:.78rem;min-height:42px;padding:7px 8px}.top-actions .lab-home{padding:7px 2px;margin:0}.theme-toggle{min-width:49px}.full-label{display:none}.short-label{display:inline}
 .deck-controls span{font-size:.78rem;min-width:57px}.footer-actions button{font-size:.78rem;min-height:40px}.deck-controls button{min-height:40px;padding:7px 10px}.progress{width:8%;min-width:20px}.brand img{width:23px;height:23px}
 .slide{padding:25px 20px 25px}.slide h2{font-size:2.5rem;line-height:1.08}.eyebrow,.diagram-label,.study-year{font-size:.79rem;line-height:1.5;letter-spacing:.07em}.source{font-size:.84rem;line-height:1.5}.small-note{font-size:.94rem!important}
 .cover h1{font-size:clamp(3.2rem,14.5vw,4.6rem);line-height:1.04;margin-top:17px}.cover-sub{font-size:1.5rem}.cover-path{font-size:.94rem;gap:12px}.cover-bottom p{font-size:1rem}.cover-bottom p span{font-size:.87rem}.primary{font-size:.98rem;min-height:46px}
 .cover-code{margin-bottom:10px}.cover-code>span{font-size:1rem}.cover-code small{font-size:.88rem}.join-code img{width:180px;height:180px}
 .opening-lab-header{grid-template-columns:1fr;gap:20px;margin-bottom:24px}.opening-lab-header h2{font-size:2.5rem;margin-bottom:14px}.opening-lab-header h2 br{display:none}.opening-context{font-size:1rem}.experiment-code{display:grid;grid-template-columns:112px 1fr;gap:6px 16px;text-align:left;align-items:center;justify-items:start}.experiment-code img{width:112px;height:112px;grid-row:span 2;border-width:3px}.experiment-code>span{font-size:.98rem}.experiment-code small{display:block;font-size:.87rem}
 .speed-slide .sat-intro{font-size:1rem}.sat-hud,.sat-hud strong,.sat-strategy,.sat-strategy span{font-size:.85rem}.sat-instructions{font-size:.85rem}.sat-actions button,.sat-actions .sat-text-button{font-size:.96rem}.speed-slide .sat-status{font-size:.94rem}.speed-slide .sat-reading{font-size:.96rem}.speed-slide .sat-method{font-size:.89rem}.sat-table-wrap table,.sat-table-wrap th{font-size:.82rem}.speed-slide .sat-arena{height:210px}
 .slide :is(.pipeline p,.phone-comparison p,.side-note p,.bridge-diagram p,.rat-points p,.fly-detail p){font-size:1.04rem;line-height:1.5}.slide :is(.pipeline span,.study-year,.film-label,.tracking-stack>span,.event-paper>span,.reference-grid span){font-size:.8rem;line-height:1.5}
 .slide :is(.pipeline h3,.phone-comparison h3,.bridge-diagram h3,.rat-points h3){font-size:1.38rem}.phone-comparison .text-link,.text-link{font-size:.96rem}.bridge-diagram p{font-size:1rem}.fly-stage strong{font-size:1.16rem}.fly-stage>span{font-size:.74rem!important}.fly-kind{font-size:.78rem!important}.fly-controls button,.pose-controls button,.pose-controls label,.fly-controls label{font-size:.94rem}.feedback-return{font-size:.86rem}
 .event-meta>span,.event-by,.event-meta strong{font-size:.93rem}.reference-grid a{font-size:1.05rem}.reference-grid span{font-size:.82rem}.contents-list button{font-size:1.05rem}.modal-inner{padding:35px 23px}.share-url{font-size:1rem}.hub-tools{gap:8px}.hub-tools>a{font-size:.8rem}.hub-tools button{font-size:.8rem}.join-intro{font-size:1.08rem}.mission-list strong{font-size:1.34rem}.mission-list small,.privacy-note{font-size:.98rem}.mission-list span{font-size:.78rem}
 .presenter-profile{grid-template-columns:95px minmax(0,1fr);gap:0 16px}.presenter-photo{width:95px;height:95px}.presenter-profile h2{font-size:2.1rem;margin-bottom:15px}.presenter-profile p,.presenter-profile .presenter-university{font-size:.98rem}.presenter-profile .text-link{grid-column:1/-1;margin-top:12px}.presenter-story h3{font-size:1.95rem}.presenter-timeline li{grid-template-columns:1fr;gap:9px;padding-left:23px}.presenter-timeline p{font-size:1.04rem}.presenter-timeline span{font-size:.94rem}.presenter-timeline strong{font-size:1.25rem}.presenter-contacts{grid-template-columns:1fr;gap:20px}.presenter-contacts a{font-size:1.02rem}.presenter-contacts span{font-size:.88rem}
 .reading .topbar{position:sticky;top:0}.reading .slide,.reading .slide.active{scroll-margin-top:64px}.reading .opening-lab-header{grid-template-columns:1fr}
}
@media print{.theme-toggle{display:none!important}.cover-layout,.presenter-layout{break-inside:avoid}.join-code img{box-shadow:none}}
