:root { color-scheme:dark; font-family:'Segoe UI',Arial,sans-serif; font-synthesis:none; color:#e5e9ef; background:#07090c; --dock-height:155px; }
* { box-sizing:border-box; }
html,body { margin:0; width:100%; height:100%; overflow:clip; overscroll-behavior:none; touch-action:none; }
button { font:inherit; -webkit-tap-highlight-color:transparent; }
[hidden] { display:none!important; }
#workspace { position:fixed; inset:0; height:100dvh; overflow:hidden; }
#workspace::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(#07090c80,transparent 25%,transparent 68%,#07090ce0); }
.workspace-title,.workspace-caption { z-index:1; }
.workspace-canvas { display:block; width:100%; height:100%; outline:none; }
.workspace-title { position:absolute; top:max(92px,12dvh); left:10%; right:10%; margin:0; text-align:center; font-size:clamp(20px,2.4vw,32px); font-weight:350; letter-spacing:-.7px; line-height:1.25; text-wrap:balance; pointer-events:none; }
.workspace-caption { position:absolute; bottom:calc(var(--dock-height) + 16px); left:10%; right:10%; margin:0; text-align:center; color:#adbcc9; font-size:13px; line-height:1.5; pointer-events:none; }
.app-shell { position:relative; height:100dvh; pointer-events:none; }
.masthead { position:absolute; z-index:2; left:5%; right:5%; top:0; height:76px; display:flex; align-items:center; justify-content:space-between; }
.wordmark { display:flex; align-items:center; font-size:23px; font-weight:450; letter-spacing:-1.2px; }
.brand-period { color:#8997aa; }
.brand-symbol { position:relative; width:22px; height:22px; margin-right:12px; }
.brand-symbol i { position:absolute; width:1px; height:21px; left:11px; top:1px; background:linear-gradient(transparent,#b7c7d7,transparent); }
.brand-symbol i:nth-child(2) { transform:rotate(45deg); }
.brand-symbol i:nth-child(3) { transform:rotate(90deg); }
.brand-symbol i:nth-child(4) { transform:rotate(135deg); }
.presence { display:flex; gap:9px; align-items:center; color:#9ca7b5; font-size:10px; letter-spacing:.3px; }
.presence-dot { width:4px; height:4px; border-radius:50%; background:#b3c8d9; box-shadow:0 0 10px #95c6ef70; }
.offline .presence-dot { background:#cba875; }
main,.canvas { position:absolute; inset:0; }
.canvas { display:flex; flex-direction:column; padding:76px 5% calc(var(--dock-height) + 52px); }
.canvas-topline { display:flex; justify-content:space-between; align-items:center; font-size:9px; color:#7d8b9b; letter-spacing:1.5px; height:30px; flex:none; }
.canvas-marker { display:none; }
.screen-content { position:relative; min-height:0; flex:1; display:flex; align-items:center; justify-content:center; overflow:clip; }
.welcome { text-align:center; margin-top:-45px; }
body:not([data-scene=idle]) .welcome,#workspace[data-active=true] ~ .app-shell .welcome { display:none; }
.welcome h1 { font-size:clamp(36px,5.4vw,66px); line-height:1.1; letter-spacing:-2px; font-weight:300; margin:18px 0; }
.welcome p { color:#92a0af; font-size:14px; line-height:1.6; }
.welcome .welcome-eyebrow { color:#718494; font-size:9px; letter-spacing:2.3px; }
.canvas-bottomline { position:absolute; bottom:calc(var(--dock-height) - 6px); left:6%; right:6%; display:flex; justify-content:center; gap:16px; color:#7f91a2; font-size:10px; line-height:1.4; text-align:center; }
#workspace[data-active=true] ~ .app-shell .canvas-bottomline { opacity:0; }
body[data-scene=idle] .canvas-bottomline { visibility:hidden; }
.companion { position:absolute; bottom:max(12px,env(safe-area-inset-bottom)); left:8%; right:8%; display:flex; align-items:center; flex-direction:column; text-align:center; }
.orb-wrap { position:relative; width:70px; height:70px; flex:none; }
.orb { position:relative; display:block; width:100%; height:100%; padding:0; border:0; border-radius:50%; background:radial-gradient(circle,#18304430,transparent 70%); outline:none; cursor:pointer; pointer-events:auto; }
.orb:focus-visible { outline:1px solid #b3cee9; outline-offset:5px; }
.orb:hover { filter:brightness(1.2); }
.orb-surface,.orb-glint,.orb-voice,.orb-aura,.orb-connection,.atmosphere { display:none; }
.companion-copy p { margin:5px 0 0; font-size:13px; font-weight:400; color:#c7d0d9; }
.companion-copy p:last-child { margin-top:6px; font-size:11px; color:#8c9bab; }
.request-status { min-height:14px; margin:7px 0 0; font-size:11px; color:#b6c8d7; line-height:1.4; max-width:680px; }
.request-status.error { color:#edbba3; }
.fit-measure { position:absolute; inset:0; visibility:hidden; overflow:clip; pointer-events:none; contain:layout style; }
.lesson { flex:none; width:min(100%,850px); padding:25px 30px; background:#0c131de8; border:1px solid #a2bcc21a; border-radius:18px; overflow-wrap:anywhere; }
.lesson.measuring { margin:0 auto; }
.lesson h1 { margin:0; font-size:clamp(23px,3vw,36px); font-weight:350; line-height:1.2; letter-spacing:-.7px; }
.lesson h2 { margin:0; font-size:19px; line-height:1.4; font-weight:400; }
.lesson > * + * { margin-top:17px; }
.scene-copy,.scene-note { margin-bottom:0; font-size:17px; line-height:1.65; color:#c2ced9; white-space:pre-wrap; }
.scene-note { border-left:1px solid #91b6cb65; padding-left:15px; font-size:15px; }
.quiz-choice { display:flex; gap:16px; padding:12px 16px; border:1px solid #a6bec32e; border-radius:10px; }
.quiz-choice b { font-size:13px; line-height:1.8; color:#91b6cb; }
.quiz-choice p { margin:0; font-size:17px; line-height:1.6; white-space:pre-wrap; }
.quiz-choice.correct { border-color:#86bea0; }
.quiz-choice.incorrect { border-color:#ca977b; }
.video-frame { width:100%; height:100%; border:0; pointer-events:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:640px) {
 .masthead { height:66px; } .wordmark { font-size:21px; } .presence { font-size:9px; }
 .canvas { padding:66px 5% calc(var(--dock-height) + 50px); } .canvas-topline { font-size:8px; }
 .workspace-title { top:104px; left:8%; right:8%; font-size:22px; }
 .workspace-caption { font-size:11px; left:8%; right:8%; }
 .lesson { padding:18px; } .scene-copy,.quiz-choice p { font-size:16px; }
}
@media(max-height:520px) {
 :root { --dock-height:94px; } .masthead { height:42px; } .canvas { padding-top:42px; padding-bottom:calc(var(--dock-height) + 20px); }
 .canvas-topline { height:20px; } .workspace-title { top:58px; font-size:18px; }
 .workspace-caption { bottom:calc(var(--dock-height) + 6px); font-size:10px; }
 .orb-wrap { width:44px; height:44px; } .companion-copy p { font-size:11px; } .companion-copy p:last-child { display:none; }
 .request-status { margin-top:3px; font-size:10px; } .companion { bottom:5px; }
 .welcome { margin-top:0; } .welcome h1 { font-size:32px; margin:8px 0; } .welcome .welcome-eyebrow { font-size:8px; }
 .lesson { padding:10px 18px; } .lesson h1 { font-size:23px; } .scene-copy { font-size:15px; }
 .lesson > * + * { margin-top:10px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }

.family-link{pointer-events:auto;color:#b4d7c3;font-size:12px;text-decoration:none;border:1px solid #3a5348;border-radius:20px;padding:8px 12px;white-space:nowrap}
