/* Shared colours and type roles are defined in tokens.css. */
*{box-sizing:border-box}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1rem/1.65 var(--sans);-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}
button,a,input,textarea{touch-action:manipulation}
button{cursor:pointer;color:inherit}
button:disabled{cursor:default;opacity:.5}
a{color:inherit;text-decoration:none}
a:hover{color:var(--purple-dark)}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #3d6450;outline-offset:4px}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.23;text-wrap:balance;overflow-wrap:anywhere}
h1{font:400 clamp(2.25rem,3.7vw,3.35rem)/1.09 var(--display);letter-spacing:-.025em}
h1 em{font-style:normal;color:var(--purple)}
h2{letter-spacing:-.02em}
h3{font-size:1.1rem}
p{color:var(--muted);line-height:1.75;text-wrap:pretty}
strong{font-weight:600}
small{font-size:.82rem}
code,pre{font-family:var(--mono)}
.icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}
.green{color:var(--green)}
.muted{color:var(--muted);font-size:.88rem}
.small-label{font-weight:650;line-height:1.5;letter-spacing:0}
.full{width:100%}
/* The navigation explains what each space is for. */
.sidebar{z-index:30;position:static;inset:auto}
.brand{display:flex;align-items:center;gap:10px;font-weight:650;letter-spacing:-.025em}
.brand img{flex-shrink:0;width:32px;height:32px}
.language-pill{display:flex;align-items:center;margin:0}
.language-pill div>span{font-size:.7rem;color:var(--muted);line-height:1.5;margin-top:2px}
.nav-item{display:flex;align-items:center;margin:0}
.nav-item strong{display:block;line-height:1.4}
.nav-item small{font-size:.8rem;line-height:1.45;margin-top:3px;color:var(--text-secondary)}
.nav-item>.icon{flex-shrink:0}
.nav-item.active small{color:var(--text-secondary-purple)}
.sidebar-bottom{margin:0}
.pip-help{text-align:left;margin:0}
.pip-help strong{display:block;line-height:1.4}
.pip-help small{display:block;font-size:.65rem;color:var(--text-secondary);line-height:1.5;margin-top:3px}
.pip-help>.icon{width:15px;height:15px;margin-left:auto}
.page{margin-left:0}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1200px}
.breadcrumb{display:flex;gap:12px;align-items:center}
.topbar-actions{display:flex;gap:23px;align-items:center}
.text-button{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:44px;padding:8px 0;border:0;background:none;color:#616b5d;font-size:.82rem;font-weight:500;line-height:1.4}
.text-button:hover{color:var(--purple)}
.reading-toggle{border-radius:8px;padding:8px}
.reading-toggle[aria-pressed=true]{background:var(--purple-pale);color:var(--purple-dark)}
.aa-icon{font-family:var(--display);font-size:1.3rem;line-height:1}
.mobile-top{display:none}
main{margin:0 auto;outline:none;max-width:1200px;padding:20px 32px 40px;min-height:calc(100vh - 230px)}
footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);font-size:.72rem;max-width:1136px;padding:24px 0;color:var(--text-muted)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:11px;border:1px solid transparent;padding:12px 19px;line-height:1.45;transition:background .15s,transform .15s}
.button .icon{width:20px;height:20px}
.button:hover:not(:disabled){transform:none}
.button.primary{background:var(--purple);color:white}
.button.primary:hover{background:var(--purple-dark);color:white}
.button.secondary:hover{background:#ecefe4;color:#35472e}
.link-button,.text-link{display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:var(--purple-dark);font-size:.87rem;font-weight:550;line-height:1.5;min-height:44px;padding:8px 0;text-align:left}
.text-link .icon{width:19px;height:19px}
.link-button:hover,.text-link:hover{color:#30513f;text-decoration:underline;text-underline-offset:4px}
.icon-button{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#65705e;width:44px;height:44px;border-radius:8px;padding:9px;flex-shrink:0}
.icon-button:hover{background:#b3ab9620;color:var(--purple)}
.icon-button .icon{width:21px;height:21px}
/* One dominant action, with a short explanation of what follows. */
.pip-welcome{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;gap:12px}
.pip-welcome:before{content:'';position:absolute;width:140px;height:140px;border-radius:50%;background:#e8ebd7;right:calc(50% - 70px);bottom:0;z-index:-1}
.pip-introduction{position:relative;top:auto;left:auto;max-width:240px;text-align:center;background:var(--paper);border:1px solid #e0ddcd;border-radius:15px 15px 3px 15px;padding:12px 15px;z-index:1;box-shadow:0 3px 8px #37322103}
.pip-introduction strong{display:block;line-height:1.4}
.pip-introduction span{display:block;color:var(--muted);line-height:1.5;margin-top:4px}
.focus-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.6fr);gap:35px;align-items:center;border:1px solid #e6eee7;border-radius:19px;background:#e6eee7;padding:32px}
.focus-card.is-finished{background:#ebf1df;border-color:#d0ddbf}
.focus-card h2{font-size:1.9rem;line-height:1.18;margin:11px 0 16px;color:#30513f}
.focus-card.is-finished h2{color:#42573b}
.focus-copy>p{max-width:64ch;color:#5f5970;line-height:1.75;font-size:1rem}
.focus-meta{display:flex;gap:20px;margin:21px 0;color:#30513f}
.focus-meta>span{display:flex;align-items:center;gap:8px}
.focus-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.main-cta{font-size:.98rem;min-height:54px;padding:15px 22px}
.focus-actions .quiet-link{font-weight:450;color:#30513f;min-height:40px}
.focus-copy>.focus-reassurance{font-size:.8rem;line-height:1.65;margin-top:15px;color:#665f71;max-width:65ch}
.time-options{display:flex;gap:7px;margin-top:18px}
.time-options button{flex:1;border:1px solid #cbd1bb;border-radius:8px;min-height:48px;background:transparent;padding:9px 8px;color:#5d674b;font-size:.9rem;text-align:center}
.time-options button strong{display:block;white-space:nowrap;font-size:.94rem;font-weight:600}
.time-options button small{font-size:.69rem;display:block;white-space:nowrap;margin-top:4px}
.time-options button.selected{background:#e3e8cd;border-color:#8c9a70;color:#445337;box-shadow:inset 0 0 0 1px #8c9a70}
.session-preview{margin-top:15px;padding:12px 18px;background:#f0eee6;border-radius:10px;border:1px solid var(--line)}
.session-preview>summary{color:#626b50;font-size:.88rem}
.session-preview ol{margin:15px 0;padding:0 0 0 26px}
.session-preview li{padding:8px 0 8px 4px;color:#655e74}
.session-preview li>span{display:block;font-size:.95rem}
.session-preview li>small{display:block;font-size:.8rem;color:#626c59;margin-top:3px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.section-heading h2{font-size:1.35rem}
.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 4px;margin:30px 0}
.stat{display:flex;align-items:center;gap:13px}
.stat>.icon{box-sizing:content-box;padding:12px;width:21px;height:21px;border-radius:12px;background:#eeeee1;border:1px solid #e3e3d4;color:#7a855f}
.stat strong{display:block;font-size:1.55rem;font-weight:500;line-height:1.15}
.stat span{display:block;font-size:.82rem;margin-top:6px;color:var(--muted)}
/* Pip is a small, lightweight vector companion, with authored state-specific tips. */
.pip{width:100%;height:auto;display:block;flex-shrink:0;overflow:visible}
.pip-hero{margin:0;width:96px;height:96px}
.pip-small{width:78px}
.pip-tiny{width:52px}
.pip-summary{width:178px;margin:0 auto 14px}
.pip-arm-right{transform-origin:132px 124px}
.pip--wave .pip-arm-right{animation:pip-wave 1.1s ease-in-out 2}
.pip--think .pip-head{transform:rotate(-4deg);transform-origin:100px 105px}
.pip--celebrate .pip-head{animation:pip-nod .65s ease-in-out 1;transform-origin:100px 105px}
.pip-help .pip-arm-right{animation:none}
@keyframes pip-wave{0%,100%{transform:rotate(0)}45%{transform:rotate(10deg)}75%{transform:rotate(-7deg)}}
@keyframes pip-nod{0%,100%{transform:rotate(0)}50%{transform:rotate(6deg)}}
.pip-coach{display:flex;align-items:center;gap:10px;border:1px solid #ded8c6;background:#f6f2e6;border-radius:13px;padding:12px 15px 12px 4px;margin:22px 0}
.pip-coach .pip-small{width:70px}
.pip-coach strong{display:block;font-size:.83rem;color:#62576e;font-weight:600;line-height:1.5}
.pip-coach p{font-size:.87rem;line-height:1.7;color:#62664f;margin-top:5px}
/* Curriculum and readable lesson pages. */
.page-heading{max-width:900px;margin-bottom:28px}
.page-heading h1{margin:14px 0 18px}
.page-heading p{line-height:1.85}
.page-heading .text-link{margin-top:15px}
.section-block{margin-top:35px}
.journey-recommendation,.chapter-start{display:flex;align-items:center;gap:18px;background:#e6eee7;border:1px solid #e6eee7;border-radius:14px;padding:20px;margin-bottom:30px}
.journey-recommendation>div,.chapter-start>div{flex:1}
.journey-recommendation strong{font-size:1rem;color:#30513f}
.journey-recommendation p,.chapter-start p{font-size:.9rem;line-height:1.7;margin-top:6px}
.journey-recommendation .button,.chapter-start .button{flex-shrink:0;font-size:.86rem}
.chapter-start h2{font-size:1.3rem;margin-top:7px}
.journey-legend{display:flex;gap:20px;flex-wrap:wrap;color:#626d58;font-size:.79rem;margin-bottom:20px}
.journey-legend>span{display:flex;align-items:center;gap:8px}
.legend-dot{width:8px;height:8px;border-radius:50%;background:#c9c7b6}
.legend-dot.practising{background:#c69965}
.legend-dot.recalling{background:#b0c28c}
.legend-dot.retained{background:#749577}
.status-tag{display:inline-flex;font-size:.73rem;padding:5px 10px;background:#eae9dd;color:#656b53;line-height:1.35;white-space:nowrap}
.status-tag.new{background:#e6eee7;color:#30513f}
.status-tag.practising{background:#f3e3ce;color:#856137}
.status-tag.recalling{background:#e5edda;color:#587140}
.status-tag.retained{background:#deebdf;color:#406d44}
.future-card{background:var(--green-pale);border:1px solid #d5dfc7;border-radius:15px;padding:30px;margin-top:32px}
.future-card h2{margin:13px 0;font-size:1.4rem}
.future-card p{font-size:.96rem;line-height:1.85;max-width:76ch}
.future-card details{margin-top:20px}
details summary{cursor:pointer;color:var(--purple-dark);font-size:.9rem;line-height:1.7;min-height:38px}
details p{margin-top:12px}
details :not(pre)>code{white-space:normal;overflow-wrap:anywhere}
.back-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}
.back-row>a{color:var(--purple-dark);font-size:.9rem}
.back-row .text-button{font-size:.82rem;text-align:right}
.lesson-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:30px 0 40px}
.lesson-copy>p{margin-top:13px;font-size:1rem;line-height:1.9}
.goal-box{display:flex;gap:14px;border:1px solid #d3dfc2;background:#edf2e4;border-radius:11px;padding:19px;margin-top:23px;color:var(--green)}
.goal-box strong{font-size:.9rem}
.goal-box p{font-size:.9rem;color:#596c49;line-height:1.75;margin-top:6px}
.worked-example{border:1px solid var(--line);background:#fbfaf4;border-radius:12px;overflow:hidden;align-self:start}
.editor-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 17px;border-bottom:1px solid var(--line);font-size:.82rem;color:#59634f}
.editor-title>span,.editor-title>div{display:flex;align-items:center;gap:9px}
.editor-title .text-button{font-size:.76rem;min-height:38px}
.worked-example pre{margin:0;padding:22px;font-size:.93rem;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:#30513f}
.exercise-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.exercise-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:23px;transition:border .15s,box-shadow .15s}
.exercise-card:hover{border-color:#e6eee7;box-shadow:0 4px 15px #2e243805}
.exercise-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
.type-tag{font-size:.76rem;color:#6c665b}
.exercise-status{font-size:.8rem;color:#757a62}
.exercise-status.done{color:var(--green)}
.exercise-card h3{font-size:1.2rem;line-height:1.35;margin-bottom:12px}
.exercise-card p{font-size:.94rem;line-height:1.8;flex:1}
.exercise-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;font-size:.77rem;color:#6e7259}
.exercise-bottom .icon{width:20px;height:20px;color:#3d6450}
.notice{border:1px solid #e4d4b2;background:#f6eddc;color:#7b6237;border-radius:10px;padding:17px 20px;margin:20px 0;font-size:.9rem;line-height:1.8}
.notice.subtle{border-color:#dedfcf;background:#eeefe5;color:#616b53;margin-top:25px}
/* A clear read → try → continue loop; support stays beside the task. */
.confidence-options{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}
.confidence-options button{border:1px solid #cbd0bf;background:transparent;border-radius:7px;min-height:44px;padding:8px 11px;font-size:.8rem;color:#606d52}
.confidence-options button.selected{background:var(--purple-pale);border-color:#e6eee7;color:#30513f}
.concept-details{padding:20px 0;border-bottom:1px solid var(--line)}
.concept-details summary{font-size:.9rem}
.concept-details p{font-size:.96rem;line-height:1.85}
.concept-details small{display:block;font-size:.81rem;line-height:1.8;margin-top:15px;color:#6d7056}
.hint{border:1px solid #ded6bd;background:#f5f0df;border-radius:10px;padding:17px;margin:14px 0}
.hint strong{font-size:.8rem;color:#7b663e}
.hint p{font-size:.95rem;line-height:1.8;color:#6d654c;margin-top:6px}
.solution-box{border:1px solid #dfddce;border-radius:10px;background:#efeee4;padding:18px;margin-top:14px}
.solution-box strong{font-size:.86rem}
.solution-box pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.88rem;line-height:1.8;margin:15px 0}
.solution-box small{font-size:.78rem;line-height:1.8;color:#746c57}
.support-note{display:flex;align-items:flex-start;gap:9px;color:#547446;font-size:.81rem;line-height:1.7;margin-top:23px}
.support-note .icon{width:19px;height:19px;margin-top:4px}
.support-note.supported{color:#89693b}
.editor-card{border-radius:13px;overflow:hidden;background:#252a2e;box-shadow:0 5px 18px #28203308}
.editor-title.dark{color:#e6eee7;background:#252a2e;border-bottom:1px solid #ffffff15;font-size:.83rem}
.editor-title.dark .icon-button{color:#e6eee7;width:40px;height:40px}
.runtime-status{font-size:.71rem;color:#e6eee7}
.editor-body{height:390px;display:flex;background:#252a2e;min-width:0}
.editor-body.tall{height:450px}
.line-numbers{flex-shrink:0;width:47px;padding:22px 12px 22px 0;text-align:right;white-space:pre;user-select:none;overflow:hidden;color:var(--text-on-code);font:400 .95rem/1.8 var(--mono)}
.editor-body textarea{flex:1;min-width:0;margin:0;border:0;outline:none;border-radius:0;background:transparent;color:#e6eee7;padding:22px 17px 22px 0;resize:none;tab-size:4;font:400 .95rem/1.8 var(--mono);white-space:pre;overflow:auto;caret-color:#b6d7bb;scrollbar-width:thin;scrollbar-color:#9eafa3 var(--surface-code)}
.editor-body textarea:focus-visible{box-shadow:inset 0 0 0 2px #b4a0ef88;outline:2px solid #b8d9b9;outline-offset:-3px}
.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:13px;background:#252a2e;border-top:1px solid #ffffff12}
.editor-toolbar .text-button{font-size:.78rem;color:#e6eee7;padding:7px 5px}
.editor-toolbar .text-button .icon{width:18px;height:18px}
.editor-toolbar>.icon-button{color:#e6eee7}
.run-button{min-height:46px;padding:10px 14px;border-radius:8px;background:#e6eee7;color:#252a2e;font-size:.85rem}
.run-button:hover{background:#e6eee7}
.run-button .icon{width:16px;height:16px;fill:currentColor;stroke-width:0}
.run-button kbd{font-size:.68rem;font-family:var(--sans);padding-left:8px;border-left:1px solid #48385f55;margin-left:1px}
#run-controls{display:flex;gap:8px}
#run-controls>.secondary{font-size:.8rem;padding:9px}
.feedback-panel{border:1px solid var(--line);padding:22px;margin-top:20px;min-height:110px;background:var(--surface-paper)}
.empty-feedback,.loading-feedback{display:flex;align-items:flex-start;gap:14px}
.empty-feedback>.icon{width:24px;height:24px;color:#7e9063;margin-top:2px}
.empty-feedback strong,.loading-feedback strong{font-size:.96rem;font-weight:550;color:#5b6b4c}
.empty-feedback p,.loading-feedback p{font-size:.9rem;line-height:1.8;margin-top:7px}
.loading-feedback strong{color:#30513f}
.spinner{display:block;width:23px;height:23px;flex-shrink:0;border:3px solid #e6eee7;border-top-color:var(--purple);border-radius:50%;animation:spin .9s linear infinite;margin-top:5px}
@keyframes spin{to{transform:rotate(360deg)}}
.feedback-message{display:flex;align-items:flex-start;gap:12px}
.feedback-message>.icon{width:23px;height:23px;margin-top:3px}
.feedback-message strong{font-size:.97rem;line-height:1.6}
.feedback-message p{font-size:.95rem;line-height:1.85;margin-top:7px}
.feedback-message.success{color:var(--green)}
.feedback-message.needs-work{color:#8e6b31}
.error-output,.console-output{margin:17px 0 0;padding:17px;border-radius:8px;font-size:.88rem;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto;background:#f3eae0;color:#825f3e}
.console-output{background:#edf0e6;color:#4f6746}
.output-label{font-size:.74rem;font-weight:600;letter-spacing:.08em;color:#697658;margin-top:16px}
.check-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:10px}
.check-heading strong{font-size:.96rem}
.check-heading span{font-size:.83rem;color:#677359}
.check{display:flex;gap:12px;align-items:flex-start;padding:11px 0;color:#a4844c}
.check.pass{color:#5b8650}
.check>span{font-size:1.1rem;line-height:1.5}
.check>div{min-width:0}
.check strong{font-size:.92rem;line-height:1.7;font-weight:550;color:#52664a}
.check p{font-size:.86rem;line-height:1.75;margin-top:6px}
.check details{margin-top:9px}
.check details summary{font-size:.81rem}
.check details code{display:block;font-size:.82rem;line-height:1.85;border-radius:7px;padding:13px;background:#efeee5;margin-top:7px}
.new-note textarea{display:block;width:100%;font-size:.96rem;line-height:1.8;color:var(--ink);background:#fffef8;border:1px solid #c7d1b8;border-radius:8px;padding:13px;resize:vertical;margin:8px 0 20px;margin-top:16px}
.new-note textarea::placeholder{color:#7b816c}
.choice-list{display:flex;flex-direction:column;gap:11px;margin-bottom:20px}
.choice{display:flex;align-items:center;gap:14px;min-height:58px;background:var(--paper);border:1px solid #d5d8ca;border-radius:9px;padding:13px;text-align:left;font-size:.97rem;line-height:1.7;border-color:var(--line)}
.choice>.choice-letter{width:30px;height:30px;flex-shrink:0;border-radius:6px;display:grid;place-items:center;background:#ecebdf;font-size:.82rem;color:#677052}
.choice.selected{border-color:#3d6450;background:#e6eee7;color:#30513f;box-shadow:inset 0 0 0 1px #3d6450}
.choice.selected>.choice-letter{background:#e6eee7;color:#30513f}
.parsons-list{margin:15px 0 20px}
.parsons-row{display:flex;align-items:center;gap:11px;min-height:65px;border:1px solid #dddccd;background:#f5f4ec;border-radius:8px;padding:9px;margin:9px 0}
.line-index{color:#72765d;font-size:.75rem;flex-shrink:0}
.parsons-row code{flex:1;min-width:0;overflow-x:auto;white-space:pre;font-size:.86rem;line-height:1.85;color:#30513f}
.parsons-row>div{display:flex;flex-direction:column}
.parsons-row .icon-button{height:34px;width:34px;padding:4px;font-size:1rem}
.trace-card{border:1px solid #e6eee7;background:#e6eee7;border-radius:12px;padding:23px;margin-top:20px}
.trace-card h3{font-size:1.13rem;color:#30513f}
.trace-card .section-heading>span{font-size:.8rem;color:#30513f}
.trace-card p{font-size:.85rem;line-height:1.8}
.trace-card input[type=range]{width:100%;accent-color:var(--purple);margin:22px 0;min-height:30px}
.variable-table>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:15px;border-bottom:1px solid #e6eee7;padding:12px 0}
.variable-table code{font-size:.86rem;line-height:1.8;color:#30513f;overflow-wrap:anywhere}
/* Results lead to a next action; the detail stays available on demand. */
.session-summary{max-width:800px;margin:0 auto;text-align:center;padding:5px 0 25px}
.session-summary h1{margin:17px 0 22px;font-size:2.9rem}
.session-summary>p{font-size:1.02rem;line-height:1.85;max-width:65ch;margin:0 auto}
.session-summary>p.summary-explainer{font-size:.87rem;margin:24px auto;color:#657357}
.summary-actions{display:flex;justify-content:center;gap:14px;margin:26px 0;flex-wrap:wrap}
.summary-actions>.button{min-height:54px;font-size:.98rem}
.summary-details{border:1px solid var(--line);border-radius:12px;background:#f0f1e8;padding:18px;margin:30px 0 18px;text-align:left}
.summary-details>summary{font-size:.9rem;color:#587044}
.summary-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0;margin:22px 0}
.summary-counts .stat>.icon{width:18px;height:18px;padding:10px}
.summary-counts .stat strong{font-size:1.4rem}
.summary-counts .stat span{font-size:.77rem}
.summary-results{border:1px solid var(--line);background:var(--paper);border-radius:10px;overflow:hidden;text-align:left}
.summary-results>div{display:flex;align-items:center;gap:13px;padding:15px 18px;border-bottom:1px solid var(--line);font-size:.88rem;color:#638252}
.summary-results>div:last-child{border-bottom:0}
.summary-results strong{flex:1;min-width:0;font-size:.9rem;font-weight:500;color:#4c6043}
.summary-results>div>span:last-child{font-size:.77rem;color:#697157}
/* Experimenting, notes and the personal project retain the same reading scale. */
.lab-grid{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:24px}
.lab-notes{padding:5px 5px 5px 0}
.lab-notes h2{font:400 1.95rem/1.2 var(--display);color:#59694c;margin:19px 0}
.lab-notes p{line-height:1.85;margin:14px 0}
.lab-notes h3{font-size:1.1rem;margin:28px 0 13px}
.lab-notes .notice{font-size:.87rem}
.lab-notes .full{margin-top:20px}
.project-heading h1 em{color:var(--green)}
.repo-insight{display:grid;grid-template-columns:1fr 1fr;background:var(--green-pale);border:1px solid #d3dfc6;border-radius:13px;margin-bottom:35px}
.repo-insight>div{padding:26px}
.repo-insight>div+div{border-left:1px solid #d3dfc6}
.repo-insight .icon{margin-right:8px;color:#71895d}
.repo-insight strong{font-size:.96rem;color:#4d6843}
.repo-insight p{font-size:.94rem;line-height:1.85;margin-top:14px}
.mission{display:flex;gap:22px;padding:27px;border:1px solid var(--line);background:var(--paper);border-radius:13px;margin-bottom:17px}
.mission.complete{background:#eff4e7;border-color:#cadbb9}
.mission-number{display:grid;place-items:center;width:39px;height:39px;flex-shrink:0;border-radius:50%;font-size:.88rem;margin-top:4px;background:var(--brand-selected)}
.mission>div{min-width:0}
.mission h2{font-size:1.4rem;margin:9px 0 16px}
.mission p{font-size:1rem;line-height:1.85;max-width:83ch}
.evidence-box{padding:17px 20px;border-left:3px solid #c7d9ad;background:#f0f3e9;margin-top:21px}
.evidence-box strong{font-size:.82rem}
.evidence-box p{font-size:.92rem;line-height:1.85;margin-top:7px}
.mission-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:23px}
.mission-actions .button{font-size:.87rem}
.mission-check{display:flex;align-items:center;gap:8px;font-size:.86rem;color:#5c704a;cursor:pointer;min-height:44px}
.mission-check input{width:19px;height:19px;accent-color:var(--green)}
.notes-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:28px}
.new-note{padding:25px;border:1px solid #dedaca;border-radius:13px;background:#eeede2}
.new-note label{display:block;font-size:1rem;font-weight:550;color:#5d664b;line-height:1.7}
.note{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:23px 25px;margin:20px 0}
.note-meta{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:.78rem;margin-bottom:13px}
.note>p{font-size:1rem;line-height:1.9;color:#58674d;overflow-wrap:anywhere}
.note>.text-link{margin-top:18px}
.history-card{background:#edf0e3;border:1px solid #d9dfcc;border-radius:13px;padding:23px;align-self:start}
.history-card h3{font-size:1.05rem}
.history-card .section-heading .icon{width:19px;height:19px;color:#72855a}
.history-row{display:flex;gap:11px;padding:17px 0;border-bottom:1px solid #d8deca}
.history-mark{font-size:1.1rem;color:#9b7c44}
.history-mark.pass{color:#668752}
.history-row strong{font-size:.86rem;font-weight:500;line-height:1.6;display:block;color:#526944}
.history-row small{font-size:.75rem;display:block;margin-top:5px;color:#647354}
.history-card>.button{margin-top:25px;font-size:.82rem}
.empty-state{border:1px dashed #cfd5bf;border-radius:13px;text-align:center;padding:38px 28px;margin-top:23px}
.empty-state>.icon{color:#8b9d6a;width:32px;height:32px;margin-bottom:18px}
.empty-state h3{font:400 1.55rem var(--display);color:#62724a}
.empty-state p{font-size:.94rem;line-height:1.85;margin-top:14px}
/* Preferences make access and the companion's role explicit. */
.reading-card{display:flex;align-items:center;gap:28px;justify-content:space-between;border:1px solid #e6eee7;background:#e6eee7;border-radius:14px;padding:28px;margin-bottom:28px}
.reading-card>div:first-child{max-width:65ch}
.reading-card h2{margin:8px 0 12px;font-size:1.5rem}
.reading-card p{font-size:.94rem;line-height:1.85}
.reading-options{display:flex;gap:10px;flex-shrink:0}
.reading-options button{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:115px;min-height:95px;padding:16px;border-radius:10px;border:1px solid #e6eee7;background:#e6eee7;color:#30513f;font-size:.84rem}
.reading-options .aa-icon{font-size:1.8rem}
.reading-options button[data-value=large] .aa-icon{font-size:2.1rem}
.reading-options button.selected{background:#e6eee7;border-color:#3d6450;box-shadow:inset 0 0 0 1px #3d6450;color:#30513f}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}
.settings-card{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:28px}
.settings-card h2{font-size:1.4rem;margin-bottom:16px}
.settings-card h3{font-size:1.1rem;margin:25px 0 13px}
.settings-card p{font-size:.96rem;line-height:1.9;margin-top:12px}
.time-options.large{margin:23px 0}
.time-options.large button{font-size:.88rem;min-height:50px}
.backup-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:23px}
.upload-label{cursor:pointer}
.upload-label input{position:absolute;opacity:0;width:1px;height:1px}
.upload-label:focus-within{outline:3px solid #3d6450;outline-offset:4px}
.access-explainer{border:1px solid #d6dec7;background:#eef2e5;border-radius:11px;padding:21px;margin-top:25px}
.access-explainer h3:first-child{margin-top:0}
.access-explainer p{font-size:.92rem}
hr{border:0;border-top:1px solid var(--line);margin:29px 0}
/* The research is a readable reference, away from the primary learning flow. */
.research-lead{display:flex;gap:25px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:30px 0;margin:25px 0 30px}
.big-quote{font:6rem/1 var(--display);color:#e6eee7;display:none}
.research-lead h2{font:650 var(--type-section)/1.35 var(--display);color:var(--text-primary);max-width:750px;margin-bottom:18px}
.research-lead p{font-size:1rem;line-height:1.9;max-width:80ch}
.research-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.research-card{border:1px solid var(--line);background:var(--paper);border-radius:13px;padding:28px}
.research-card h2{font-size:1.35rem;line-height:1.35;margin:15px 0}
.research-card>p{font-size:.97rem;line-height:1.9}
.design-choice{border-left:3px solid #e6eee7;padding:10px 0 10px 17px;margin:22px 0}
.design-choice strong{font-size:.83rem;color:#30513f}
.design-choice p{font-size:.94rem;line-height:1.85;margin-top:8px}
.research-card>a{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;line-height:1.7;color:#30513f;min-height:38px}
.research-card>a .icon{width:16px;height:16px}
.table-wrap{overscroll-behavior-x:contain;margin-top:20px;max-width:100%;overflow:auto}
table{border-collapse:collapse;width:100%;text-align:left;font-size:.9rem;line-height:1.85}
th,td{padding:18px 20px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.8125rem;font-weight:650;color:#5d6a4e;background:#efefe4}
td{color:#616c55}
td:first-child{font-weight:550;color:#47513e}
/* Help opens only when requested, with native keyboard and focus handling. */
#guide-dialog{max-width:690px;width:calc(100% - 36px);max-height:90svh;overflow:auto;border:1px solid #e6eee7;border-radius:18px;padding:28px;background:var(--paper);color:var(--ink);box-shadow:0 20px 70px #30213c33}
#guide-dialog::backdrop{background:#30273d66;backdrop-filter:blur(3px)}
.dialog-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.dialog-heading>div{display:flex;align-items:center;gap:10px}
.dialog-heading .pip-small{width:63px;margin:-9px 0 -6px -5px}
#guide-title{font:400 2rem var(--display);margin:18px 0 20px}
.guide-nav-list{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#f6f5ec}
.guide-nav-list>a{display:flex;gap:15px;align-items:center;padding:14px 17px;border-bottom:1px solid var(--line);color:#5c6750}
.guide-nav-list>a:last-child{border-bottom:0}
.guide-nav-list>a:hover{background:#e6eee7;color:#30513f}
.guide-nav-list>a>span{flex:1}
.guide-nav-list strong{display:block;font-size:.91rem}
.guide-nav-list small{display:block;font-size:.79rem;line-height:1.6;margin-top:3px}
.guide-nav-list>a>.icon:last-child{width:17px;height:17px}
.guide-disclosure{font-size:.8rem;line-height:1.85;color:#716450;margin:23px 0}
.skip-link{position:fixed;top:-100px;left:280px;z-index:100;background:var(--paper);padding:14px;color:var(--purple-dark)}
.skip-link:focus{top:10px}
#toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translate(-50%,20px);width:max-content;max-width:min(690px,88vw);padding:15px 22px;border-radius:11px;box-shadow:0 5px 25px #2e223522;font-size:.9rem;line-height:1.7;z-index:100;opacity:0;pointer-events:none;transition:transform .2s,opacity .2s;background:var(--text-primary);color:white}
#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1550px){
 .topbar,footer{margin-left:58px;margin-right:58px}
 .pip-welcome{min-height:0}
 .focus-card{padding:37px;gap:45px}
 .editor-body{height:430px}
}
@media(max-width:1250px){
 .brand{gap:9px}
 .nav-item small{font-size:.78rem}
 .pip-hero{margin:0}
 .pip-introduction{left:auto;max-width:210px}
 .pip-welcome:before{width:130px;height:130px;right:calc(50% - 65px)}
 .focus-card{padding:27px;gap:26px;grid-template-columns:minmax(0,1fr) 235px}
 .focus-card h2{font-size:1.7rem}
 .journey-recommendation,.chapter-start{flex-wrap:wrap;gap:12px}
 .journey-recommendation>div,.chapter-start>div{min-width:220px}
 .journey-recommendation .button,.chapter-start .button{margin-left:90px}
 .runtime-status{display:none}
 .run-button kbd{display:none}
 .editor-toolbar .text-button{font-size:.75rem}
 .lesson-grid{grid-template-columns:1fr}
 .lesson-copy{max-width:78ch}
 .lab-grid{grid-template-columns:minmax(0,1fr) 230px}
 .notes-grid{grid-template-columns:minmax(0,1fr) 245px;gap:23px}
 .settings-card{padding:24px}
 .reading-card{flex-wrap:wrap}
 .research-card{padding:24px}
}
@media(max-width:1050px){
 .brand{gap:8px}
 .language-pill div>span{font-size:.65rem}
 .nav-item small{font-size:.76rem}
 .pip-help small{font-size:.63rem}
 .pip-tiny{width:45px}
 .topbar,footer{margin-left:25px;margin-right:25px}
 .topbar-actions{gap:13px}
 .pip-introduction{top:auto;left:auto;max-width:185px;padding:10px 12px}
 .pip-hero{margin:0}
 .pip-welcome{min-height:0}
 .focus-card{grid-template-columns:1fr}
 .time-options button small{font-size:.75rem}
 .time-options{max-width:500px}
 .stats-row{gap:15px}
 .stat{gap:9px}
 .stat>.icon{padding:9px;width:19px;height:19px}
 .stat span{font-size:.74rem}
 .pip-coach{max-width:730px}
 .confidence-options{gap:9px}
 .confidence-options button{font-size:.87rem;padding:10px 15px}
 .support-note{margin-top:15px}
 .editor-body{height:390px}
 .runtime-status{display:block}
 .run-button kbd{display:inline}
 .editor-toolbar .text-button{font-size:.85rem}
 .exercise-card{padding:21px}
 .exercise-card h3{font-size:1.15rem}
 .lab-grid,.notes-grid{grid-template-columns:1fr}
 .history-card{max-width:100%}
 .history-card .history-row{display:inline-flex;width:49%;vertical-align:top;padding-right:15px}
 .lab-notes{max-width:78ch}
 .lab-notes h2 br{display:block}
 .lab-notes h2{line-height:1.35}
 .lab-notes h2 br:after{content:' '}
 .lab-notes .full{width:auto}
 .repo-insight{grid-template-columns:1fr}
 .repo-insight>div+div{border-left:0;border-top:1px solid #d3dfc6}
 .settings-grid{grid-template-columns:1fr}
 .research-grid{grid-template-columns:1fr}
 .research-lead{gap:18px}
}
@media(max-width:760px){
 .sidebar{visibility:hidden;transition:transform .2s,visibility .2s;box-shadow:10px 0 35px #382c4422;position:fixed;overscroll-behavior:contain;transform:translateX(-105%);z-index:40;inset:64px auto 0 0;height:calc(100dvh - 64px)}
 .sidebar.open{transform:translateX(0);visibility:visible;transition:transform .2s}
 .sidebar .brand{display:none}
 .language-pill div>span{font-size:.72rem}
 .nav-item small{font-size:.72rem}
 .pip-help small{font-size:.7rem}
 .pip-tiny{width:52px}
 .page{margin-left:0}
 .mobile-top{position:sticky;top:0;z-index:40;align-items:center;justify-content:space-between;height:64px;display:flex;padding:10px 20px;background:var(--surface-paper)}
 .mobile-brand{display:flex;align-items:center;gap:9px;letter-spacing:-.04em}
 .breadcrumb{gap:8px}
 .topbar-actions .text-button{font-size:.77rem;gap:6px}
 .topbar-actions .text-button .icon{width:18px;height:18px}
 .reading-toggle{padding:8px 4px}
 .aa-icon{font-size:1.2rem}
 main{padding:16px 20px 32px}
 footer{flex-direction:column;font-size:.72rem;padding:20px;gap:12px;flex-wrap:wrap}
 .pip-welcome{min-height:0}
 .pip-hero{margin:0}
 .pip-introduction{left:auto;max-width:170px;padding:10px 12px}
 .pip-welcome:before{width:116px;height:116px;right:calc(50% - 58px);bottom:0}
 .focus-card{padding:25px;border-radius:15px;gap:20px}
 .focus-card h2{font-size:1.7rem}
 .focus-copy>p{font-size:1rem}
 .focus-meta{gap:12px 20px}
 .main-cta{min-height:54px;font-size:.95rem;padding:14px 18px}
 .focus-copy>.focus-reassurance{font-size:.82rem;margin-top:14px}
 .time-options button{padding:11px 8px}
 .time-options button strong{font-size:1rem}
 .time-options button small{font-size:.75rem}
 .section-heading{gap:15px}
 .section-heading h2{font-size:1.2rem}
 .section-heading .text-link{font-size:.81rem}
 .stats-row{gap:15px;padding:23px 0;width:100%}
 .stat{display:block}
 .stat>.icon{margin-bottom:13px;padding:10px}
 .stat strong{font-size:1.45rem}
 .stat span{font-size:.76rem;line-height:1.6}
 .page-heading p{line-height:1.8}
 .journey-recommendation,.chapter-start{padding:19px;gap:10px}
 .journey-recommendation>.pip-small,.chapter-start>.pip-small{width:64px}
 .journey-recommendation>div,.chapter-start>div{min-width:180px}
 .journey-recommendation .button,.chapter-start .button{margin-left:74px;font-size:.87rem}
 .journey-recommendation p,.chapter-start p{font-size:.92rem}
 .chapter-start h2{font-size:1.25rem}
 .journey-legend{gap:13px 18px;font-size:.77rem}
 .status-tag{font-size:.75rem}
 .future-card{padding:25px}
 .future-card h2{font-size:1.35rem}
 .future-card p{font-size:.96rem}
 .future-card .table-wrap table{min-width:560px}
 .back-row{align-items:flex-start;gap:18px}
 .back-row .text-button{font-size:.8rem;max-width:190px;min-height:44px}
 .lesson-grid{margin:25px 0 35px;gap:25px}
 .worked-example pre{font-size:.92rem;padding:20px}
 .worked-example .editor-title{flex-wrap:wrap;gap:4px 10px;font-size:.82rem}
 .worked-example .editor-title .text-button{font-size:.78rem}
 .exercise-grid{grid-template-columns:1fr;gap:15px}
 .exercise-card{padding:23px}
 .exercise-card h3{font-size:1.22rem}
 .exercise-card p{font-size:.97rem}
 .exercise-top{margin-bottom:17px}
 .exercise-bottom{font-size:.8rem}
 .pip-coach{padding:12px 13px 12px 3px;gap:7px}
 .pip-coach .pip-small{width:66px}
 .pip-coach strong{font-size:.86rem}
 .pip-coach p{font-size:.91rem}
 .confidence-options{gap:8px}
 .confidence-options button{font-size:.84rem;padding:9px 12px}
 .concept-details summary{font-size:.94rem}
 .editor-body{height:340px}
 .editor-body.tall{height:400px}
 .editor-body textarea,.line-numbers{font-size:.96rem}
 .editor-toolbar{padding:12px;gap:10px}
 .editor-title.dark{font-size:.82rem}
 .runtime-status{font-size:.7rem}
 .run-button{font-size:.88rem}
 .run-button kbd{display:none}
 .editor-toolbar .text-button{font-size:.82rem;padding:8px 2px}
 .feedback-panel{padding:20px}
 .feedback-message strong{font-size:1rem}
 .feedback-message p,.empty-feedback p{font-size:.97rem}
 .check strong{font-size:.96rem}
 .check p{font-size:.91rem}
 .check-heading{gap:8px}
 .check-heading strong{font-size:.98rem}
 .check-heading span{font-size:.84rem}
 .error-output,.console-output{font-size:.88rem}
 .choice{font-size:1rem;min-height:59px;width:100%}
 .parsons-row{gap:8px;padding:9px}
 .parsons-row code{font-size:.88rem;min-width:0}
 .parsons-row .icon-button{width:36px;height:36px}
 .trace-card{padding:20px}
 .trace-card p{font-size:.9rem}
 .trace-card .section-heading span{font-size:.81rem}
 .variable-table code{font-size:.9rem}
 .session-summary h1{font-size:2.5rem}
 .session-summary>p{font-size:1rem}
 .pip-summary{width:157px}
 .summary-counts{gap:12px}
 .summary-counts .stat{text-align:center}
 .summary-counts .stat>.icon{display:none}
 .summary-counts .stat span{font-size:.75rem}
 .summary-results>div{padding:15px 13px;gap:10px;flex-wrap:wrap}
 .summary-results strong{font-size:.91rem}
 .summary-results>div>span:last-child{font-size:.78rem}
 .session-summary>p.summary-explainer{font-size:.92rem}
 .repo-insight>div{padding:23px}
 .repo-insight p{font-size:.97rem}
 .mission{padding:23px;gap:15px}
 .mission-number{width:30px;height:30px;font-size:.8rem}
 .mission h2{font-size:1.35rem}
 .mission p{font-size:1rem}
 .evidence-box{padding:15px 17px}
 .evidence-box p{font-size:.94rem}
 .mission-actions{gap:13px}
 .mission-actions .button{font-size:.88rem}
 .mission-check{font-size:.88rem}
 .new-note{padding:22px}
 .new-note label{font-size:1rem}
 .note{padding:21px}
 .note-meta{font-size:.78rem;align-items:flex-start}
 .note p{font-size:1rem}
 .history-card{padding:22px}
 .history-card .history-row{display:flex;width:100%;padding-right:0}
 .history-row strong{font-size:.93rem}
 .history-row small{font-size:.79rem}
 .reading-card{padding:24px;gap:22px}
 .reading-card p{font-size:.96rem}
 .reading-options{width:100%}
 .reading-options button{flex:1;font-size:.9rem;min-height:94px}
 .settings-card{padding:24px}
 .settings-card h2{font-size:1.45rem}
 .settings-card p{font-size:1rem}
 .settings-card h3{font-size:1.15rem}
 .time-options.large button{font-size:.9rem}
 .access-explainer{padding:21px}
 .access-explainer p{font-size:.96rem}
 .research-lead{gap:14px;padding:24px 0}
 .big-quote{font-size:4.7rem}
 .research-lead p{font-size:.99rem}
 .research-card{padding:25px}
 .research-card h2{font-size:1.4rem}
 .research-card>p{font-size:1rem}
 .design-choice p{font-size:.97rem}
 .research-card>a{font-size:.84rem}
 th,td{padding:16px}
 #guide-dialog{padding:23px;max-height:88svh}
 #guide-title{font-size:1.9rem}
 .guide-disclosure{font-size:.85rem}
 .skip-link{left:16px}
 #toast{left:50%;bottom:20px;max-width:90vw;font-size:.9rem;padding:14px 18px}
}
@media(max-width:520px){
 .topbar{gap:7px}
 .breadcrumb{gap:7px}
 .topbar-actions{gap:9px}
 .reading-toggle>span:last-child{display:none}
 .topbar-actions .text-button{font-size:.75rem}
 .topbar-actions .text-button .icon{width:18px;height:18px}
 .reading-toggle{width:42px;padding:6px}
 .reading-toggle .aa-icon{font-size:1.4rem}
 .pip-welcome{position:relative;right:auto;top:auto;width:auto;min-height:0;height:auto;flex-direction:row;margin:18px 0 0}
 .pip-hero{margin:0}
 .pip-welcome:before{display:none}
 .pip-introduction{display:block;position:relative;flex:1;max-width:none;text-align:left}
 .focus-card{padding:23px;gap:20px}
 .focus-card h2{font-size:1.65rem}
 .focus-copy>p{font-size:.98rem}
 .focus-actions{align-items:stretch}
 .main-cta{width:100%;font-size:.94rem;padding:14px 15px;gap:10px}
 .focus-actions .quiet-link{justify-content:center;line-height:1.7}
 .focus-meta{gap:10px 16px;margin:18px 0}
 .focus-copy>.focus-reassurance{font-size:.81rem}
 .section-heading{flex-wrap:wrap;gap:4px}
 .section-heading .text-link{font-size:.85rem}
 .stat span{font-size:.73rem}
 .journey-recommendation>div,.chapter-start>div{min-width:160px}
 .journey-recommendation .pip-small,.chapter-start .pip-small{width:52px}
 .journey-recommendation,.chapter-start{gap:9px}
 .journey-recommendation .button,.chapter-start .button{margin-left:61px;padding:12px 14px;font-size:.87rem}
 .journey-recommendation strong{font-size:.97rem}
 .journey-legend{gap:12px 16px;font-size:.75rem}
 .back-row>a{font-size:.83rem;min-width:83px}
 .back-row .text-button{font-size:.77rem;max-width:180px}
 .lesson-copy>p{font-size:1rem}
 .worked-example pre{font-size:.88rem;padding:19px;line-height:1.9}
 .goal-box{padding:18px;gap:12px}
 .goal-box p{font-size:.91rem}
 .confidence-options button{font-size:.81rem;padding:9px}
 .editor-title.dark{font-size:.82rem}
 .runtime-status{display:none}
 .editor-body{height:335px}
 .editor-body textarea,.line-numbers{font-size:.94rem;line-height:1.85}
 .line-numbers{width:37px;padding-right:9px}
 .editor-body textarea{padding-right:14px}
 .editor-toolbar{align-items:center;gap:10px;padding:12px}
 .editor-toolbar .text-button{font-size:.79rem}
 .run-button{font-size:.87rem}
 .editor-toolbar .text-button .icon{width:17px;height:17px}
 .feedback-panel{padding:19px}
 .check-heading{display:block}
 .check-heading span{display:block;margin-top:7px}
 .check p{font-size:.9rem}
 .choice{font-size:.99rem;gap:12px;padding:12px}
 .choice>.choice-letter{width:29px;height:29px}
 .parsons-row{gap:7px;padding:8px;min-height:73px}
 .parsons-row code{font-size:.83rem}
 .parsons-row .icon-button{height:37px;width:37px}
 .parsons-row .line-index{font-size:.7rem}
 .session-summary h1{font-size:2.4rem}
 .summary-details{padding:17px}
 .summary-counts .stat span{font-size:.7rem}
 .summary-results>div{gap:10px}
 .summary-results strong{font-size:.89rem}
 .summary-results>div>span:last-child{font-size:.75rem;flex-basis:100%;padding-left:25px}
 .mission{padding:21px 18px;gap:12px}
 .mission h2{font-size:1.3rem}
 .mission-number{width:27px;height:27px;font-size:.78rem}
 .mission-actions .button{font-size:.85rem;text-align:left;justify-content:flex-start}
 .evidence-box{padding:14px}
 .reading-card{padding:23px}
 .reading-options button{min-width:0}
 .settings-card{padding:23px}
 .settings-card h2{font-size:1.4rem}
 .time-options.large button{font-size:.82rem;padding:9px 6px}
 .backup-actions .button{font-size:.87rem}
 .access-explainer{padding:18px}
 .access-explainer h3{font-size:1.1rem}
 .research-lead{gap:11px}
 .big-quote{font-size:4rem}
 .research-card{padding:24px}
 #guide-dialog{padding:22px;max-height:90svh}
 .dialog-heading>div{gap:3px}
 .dialog-heading .pip-small{width:52px}
 #guide-title{font-size:1.8rem}
 .guide-nav-list>a{padding:14px;gap:12px}
 .guide-nav-list strong{font-size:.93rem}
 .guide-nav-list small{font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
/* Track selection stays outside the focused question flow. */
a.language-pill{color:inherit;text-decoration:none}
a.language-pill:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
.concept-details pre{white-space:pre-wrap;overflow-wrap:anywhere}
.editor-shortcuts{display:block;margin:8px 16px;font-size:.75rem;line-height:1.6;padding:12px 16px}
/* Playground instructions sit inside the dark editor; exercise help is on paper. */
/* First-visit orientation and a stable Home. */
.home-intro{display:grid;grid-template-columns:minmax(0,1fr) 215px;margin:0 0 4px;padding:0;gap:24px;align-items:center}
.home-intro h1{text-wrap:balance;margin:10px 0 12px;max-width:32ch}
.home-intro>div>p{max-width:65ch;line-height:1.65}
.home-intro .pip-hero{width:104px;margin:0}
.home-intro .pip-welcome{gap:8px;flex-direction:column;margin:0}
.home-intro .pip-welcome:before{width:100px;height:100px;right:calc(50% - 50px)}
.home-intro .pip-introduction{padding:9px 12px;max-width:215px;flex:none;width:100%;text-align:center}
.home-intro .pip-introduction strong{font-size:.8rem}
.home-intro .pip-introduction span{font-size:.72rem;margin-top:2px}
.track-summary{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:.8rem;margin-top:12px;color:var(--muted)}
.track-summary strong{background:var(--brand-selected);border-color:transparent}
.home-next{grid-template-columns:minmax(0,1fr) minmax(210px,.48fr);gap:28px;display:block;background:transparent;border:0;border-radius:0;padding:0;margin:0;box-shadow:none}
.home-next h2{margin:9px 0 12px}
.home-next .focus-copy>p{font-size:.94rem;line-height:1.65}
.home-next .focus-meta{margin:15px 0;gap:14px;font-size:.8rem}
.home-next .focus-reassurance{font-size:.76rem;margin-top:10px}
.home-next .main-cta{min-height:50px;padding:12px 19px;font-size:.92rem}
.home-context{border-left:1px solid #e6eee7;padding-left:24px;min-width:0}
.home-context>strong{font-size:.92rem;color:#30513f}
.home-context>p{margin-top:8px;font-size:.86rem;line-height:1.65;color:#655b73}
.home-context .text-link{font-size:.8rem}
.home-session-length{border-top:1px solid #e6eee7;margin-top:12px;padding-top:12px;font-size:.8rem}
.home-session-length p{margin-top:10px;font-size:.8rem}
.home-session-length .time-options{margin-top:10px;gap:5px}
.home-session-length .time-options button{font-size:.78rem;padding:8px 5px;min-height:44px}
.home-trust{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0 24px;font-size:.76rem;color:var(--muted)}
.home-trust a,.home-tools a,.chapter-connections a,.guide-links a,.progress-explainer a,.page-heading p a{color:var(--purple-dark);text-decoration:underline;text-underline-offset:3px}
.home-map h2{margin:0 0 15px}
.home-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;margin:0;padding:0;gap:24px}
.home-flow>li{display:flex;align-items:flex-start;gap:11px;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:12px}
.home-flow>li>.icon{color:var(--green);width:20px;height:20px;margin-top:3px}
.home-flow h3{font-size:1rem}
.home-flow h3 a{display:inline-flex;align-items:center;min-height:30px;color:var(--purple-dark);text-decoration:underline;text-underline-offset:3px}
.home-flow p{font-size:.83rem;line-height:1.65;margin-top:6px}
.home-tools{font-size:.85rem;margin-top:17px;line-height:1.8}
.guide-intro{font-size:.9rem;margin:15px 0;line-height:1.75}
.guide-links{display:flex;gap:12px 24px;flex-wrap:wrap;margin:17px 0;font-size:.87rem}
.guide-links a{min-height:44px;display:inline-flex;align-items:center}
.sidebar-bottom{padding:0;display:flex;align-items:center;gap:8px}
.sidebar-bottom .nav-item{min-height:50px}
.sidebar-bottom .nav-item small{font-size:.7rem}
.chapter-group-title{font-size:1.125rem;color:var(--text-primary);margin:32px 0 8px}
.progress-explainer{border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:14px 18px;margin:0 0 20px;font-size:.85rem}
.progress-explainer p{margin-top:12px;max-width:82ch;line-height:1.8}
.chapter-connections{font-size:.88rem;margin:25px 0;line-height:1.8}
.lesson-grid+.chapter-start{margin-top:26px}
.activity-position>span{line-height:1.5}
@media(min-width:761px){
 .home-page{margin-top:-12px}
}
@media(max-width:1050px){
 .home-intro{grid-template-columns:minmax(0,1fr) 170px}
 .home-next{grid-template-columns:minmax(0,1fr) 215px;gap:20px}
 .home-context{padding-left:18px}
 .home-flow>li{padding:14px;gap:8px}
 .home-flow>li>.icon{display:none}
}
@media(max-width:760px){
 .home-intro{grid-template-columns:minmax(0,1fr) 130px;gap:12px;margin:0;align-items:start}
 .home-intro>div>p{font-size:.94rem}
 .home-intro .pip-introduction{font-size:.75rem;order:2;flex:1 1 auto;border:0;box-shadow:none}
 .home-intro .pip-introduction span{display:none}
 .home-context{margin-top:18px;padding:16px 0 0;border-left:0;border-top:1px solid #e6eee7}
 .home-flow{grid-template-columns:1fr}
 .home-flow>li{padding:15px}
 .home-flow>li>.icon{display:block}
 .home-trust{font-size:.73rem;gap:5px 14px;flex-wrap:wrap}
 .home-trust a{display:inline-flex;align-items:center;min-height:36px}
 .activity-header .activity-exit{font-size:.75rem}
 .activity-position>span{font-size:.72rem}
}
@media(max-width:420px){
 .home-intro{grid-template-columns:minmax(0,1fr) 82px}
 .home-intro .pip-introduction{max-width:88px}
 .home-intro .pip-introduction strong{font-size:.65rem}
 .home-intro .pip-hero{width:76px}
 .track-summary{display:block}
 .track-summary span{display:block;margin-top:3px}
 .home-next .focus-meta{gap:8px 14px}
}
@media(max-width:520px){
 .home-intro{grid-template-columns:minmax(0,1fr) 82px}
 .home-intro>div:first-child{display:contents}
 .home-intro h1,.home-intro .track-summary{grid-column:1 / -1}
 .home-intro h1{margin:0}
 .home-intro>div:first-child>p:not(.track-summary){grid-column:1;grid-row:2;font-size:.9rem}
 .home-intro .pip-welcome{grid-column:2;grid-row:2;align-self:center}
 .home-intro .track-summary{grid-row:3;display:flex}
 .home-intro .track-summary span{margin-top:0}
 .home-intro .pip-introduction{padding:7px;max-width:82px}
 .home-intro .pip-introduction strong{font-size:.65rem}
 .home-intro .pip-hero{width:76px}
}
@media(max-width:360px){
 .home-intro h1{line-height:1.05}
 .home-intro .pip-introduction{display:none}
 .home-next .focus-meta{margin:10px 0}
}
@media(max-width:360px){
 .home-page{margin-top:-12px}
}
/* Both first-visit routes share the same decision area on shorter screens. */
.home-next .focus-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.home-next .quiet-link{min-height:44px;text-align:left;white-space:normal}
@media(max-width:520px){
 .home-next h2{margin-top:0}
 .home-next .focus-meta{margin:10px 0}
 .home-next .focus-actions{gap:4px}
}
/* Fixture data stays semantic and locally scrollable on narrow screens. */
.sql-fixtures{margin-bottom:18px;grid-column:1}
.sql-fixtures>p{margin:12px 0;font-size:.9rem}
.fixture-table-scroll{max-width:100%;overflow-x:auto;margin:14px 0 20px}
.fixture-table{border-collapse:collapse;min-width:100%;font-size:.85rem;background:var(--paper)}
.fixture-table caption{text-align:left;font-weight:650;margin-bottom:8px;color:var(--text-primary)}
.fixture-table th,.fixture-table td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.fixture-table th{background:var(--brand-selected);color:var(--brand-hover)}
.fixture-table abbr{color:var(--text-secondary);text-decoration:underline dotted;text-underline-offset:3px}
.fixture-setup{font-size:.85rem;margin-bottom:18px}
.fixture-setup pre{margin-top:12px}
/* A focused exercise has one task and one primary action at a time. */
.activity-page [hidden]{display:none!important}
body.is-focused{background:#f8f7f2}
.activity-page{margin:0 auto;max-width:1200px}
.activity-header{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:82px;border-bottom:1px solid #e1e3d8;padding:12px 32px;border-color:var(--line)}
.activity-exit{display:flex;align-items:center;gap:9px;color:#626d5b;min-height:44px;padding:8px 0;font-size:.86rem;min-width:100px}
.activity-exit .icon{width:20px;height:20px}
.activity-position{flex:1;max-width:390px;text-align:center;font-size:.84rem;color:#59694f}
.activity-progress{height:5px;max-width:340px;margin:10px auto 0;border-radius:5px;background:#e2e7d8;overflow:hidden}
.activity-progress>span{height:100%;display:block;background:#8fac72;border-radius:5px}
.activity-header .reading-toggle{min-width:110px;font-size:.82rem}
.activity-page main{min-height:0;margin:0 auto;max-width:none;padding:24px 32px 40px}
.activity-intro{display:flex;align-items:center;gap:20px;margin:0 0 24px}
.activity-intro #activity-mascot{flex-shrink:0}
.pip-activity{width:64px;height:64px}
.activity-heading{flex:1;min-width:0}
.activity-heading h1{font-family:var(--sans);font-size:1.65rem;font-weight:550;line-height:1.3;letter-spacing:-.025em;margin:8px 0 10px}
.activity-question{line-height:1.75;margin:11px 0}
.activity-instruction{line-height:1.75;margin-top:9px}
.activity-answer-card{background:var(--paper);border:1px solid #d9decf;border-radius:16px;padding:24px}
.activity-example{font-size:1rem;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;background:#292b34;color:#e6eee7;border-radius:10px;padding:20px 24px;margin:0 0 21px}
.activity-answer-card .choice-list{gap:9px;margin:0 0 19px}
.activity-answer-card .choice{min-height:53px;padding:10px 13px;font-size:1rem;border-color:#d6dcce;background:#fafbf5;display:grid;grid-template-columns:29px minmax(0,1fr) auto}
.activity-answer-card .choice.selected{background:#e6eee7;border-color:#3d6450}
.activity-answer-card .choice>.choice-letter{width:29px;height:29px;font-size:.8rem;background:#e8eddf;color:var(--text-secondary)}
.activity-answer-card .choice.selected>.choice-letter{background:var(--brand-selected);color:var(--brand-hover)}
.activity-check{width:100%;font-size:.97rem;min-height:52px;padding:13px 20px}
.activity-check:disabled{opacity:1;border-color:var(--line)}
.activity-code-card{grid-column:2;grid-row:1/5;padding:0;border:1px solid var(--line);border-radius:var(--surface-radius);overflow:hidden;background:var(--surface-paper)}
.activity-code-card .editor-card{box-shadow:none;border-radius:10px}
.activity-code-card .editor-title{padding:11px 17px;min-height:44px;font-size:.85rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.activity-code-card .editor-body textarea,.activity-code-card .line-numbers{font-size:.96rem;line-height:1.8}
.activity-run-row{display:flex;gap:12px;margin:0;padding:0 16px 12px;flex-wrap:wrap}
.activity-run-row>.run-button{justify-content:center;background:var(--purple);color:#fff;padding:12px 20px;flex:0 1 auto}
.activity-run-row>.run-button:hover{background:var(--purple-dark)}
.activity-run-row>.run-button kbd{font-size:.75rem;border-color:#ffffff55;margin-left:auto}
.activity-run-row>.secondary{padding:12px 20px}
.activity-feedback:empty{display:none}
.activity-feedback{margin:18px 0 0}
.activity-feedback-note{font-size:.92rem;color:#30513f;line-height:1.8;padding:15px 18px;background:#e6eee7;border-radius:9px}
.activity-error{border:1px solid #e3d6bd;border-radius:10px;background:var(--error-surface);border-color:#ddbaad;padding:18px}
.activity-error>strong{font-family:var(--mono);font-size:.9rem;line-height:1.85;color:#805f32;overflow-wrap:anywhere;font-weight:500}
.activity-error details{margin-top:12px}
.activity-error pre{font-size:.85rem;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:#705d3e}
.activity-failed-check{border:1px solid #e1d6bd;border-radius:11px;padding:19px 22px;background:var(--warning-surface);border-color:#d5c09a}
.activity-failed-check>strong{display:block;font-size:1rem;color:#6d5838}
.activity-failed-check>p{font-size:.91rem;line-height:1.8;margin-top:8px;color:#71654e}
.activity-failed-check details{margin-top:11px}
.activity-failed-check details summary{font-size:.84rem;color:#7b6241}
.activity-failed-check code{display:block;font-size:.85rem;line-height:1.8;margin-top:8px;overflow-wrap:anywhere;white-space:normal}
.activity-failed-check>small{display:block;color:#786b50;font-size:.8rem;margin-top:11px}
.activity-quiet-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-start;margin:0;padding:0}
.activity-quiet-actions .text-button{min-height:44px}
.activity-quiet-actions .text-button .icon{width:18px;height:18px;color:#3d6450}
.activity-quiet-actions .text-button:hover{color:#30513f;text-decoration:underline;text-underline-offset:4px}
.activity-hints .hint{margin:0;border-color:var(--line)}
.activity-hints .hint strong{font-size:.82rem;color:var(--text-muted)}
.activity-hints .hint p{line-height:1.8;margin-top:7px;color:var(--text-primary)}
.activity-tools{border-top:1px solid #dedfd3;padding-top:14px;margin-top:15px}
.activity-tools>summary{color:#6b705b;font-size:.82rem}
.activity-tools .concept-details{padding:15px 0}
.activity-tools .concept-details p{font-size:.95rem}
.activity-tool-buttons{display:flex;align-items:flex-start;gap:4px;flex-direction:column;padding:12px 0}
.activity-tool-buttons .text-button{font-size:.86rem}
.activity-result{padding:28px 12px 35px;max-width:850px;margin:auto}
.activity-result-intro{display:flex;align-items:center;gap:25px;margin-bottom:24px}
.activity-result-intro>div{flex:1;min-width:0}
.activity-result-intro h1{font:400 2.5rem/1.1 var(--display);margin:12px 0 0;color:#47643e;outline:none}
.activity-explanation{border:1px solid #d6e1ca;border-radius:14px;padding:25px;background:var(--success-surface);border-color:#bed1bd}
.activity-explanation p{font-size:1.07rem;line-height:1.9}
.activity-support-note{color:#6d745d;font-size:.86rem;line-height:1.85;margin:18px 4px 0}
.activity-continue{display:flex;justify-content:center;width:100%;min-height:55px;font-size:1rem;padding:15px 22px;margin:25px 0 15px}
.activity-review,.activity-reflection{padding:9px 4px}
.activity-review>summary,.activity-reflection>summary{font-size:.85rem;color:#6b6b59}
.activity-review>pre{padding:19px;background:#efeee6;border-radius:9px;font-size:.91rem;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:#30513f}
.activity-review .checks{padding:10px 15px;background:#f0f3e8;border-radius:9px}
.activity-review .check{padding:9px 0}
.activity-reflection label{display:block;font-size:.9rem;color:#5c6c4f;margin-top:17px}
.activity-reflection textarea{width:100%;display:block;font-size:1rem;line-height:1.8;padding:13px;border:1px solid #cfd9c1;background:var(--paper);border-radius:9px;resize:vertical;margin:8px 0 14px}
.activity-reflection small{display:block;font-size:.8rem;line-height:1.8;color:#73705b;margin-top:12px}
.activity-page .trace-card{margin-bottom:25px}
.activity-page .parsons-list{margin-top:0}
.lab-pip-guide{display:flex;align-items:center;gap:15px;padding:10px 20px 10px 5px;border:1px solid #d6dfc9;background:#eef3e5;border-radius:13px;margin:-8px 0 25px}
.lab-pip-guide strong{font-size:.9rem}
.lab-pip-guide p{font-size:.96rem;line-height:1.8;color:#5a6e49;margin-top:5px}
.brand-story{border-top:1px solid var(--line);padding-top:17px;margin-top:24px}
.brand-story summary{font-size:.85rem;color:#686f53}
.brand-story p{font-size:.92rem;line-height:1.85;margin-top:13px}
@media(max-width:760px){
 .activity-header{min-height:73px;padding:10px 20px;flex-wrap:wrap}
 .activity-exit{gap:7px;font-size:.8125rem}
 .activity-exit .icon{width:18px;height:18px}
 .activity-page main{padding:20px}
 .activity-intro #activity-mascot,.pip-activity{width:88px}
 .activity-heading h1{font-size:1.55rem;margin:8px 0 9px}
 .activity-question{line-height:1.8}
 .activity-instruction{line-height:1.8}
 .activity-result{padding:19px 0 25px}
 .activity-result-intro{gap:18px}
 .activity-result-intro h1{font-size:2.15rem}
 .activity-explanation{padding:23px}
 .activity-explanation p{font-size:1.05rem}
}
@media(max-width:520px){
 .activity-header{gap:11px;min-height:70px}
 .activity-exit{min-width:40px;width:40px;padding:9px}
 .activity-exit>span{display:none}
 .activity-exit .icon{width:21px;height:21px}
 .activity-position{font-size:.78rem;max-width:260px}
 .activity-progress{margin-top:8px;height:4px}
 .activity-header .reading-toggle{min-width:40px;width:40px;padding:7px}
 .activity-header .reading-toggle>span:last-child{display:none}
 .activity-header .reading-toggle .aa-icon{font-size:1.35rem}
 .activity-intro{gap:10px;align-items:flex-start;margin-bottom:20px}
 .activity-intro #activity-mascot,.pip-activity{width:71px;margin-top:3px}
 .activity-heading h1{font-size:1.38rem;line-height:1.35;letter-spacing:-.025em;margin:7px 0 9px}
 .activity-question{line-height:1.8;margin:8px 0}
 .activity-instruction{line-height:1.8;margin-top:7px}
 .activity-answer-card{padding:18px;border-radius:13px}
 .activity-example{font-size:.95rem;line-height:1.85;padding:17px;margin-bottom:17px;border-radius:9px}
 .activity-answer-card .choice-list{gap:8px;margin-bottom:17px}
 .activity-answer-card .choice{min-height:52px;font-size:.98rem;padding:9px 11px;gap:12px}
 .activity-answer-card .choice>.choice-letter{width:28px;height:28px;font-size:.78rem}
 .activity-check{font-size:.95rem;min-height:51px;padding:12px 15px}
 .activity-quiet-actions .text-button{gap:6px}
 .activity-quiet-actions .text-button .icon{width:16px;height:16px}
 .activity-code-card .editor-body textarea,.activity-code-card .line-numbers{font-size:.93rem;line-height:1.85}
 .activity-code-card .editor-title{font-size:.8rem;padding:12px}
 .activity-code-card .line-numbers{width:33px;padding-right:8px}
 .activity-run-row>.run-button kbd{display:none}
 .activity-feedback{margin-top:15px}
 .activity-failed-check{padding:17px 19px}
 .activity-failed-check>strong{font-size:.98rem}
 .activity-failed-check>p{font-size:.91rem}
 .activity-error>strong{font-size:.85rem}
 .activity-result{padding:12px 0 25px}
 .activity-result-intro{gap:13px;margin-bottom:20px}
 .activity-result-intro h1{font-size:1.95rem;line-height:1.15;margin-top:10px}
 .activity-explanation{padding:22px}
 .activity-explanation p{font-size:1.02rem;line-height:1.9}
 .activity-continue{min-height:54px;font-size:.98rem;padding:14px 18px;margin-top:22px}
 .activity-review>summary,.activity-reflection>summary{font-size:.85rem}
 .activity-review>pre{font-size:.89rem;padding:17px}
 .lab-pip-guide{padding:10px 16px 10px 0;gap:8px}
 .lab-pip-guide .pip-small{width:66px}
 .lab-pip-guide p{font-size:.94rem}
}
/* Selection has a persistent text cue, including in forced-colour mode. */
.activity-answer-card .choice{column-gap:12px}
.activity-answer-card .choice-text{min-width:0;overflow-wrap:anywhere}
.activity-answer-card .choice-selection{grid-column:3;grid-row:1;font-size:.75rem;font-weight:650;color:var(--text-secondary-purple)}
.activity-concept{margin:0 0 16px;font-size:.9rem;grid-column:1;padding:0;background:transparent;border:0}
.activity-concept>summary{min-height:44px;align-content:center;color:var(--purple-dark)}
.activity-concept>p{margin:12px 0;line-height:1.8}
.activity-concept h2{font:600 .9rem/1.6 var(--sans);margin:16px 0 8px}
.activity-concept>small{display:block;color:var(--text-secondary);margin:10px 0 18px}
.activity-code-card .editor-title{gap:10px}
.activity-code-card .editor-title .text-button{color:#e6eee7;font-size:.8rem;min-height:32px;padding:3px 0}
.activity-code-card .editor-body.expanded{height:460px;max-height:none}
.activity-run-summary:not(:empty){display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:10px;font-size:.85rem;color:var(--text-secondary)}
.activity-run-summary .text-button{font-size:inherit;min-height:44px;padding:4px 0}
@media(forced-colors:active){
 .activity-answer-card .choice.selected{outline:2px solid Highlight;outline-offset:2px}
 .activity-answer-card .choice-selection{color:ButtonText}
}
/* Studio surfaces, type and controls, shared by every route. */
body,body.is-focused{background:var(--surface-canvas);color:var(--text-primary)}
h1,h2,h3{font-family:var(--font-ui);font-weight:700;letter-spacing:-.025em}
h1{font-size:var(--type-title);line-height:1.25}
h2{font-size:var(--type-section)}
::selection{background:var(--brand-selected);color:var(--text-primary)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid var(--focus-ring);outline-offset:4px}
button,a,summary,select,label.upload-label{touch-action:manipulation}
summary{cursor:pointer;min-height:44px;padding-top:10px;padding-bottom:10px}
input,select,textarea{color:var(--text-primary);background-color:var(--surface-paper)}
select{font:inherit;border:1px solid var(--border-default);border-radius:var(--control-radius);padding:8px}
button,.button{transition:background-color .15s,color .15s,border-color .15s}
.button{border-radius:var(--control-radius);min-height:var(--control-height);font-size:.9375rem;font-weight:700}
.button.primary,.run-button,.activity-run-row>.run-button{background:var(--brand-action);color:white}
.button.primary:hover,.run-button:hover,.activity-run-row>.run-button:hover{background:var(--brand-hover);color:white}
.button.secondary{background:var(--brand-selected);color:var(--brand-hover);border-color:transparent}
.text-button,.link-button,.text-link{color:var(--brand-hover);text-underline-offset:4px;min-height:44px}
.text-button:hover,.link-button:hover,.text-link:hover{text-decoration:underline}
.button:disabled{opacity:.65;cursor:default}
.button.active,.time-options .selected{background:var(--brand-selected);color:var(--brand-hover)}
.small-label{font-size:.8125rem;color:var(--text-muted)}
/* A proportionate desktop navigation, preserving the complete route list. */
.sidebar{width:auto;padding:12px 28px;background:var(--surface-paper);border-right:0;border-bottom:1px solid var(--line);display:flex;flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap;overflow:visible}
.brand{font-size:1.25rem}
.sidebar>nav{display:flex;align-items:center;gap:4px;flex:1}
.nav-item{min-height:44px;padding:8px 10px;font-size:.875rem;border-radius:6px;gap:8px;color:var(--text-muted)}
.nav-item strong{font-size:.875rem;font-weight:600}
.nav-item small{display:none}
.nav-item>.icon{width:18px;height:18px}
.nav-item.active{background:var(--brand-selected);color:var(--brand-hover)}
.nav-item.active strong{font-weight:750}
.nav-item:hover{background:var(--surface-subtle)}
.language-pill{padding:6px 8px;border:0;background:var(--surface-subtle);border-radius:6px;gap:6px;min-height:44px}
.language-pill div>span{display:none}
.language-pill strong{font-size:.8125rem}
.sidebar-bottom>nav{display:flex}
.sidebar-bottom .nav-item{padding:8px;font-size:.8125rem}
.sidebar-bottom .nav-item strong{font-size:.8125rem}
.sidebar-bottom .nav-item>.icon{display:none}
.pip-help{display:flex;align-items:center;gap:6px;width:auto;min-height:40px;padding:0 12px 0 4px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface-paper);color:var(--brand-hover)}
.pip-help .pip{width:32px;height:32px}
.pip-help strong{font-size:.875rem;font-weight:600}
@media(min-width:761px){
 .pip-help small{display:none}
}
.topbar{margin:auto;padding:0 32px;min-height:52px;border-bottom:0}
.breadcrumb{color:var(--text-muted);font-size:.8125rem}
.breadcrumb span{color:var(--text-muted)}
footer{margin:0 auto}
.footer-links{display:flex;gap:16px}
.access-explainer a{color:var(--brand-hover);text-decoration:underline;text-underline-offset:3px}
/* The real Home: current saved session at left, real chapter practice at right. */
.home-page{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px 40px}
.home-intro{grid-column:1/-1}
.home-intro h1{font-size:2rem}
.home-intro p{font-size:1rem;max-width:68ch}
.home-intro .track-summary{margin-top:12px;font-size:.8125rem;gap:12px}
.track-summary strong{color:var(--brand-hover)}
.pip-welcome{flex:none;padding:0}
.pip-introduction strong{font-size:.875rem}
.pip-introduction span{font-size:.8125rem}
.home-next{grid-column:1}
.home-next h2{font-family:var(--font-ui);font-size:1.375rem}
.home-next p{font-size:.9375rem}
.home-next .focus-copy{padding:0}
.home-next .home-context{padding:20px 0 0;margin-top:20px;border:0;border-top:1px solid var(--line);background:transparent}
.home-context p{font-size:.875rem}
.focus-actions .main-cta{width:100%;justify-content:center}
.focus-actions .quiet-link{font-size:.875rem;text-align:left}
.focus-meta{font-size:.8125rem;flex-wrap:wrap}
.focus-meta .icon{width:16px;height:16px}
.focus-reassurance{font-size:.8125rem!important}
.home-trust,.session-preview{grid-column:1;margin:0;font-size:.8125rem}
.home-map,.stats-row{grid-column:1/-1}
.home-map{padding-top:24px;border-top:1px solid var(--line);margin:12px 0 0}
.home-flow li{padding:0;background:transparent;border:0}
.home-map h2{font-size:1.25rem}
.home-flow p,.home-tools{font-size:.875rem}
.stats-row .stat{background:var(--surface-paper)}
.home-workspace{grid-column:2;grid-row:2/6;min-width:0}
.home-practice-label{font-size:.8125rem;color:var(--text-muted);margin-bottom:12px}
/* One task, compact instructions and a comfortable code surface. */
.activity-header a,.activity-position{color:var(--text-muted)}
.activity-page #question-stage[data-type=code],.activity-page #question-stage[data-type=debug]{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.4fr);gap:16px 40px;align-items:start}
.activity-page #question-stage>.activity-intro{grid-column:1;display:block;margin:0}
.activity-heading h1,.activity-heading h2{font-size:1.75rem;line-height:1.3;margin:0 0 16px;font-weight:700}
.activity-intro #activity-mascot{width:64px;margin-bottom:12px}
.activity-question{color:var(--text-primary);font-size:1rem}
.activity-instruction{color:var(--text-muted);font-size:.875rem}
.activity-concept p,.activity-concept small{font-size:.875rem}
.activity-concept h2{font-size:1rem}
.sql-fixtures{min-width:0}
.activity-quiet-actions,.activity-hints,.activity-tools{grid-column:1;min-width:0}
.activity-feedback,#trace-panel{grid-column:2;min-width:0;margin:0}
.activity-feedback{grid-row:5}
.activity-hints .hint{padding:16px;background:var(--surface-subtle)}
.activity-hints .hint p{font-size:.9375rem}
.activity-quiet-actions .text-button{color:var(--brand-hover);font-size:.875rem}
.activity-quiet-actions .icon{color:inherit}
.activity-page #question-stage:not([data-type=code]):not([data-type=debug]){max-width:820px;margin:auto}
.editor-title.dark,.editor-body,.activity-example,.console-output,.error-output{background:var(--surface-code);color:var(--text-code)}
.editor-title.dark{padding:8px 16px;min-height:48px}
.editor-title.dark .text-button{color:var(--text-code)}
.editor-body textarea,.editor-body .line-numbers{font:400 .9375rem/1.85 var(--font-code);color:var(--text-code)}
.editor-body .line-numbers{color:#b4bfb5}
.activity-code-card .editor-body{height:280px;min-height:280px}
.editor-shortcuts{color:var(--text-muted)}
.editor-card>.editor-shortcuts{color:var(--text-on-code)}
.activity-run-row>.run-button{font-size:.9375rem;min-height:48px}
.activity-run-row>.secondary{background:var(--warning-surface);color:var(--warning-ink)}
.activity-run-summary{padding:0 16px 12px;font-size:.8125rem;color:var(--text-muted)}
.activity-error>strong,.activity-error pre{color:var(--error-ink)}
.error-guidance{color:var(--error-ink);font-size:.875rem;margin:10px 0;line-height:1.75}
.activity-failed-check>strong,.activity-failed-check>p,.activity-failed-check>small,.activity-failed-check details summary{color:var(--warning-ink)}
.activity-feedback-note,.notice.subtle{background:var(--surface-subtle);color:var(--text-muted)}
.activity-result h1,.activity-result h2{font-family:var(--font-ui)}
.activity-explanation{color:var(--success-ink)}
.activity-explanation p{color:var(--success-ink)}
.choice.selected,.activity-answer-card .choice.selected{background:var(--brand-selected);border:2px solid var(--brand-action);color:var(--brand-hover)}
.choice-selection{font-weight:750;color:var(--brand-hover)}
.activity-check:disabled{background:var(--surface-subtle);color:var(--text-muted)}
.home-workspace #question-stage[data-type]{display:block}
.home-workspace .activity-intro{display:flex!important;gap:12px}
.home-workspace .activity-heading h2{font-size:1.375rem;margin-bottom:8px}
.home-workspace .activity-question{font-size:.9375rem;line-height:1.7}
.home-workspace .activity-instruction{font-size:.8125rem}
.home-workspace .activity-concept{margin:12px 0}
.home-workspace .activity-code-card .editor-body{height:208px;min-height:208px}
.home-workspace .editor-body.expanded{height:460px}
.home-workspace .activity-feedback,.home-workspace .activity-quiet-actions,.home-workspace #hints,.home-workspace #trace-panel{margin-top:12px}
.home-workspace .activity-result h1,.home-workspace .activity-result h2{font-size:1.375rem}
/* Secondary routes share surfaces, not an identical page scaffold. */
.page-heading h1{font-size:2rem}
.page-heading p{max-width:70ch;font-size:1rem}
.settings-card,.note,.new-note,.mission,.exercise-card,.session-summary{border-color:var(--line);border-radius:var(--surface-radius);box-shadow:none}
.settings-card,.new-note,.note,.exercise-card,.mission{background:var(--surface-paper)}
.journey-recommendation,.progress-explainer,.future-card{background:var(--surface-subtle);border-color:var(--line)}
.status-tag{border-radius:5px}
.status-tag.retained,.check.pass{background:var(--success-surface);color:var(--success-ink)}
.lab-notes h2{font-family:var(--font-ui);font-size:1.5rem}
.lab-notes p{font-size:.9375rem}
.feedback-panel{border-color:var(--line);border-radius:var(--surface-radius)}
.note p,.mission p,.settings-card p,.guide-intro{color:var(--text-muted)}
.note-meta{color:var(--text-muted)}
.fixture-table td{color:var(--text-primary)}
dialog{border-color:var(--line);border-radius:var(--surface-radius);background:var(--surface-paper);color:var(--text-primary);overscroll-behavior:contain}
dialog::backdrop{background:#1b282459}
.guide-nav-list a:hover{background:var(--brand-selected)}
.guide-nav-list strong{color:var(--text-primary)}
.guide-nav-list small{color:var(--text-muted)}
#toast .text-button{color:#fff;text-decoration:underline;margin-left:12px}
@media(max-width:1150px){
 .sidebar{gap:10px;padding:10px 24px}
 .sidebar>nav{order:3;flex:1 0 100%;justify-content:center}
 .sidebar-bottom{margin-left:auto}
 .home-page{grid-template-columns:280px minmax(0,1fr);gap:20px 28px}
 .activity-page #question-stage[data-type=code],.activity-page #question-stage[data-type=debug]{gap:16px 28px}
 .home-workspace #question-stage[data-type]{display:block}
}
@media(max-width:760px){
 .home-intro>div:first-child>p:not(.track-summary){grid-column:1/-1}
 .home-intro .pip-welcome{grid-column:1/-1;grid-row:4;display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0}
 .home-intro .pip-hero{width:48px;height:48px}
 .home-intro .pip-welcome.no-caption{display:none}
 .learning-page .home-intro h1{font-size:1.625rem}
 .home-intro .pip-introduction{display:block;width:auto;min-width:0;max-width:none;padding:0;background:none;text-align:left}
 .home-intro .pip-introduction strong,.home-intro .pip-introduction span{display:inline;margin:0;font-size:.875rem;color:var(--brand-hover)}
 .home-intro .pip-introduction span{font-weight:400}
 .sidebar{width:min(360px,calc(100vw - 36px));flex-direction:column;align-items:stretch;gap:12px;padding:24px 20px;overflow-y:auto;border-right:1px solid var(--line)}
 .sidebar>nav{order:0;display:block;flex:none}
 .sidebar .nav-item{min-height:52px;padding:10px}
 .sidebar .nav-item small{display:block}
 .sidebar .language-pill{padding:10px}
 .sidebar .language-pill div>span{display:block;font-size:.8125rem;color:var(--text-muted)}
 .sidebar-bottom{margin-top:auto;margin-left:0;display:block}
 .sidebar-bottom>nav{display:block}
 .sidebar-bottom .nav-item>.icon{display:block}
 .pip-help{width:100%;display:flex;gap:10px;padding:6px;margin-bottom:12px}
 .pip-help>span{display:block}
 .pip-help span strong{font-size:.875rem}
 .pip-help span small{font-size:.8125rem}
 .mobile-top{min-height:64px;border-bottom:1px solid var(--line)}
 .mobile-brand{font-size:1.125rem;font-weight:750}
 .mobile-brand img{width:28px;height:28px}
 .topbar{min-height:48px;padding:0 20px;margin:0;gap:12px}
 .topbar .reading-toggle{font-size:.75rem}
 .topbar-actions{gap:8px}
 footer{margin:0}
 .home-page{display:flex;flex-direction:column;gap:20px}
 .home-intro h1{font-size:1.5rem}
 .home-intro>div:first-child{min-width:0}
 .home-intro p{font-size:.875rem}
 .home-intro .track-summary{font-size:.75rem;flex-wrap:wrap}
 .home-next h2{font-size:1.25rem}
 .home-next .home-context{display:block;margin-top:12px;padding-top:8px}
 .home-next p{font-size:.875rem}
 .focus-meta{font-size:.75rem}
 .focus-actions .quiet-link{min-height:44px}
 .home-workspace{width:100%;max-width:none}
 .home-map{margin:0;width:100%}
 .home-flow p{font-size:.875rem}
 .activity-header{gap:12px}
 .activity-position{font-size:.75rem}
 .activity-header .reading-toggle{min-width:0;font-size:.75rem}
 .activity-exit{min-width:0}
 .activity-page #question-stage[data-type=code],.activity-page #question-stage[data-type=debug]{display:block}
 .activity-heading h1,.activity-heading h2{font-size:1.5rem}
 .activity-intro{gap:12px;margin-bottom:16px}
 .activity-page #question-stage>.activity-intro{display:flex}
 .activity-intro #activity-mascot{width:56px;margin-bottom:0}
 .pip-activity{width:56px;height:56px}
 .activity-question{font-size:.9375rem}
 .activity-instruction{font-size:.8125rem}
 .activity-concept{margin:12px 0}
 .activity-code-card{margin-top:16px}
 .activity-code-card .editor-body{height:280px;min-height:280px}
 .activity-code-card .editor-body.expanded{height:460px}
 .activity-code-card .editor-body textarea,.activity-code-card .line-numbers{font-size:.875rem}
 .activity-run-row{padding:0 12px 10px;gap:8px}
 .activity-run-row>.run-button{flex:1 0 100%;width:100%}
 .activity-run-row>.secondary{width:100%;min-height:44px}
 .activity-feedback{margin-top:14px}
 .activity-quiet-actions{margin-top:8px;gap:14px}
 .activity-hints .hint{margin-top:12px}
 .activity-tools{margin-top:12px}
 .editor-shortcuts{font-size:.75rem;padding:10px 12px}
 .home-workspace .activity-intro{display:block!important}
 .home-workspace #activity-mascot{display:none}
 .home-workspace .activity-heading h2{font-size:1.25rem}
 .home-workspace .activity-question{font-size:.9375rem}
 .home-workspace .activity-code-card .editor-body{height:208px;min-height:208px}
 .home-workspace .editor-body.expanded{height:460px}
 .activity-answer-card{padding:18px}
 .parsons-row code{overflow-wrap:anywhere}
 .lab-grid{display:block}
 .lab-notes{margin-top:24px}
 .page-heading h1{font-size:1.625rem}
}
@media(forced-colors:active){
 .button,.nav-item.active,.activity-code-card,.choice.selected{border:1px solid ButtonText}
 .nav-item.active,.choice.selected{text-decoration:underline}
 .pip{forced-color-adjust:none}
 .choice-selection{color:ButtonText}
}
/* The drawer begins below the persistent close control, keeping every focus target visible. */
.evidence-box,.design-choice{border:1px solid var(--line);border-radius:var(--surface-radius);background:var(--surface-subtle)}
.home-context summary{font-size:.875rem;font-weight:650;color:var(--brand-hover)}
@media(max-width:760px){
 .home-next .home-context:not([open]){border:0;padding:0;margin-top:8px}
}
.activity-support-note,.activity-reflection small,.activity-review>summary,.activity-reflection>summary{color:var(--text-muted)}
#toast.show:has(button){pointer-events:auto}
.parsons-row button[data-direction="-1"] .icon{transform:rotate(-90deg)}
.parsons-row button[data-direction="1"] .icon{transform:rotate(90deg)}
h1,h2,h3,#feedback{scroll-margin-top:80px}
.result-status{display:flex;align-items:center;gap:8px;color:var(--success-ink);font-size:.9375rem;font-weight:700;margin-top:12px}
.activity-result-intro h1,.activity-result-intro h2{font-family:var(--font-ui);font-size:1.75rem;font-weight:700;line-height:1.3;color:var(--text-primary)}
.activity-result-intro .pip-result{width:112px}
@media(max-width:760px){
 .activity-result-intro .pip-result{width:76px}
 .activity-result-intro h1,.activity-result-intro h2{font-size:1.5rem}
}
/* Small mission metadata uses the same readable ink as other supporting controls. */
.mission-number{color:var(--brand-hover)}
.evidence-box strong{color:var(--brand-hover)}
.lab-pip-guide strong{color:var(--brand-hover)}
#toast button{color:var(--surface-paper);text-decoration:underline}
.activity-workbench{grid-column:2;grid-row:1/span 12;min-width:0}
.activity-workbench>.activity-feedback:not(:empty),.activity-workbench>#trace-panel:not(:empty){margin-top:14px}
/* Entry hierarchy: platform introduction, optional start choices, then learning. */
.welcome-page,.start-page{max-width:1040px;margin:auto}
.welcome-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:56px;align-items:center;padding:24px 0 40px}
.welcome-intro h1{font-size:2.5rem;max-width:25ch;margin-bottom:24px}
.welcome-definition{font-size:1.1875rem;color:var(--text-primary);max-width:54ch;margin-bottom:16px}
.welcome-intro p{max-width:64ch}
.welcome-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:28px}
.returning-caption{flex-basis:100%;font-size:.8125rem;color:var(--text-muted)}
.welcome-sample{margin:0}
.welcome-code{margin:0;padding:24px 28px;border-radius:var(--surface-radius);background:var(--surface-code);color:var(--text-code);font:400 1rem/1.8 var(--font-code);white-space:pre;overflow-x:auto}
.welcome-sample figcaption{margin:0 0 10px;font-size:.9375rem;font-weight:600;color:var(--text-primary);text-wrap:balance}
.welcome-pip{display:flex;align-items:flex-end;gap:12px;padding-left:12px}
.welcome-pip .pip-sample{width:64px;height:64px;flex:none;margin-top:-24px}
.welcome-pip p{margin:0;padding-bottom:6px;font-size:.875rem;line-height:1.5;color:var(--brand-hover)}
@media(max-width:1000px) and (min-width:761px){
 .welcome-intro{grid-template-columns:1fr;gap:32px}
 .welcome-aside{max-width:420px}
}
.welcome-method{border-top:1px solid var(--line);padding:32px 0}
.welcome-method h2,.welcome-languages h2{font-size:1.375rem}
.welcome-method p,.welcome-languages p{font-size:.9375rem}
.welcome-method p{margin:12px 0 16px;max-width:64ch}
.welcome-languages{border-top:1px solid var(--line);padding:28px 0}
.welcome-languages p{margin-top:12px}
.platform-tools{position:relative}
.platform-tools>summary{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 10px 0 12px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface-paper);color:var(--brand-hover);font-size:.875rem;font-weight:600;list-style:none;cursor:pointer}
.platform-tools>summary::-webkit-details-marker{display:none}
.platform-tools>summary:hover,.pip-help:hover{background:var(--surface-subtle)}
.platform-tools[open]>summary{background:var(--brand-selected)}
.menu-chevron{width:16px;height:16px;transform:rotate(90deg);transition:transform .15s}
.platform-tools[open]>summary .menu-chevron{transform:rotate(-90deg)}
.platform-tools>div{position:absolute;right:0;width:290px;padding:8px;background:var(--surface-paper);border:1px solid var(--line);border-radius:var(--surface-radius);z-index:45}
.platform-tools .nav-item{display:flex}
.platform-navigation .sidebar-bottom{margin-left:auto}
.platform-navigation>nav{flex:0 1 auto}
.start-page .page-heading p{margin-top:16px}
.start-languages{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.start-language{display:block;padding:24px;border:1px solid var(--line);border-radius:var(--surface-radius);background:var(--surface-paper)}
.start-language:hover{border-color:var(--brand-action)}
.start-language.selected{border:2px solid var(--brand-action);padding:23px;background:var(--brand-selected)}
.start-language h2{display:flex;justify-content:space-between;align-items:center;font-size:1.375rem;gap:16px;margin-bottom:12px}
.start-language h2 span{display:inline-flex;align-items:center;gap:4px;font-size:.8125rem;font-weight:600}
.start-language small{display:block;color:var(--text-muted);margin-top:12px}
.start-routes{margin:32px 0}
.start-routes>div{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:24px}
.start-routes article+article{border-left:1px solid var(--line);padding-left:32px}
.start-routes h3{font-size:1.125rem;margin-bottom:12px}
.start-routes p{font-size:.9375rem;max-width:48ch;margin-bottom:20px}
.start-prompt,.start-footnote{font-size:.875rem;margin:24px 0}
.learning-page{grid-template-columns:1fr}
.learning-page .home-intro,.learning-page .home-next,.learning-reviews,.learning-page .session-preview,.learning-page .home-trust{grid-column:1/-1}
.learning-page .home-next{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:40px;padding:24px;background:var(--surface-paper);border:1px solid var(--line);border-radius:var(--surface-radius)}
.learning-page .home-next .home-context{margin:0;padding:0;border:0}
.learning-reviews{border-top:1px solid var(--line);padding-top:24px}
.learning-reviews h2{font-size:1.375rem;margin-bottom:12px}
.learning-reviews a{text-decoration:underline}
.learning-reviews li{margin:8px 0}
@media(max-width:760px){
 .welcome-intro{display:block;padding:12px 0 28px}
 .welcome-intro h1{font-size:1.875rem}
 .welcome-intro .welcome-definition{font-size:1.0625rem;margin:0 0 12px}
 .welcome-actions{margin-top:20px}
 .welcome-aside{margin-top:32px}
 .welcome-code{padding:20px}
 .welcome-actions>.button{width:100%}
 .welcome-method{padding:24px 0}
 .start-languages{gap:12px}
 .start-language{padding:16px}
 .start-language.selected{padding:15px}
 .start-language h2{display:block;font-size:1.125rem}
 .start-language h2 span{display:flex;margin-top:4px}
 .start-language p{font-size:.875rem}
 .start-language small{font-size:.75rem}
 .start-routes>div{display:block}
 .start-routes article+article{border-left:0;border-top:1px solid var(--line);padding:24px 0 0;margin-top:24px}
 .start-routes .button{width:100%}
 .learning-page .home-next{display:block;padding:20px}
 .learning-page .home-next .home-context{margin-top:24px}
 .platform-tools>div{position:static;width:auto;padding:0;border:0}
 .platform-navigation .sidebar-bottom{margin-left:0}
 .platform-navigation>nav{flex:none}
}
@media(max-width:760px){
 .start-page.has-selection .start-language p,.start-page.has-selection .start-language small{display:none}
 .start-page.has-selection .start-language h2{margin-bottom:0}
 .start-page.has-selection .start-routes{margin-top:24px}
 .start-page.has-selection .start-routes>div{margin-top:16px}
 .start-page.has-selection .start-routes p{margin-bottom:12px}
 .start-page.has-selection .start-routes article+article{padding-top:20px;margin-top:20px}
}
/* Make opened navigation focusable immediately; animate movement, not visibility. */
@media(max-width:760px) and (prefers-reduced-motion:reduce){
 .sidebar.open{transition:none}
}
/* Chapters: one numbered list per group; the row is the link. */
.chapter-rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.chapter-row{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:4px 16px;align-items:start;padding:18px 12px;border-bottom:1px solid var(--line)}
.chapter-row:hover{background:var(--surface-subtle)}
.chapter-row.recommended{background:var(--brand-selected)}
.chapter-row-number{font-size:1.125rem;font-weight:700;line-height:1.5;color:var(--brand-hover);font-variant-numeric:tabular-nums}
.chapter-row-link{font-size:1.0625rem;font-weight:650;line-height:1.5;color:var(--text-primary);text-decoration:none}
.chapter-row-link::after{content:'';position:absolute;inset:0}
.chapter-row-next{display:inline-block;margin-left:10px;padding:1px 8px;border-radius:var(--control-radius);background:var(--surface-paper);color:var(--brand-hover);font-size:.8125rem;font-weight:600;vertical-align:2px}
.chapter-row-copy p{margin:4px 0 0;font-size:.9375rem;color:var(--text-muted)}
.chapter-row-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px;padding-top:2px;font-size:.8125rem;color:var(--text-muted);white-space:nowrap}
@supports selector(:has(*)){
 .chapter-row-link:focus-visible{outline:none}
 .chapter-row:has(.chapter-row-link:focus-visible){outline:3px solid var(--focus-ring);outline-offset:2px}
}
@media(max-width:760px){
 .chapter-row{grid-template-columns:28px minmax(0,1fr);padding:16px 8px}
 .chapter-row-meta{grid-column:2;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 12px;padding-top:8px}
}
.start-route-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}
