/* Six 2.0: one clear task, one answer area, teaching on a separate surface. */
:root{--paper:#f4f5fb;--card:#fff;--ink:#202b49;--muted:#59627b;--line:#dce0ee;--teal:#4655af;--accent:#dafa8a;--orange:#a4442b;--shadow:0 8px 30px #222d6310}
body{background:radial-gradient(ellipse at 85% 0,#ecebfc,transparent 55%),var(--paper)}
button{transition:background .16s,box-shadow .16s,transform .16s}
button:active:not(:disabled){transform:translateY(1px)}
.button{background:#4453ab;color:white;border-radius:13px;font-weight:700}
.button.secondary{background:#fff;color:var(--ink);border-color:#d5daeb}
.button.lime{background:#dcfa91;color:#222e45;box-shadow:0 5px 0 #12193833}
.button:hover:not(:disabled){filter:brightness(.97);box-shadow:0 5px 15px #26336118}
.button.danger{background:#a52c35;color:white}
.sidebar{background:#ffffff7a;border-color:#e2e5f0;padding-left:18px;padding-right:18px}
.nav-item.active{background:#e7eafd;color:#303e91;box-shadow:inset 3px 0 #6471cf}
.nav-item:not(.active):hover{background:#eceffb}
.nav-item{font-size:14px;gap:13px}
.sidebar-note{color:#6b738b}
.topbar{min-height:84px}
.quiet-chip{background:#fff;border-color:var(--line);font-size:12px}
.welcome{margin:18px 0 25px;align-items:center}
.welcome .eyebrow{font-size:10px;letter-spacing:1.7px;color:#6c7096}
.welcome h1{font-size:37px;letter-spacing:-1.1px;margin-top:9px;font-weight:730}
.hero.new-hero{background:linear-gradient(115deg,#26264c,#353963 66%,#42426e);display:grid;grid-template-columns:1fr 1.15fr;min-height:358px;border:1px solid #303558;border-radius:27px;box-shadow:0 15px 30px #29345a1a;overflow:hidden;position:relative}
.new-hero .hero-copy{padding:30px 0 28px 34px;position:relative;z-index:1}
.new-hero h2{font-size:39px;line-height:1.07;letter-spacing:-1.3px;color:#fff;font-weight:720;margin:18px 0 16px}
.new-hero p{color:#e0e1f3;font-size:14px;max-width:320px;line-height:1.65}
.hero-pill{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;background:#ffffff12;border:1px solid #ffffff22;border-radius:30px;color:#e9f5bc;font-size:10px;font-weight:650;letter-spacing:.3px}
.hero-pill .icon{width:14px;height:14px}
.new-hero .button{margin-top:20px;min-height:49px;font-size:15px;padding:12px 20px}
.new-hero .hero-footer{font-size:11px;color:#c6cbe5;margin-top:14px;max-width:300px}
.new-hero .hero-art{margin:0;position:relative;align-self:stretch;display:flex;align-items:center;justify-content:center;opacity:1}
.new-hero .hero-art svg{width:125%;max-width:none;min-width:0;max-height:none;height:auto;margin-left:-55px}
.scene-tag{position:absolute;bottom:30px;right:35px;font-size:10px;color:#c7cbed;letter-spacing:.5px}
.scene-island{animation:float-island 7s ease-in-out infinite}
@keyframes float-island{50%{transform:translateY(-7px)}}
.section-top h2{font-size:22px;letter-spacing:-.5px}
.new-quick-grid{gap:14px}
.new-quick-grid .quick-card{border:1px solid #e0e3f1;border-radius:20px;background:#fff;min-height:207px;padding:23px;box-shadow:0 3px 0 #e9eaf4;position:relative;text-align:left}
.quick-card:hover{border-color:#aeb8ee;background:#fbfcff;box-shadow:0 8px 18px #28356310}
.quick-number{position:absolute;right:21px;top:18px;color:#a2a9c5;font-size:12px;font-variant-numeric:tabular-nums}
.new-quick-grid .quick-card .tile-icon{width:45px;height:45px;border-radius:14px;margin-bottom:18px}
.new-quick-grid .quick-card h3{font-size:17px;letter-spacing:-.3px;margin-bottom:8px}
.new-quick-grid .quick-card p{font-size:12px;line-height:1.6;padding-right:12px}
.new-quick-grid .quick-card .arrow{bottom:21px;right:19px;top:auto;width:20px;height:20px}
.reward-strip{margin-top:22px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:13px 21px 13px 10px;display:flex;align-items:center;gap:17px;text-align:left;width:100%}
.reward-mini{width:105px;height:82px;flex-shrink:0;background:#35375f;border-radius:12px;overflow:hidden}
.reward-mini svg{width:100%;height:100%}
.reward-strip>b,.reward-strip b{display:block;font-size:16px;letter-spacing:-.3px}
.reward-strip small{font-size:12px;display:block;color:var(--muted);margin:4px 0 10px}
.reward-strip>.icon{margin-left:auto}
.reward-dots{display:flex;gap:5px}
.reward-dots i{width:23px;height:5px;border-radius:5px;background:#e2e6f4}
.reward-dots i.filled{background:#7569c7}
.lab-banner{background:linear-gradient(110deg,#ebebff,#f4edff);border-color:#d8d8ef}
.topic-card,.skill-row,.paper-card{background:#fff;border-color:var(--line);box-shadow:0 3px 0 #e9eaf4}
.page-intro{margin-bottom:28px}
.page-intro h1{font-size:40px;margin:12px 0 15px;letter-spacing:-1.3px}
.page-intro p{max-width:680px;font-size:15px;line-height:1.7}
.challenge-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.challenge-card{padding:0!important;overflow:hidden;box-shadow:0 5px 0 #e7e8f3;text-align:left;background:#fff;min-width:0}
.challenge-art{height:163px;background:var(--challenge-colour);position:relative;display:grid;place-items:center;overflow:hidden}
.challenge-art:before,.challenge-art:after{content:"";position:absolute;border:1px solid currentColor;opacity:.08;transform:rotate(-24deg);width:240px;height:86px;border-radius:50%}
.challenge-art:after{transform:rotate(24deg);width:200px;height:118px}
.challenge-object{width:83px;height:83px;border-radius:24px;background:#ffffffca;display:grid;place-items:center;transform:rotate(-9deg);box-shadow:9px 10px 0 #32366e13,0 17px 29px #36366610;z-index:1;border:1px solid #ffffff}
.challenge-object .icon{width:42px;height:42px;stroke-width:1.3}
.challenge-orbit{position:absolute;width:19px;height:19px;border:5px solid #fff9;border-radius:50%;top:28px;right:60px}
.challenge-index{position:absolute;bottom:14px;left:21px;font-size:11px;letter-spacing:2px;opacity:.5}
.challenge-copy{padding:23px}
.challenge-copy .eyebrow{font-size:9px;letter-spacing:1px;color:#6a6990}
.challenge-copy h3{font-size:22px;margin:8px 0 10px;letter-spacing:-.6px}
.challenge-copy p{font-size:13px;line-height:1.6;min-height:42px}
.challenge-start{font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:space-between;margin-top:18px;color:#4856a4}
.challenge-start .icon{width:18px;height:18px}
.task-list{list-style:none;padding:0;display:grid;gap:8px;margin:15px 0}
.task-list li{display:flex;align-items:center;gap:14px;padding:12px;background:#f1f3fc;border-radius:12px;font-size:15px}
.task-list li span{color:#6b71a7;font-size:12px;font-weight:650}
.brief-icon{width:64px;height:64px;border-radius:18px;display:grid;place-items:center}
.brief-icon .icon{width:34px;height:34px}
.brief-note{color:#5b6480!important;font-size:13px!important}

/* The learning surface never grows into a long page of stacked controls. */
body.learning{overflow:hidden;background:#f0f2fa}
.learning #app{height:var(--learning-height,100dvh)}
.player{height:100%;width:100%;max-width:1360px;margin:auto;padding:max(10px,env(safe-area-inset-top)) 28px max(10px,env(safe-area-inset-bottom));display:grid;grid-template-rows:48px 5px minmax(0,1fr)48px;gap:12px;overflow:hidden}
.player-top{display:flex;align-items:center;gap:14px;justify-content:space-between;margin:0;min-width:0}
.exit-practice{display:flex;align-items:center;gap:8px;min-height:44px;background:transparent;font-size:13px;font-weight:650;padding:6px 8px;color:#485174}
.exit-practice .icon{width:20px;height:20px}
.player-session-title{font-size:12px;color:#626c86;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:auto}
.player-top .actions{display:flex;align-items:center;gap:8px}
.screen-control{display:flex;align-items:center;gap:7px;min-height:42px;padding:7px 12px;background:#fff;border:1px solid #dce1f0;border-radius:11px;font-size:12px;font-weight:650;white-space:nowrap}
.screen-control .icon{width:18px;height:18px}
.player .progress-track{height:5px;margin:0;background:#dfe4f4;border-radius:8px}
.player .progress-track>div{background:linear-gradient(90deg,#8c7eda,#5165bc);border-radius:8px}
.player>main{min-height:0;display:grid;grid-template-rows:30px minmax(0,1fr);gap:11px;outline:none}
.player-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0;font-size:12px;color:#5e6681;min-width:0}
.player-heading>span:first-child{display:flex;align-items:center;gap:8px;min-width:0}
.player-heading b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-heading .icon{width:17px;height:17px}
.question-count{white-space:nowrap;font-size:14px;color:#25314f;font-weight:700;flex-shrink:0}
.question-count span{font-weight:500;color:#6a7189}
.question-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);height:100%;min-height:0;gap:20px;align-items:stretch}
.question-card{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:auto;background:#fff;border:1px solid #dfe4f0;border-radius:23px;padding:28px;box-shadow:0 4px 0 #e4e8f2;scrollbar-width:thin;overscroll-behavior:contain}
.question-copy{flex-shrink:0}
.question-card h1{font-size:clamp(24px,2.45vw,34px);letter-spacing:-.65px;line-height:1.35;font-weight:690;overflow-wrap:break-word;color:#24304f}
.question-expression{font-size:clamp(36px,4.6vw,60px);line-height:1.35;margin:24px 0;padding:14px 20px;background:#f3f4fd;border-radius:17px;color:#354280;letter-spacing:-.5px}
.question-visual{margin-top:24px;display:flex;flex-direction:column;flex:1;min-height:165px;background:linear-gradient(130deg,#f5f6ff,#fafbff);border:1px solid #e7e9f6;border-radius:16px;padding:8px 14px 12px;position:relative;overflow:hidden}
.visual-label{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:#606e9c;padding-left:2px}
.visual-label .link-btn{min-height:36px;padding:4px 7px;font-size:11px;text-transform:none;letter-spacing:0;color:#45569a}
.visual-label .icon{width:15px;height:15px}
.question-visual .model{margin:0;padding:0;min-height:0;flex:1;display:flex;flex-direction:column;justify-content:center;border:0;border-radius:0;background:transparent}
.question-visual .model svg{display:block;flex:1;min-height:0;height:100%;width:100%;max-height:none}
.question-visual .model figcaption,.question-visual .model-expand,.question-visual .data-table{display:none}
.question-visual .model-table-wrap{overflow:auto;max-height:100%}
.question-visual .model-table{font-size:16px;background:white}
.model-invite{margin-top:auto;padding:18px 0 0;display:flex;align-items:center;gap:13px;background:none;text-align:left;color:#58628d;min-height:68px}
.model-invite>.icon:first-child{width:35px;height:35px;padding:7px;background:#eef0ff;border-radius:10px}
.model-invite>span{flex:1}
.model-invite b{font-size:13px;display:block}
.model-invite small{font-size:12px;display:block;color:#717a92}
.model-invite>.icon:last-child{width:17px;height:17px}
.answer-panel{margin:0;position:static;min-height:0;min-width:0;display:flex;flex-direction:column;padding:23px;border-radius:23px;border:1px solid #d9dff0;box-shadow:0 4px 0 #e4e8f2;background:#fff;overflow:hidden}
.answer-panel-content{overflow:auto;min-height:0;scrollbar-width:thin;overscroll-behavior:contain;padding:3px}
.answer-panel h2{font-size:17px;letter-spacing:-.2px;margin:0 0 14px;line-height:1.45}
.answer-input{height:57px;border:1.5px solid #a9b3d5;border-radius:12px;background:#fbfcff;font-size:26px;padding:10px;line-height:1.2}
.answer-input::placeholder{font-size:17px;color:#818ba5;font-weight:400}
.answer-panel label.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;white-space:nowrap}
.answer-input-wrap{gap:8px;position:relative}
.answer-input-wrap .unit{font-size:17px}
.pad-toggle{width:40px;min-width:40px;min-height:45px;height:45px;background:#eef1fc;border-radius:9px;color:#65749f}
.pad-toggle .icon{width:21px;height:21px}
.input-help{font-size:11px;margin:8px 0 11px;line-height:1.5}
.answer-action{margin-top:auto;padding-top:18px;flex-shrink:0}
.answer-action .button.full{margin:0;min-height:51px;justify-content:center}
.answer-action>.link-btn{margin:8px auto 0;display:flex;justify-content:center;min-height:38px}
.choice-list{gap:8px;grid-template-columns:1fr}
.choice{font-size:15px;line-height:1.45;min-height:47px;padding:10px 12px;background:#fff;border-color:#d5dced;border-radius:11px;overflow-wrap:normal}
.choice .choice-dot{width:18px;height:18px;border-color:#99a6ce}
.choice.selected{background:#eaf0ff;border-color:#6b7ac0;box-shadow:0 0 0 1px #6b7ac0}
.choice.selected .choice-dot{border-color:#586bb8;background:#fff}
.your-first-answer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;background:#eff2fd;padding:0 10px;border-radius:10px;margin-bottom:12px}
.your-first-answer .link-btn{min-height:37px}
.order-preview{padding:10px;background:#f2f3fd;border-color:#b5bee1;min-height:42px;font-size:17px;margin-bottom:10px}
.order-preview~.choice-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.answer-panel .workings{min-height:100px;font-size:16px}
.feedback{margin:13px 0 0;background:#ecf6e7;border:1px solid #d2e8c7;border-radius:12px;padding:12px;line-height:1.5}
.feedback strong{font-size:15px;margin-bottom:4px;color:#305741}
.feedback p{font-size:12px;color:#42614d}
.feedback.retry{background:#fff1df;border-color:#f0dcc0}
.feedback.retry strong{color:#745032}
.feedback.retry p{color:#805d40}
.answer-confirmed{background:#f0f8ec;display:flex;align-items:center;gap:11px;padding:15px;border-radius:12px;color:#365540}
.answer-confirmed strong{font-size:27px;font-weight:650}
.answer-confirmed .icon{width:26px;height:26px;flex-shrink:0}
.success-action{background:#397555}
.player-tools{display:flex;align-items:center;justify-content:center;gap:22px;min-height:0}
.player-tools button{display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:#56628b;min-height:44px;font-size:13px;font-weight:650;padding:7px 17px;border-radius:10px}
.player-tools button:hover{background:#e4e9fa}
.player-tools button[aria-pressed=true]{background:#fff0db;color:#845d28}
.player-tools .icon{width:20px;height:20px}
.paper-clock{font-size:13px;padding:5px 8px;border:0;background:#e5eafa}
.paper-nav{gap:9px;justify-content:flex-start}
.paper-nav button{min-width:44px;min-height:44px;background:#f0f3fc;font-size:14px}
.paper-nav button.current{background:#4453ab}
.paper-nav button.answered{box-shadow:inset 0 -4px #7b66b9}
.large-text .question-card h1{font-size:35px;line-height:1.4}
.large-text .answer-panel h2,.large-text .choice{font-size:20px}
.large-text .input-help{font-size:14px}
.reading-space .question-card h1{line-height:1.65}
.high-contrast{--ink:#101b32;--muted:#28314a;--line:#7c88ac}
.high-contrast .question-card,.high-contrast .answer-panel,.high-contrast .choice{border-color:#57658e;color:#101b32}
.high-contrast .question-visual{background:#fff;border-color:#677697}
.high-contrast .player-tools button{color:#263668}
.focus-mode #app{position:fixed;inset:0;z-index:30;overflow:auto;background:var(--paper)}
.focus-mode.learning #app{height:var(--learning-height,100dvh);overflow:hidden}
.focus-mode .sidebar,.focus-mode .topbar{display:none}
.focus-mode .main-area{padding-top:20px;max-width:1150px;width:100%}
#exit-screen{position:fixed;top:12px;right:14px;z-index:35;box-shadow:0 3px 15px #28315c22}

/* Teaching is one small step at a time, in an opaque, separate view. */
dialog{border-color:#dbe1f0;border-radius:23px;background:#fff;padding:25px;max-height:92dvh;width:min(94vw,610px);box-shadow:0 30px 100px #15244755;overscroll-behavior:contain}
dialog::backdrop{background:#19233b66;backdrop-filter:blur(5px)}
.dialog-heading{margin-bottom:17px;align-items:center}
.dialog-heading h2{font-size:24px;letter-spacing:-.6px;line-height:1.3}
.dialog-body p{font-size:14px;line-height:1.65}
.dialog-heading .icon-btn{width:44px;min-width:44px;border-radius:11px;background:#f0f2fb}
.help-menu{display:grid;gap:10px;margin-top:15px}
.help-menu>button{display:flex;align-items:center;gap:14px;background:#f4f5fd;border:1px solid #e3e6f3;border-radius:14px;padding:17px 13px;text-align:left}
.help-menu>button>.icon:first-child{width:24px;height:24px;color:#6373b8}
.help-menu>button>.icon:last-child{width:17px;height:17px;margin-left:auto;color:#7280a8}
.help-menu b{display:block;font-size:15px;color:#303e61}
.help-menu small{display:block;font-size:12px;color:#65718d;margin-top:3px;line-height:1.5}
.support-pane{margin:0;padding:0;background:transparent;border:0;border-radius:0}
.support-question{background:#f3f4fc;padding:13px 15px;border-radius:12px;margin-bottom:20px}
.support-question>span{font-size:9px;letter-spacing:1.2px;color:#65739b;font-weight:700;display:block}
.support-question p{font-size:15px;margin:6px 0 0;color:#3e4c6d;line-height:1.45}
.step-progress{display:flex;align-items:center;gap:20px;margin-bottom:20px;font-size:12px;color:#5c6591;font-weight:600}
.step-progress>div{display:flex;flex:1;gap:4px}
.step-progress i{height:5px;border-radius:5px;flex:1;background:#e4e8f7}
.step-progress i.active{background:#7e79c9}
.step-instruction{font-size:23px;letter-spacing:-.5px;line-height:1.4;margin-bottom:14px}
.step-expression{font-size:28px;margin:16px 0 22px;font-weight:650;color:#42538f;line-height:1.4}
.step-answer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:18px}
.step-answer input{width:100%;max-width:none;min-width:0;padding:12px 9px;height:52px;font-size:21px;background:#fcfcff;border-color:#aab6d7;border-radius:12px}
.step-answer input::placeholder{font-size:15px}
.step-answer .button{font-size:14px;padding:10px 15px;min-height:52px}
.step-answer~.link-btn{margin-top:13px;font-size:13px}
.step-result{padding:17px 20px;border-radius:14px;background:#eaf4e4;color:#395941;font-size:30px;font-weight:650;margin:20px 0}
.step-feedback{font-size:14px;color:#435a92;margin-top:12px}
.step-complete{width:65px;height:65px;border-radius:50%;display:grid;place-items:center;color:#407547;background:#e6f4df;margin:24px auto}
.step-complete .icon{width:34px;height:34px}
.hint-box{border:1px solid #e7daba;border-left:4px solid #dbb76f;background:#fff5dc;padding:17px;margin:18px 0;color:#654b22}
.hint-box p{color:#654b22;font-size:16px;margin:8px 0 0}
.solution-steps{padding-left:23px}
.solution-steps li{padding:12px 0;border-bottom:1px solid #e1e6f1;font-size:14px}
.solution-steps li p{margin:5px 0}
.working-dialog .scratch{margin:0}
.working-dialog .working-question{padding:12px 15px;background:#f1f4fc;border-radius:12px;font-size:13px}
.scratch-area label{display:block;margin:10px 0 8px;font-size:13px;font-weight:600}
.scratch canvas{height:200px;border-color:#d7dfef;background-color:#fff;background-image:radial-gradient(#cbd4ed 1px,transparent 1px)}
.scratch textarea,.workings{border-color:#bdc8e0;background:#fff;font-size:16px;min-height:86px}
.scratch-tools{justify-content:space-between;margin-top:8px}
.pad-dialog label{font-size:16px;line-height:1.5;display:block;margin-bottom:15px}
.keypad{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.keypad button{min-height:46px;height:46px;border-radius:11px;background:#edf1ff;border-color:#d4dcf2;font-size:21px}

/* Model workspace: fit, genuine content scaling, panning and pinch gestures. */
dialog.model-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;padding:max(14px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:#f7f8fd;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:12px}
.viewer-head{display:flex;align-items:center;justify-content:space-between;gap:18px}
.viewer-head .eyebrow{font-size:9px;letter-spacing:1.5px;color:#68729c}
.viewer-head h2{font-size:21px;letter-spacing:-.4px;margin:4px 0 2px}
.viewer-head .button{min-height:43px;gap:14px}
.viewer-head .button span{font-size:22px;line-height:1}
.viewer-viewport{position:relative;min-height:0;overflow:hidden;border:1px solid #dce2f3;border-radius:17px;background-color:#fff;background-image:radial-gradient(#dce3f3 1px,transparent 1px);background-size:22px 22px;touch-action:none;cursor:grab;outline-offset:-4px}
.viewer-viewport:active{cursor:grabbing}
.viewer-content{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;user-select:none;pointer-events:none}
.viewer-figure{margin:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.viewer-figure svg{width:100%;height:100%;max-height:none}
.viewer-figure .model-table-wrap{width:100%;background:#fff;border-radius:0;overflow:visible}
.viewer-figure .model-table{font-size:22px}
.viewer-controls{display:flex;align-items:center;justify-content:center;gap:7px}
.viewer-controls button{height:44px;min-height:44px;min-width:46px;border:1px solid #cbd5ef;border-radius:10px;background:#fff;padding:7px 13px;font-size:14px;font-weight:650;color:#455893}
.viewer-controls button[data-viewer="in"],.viewer-controls button[data-viewer="out"]{font-size:25px;line-height:1}
.viewer-controls output{min-width:62px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums;font-weight:650;color:#4d5c81}
.viewer-tip{text-align:center;font-size:11px;color:#697697;margin:0}
.viewer-description{max-height:24dvh;overflow:auto;background:#edf0fa;border-radius:12px;padding:0 12px;font-size:13px;color:#4b5b85}
.viewer-description summary{min-height:34px;display:flex;align-items:center;cursor:pointer;font-size:12px;font-weight:650}
.viewer-description summary:after{content:'+';margin-left:auto;font-size:19px}
.viewer-description[open] summary:after{content:'−'}
.viewer-description>div{padding:0 0 14px;font-size:14px;line-height:1.6}
.viewer-description p{margin:8px 0}
#toast{z-index:150;background:#253354;font-size:12px;border-radius:12px;padding:11px 16px}

@media(max-width:1000px){
 .main-area{padding-left:25px;padding-right:25px}.new-hero .hero-copy{padding-left:26px}.new-hero h2{font-size:35px}.new-hero .hero-art svg{width:140%;margin-left:-70px}.new-hero{grid-template-columns:1.1fr 1fr}.scene-tag{right:18px;font-size:9px}
 .new-quick-grid .quick-card{padding:18px}.new-quick-grid .quick-card h3{font-size:15px}.question-layout{gap:15px;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr)}.question-card{padding:22px}.answer-panel{padding:18px}
}
@media(max-width:820px){
 .nav-list .nav-item{min-width:0;flex:1;font-size:10px}.nav-item.active{box-shadow:inset 0 -2px #6471cf}.sidebar{padding:0;background:#fffffff5}.main-area{padding-left:22px;padding-right:22px}.topbar{min-height:72px}.welcome{margin-top:8px}.welcome h1{font-size:34px}.welcome .eyebrow{font-size:9px}
 .new-hero{min-height:340px}.new-hero h2{font-size:36px}.new-hero .hero-art svg{width:125%;margin-left:-35px}.new-hero .hero-copy{padding-left:28px}.new-hero p{max-width:280px}.scene-tag{right:20px}.new-quick-grid .quick-card h3{font-size:16px}
 .player{padding-left:17px;padding-right:17px;gap:9px}.player-session-title{display:none}.question-layout{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:12px}.question-card h1{font-size:25px}.question-card{padding:19px}.answer-panel{padding:17px}.question-visual{padding:6px 8px 9px}
}
@media(max-width:650px){
 .main-area{padding-left:18px;padding-right:18px}.welcome{margin:12px 0 20px}.welcome h1{font-size:32px}.welcome .quiet-chip{display:none}.topbar{min-height:67px}.topbar:before{font-size:24px}.topbar-actions>.icon-btn{width:36px;min-width:36px}
 .hero.new-hero{display:block;min-height:354px;border-radius:22px}.new-hero .hero-copy{padding:24px 24px 27px;width:100%}.new-hero h2{font-size:35px;max-width:290px;margin:16px 0 14px;line-height:1.1}.new-hero p{max-width:212px;font-size:12px;line-height:1.7}.new-hero .hero-art{position:absolute;right:-78px;bottom:63px;width:270px;height:219px;opacity:1;pointer-events:none;z-index:0}.new-hero .hero-art svg{width:100%;min-width:0;margin:0;transform:none;height:auto}.scene-tag{display:none}.new-hero .hero-footer{font-size:10px;max-width:220px}.new-hero .button{margin-top:23px;position:relative;font-size:14px;min-height:48px}.hero-pill{font-size:9px;padding:5px 7px;letter-spacing:0}.hero-pill .icon{width:13px;height:13px}
 .new-quick-grid{display:grid;grid-template-columns:1fr;gap:11px}.new-quick-grid .quick-card{display:grid;grid-template-columns:47px minmax(0,1fr);grid-template-rows:auto auto;column-gap:15px;padding:17px;min-height:102px;border-radius:16px;align-content:center}.new-quick-grid .quick-card .tile-icon{margin:0;grid-row:1/3;align-self:center;width:46px;height:46px}.new-quick-grid .quick-card h3{font-size:16px;margin:0 0 4px;padding-right:13px}.new-quick-grid .quick-card p{font-size:12px;margin:0;padding-right:12px}.new-quick-grid .quick-card .arrow{top:42px;right:13px;width:16px;height:16px}.quick-number{display:none}.section-top{margin:24px 0 14px}.section-top h2{font-size:21px}.reward-strip{gap:12px;padding:10px}.reward-mini{width:70px;height:76px}.reward-strip b{font-size:13px}.reward-strip small{font-size:10px;line-height:1.5}.reward-strip>.icon{width:16px;height:16px;flex-shrink:0}.reward-dots i{width:16px}.reward-strip{margin-top:20px}
 .page-intro h1{font-size:34px}.page-intro p{font-size:14px}.challenge-grid{grid-template-columns:1fr;gap:18px}.challenge-art{height:145px}.challenge-copy{padding:20px}.challenge-copy h3{font-size:23px}.challenge-copy p{min-height:0;font-size:13px}.challenge-art:before{width:290px}.lab-banner .button{margin-top:13px}
 .player{padding: max(7px,env(safe-area-inset-top)) 12px max(6px,env(safe-area-inset-bottom));grid-template-rows:44px 4px minmax(0,1fr)46px;gap:8px}
 .player-top{gap:5px}.exit-practice{font-size:12px;padding:5px 3px;gap:6px}.player-top .actions{gap:4px}.player-top .icon-btn{width:40px;min-width:40px;padding:8px}.screen-control{font-size:11px;gap:6px;padding:6px 9px;min-height:39px;border-radius:10px}.screen-control .icon{width:16px;height:16px}
 .player>main{grid-template-rows:27px minmax(0,1fr);gap:8px}.player-heading{font-size:11px;gap:8px}.player-heading .icon{width:15px;height:15px}.question-count{font-size:12px}.player-heading>span:first-child{gap:6px}
 .question-layout{display:flex;flex-direction:column;gap:10px;min-height:0}.question-card{flex:1;min-height:90px;border-radius:17px;padding:20px 18px;box-shadow:0 3px 0 #e4e8f2}.question-card h1{font-size:25px;line-height:1.32;letter-spacing:-.55px}.question-expression{font-size:35px;margin:17px 0 0;padding:12px 14px}.question-visual{min-height:142px;flex:1;margin-top:18px;border-radius:12px;padding:4px 8px 8px}.visual-label{font-size:8px;letter-spacing:.5px}.visual-label .link-btn{font-size:10px;min-height:34px}.visual-label .icon{width:14px;height:14px}.question-visual .model-table{font-size:13px}.question-visual .model-table th,.question-visual .model-table td{padding:8px 6px}.model-invite{min-height:58px;padding-top:15px;gap:10px}.model-invite b{font-size:12px}.model-invite small{font-size:11px}
 .answer-panel{max-height:53%;flex:0 0 auto;border-radius:17px;padding:14px;box-shadow:0 3px 0 #e4e8f2;overflow:hidden}.answer-panel h2{font-size:14px;margin:0 0 9px}.answer-panel-content{padding:2px;overflow:auto;min-width:0}.answer-input{height:51px;font-size:25px;border-radius:10px;padding:9px}.answer-input::placeholder{font-size:15px}.answer-input-wrap{gap:6px}.answer-input-wrap .unit{font-size:15px}.pad-toggle{width:35px;min-width:35px;min-height:43px;height:43px}.pad-toggle .icon{width:18px;height:18px}.answer-action{padding-top:11px;margin-top:0}.answer-action .button.full{min-height:47px;font-size:14px;padding:10px 12px;gap:6px}.answer-action .button .icon{width:17px;height:17px}.answer-action>.link-btn{font-size:12px;min-height:32px;margin-top:6px}.input-help{font-size:10px;margin:6px 0 0}.answer-panel .choice{font-size:14px;min-height:44px;padding:9px 10px;gap:9px}.choice .choice-dot{width:16px;height:16px}.choice-list{gap:7px}.your-first-answer{margin-bottom:8px;font-size:12px}.your-first-answer .link-btn{font-size:11px}.answer-panel .workings{min-height:72px;height:80px;resize:vertical;font-size:16px}.answer-panel label{font-size:12px}.pair-inputs{gap:9px}
 .number-answer:not(.answer-done){display:grid;grid-template-columns:minmax(0,1fr) 119px;gap:10px;align-items:end}.number-answer:not(.answer-done) .answer-action{padding-top:0;align-self:end;padding-bottom:2px}.number-answer:not(.answer-done) .answer-action .button{font-size:13px;height:51px}.number-answer:not(.answer-done) .answer-action .icon{display:none}.number-answer .input-help{grid-column:1/-1}.number-answer:has(.input-help){display:flex}.number-answer:has(.feedback){display:flex}.number-answer:has(.feedback) .answer-action{align-self:stretch;padding-top:10px}.number-answer:has(.feedback) .answer-action .button{height:auto;min-height:45px}
 .feedback{padding:10px 12px;margin-top:9px}.feedback strong{font-size:14px;margin-bottom:2px}.feedback p{font-size:11px}.answer-confirmed{padding:10px 12px}.answer-confirmed strong{font-size:24px}.answer-done .answer-panel-content{overflow:auto}.answer-done .feedback{padding:0;border:0;background:none;margin-top:10px}.answer-done .feedback p{font-size:11px}.answer-done .feedback strong{font-size:14px}.answer-done .answer-action{display:grid;grid-template-columns:1fr 1fr;gap:7px;align-items:center}.answer-done .answer-action .link-btn{margin:0;font-size:11px}.answer-done .answer-action .button{font-size:12px}.answer-done .answer-action .button .icon{display:none}
 .player-tools{gap:0;justify-content:space-between}.player-tools button{font-size:11px;min-height:44px;flex:1;gap:6px;padding:6px 5px}.player-tools .icon{width:18px;height:18px}.paper-clock{font-size:11px;padding:6px}.paper-player .screen-control span{display:none}.paper-player .screen-control{width:39px;justify-content:center}
 .large-text .question-card h1{font-size:30px}.large-text .answer-panel h2,.large-text .choice{font-size:18px}.large-text .input-help{font-size:13px}.large-text .number-answer{display:flex}.large-text .number-answer .answer-action{align-self:stretch;padding-top:9px}
 dialog{width:calc(100vw - 24px);padding:22px;max-height:92dvh;border-radius:21px}.dialog-heading h2{font-size:22px}.dialog-body p{font-size:14px}.dialog-actions{margin-top:18px;gap:9px}.dialog-actions .button{font-size:13px;padding:10px 13px}
 dialog.learning-dialog{inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:max(18px,env(safe-area-inset-top)) 22px max(20px,env(safe-area-inset-bottom));background:#fff;overflow:auto}.learning-dialog .dialog-heading{padding-bottom:15px;border-bottom:1px solid #e2e7f2;margin-bottom:20px}.learning-dialog .dialog-heading h2{font-size:24px}.learning-dialog .dialog-body{max-width:560px;margin:auto}.help-menu>button{padding:16px 13px}.support-question{padding:13px 15px;margin-bottom:24px}.step-instruction{font-size:26px}.step-expression{font-size:29px;margin:24px 0 28px}.support-pane .step-answer{margin-top:23px}.support-pane .button.full{min-height:51px}.support-pane>h3{font-size:25px}.step-result{font-size:34px}.hint-box p{font-size:17px}.working-dialog .scratch canvas{height:205px}.working-dialog .dialog-body>p{font-size:13px}.working-dialog .dialog-heading{margin-bottom:10px}
 dialog.model-viewer{padding:max(12px,env(safe-area-inset-top)) 12px max(10px,env(safe-area-inset-bottom));gap:10px}.viewer-head h2{font-size:17px}.viewer-head .eyebrow{font-size:8px}.viewer-head .button{font-size:12px;padding:7px 11px;gap:10px;min-height:42px}.viewer-controls{gap:5px}.viewer-controls button{padding:7px 10px;min-width:43px;font-size:12px}.viewer-controls output{min-width:51px;font-size:12px}.viewer-tip{font-size:10px}.viewer-viewport{border-radius:14px}.viewer-description{padding:0 11px}.viewer-description summary{min-height:32px}
}
@media(max-width:360px){.player{padding-left:9px;padding-right:9px;gap:6px}.question-card{padding:16px}.question-card h1{font-size:23px}.answer-panel{padding:12px}.number-answer:not(.answer-done){grid-template-columns:minmax(0,1fr) 103px;gap:7px}.number-answer:not(.answer-done) .answer-action .button{font-size:12px;padding:8px}.pad-toggle{min-width:30px;width:30px}.hero.new-hero{min-height:361px}.new-hero .hero-copy{padding-left:20px}.new-hero h2{font-size:33px}.new-hero .hero-art{right:-106px;bottom:71px;opacity:.75}.new-hero p{max-width:193px}.learning-dialog .dialog-heading h2{font-size:21px}.step-instruction{font-size:23px}.step-expression{font-size:25px}.viewer-controls button{min-width:39px;padding:7px 8px}.viewer-controls output{min-width:43px}.player-tools button{font-size:10px}.challenge-copy h3{font-size:21px}}
@media(max-height:650px){.player{grid-template-rows:42px 4px minmax(0,1fr)42px;gap:5px;padding-top:5px;padding-bottom:5px}.player>main{grid-template-rows:25px minmax(0,1fr);gap:6px}.question-card{padding:16px}.question-card h1{font-size:23px}.question-visual{margin-top:12px;min-height:116px}.question-expression{margin-top:13px;margin-bottom:0;padding:10px;font-size:32px}.player-tools button{min-height:40px}.model-invite{padding-top:12px;min-height:52px}.answer-panel{padding:12px}.step-expression{margin:12px 0 18px}.learning-dialog .dialog-heading{margin-bottom:15px;padding-bottom:10px}.support-question{margin-bottom:17px}.keypad{gap:5px;margin:10px 0}.keypad button{height:39px;min-height:39px}.pad-dialog .answer-input{height:45px}}
.keyboard-open .question-visual,.keyboard-open .model-invite{display:none}
.keyboard-open .player-tools{display:none}
.keyboard-open .player{grid-template-rows:40px 3px minmax(0,1fr);gap:5px;padding-bottom:8px}
.keyboard-open .question-card{padding:12px 16px;min-height:60px}
.keyboard-open .question-card h1{font-size:20px}
.keyboard-open .question-expression{margin:8px 0;padding:6px 10px;font-size:27px}
@media print{body.learning{overflow:visible}.player,.learning #app{height:auto;display:block}.player-top,.player-tools,.answer-action{display:none}.question-layout{display:block;height:auto}.question-card{overflow:visible}.question-visual{height:300px}.answer-panel{overflow:visible;margin-top:20px}.feedback{background:#fff}.scene-island{animation:none}}

.dialog-heading .read-support{margin-left:auto;flex-shrink:0}.dialog-heading:has(.read-support){gap:8px}.dialog-heading:has(.read-support) h2{margin-right:auto}.support-dialog .dialog-heading h2{font-size:21px}.guide-model-link{margin-top:20px;font-size:13px;color:#5668a9;display:flex;gap:7px}.guide-model-link .icon{width:18px;height:18px}.answer-done .answer-confirmed>.icon{animation:answer-pop .4s ease-out}@keyframes answer-pop{0%{transform:scale(.5)}65%{transform:scale(1.16)}100%{transform:scale(1)}}.result-hero{background:linear-gradient(130deg,#eeedfd,#e5eef9);border:1px solid #dce2f1}.result-stats{gap:25px}.badge{background:#e9edfc;color:#415382}.info-box{background:#eff2fc;border-color:#dae1f4}.collection-card{background:#fff;border-color:#dbe1ef}.collection-card h3{font-size:16px}.collection-card>div{background:#343b67!important}.collection-card.locked>div{background:#e5e9f4!important}.collection-card p{font-size:12px}
@media(max-width:650px){.keyboard-open dialog.learning-dialog{height:var(--learning-height,100dvh);max-height:var(--learning-height,100dvh);overflow:auto}.keyboard-open .working-dialog canvas{height:100px}.support-dialog .dialog-heading h2{font-size:20px}.dialog-heading .read-support{width:38px;min-width:38px}.support-dialog .dialog-heading .icon-btn{width:38px;min-width:38px}}
