/* Shared neutral interface. Educational diagrams retain their colours. */
@media screen {
 :root,:root.light,.cq-page{--bg:#111113;--surface:#19191c;--surface2:#232326;--line:#343438;--text:#f1f1f3;--muted:#a6a6ae;--lime:#e2e2e6;--lime-text:#171719;--cyan:#ccccd2;--violet:#d3d3da;--good:#dedee3;--danger:#b6b6bf;--shadow:none;color-scheme:dark}
 html,body,.cq-page{background:var(--bg);color:var(--text)}
 body,.cq-page,.cq-page h1,.cq-page h2,.cq-page h3,button,input,select,textarea,.live-code-input{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
 h1,h2,h3,.cq-page h1,.cq-page h2,.cq-page h3{letter-spacing:-.035em;font-weight:650}
 button,a,input,select,textarea{transition:background-color .15s,border-color .15s,color .15s}
 :focus-visible,.cq-page :focus-visible,.handbook-main input:focus,.handbook-main select:focus{outline:2px solid #ededf0;outline-offset:3px}
 input,select,textarea{accent-color:#dddde2}::selection{background:#54545d;color:#fff}
 *{scrollbar-width:thin;scrollbar-color:#45454d #18181b}.handbook-tabs{scrollbar-width:none}
 .warning{background:#25252a;border-color:#696974;color:#dedee5;border-radius:6px}
 .cq-nav-icon{display:inline-block;width:17px;height:17px;flex:none;vertical-align:middle}
 .brand-mark .cq-nav-icon,.studio-logo .cq-nav-icon,.studio-mobile-brand .cq-nav-icon{width:21px;height:21px}
 .brand-mark,.studio-logo,.studio-mobile-brand{background:#29292e;border:1px solid #414148;color:var(--text);border-radius:7px;box-shadow:none}
 .cq-brand span,.brand-highlight{color:var(--text)}
 .studio-sidebar{padding-top:24px;padding-bottom:20px;background:#161618}
 .sidebar-caption{margin:11px 0 18px;color:var(--muted)}
 .nav-section{font-weight:600;font-size:10px;letter-spacing:.09em;padding-top:14px}
 .studio-sidebar .desktop-nav{gap:3px}
 .studio-sidebar .desktop-nav button,.studio-sidebar .desktop-nav a.nav-account{font-size:12px;font-weight:500;border-radius:6px;gap:11px;padding:9px 10px;min-height:35px}
 .studio-sidebar .desktop-nav button.active,.mobile-nav button.active{background:#2b2b30;color:#fff;font-weight:600}
 .sidebar-note{background:#1f1f22;border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:24px}
 .sidebar-note-icon{color:var(--muted)}
 .topbar{height:70px;min-height:70px;background:#161618}
 .studio-location>span{font-size:9px;font-weight:600;letter-spacing:.1em}.studio-location>strong{font-size:14px;font-weight:600}
 .xp-pill{border:1px solid var(--line);border-radius:6px;background:#202024;color:var(--text);font-size:11px;font-weight:600;padding:7px 10px}
 .studio-account-link{border-radius:7px;width:32px;height:32px;background:#202024}
 .studio-stage main{padding-top:28px}
 .card,.cq-page .cq-panel,.cq-panel,.choice-card,.question-card,.result-hero,.studio-start-card,.studio-live-card,.studio-metrics,.cq-profile-hero,.cq-intro{background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:none}
 .card:before,.cq-panel:before,.studio-hero-orbit,.live-demo-card:before{display:none}
 .card,.cq-panel{padding:22px}
 .btn,.cq-page .cq-button,.cq-button{background:#26262b;border:1px solid #3b3b42;border-radius:6px;color:var(--text)!important;box-shadow:none;font-size:12px;font-weight:600;min-height:40px;padding:10px 15px;transform:none}
 .btn:hover:not(:disabled),.cq-button:hover:not(:disabled){background:#323238;border-color:#55555e;transform:none;box-shadow:none}
 .btn.primary,.cq-page .cq-button.primary,.cq-button.primary,.studio-start-card .btn.primary{background:#e2e2e6;border-color:#e2e2e6;color:#171719!important;box-shadow:none;font-size:12px}
 .btn.primary:hover:not(:disabled),.cq-page .cq-button.primary:hover:not(:disabled){background:#f5f5f7;border-color:#f5f5f7}
 .btn.ghost{background:transparent;border-color:var(--line)}.btn.small-btn,.cq-button.compact{font-size:11px;min-height:34px;padding:8px 12px}
 .btn:disabled,.cq-button:disabled{opacity:.45}
 .eyebrow,.cq-kicker,.cq-label{color:var(--muted);font-weight:600}.eyebrow,.cq-kicker{font-size:10px;letter-spacing:.1em}
 .pill,.pill.cyan,.pill.lime,.pill.violet,.cq-pills span,.live-pills span,.handbook-version span{background:#222226;border:1px solid var(--line);border-radius:5px;color:#bdbdc5;font-weight:500}
 .pill{font-size:10px;padding:5px 7px}.studio-text-link,.cq-page a,.live-explanation a{color:#d2d2d9}.studio-text-link{font-weight:600;font-size:12px}
 .studio-welcome{margin-bottom:22px}.studio-welcome h1{font-size:clamp(27px,2.5vw,34px);letter-spacing:-.035em;margin:8px 0 10px}.studio-welcome p{font-size:13px;line-height:1.6}
 .studio-start-card{padding:28px;min-height:280px}.studio-start-card h2{font-size:clamp(30px,3vw,42px);margin:16px 0 12px;line-height:1.12}
 .studio-start-card p{font-size:13px;color:#adadb6;line-height:1.65;margin-bottom:21px}.studio-hero-label{font-size:10px;font-weight:600;letter-spacing:.09em;color:#b9b9c1}
 .studio-live-dot,.live-dot{background:#ceced5;box-shadow:none}.studio-hero-foot{font-size:10px;color:#a6a6ae;margin-top:22px}.studio-hero-foot span:before{color:#d4d4da}
 .studio-metrics{padding:15px 0;margin:20px 0 29px}.studio-metrics strong{font-size:16px;font-weight:650}
 .studio-metric-icon{background:#25252a;border:1px solid var(--line);color:#bdbdc6;border-radius:7px;width:34px;height:34px}
 .section-head{margin:27px 0 16px}.section-head h2{font-size:20px}.studio-course{padding:21px}.studio-course-top{margin-bottom:18px}
 .studio-course-icon,.course-2 .studio-course-icon,.course-mixed .studio-course-icon{background:#25252a;color:#d3d3da;border:1px solid var(--line);border-radius:7px;width:36px;height:38px}
 .studio-course h3{font-size:18px}.studio-course p{color:var(--muted);font-size:12px}.studio-course-action{font-size:12px;font-weight:600;padding-top:14px}.studio-course-action>span{color:var(--muted)}
 .studio-live-card{padding:22px 24px}.studio-live-symbol{background:#25252a;color:#d3d3da;border-color:var(--line);border-radius:8px;font-size:36px}
 .studio-live-card h2{font-size:21px}.studio-live-card p,.studio-recent p{font-size:12px}.studio-recent h3{font-size:18px}
 .field input,.field select,.answer-input,.search-input,.cq-page input,.cq-page select,.handbook-main input,.handbook-main select,.live-main input,.live-main select{background:#131315;color:var(--text);border:1px solid #3d3d44;border-radius:6px;font-size:13px;padding:11px 12px;box-shadow:none}
 input::placeholder,textarea::placeholder{color:#85858f;opacity:1}.field,.cq-label,.live-main label,.handbook-searchbar label{font-size:12px;font-weight:500}
 .choice-card{border-radius:7px}.choice-card.selected{background:#29292e;border-color:#b5b5bf}
 .advanced,.feedback,.score-box,.review-item,.collection-set,.trophy,.recall-card,.card-answer,.cq-page .cq-summary{border-radius:8px;background:var(--surface);border-color:var(--line);box-shadow:none}
 .question-title{font-size:clamp(22px,2.3vw,30px);letter-spacing:-.025em}.question-card{padding:28px}
 .answer,.live-answer,.live-answer:nth-child(n){background:#222226!important;color:var(--text);border:1px solid #45454d;border-radius:7px;box-shadow:none}
 .answer{min-height:66px;font-size:14px}.answer .key{background:#313137;color:#d7d7df;border-radius:5px}
 .answer:hover:not(:disabled),.live-answer:hover:not(:disabled){background:#2c2c32!important;border-color:#a4a4af;transform:none;box-shadow:none}
 .answer.correct,.live-answer.correct{background:#313137!important;border:2px solid #e2e2e6;box-shadow:none}.answer.wrong{background:#1b1b1e!important;border:2px dashed #a5a5af}
 .answer.selected,.live-answer.selected{background:#313137!important;outline-color:#dedee4}.feedback{background:#232328;border:1px solid var(--line)}
 .result-hero h1{font-size:38px}.score-box strong{color:var(--text)}
 .chip{background:#242429;color:#bdbdc6;border:1px solid var(--line);border-radius:6px;font-size:11px;font-weight:500}
 .chip.selected,.cq-filter-row .cq-button[aria-pressed=true]{background:#dcdce2;color:#161618!important;border-color:#dcdce2}.trophy.earned,.light .trophy.earned,.cq-page .cq-trophy.earned{background:#232326;border-color:#777780}.recall-edge{background:none;border-color:var(--line)}
 .cq-header{min-height:70px;height:70px;background:#161618;gap:20px}.cq-header nav{gap:4px}
 .cq-header nav a{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:500;border-radius:6px;padding:9px 11px}.cq-header [aria-current=page]{background:#2b2b30;color:#fff!important}
 .cq-main{padding-top:28px}.cq-page h1{font-size:clamp(30px,4vw,44px);line-height:1.13}.cq-page h2{font-size:24px}.cq-page p{color:var(--muted)}
 .cq-profile-hero,.cq-intro{padding:28px}.cq-intro p{font-size:14px;line-height:1.7}.cq-pills span{font-size:11px;border-radius:5px;padding:7px 10px}
 .cq-message,.live-error{border:1px solid #62626d;border-radius:7px;background:#29292e;color:var(--text)!important;font-size:13px}
 .cq-trophy{border-radius:8px}.cq-trophy span{color:#d2d2da}.cq-trophy small{color:var(--muted)}.cq-policy p,.cq-policy li{font-size:14px;line-height:1.8}.cq-policy section{border-color:var(--line)}
 .cq-button.danger{color:#dddde5!important;border-color:#696974}
 .live-hero{min-height:250px;gap:32px}.cq-page .live-hero h1{font-size:clamp(32px,4vw,46px);letter-spacing:-.04em}.live-hero h1 span{background:none;color:#f1f1f3}.live-hero p{font-size:14px;line-height:1.7}
 .live-pills span{font-size:11px;padding:6px 9px}.live-demo-card{background:var(--surface);border-radius:8px;box-shadow:none;transform:none;padding:20px}
 .demo-label b,.demo-step>span,.demo-step:nth-child(3)>span,.demo-step:nth-child(4)>span{background:#2a2a30;color:#d2d2da;border-radius:5px}
 .demo-label{font-weight:600}.demo-step strong{font-size:13px;font-weight:600}.demo-step small{font-size:11px}
 .live-setup-grid h2{font-size:24px}.live-setup-grid .cq-panel{padding:24px}.live-main .live-scoring{background:#242429;border:1px solid var(--line);border-radius:6px}
 .live-code-input{font-size:30px!important;background:#131315!important}.live-quiet{background:#222226;border-color:var(--line);color:#bdbdc6;border-radius:6px;font-size:12px}
 .live-lobby,.live-question,.live-locked,.live-board{background:var(--surface)!important;border-color:var(--line);box-shadow:none}.live-room-code{font-size:clamp(44px,7vw,76px);color:var(--text)}
 .live-player-list>div{border-radius:7px}.live-player-badge,.live-player-list>div:nth-child(n) .live-player-badge,.podium-place .live-player-badge{background:#2d2d34;color:#e1e1e8;border:1px solid #5c5c67;border-radius:7px;box-shadow:none}
 .live-countdown{background:#27272e;color:var(--text);border:1px solid var(--line);border-radius:6px;box-shadow:none}.live-timer-track{background:#303036}.live-timer-track span{background:#c5c5ce;box-shadow:none}
 .cq-page .live-question h2{font-size:clamp(23px,2.8vw,32px);line-height:1.4}.answer-shape{color:#c6c6d0}.live-answer{min-height:94px}.live-answer strong{font-size:14px;font-weight:600}
 .live-explanation{border-radius:8px;background:#202024}.live-explanation.result-correct{border-color:#c3c3cd}.live-streak{background:#303036;color:#e2e2e9;border:1px solid #53535e;border-radius:5px;font-size:12px}
 .locked-check{background:#2d2d34;color:#e4e4ea;border:1px solid #62626e;border-radius:12px;box-shadow:none}.waiting-dots i{background:#a4a4af}
 .live-board li{border-radius:7px;background:#222226}.live-board li.rank-1{background:#303036;border-color:#888892}.live-board-icon,.live-rank,.rank-1 .live-rank,.live-board li>strong{color:var(--text)}
 .live-board li.is-me{outline-color:#bdbdc8}.live-board h2{font-size:30px}.live-my-rank{background:#29292f;border-color:#666670;border-radius:7px}.live-my-rank span{color:var(--muted)}
 .podium-place b,.podium-1 b{background:#2b2b31;color:#d9d9e1;border-color:#5b5b65;border-radius:7px 7px 0 0}.podium-1 b{background:#393941;color:#fff}.podium-place .podium-crown{color:#d2d2da!important}
 .handbook-hero{padding:12px 0 20px}.handbook-hero h1{font-size:clamp(32px,4vw,46px)}.handbook-hero h1 span{color:var(--text)}.handbook-hero>p{font-size:14px;line-height:1.7;max-width:680px}
 .handbook-tabs{border-color:var(--line);gap:4px;margin:18px 0 24px}.handbook-tabs button{font-size:12px;color:var(--muted);font-weight:600;padding:13px 16px}.handbook-tabs button[aria-current=page]{color:#f0f0f4;border-bottom-color:#d7d7df}
 .handbook-suggest button{background:#242429;border:1px solid var(--line);border-radius:5px;color:#c4c4cd;font-size:11px;padding:7px 10px}.handbook-suggest button:hover{background:#323239;border-color:#6f6f7a}
 .handbook-card{padding:21px}.handbook-card h2{font-size:19px}.handbook-card p{font-size:13px;line-height:1.7}.handbook-card-top span,.handbook-card button,.handbook-reader button{color:#c5c5cf}
 .handbook-card details{color:#c6c6cf;font-size:13px}.handbook-result-count{font-size:12px}
 .handbook-sheet-list button{background:#202024;border:1px solid var(--line);color:#bdbdc7;border-radius:6px;font-size:12px;padding:12px}.handbook-sheet-list button[aria-current=page]{background:#dcdce2;color:#19191c;border-color:#dcdce2;font-weight:600}
 .handbook-reader{padding:30px}.handbook-reader h2{font-size:30px}.handbook-reader p{font-size:14px;line-height:1.85}.handbook-reader .handbook-summary{font-size:16px;color:#cfcfd7}
 .handbook-scope{background:#242429;border-color:#94949f;border-radius:0 6px 6px 0;color:#bdbdc7;font-size:13px}.handbook-sheet{padding:26px}.handbook-sheet h2{font-size:26px}
 .handbook-sheet td,.handbook-sheet th{border-color:#414149;font-size:12px;padding:12px}.handbook-sheet th{background:#303036;color:#e0e0e8}.handbook-sheet tr:nth-child(even){background:#202024}.handbook-sheet ul{color:#bdbdc7;font-size:13px}
 .handbook-print-credit{color:var(--muted)!important}.handbook-calculator output{color:var(--text);font-size:20px}.handbook-calculator label{font-size:12px}
 .cq-footer,.studio-stage footer,.studio-stage .sync-status{color:#90909b;font-size:11px}#toast{background:#2b2b31;border:1px solid #656570;color:#f0f0f5;border-radius:7px;box-shadow:0 8px 30px #0004}
 @media(max-width:1060px){.topbar{height:66px;min-height:66px}.cq-header{height:auto;min-height:70px}.menu-button{border-radius:6px;background:#242429}.studio-stage .menu-button{display:grid;place-items:center;padding:8px}.mobile-nav{background:var(--surface)}.mobile-nav button,.mobile-nav a.nav-account{border-radius:6px;font-size:12px}}
 @media(max-width:800px){.cq-header nav a{font-size:11px;gap:5px;padding:8px}.cq-header nav .cq-nav-icon{width:14px;height:14px}.studio-start-card h2{font-size:32px}.studio-start-card .btn{font-size:12px}}
 @media(max-width:600px){.studio-stage main{padding-top:22px}.studio-welcome h1{font-size:27px}.studio-start-card{padding:23px;min-height:260px;border-radius:9px}.studio-start-card h2{font-size:33px}.studio-start-card .btn-row{gap:8px}.studio-start-card .btn{font-size:11px;padding:10px 13px}.studio-metrics{margin-bottom:25px}.studio-course{padding:19px}.studio-course-action{font-size:11px;padding-left:18px}.studio-live-card{padding:20px}.studio-live-card h2{font-size:19px}.studio-course h3{font-size:17px}.studio-bottom-nav{background:#19191c;box-shadow:none}.studio-bottom-nav .cq-nav-icon{width:19px;height:19px}.studio-bottom-nav span{font-size:10px;font-weight:500}.studio-bottom-nav button.active{color:#fff}.studio-hero-foot{gap:12px;font-size:9px}.cq-header{padding:14px 18px;gap:12px}.cq-header nav{gap:2px}.cq-header nav a{padding:8px 6px;gap:5px;font-size:10px}.cq-header nav .cq-nav-icon{width:13px;height:13px}.cq-page .live-hero h1{font-size:34px}.live-setup-grid .cq-panel{padding:21px}.handbook-tabs button{font-size:11px;padding:13px 11px}.handbook-reader,.handbook-sheet{padding:21px}.handbook-sheet h2{font-size:23px}.live-answer{min-height:80px}.question-card{padding:23px 20px}.question-title{font-size:22px}}
 @media(max-width:370px){.cq-header nav a{gap:4px;padding:8px 4px;font-size:9px}.cq-header nav .cq-nav-icon{width:12px;height:12px}.studio-start-card .btn-row{flex-direction:column;width:100%}.studio-start-card h2{font-size:29px}}
 @media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
}

@media screen{.studio-home-grid{grid-template-columns:1fr}.studio-start-card{min-height:250px}.cq-profile-hero{grid-template-columns:1fr;min-height:0}.notebook-cover-banner{grid-template-columns:1fr}.notebook-cover-banner>div{max-width:850px}}
