/* A viewport-sized course, with content split into steps instead of long pages. */
:root{--course-body:clamp(14px,1.2vw,17px)}body{height:100dvh;overflow:hidden}.sidebar{transform:translateX(-100%);z-index:40;width:254px;box-shadow:10px 0 55px #0a132a33;overflow-y:auto}.sidebar.open{transform:translateX(0)}.app{margin:0;height:100dvh;display:grid;grid-template-rows:64px minmax(0,1fr) 34px}.topbar{height:64px;padding:0 30px}.mobile-menu{display:block}.topbar .breadcrumb-home,.crumb-slash{display:none}.header-right{gap:14px}.search-button kbd{margin-left:8px}main{min-height:0;width:100%;max-width:1160px;padding:21px 30px 17px;overflow:hidden;display:flex;flex-direction:column;gap:15px;justify-self:center}.app>footer{padding:0 30px;align-items:center;border-top:1px solid var(--line);font-size:9px;height:34px}.screen-head{display:flex;align-items:start;justify-content:space-between;gap:18px;flex:none}.screen-head h1{font-size:clamp(24px,2.6vw,34px);line-height:1.15;letter-spacing:-1px}.screen-head p{font-size:12px;color:var(--muted);margin-top:7px}.screen-head .eyebrow{font-size:9px;margin-bottom:7px}.screen-dashboard{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap;padding:7px 0}.screen-dashboard .icon{width:17px}.phase-rail{display:flex;justify-content:space-between;gap:8px;flex:none;max-width:750px;width:100%;margin:0 auto 5px}.phase-rail>span{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--label)}.phase-rail b{width:23px;height:23px;display:grid;place-items:center;font:10px var(--mono);border:1px solid var(--line);border-radius:50%;background:var(--surface)}.phase-rail .current{color:var(--purple);font-weight:600}.phase-rail .current b{background:var(--purple);color:var(--paper);border-color:var(--purple)}.phase-rail .finished b{background:var(--lavender);color:var(--green)}.screen-content{min-height:0;flex:1;display:flex;flex-direction:column;justify-content:center}.screen-content>.panel{max-width:950px;width:100%;align-self:center;margin:0}.screen-navigation{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:13px;margin-top:auto;font-size:11px;color:var(--muted)}.screen-navigation .button{font-size:12px;padding:10px 16px}.screen-navigation .text-button{font-size:11px}.step-gate{font-size:11px;max-width:145px;text-align:right}.onboarding-screen{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:55px;flex:1;min-height:0}.onboarding-copy h1{font-size:clamp(34px,4vw,52px);letter-spacing:-2px;line-height:1.13;margin:15px 0 22px}.onboarding-copy>p{font-size:16px;line-height:1.7;color:var(--muted);max-width:410px}.journey-facts{display:flex;flex-direction:column;gap:14px;margin-top:30px;font-size:13px;color:var(--muted)}.journey-facts span{display:flex;align-items:center;gap:10px}.journey-facts .icon{color:var(--purple);width:19px}.onboarding-form{padding:27px}.onboarding-form h2{font-size:23px;line-height:1.2}.onboarding-form>p{font-size:13px;color:var(--muted);line-height:1.6;margin-top:13px}.onboarding-form .text-button{margin-top:19px;font-size:11px}.onboarding-form .button{width:100%;justify-content:center}.field-label span{font-weight:400;color:var(--muted)}.journey-next{display:grid;grid-template-columns:120px 1fr;gap:32px;align-items:center;max-width:870px;margin:auto!important;padding:35px}.journey-symbol{width:120px;height:120px;background:var(--lavender);border:1px solid var(--line);border-radius:26px;display:grid;place-items:center}.journey-symbol .icon{width:57px;height:57px;color:var(--purple);stroke-width:1.2}.journey-next h2{font-size:30px;line-height:1.2}.journey-next p{font-size:var(--course-body);line-height:1.7;color:var(--muted);margin:15px 0 23px}.journey-next p.learning-note{font-size:11px;margin:15px 0 0}.journey-status{display:flex;justify-content:center;align-items:center;gap:22px;color:var(--muted);font-size:11px;padding:15px 0}.journey-status .text-button{font-size:11px}.journey-complete{margin:auto!important;max-width:700px;text-align:center}.journey-complete>.icon{width:50px;height:50px;color:var(--purple);margin-bottom:15px}.journey-complete h2{font-size:28px;line-height:1.3}.journey-complete>p{font-size:15px;line-height:1.65;color:var(--muted);margin:15px 0}.lesson-step-rail{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;max-width:950px;margin:0 auto;width:100%}.lesson-step-rail a{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.lesson-step-rail b{display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--line);border-radius:7px;font:10px var(--mono);background:var(--surface)}.lesson-step-rail .current{color:var(--purple)}.lesson-step-rail .current b{border-color:var(--purple);background:var(--lavender)}.lesson-chunk{padding:30px 35px}.lesson-chunk h2{font-size:27px;line-height:1.2}.chunk-icon{height:47px;width:47px;display:grid;place-items:center;background:var(--lavender);color:var(--purple);border-radius:13px;margin-bottom:17px}.chunk-icon .icon{width:25px;height:25px}.chunk-prose{font-size:var(--course-body);line-height:1.8;margin:20px 0;max-width:780px;color:var(--muted)}.chunk-insight{padding:18px 22px;background:var(--surface-soft);border-left:3px solid var(--purple);border-radius:0 9px 9px 0}.chunk-insight b{font-size:13px}.chunk-insight p{font-size:13px;line-height:1.7;color:var(--muted);margin-top:7px}.code-block{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;margin:16px 0;padding:18px;overflow:visible}.experiment-chunk{max-width:680px;padding:23px 30px}.experiment-chunk h2{font-size:23px;text-align:center}.experiment-chunk .diagram{max-width:530px;margin:18px auto 0;padding:19px}.experiment-chunk .diagram-hint{font-size:12px;line-height:1.6}.experiment-chunk .diagram-container{font-size:12px;padding:15px}.experiment-chunk .diagram-kernel,.experiment-chunk .diagram-host{font-size:11px}.checkpoint-chunk{max-width:760px!important}.checkpoint-chunk .quiz-question{font-size:17px;line-height:1.5;margin:18px 0}.quiz-option{font-size:14px;line-height:1.45;margin:9px 0;padding:13px 16px;min-height:45px}.option-letter{flex-shrink:0}.checkpoint-chunk .feedback{font-size:13px;line-height:1.6;padding:14px;margin:13px 0}.checkpoint-chunk .quiz-submit[data-quiz-next]{display:none}.compact-topic-filters{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;flex:none}.compact-topic-filters button,.workspace-tabs>button{display:flex;align-items:center;gap:6px;font-size:11px;padding:9px 13px;background:var(--surface);color:var(--muted);border:1px solid var(--line);border-radius:8px}.compact-topic-filters button.selected,.workspace-tabs>button.selected{background:var(--lavender);border-color:var(--purple);color:var(--purple)}.compact-topic-filters .icon{width:15px}.case-browser{max-width:800px;width:100%;margin:auto;display:flex;flex-direction:column;gap:12px}.case-browser-head{display:flex;align-items:center;gap:18px}.case-browser-head label{font-size:12px;white-space:nowrap;color:var(--muted)}.case-browser .ref-search{margin:0;font-size:13px}.case-browser .situation-card{padding:30px}.case-browser .situation-card h2{font-size:30px}.case-browser .situation-card p{font-size:16px;line-height:1.7;max-width:620px;margin:10px 0}.case-bottom{padding-top:20px;margin-top:18px}.case-bottom .button{font-size:12px}.case-focus{display:grid;grid-template-columns:1fr 1.4fr;gap:23px;align-items:center;flex:1;min-height:0}.case-context>p{font-size:var(--course-body);line-height:1.7;color:var(--muted)}.case-context .code-block{font-size:12px;margin:18px 0}.case-focus-decision{padding:25px;margin:0}.case-focus-decision h2{font-size:23px;line-height:1.35;margin:16px 0}.decision-steps{margin-bottom:12px;font-size:11px;gap:9px}.decision-steps span{padding:6px 10px}.case-focus-decision .feedback{font-size:13px;line-height:1.6;margin:14px 0;padding:14px}.case-focus-decision .feedback p{margin-top:7px;font-size:12px}.case-focus-decision .button{font-size:12px;padding:10px 15px}.passed-answer{display:flex;align-items:center;gap:10px;color:var(--green);padding:15px;background:var(--surface-soft);border-radius:10px;font-size:14px;line-height:1.5}.passed-answer .icon{flex-shrink:0}.workspace-tabs{display:flex;gap:8px;flex:none}.dashboard-content{justify-content:start;gap:18px}.dashboard-metrics{margin:0;flex:none;gap:12px}.dashboard-metrics>div{padding:17px;gap:8px}.dashboard-metrics strong{font-size:32px}.dashboard-next{width:100%;margin:0!important;flex:1;display:flex;flex-direction:column;justify-content:center;padding:28px}.dashboard-next h2{font-size:28px}.dashboard-next p{font-size:15px;color:var(--muted);line-height:1.7;max-width:730px;margin:15px 0 23px}.dashboard-next .button{align-self:start}.compact-mastery>p{font-size:13px;color:var(--muted);margin:10px 0 15px}.mastery-row{display:flex;align-items:center;gap:17px;padding:15px 0;border-top:1px solid var(--line)}.mastery-row>.icon{width:22px;color:var(--purple)}.mastery-row>div:first-of-type{width:180px;flex:none;font-size:13px}.mastery-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.mastery-row .progress-track{flex:1;height:8px;margin:0}.mastery-row strong{font-size:13px;color:var(--muted)}.compact-history .section-head{margin-bottom:0;font-size:11px;color:var(--muted)}.compact-history .section-head h2{font-size:23px}.assessment-intro{margin:0 auto;max-width:920px;display:flex;flex-direction:column;justify-content:center;flex:1;min-height:0}.assessment-intro h1{font-size:35px}.assessment-intro>.lesson-lead{font-size:15px;line-height:1.7;margin:13px 0 0}.assessment-cover{margin:18px 0;padding:24px 27px;gap:23px}.assessment-cover h2{font-size:24px}.assessment-cover p{font-size:13px;line-height:1.6;margin:10px 0}.assessment-cover>.icon{width:42px;height:42px}.assessment-tags{margin:12px 0;font-size:10px}.assessment-promises{display:none}.assessment-intro>.learning-note{display:none}.learner-strip{margin:7px 0;padding:9px 13px}.diagnostic-header h1{font-size:28px}.diagnostic-header .eyebrow{margin-bottom:5px}.diagnostic-track{margin:0;flex:none;height:5px}.diagnostic-layout{flex:1;min-height:0;display:flex;justify-content:center;align-items:center}.diagnostic-layout>.panel:first-child{max-width:900px;width:100%;padding:24px 30px;margin:0}.question-map{display:none!important}.diagnostic-layout h2{font-size:21px;line-height:1.4;margin:13px 0}.diagnostic-layout .code-block{font-size:12px;margin:12px 0;padding:14px 17px}.diagnostic-layout .quiz-option{font-size:14px;margin:8px 0;padding:12px 15px}.confidence-picker{padding:12px 0;margin-top:13px}.confidence-picker span{width:auto;margin-right:10px;font-size:11px}.confidence-picker button{font-size:11px;padding:7px 12px}.assessment-navigation .button{font-size:12px;padding:9px 14px}.diagnostic-layout .learning-note{font-size:10px;margin-top:12px}.baseline-focus{padding:25px 30px}.baseline-inline{display:flex;align-items:center;gap:25px}.baseline-inline>strong{font:55px var(--display);color:var(--purple);letter-spacing:-2px;white-space:nowrap}.baseline-inline small{font-size:18px;color:var(--muted);letter-spacing:0}.baseline-inline h2{font-size:23px}.baseline-inline p{font-size:13px;color:var(--muted);margin-top:8px}.starting-thread{padding:25px 0;margin-top:18px;border-top:1px solid var(--line)}.starting-thread h2{font-size:27px}.starting-thread p{font-size:14px;line-height:1.7;color:var(--muted);margin:12px 0 19px}.thread-links{display:flex;align-items:center;gap:20px}.thread-pager{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:15px;font-size:11px;color:var(--muted)}.thread-pager .text-button{font-size:11px}.review-focus h2{font-size:24px}.review-focus>p{font-size:14px;line-height:1.6;margin:14px 0}.review-focus .review-choice{font-size:12px;color:var(--muted)}.review-focus .feedback{font-size:13px;line-height:1.6;margin:15px 0}.review-focus .feedback p{font-size:13px;margin-top:10px}.page-top{margin:0}.page-top h1{font-size:30px}.page-top p{font-size:12px}.reference-grid{min-height:0;overflow:auto}.lab-layout{flex:1;min-height:0;margin:0;gap:15px}.lab-menu{overflow:auto}.terminal-body{max-height:210px;overflow:auto}.terminal-note{font-size:10px;margin:10px 0}.challenges-page .challenge-grid{overflow:auto}.modal-content{max-height:calc(100dvh - 90px);overflow:auto}.sidebar-bottom .little-tip{display:none}.sidebar .nav-item[data-nav=learn]{display:none}.sidebar .workspace-label:nth-child(2){margin-bottom:9px}.sidebar .brand{margin-bottom:20px}.sidebar .sidebar-rule{margin:14px}.sidebar .course-nav a{padding:4px 12px}.sidebar .sidebar-bottom{padding-top:12px}.sidebar .docs-link{margin:10px 0}.sidebar .studio-signature{margin-top:12px;padding-top:10px}
@media(max-width:720px){.app{grid-template-rows:54px minmax(0,1fr) 25px}.topbar{height:54px;padding:0 14px}.breadcrumb{font-size:10px;gap:8px}.topbar .search-button{display:none}.header-right{gap:10px}.screen-dashboard span{display:none}.screen-dashboard{padding:2px 0}.app>footer{height:25px;padding:0 14px;font-size:8px}.app>footer>span:last-child{display:none}main{padding:14px 16px 12px;gap:12px}.screen-head h1{font-size:25px}.screen-head p{font-size:11px;margin-top:6px}.screen-head .eyebrow{font-size:8px;letter-spacing:1.25px}.phase-rail{gap:5px;margin-bottom:0}.phase-rail>span{font-size:8px;gap:4px}.phase-rail b{width:19px;height:19px;font-size:9px}.phase-rail>span>span{display:none}.phase-rail .current>span{display:block}.onboarding-screen{grid-template-columns:1fr;gap:16px;align-content:center}.onboarding-copy h1{font-size:31px;margin:8px 0 12px;letter-spacing:-1.1px}.onboarding-copy>p{font-size:13px;line-height:1.5}.journey-facts{flex-direction:row;flex-wrap:wrap;gap:9px;font-size:9px;margin-top:13px}.journey-facts .icon{width:14px}.journey-facts span{gap:5px}.onboarding-form{padding:21px}.onboarding-form h2{font-size:21px}.onboarding-form>p{font-size:12px;line-height:1.5;margin-top:9px}.field-label{font-size:11px;margin:13px 0 6px}[data-email-signin] input:not([type=checkbox]),#recover-form input,#recovery-output input,#teacher-form input,select{padding:10px;font-size:12px}.onboarding-form .button{font-size:12px;padding:10px 14px}.onboarding-form .text-button{font-size:10px;margin-top:13px}.journey-next{grid-template-columns:1fr;gap:16px;padding:24px}.journey-symbol{width:58px;height:58px;border-radius:16px}.journey-symbol .icon{width:29px;height:29px}.journey-next h2{font-size:25px}.journey-next p{font-size:14px;line-height:1.65;margin:13px 0 19px}.journey-status{flex-wrap:wrap;gap:12px;font-size:10px;padding:5px 0}.journey-status .text-button{font-size:10px}.screen-navigation{padding-top:11px;gap:8px;font-size:10px}.screen-navigation .button{padding:9px 12px;font-size:11px;gap:7px}.screen-navigation .icon{width:14px}.screen-navigation .text-button{font-size:10px}.screen-navigation .step-gate{font-size:10px;max-width:115px}.lesson-step-rail a span{display:none}.lesson-step-rail .current b{width:26px}.lesson-chunk{padding:22px}.lesson-chunk h2{font-size:23px}.chunk-icon{width:35px;height:35px;margin-bottom:13px}.chunk-icon .icon{width:20px;height:20px}.chunk-prose{font-size:14px;line-height:1.7;margin:15px 0}.chunk-insight{padding:14px 15px}.chunk-insight b{font-size:12px}.chunk-insight p{font-size:12px;line-height:1.6}.code-block{font-size:10px;padding:13px;line-height:1.55;margin:13px 0}.learning-note{font-size:10px;margin-top:12px}.experiment-chunk{padding:20px}.experiment-chunk h2{font-size:21px}.experiment-chunk .diagram{margin:13px auto 0;padding:14px}.experiment-chunk .diagram-hint{font-size:11px;line-height:1.5}.experiment-chunk .diagram-container{font-size:11px;padding:13px}.experiment-chunk .diagram-kernel,.experiment-chunk .diagram-host{font-size:10px}.checkpoint-chunk .quiz-question{font-size:14px;line-height:1.5;margin:13px 0}.quiz-option{font-size:13px;line-height:1.45;padding:11px 12px;margin:8px 0;gap:9px}.checkpoint-chunk .feedback{font-size:12px;line-height:1.5;padding:12px;margin:12px 0}.compact-topic-filters{gap:6px}.compact-topic-filters button{padding:7px 9px;font-size:10px}.compact-topic-filters button span{display:none}.compact-topic-filters button.selected span{display:inline}.compact-topic-filters .icon{width:14px}.case-browser-head{display:block}.case-browser-head label{display:none}.case-browser .ref-search{font-size:12px;padding:11px 13px}.case-browser .situation-card{padding:23px}.case-browser .situation-card h2{font-size:27px}.case-browser .situation-card p{font-size:14px;line-height:1.6;margin:8px 0}.case-bottom{margin-top:15px;padding-top:15px}.case-focus{grid-template-columns:1fr;gap:12px;align-content:center;flex:1}.case-context>p{font-size:12px;line-height:1.5}.case-context .code-block{font-size:10px;line-height:1.4;margin:9px 0;padding:11px 13px}.case-context .text-button{font-size:10px}.case-focus-decision{padding:18px}.case-focus-decision h2{font-size:18px;line-height:1.35;margin:12px 0}.case-focus-decision .quiz-option{font-size:12px;line-height:1.4;padding:10px 11px;margin:7px 0}.decision-steps{margin-bottom:10px;font-size:10px;gap:8px}.decision-steps span{padding:5px 9px}.case-focus-decision .feedback{font-size:12px;line-height:1.5;margin:11px 0;padding:12px}.case-focus-decision .feedback p{display:none}.case-focus-decision .button{font-size:11px;padding:9px 13px}.passed-answer{font-size:12px;padding:12px;gap:8px}.workspace-tabs{gap:7px;flex-wrap:wrap}.workspace-tabs>button{font-size:10px;padding:8px 11px}.dashboard-content{gap:13px}.dashboard-metrics{grid-template-columns:1fr 1fr;gap:9px}.dashboard-metrics>div{padding:14px;gap:7px}.dashboard-metrics small{font-size:10px}.dashboard-metrics strong{font-size:28px}.dashboard-metrics a,.dashboard-metrics>div>span{font-size:9px}.dashboard-next{padding:23px}.dashboard-next h2{font-size:24px}.dashboard-next p{font-size:13px;line-height:1.65;margin:12px 0 18px}.dashboard-next .button{font-size:12px;padding:10px 14px}.compact-mastery{padding:21px}.compact-mastery h2{font-size:23px}.compact-mastery>p{font-size:12px;line-height:1.5;margin-bottom:10px}.mastery-row{gap:12px;padding:12px 0}.mastery-row>.icon{width:18px}.mastery-row>div:first-of-type{width:142px;font-size:12px}.mastery-row .progress-track{height:6px}.mastery-row small{font-size:9px}.mastery-row strong{font-size:11px}.compact-history{padding:21px}.compact-history .section-head{display:block}.compact-history .section-head h2{font-size:21px;margin-bottom:7px}.dashboard-list a{font-size:12px;padding:13px 0}.dashboard-list small{font-size:10px}.assessment-intro h1{font-size:29px}.assessment-intro>.lesson-lead{font-size:13px;line-height:1.55;margin-top:10px}.assessment-cover{margin:12px 0;padding:21px;gap:10px}.assessment-cover h2{font-size:23px}.assessment-cover p{font-size:12px;line-height:1.6;margin:9px 0}.assessment-cover .button{font-size:12px;padding:10px 15px}.assessment-tags{font-size:9px;margin:12px 0;gap:10px}.learner-strip{padding:8px 10px;margin:0}.learner-strip>span{font-size:10px}.learner-strip .icon{width:13px}.learner-strip [data-sync-status]{font-size:9px}.learner-strip .text-button{font-size:9px}.diagnostic-header h1{font-size:23px}.diagnostic-header .eyebrow{font-size:8px;letter-spacing:1.3px}.diagnostic-header .level-tag{font-size:9px;margin:0;padding:5px 8px}.diagnostic-layout>.panel:first-child{padding:18px}.diagnostic-layout h2{font-size:17px;line-height:1.4;margin:11px 0}.diagnostic-layout .code-block{font-size:10px;line-height:1.45;margin:10px 0;padding:11px 13px}.diagnostic-layout .quiz-option{font-size:12px;line-height:1.4;padding:10px 11px;margin:7px 0}.diagnostic-layout .eyebrow{font-size:8px;margin-bottom:5px;letter-spacing:1px}.confidence-picker{margin-top:11px;padding:10px 0;gap:6px}.confidence-picker span{width:100%;font-size:10px;margin:0}.confidence-picker button{font-size:10px;padding:6px 10px}.assessment-navigation .button{font-size:10px;padding:9px 11px}.diagnostic-layout .learning-note{font-size:9px;line-height:1.45;margin-top:9px}.baseline-focus{padding:21px}.baseline-inline{gap:18px}.baseline-inline>strong{font-size:43px}.baseline-inline h2{font-size:20px;line-height:1.3}.baseline-inline p{font-size:11px;line-height:1.5}.starting-thread{padding:18px 0;margin-top:15px}.starting-thread h2{font-size:24px}.starting-thread p{font-size:13px;line-height:1.6;margin:10px 0 14px}.thread-links{gap:12px;flex-wrap:wrap}.thread-links .button,.thread-links .text-button{font-size:11px}.thread-pager{padding-top:13px;font-size:10px}.thread-pager .text-button{font-size:10px}.review-focus{padding:21px}.review-focus .eyebrow{font-size:8px;letter-spacing:1px}.review-focus h2{font-size:21px}.review-focus>p{font-size:12px;line-height:1.5;margin:11px 0}.review-focus .review-choice{font-size:11px}.review-focus .feedback{font-size:12px;line-height:1.55;padding:13px;margin:12px 0}.review-focus .feedback p{font-size:12px;margin-top:8px}.page-top h1{font-size:24px}.page-top p{font-size:11px}.journey-complete{padding:22px}.journey-complete h2{font-size:23px}.journey-complete>p{font-size:13px}.journey-complete .habit-grid{padding:12px 0;gap:12px}.journey-complete .button{font-size:11px;margin-bottom:10px}}
@media(max-height:740px){main{gap:9px;padding-top:12px;padding-bottom:10px}.screen-head h1{font-size:23px}.screen-content{justify-content:center}.lesson-chunk{padding:20px 23px}.lesson-chunk h2{font-size:22px}.chunk-prose{font-size:14px;line-height:1.65;margin:14px 0}.chunk-icon{display:none}.chunk-insight{padding:12px 14px}.chunk-insight p{font-size:12px;line-height:1.5}.phase-rail{display:none}.case-focus{gap:10px}.case-context .code-block{margin:8px 0}.decision-steps{margin-bottom:8px}.dashboard-metrics>div{padding:12px;gap:5px}.dashboard-metrics strong{font-size:26px}.dashboard-next{padding:20px}.dashboard-next h2{font-size:22px}.dashboard-next p{font-size:13px;margin:10px 0 16px}.lesson-step-rail b{height:20px;width:20px}.diagnostic-layout>.panel:first-child{padding:15px 18px}.diagnostic-layout h2{font-size:17px;margin:9px 0}.diagnostic-layout .code-block{margin:9px 0;padding:10px 12px}.diagnostic-layout .quiz-option{padding:9px 11px;min-height:0}.confidence-picker{margin-top:9px;padding:9px 0}.diagnostic-layout .learning-note{display:none}.baseline-focus,.review-focus{padding:20px}.onboarding-copy h1{font-size:30px;margin-bottom:11px}.journey-facts{display:none}.onboarding-form{padding:19px}.onboarding-copy>p{font-size:13px}.onboarding-form>p{font-size:12px}.assessment-intro>.lesson-lead{font-size:13px}.learner-strip{padding:7px 10px}.case-focus-decision{padding:17px}.case-focus-decision h2{font-size:18px}.case-focus-decision .feedback{font-size:12px;line-height:1.5}.case-context>p{font-size:12px}.compact-mastery{padding:18px}.mastery-row{padding:10px 0}.compact-history{padding:18px}.dashboard-list a{padding:11px 0}}
/* Allow browser zoom and very small screens to retain every control. */
@media(max-height:610px){body{overflow:auto;height:auto}.app{height:auto;min-height:100dvh;grid-template-rows:54px minmax(0,1fr) 25px}main{overflow:visible;min-height:calc(100dvh - 79px)}.screen-content{flex:none}.case-focus,.onboarding-screen{flex:none}.screen-navigation{margin-top:14px}.onboarding-screen{gap:12px}.diagnostic-layout{flex:none}}
main{margin:0;height:100%}.back{margin:0;flex:none;font-size:11px}.sidebar{box-shadow:none}.sidebar.open{box-shadow:10px 0 55px #0a132a33}.app>footer{width:100%;justify-content:space-between;gap:12px}
@media(max-height:610px){main{height:auto}}
main:has(.diagnostic-layout)>.back{display:none}
@media(max-width:720px){main:has(.diagnostic-layout)>.learner-strip{padding:7px 10px}main:has(.diagnostic-layout) .learner-strip [data-sync-status]{display:none}}
@media(max-width:720px) and (max-height:800px){main:has(.diagnostic-layout)>.learner-strip{display:none}main:has(.diagnostic-layout){gap:8px}}
.teacher-access[hidden]{display:none}.teacher-table-wrap{overflow:visible}.teacher-table{min-width:0}.teacher-table th,.teacher-table td{padding:12px 10px}.teacher-table td{font-size:11px}.teacher-table th{font-size:10px}.teacher-table .thread-pager{margin-top:10px}#teacher-results{flex:1;min-height:0;display:flex;align-items:center}#teacher-results>.panel{margin:0;width:100%;padding:23px}.teacher-access{margin:auto!important}.teacher-table .section-head{margin-bottom:15px}
@media(max-width:720px){.teacher-table thead{display:none}.teacher-table tbody{display:grid;gap:10px}.teacher-table tr{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:10px;padding:10px 12px}.teacher-table td{padding:4px 0;border:0;font-size:10px}.teacher-table td:first-child{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px}.teacher-table td:first-child small{margin:0;font-size:9px}.teacher-table td[data-label]:before{content:attr(data-label)': ';color:var(--muted);font-size:9px}.teacher-table td:nth-child(5){grid-column:1/-1}.teacher-table td:nth-child(6){display:none}#teacher-results>.panel{padding:18px}.teacher-table-wrap+.thread-pager{padding-top:10px;margin-top:10px}#teacher-results .learning-note{font-size:9px}#teacher-results .section-head{margin:0 0 12px;font-size:10px}#teacher-results h2{font-size:22px}#teacher-results .section-head p{font-size:10px}#teacher-results .case-toolbar{margin-bottom:10px}#teacher-results .case-toolbar .button{font-size:10px;padding:9px 12px}#teacher-results .ref-search{font-size:11px;padding:10px 11px}}
.paged-reference .ref-row{padding:20px 0}.paged-reference .ref-command code{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.paged-reference .ref-row p{font-size:13px;margin-top:8px}.paged-reference .text-button{font-size:12px}.challenge-focus{padding:35px}.challenge-focus h2{font-size:31px}.challenge-focus>p{font-size:16px;line-height:1.7;color:var(--muted);margin:18px 0 25px}.challenge-focus>.source-link{display:block;margin-top:20px}.lab-menu{display:flex;flex-wrap:wrap;gap:6px;overflow:visible;margin-bottom:12px}.lab-choice{padding:8px 11px;flex:1;margin:0;min-width:100px}.lab-choice b{font-size:10px}.lab-instructions{padding:16px}.lab-instructions .quiz-meta{font-size:9px}.lab-instructions .text-button{font-size:11px}.lab-instructions .objective{font-size:11px;padding:8px 0}.lab-layout{align-items:center}.suggestions .text-button{font-size:11px}.terminal-body{height:210px;max-height:210px}.terminal-note{font-size:10px}.lab-instructions p[hidden]{display:none}
@media(max-width:720px){.paged-reference{padding:21px}.paged-reference .ref-row{padding:15px 0}.paged-reference .ref-command code{font-size:11px}.paged-reference .ref-row p{font-size:12px}.paged-reference .eyebrow{font-size:8px}.challenge-focus{padding:24px}.challenge-focus h2{font-size:26px}.challenge-focus>p{font-size:14px;margin:14px 0 21px}.lab-layout{display:flex;flex-direction:column;gap:10px;justify-content:center;align-items:stretch}.lab-layout>section{min-height:0}.lab-menu{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:8px}.lab-choice{padding:8px 5px;min-width:0}.lab-choice b{font-size:8px;white-space:nowrap}.lab-instructions{padding:11px 14px}.lab-instructions .quiz-meta{font-size:8px;margin-bottom:5px}.lab-instructions .text-button{font-size:10px}.lab-instructions .objective{font-size:10px;padding:5px 0}.terminal-header{padding:10px 13px;font-size:8px}.terminal-body{height:150px;max-height:150px;padding:13px;font-size:10px;line-height:1.5}.terminal-prompt{padding:10px 13px;font-size:11px}.terminal-prompt input{font-size:11px}.suggestions{margin:8px 0}.suggestions .text-button{font-size:10px}.terminal-note{font-size:9px;margin:6px 0}.page-top .level-tag{display:none}}
@media(max-width:720px) and (max-height:740px){.terminal-body{height:105px;max-height:105px}.lab-instructions .objective{font-size:10px;padding:4px 0}.lab-layout{gap:9px}}
.terminal{min-height:0}.lab-instructions{margin-top:0}.lab-instructions #lab-hint:empty{display:none}
@media(max-width:720px){.lab-instructions .text-button{padding:7px 0}.lab-instructions .objective{line-height:1.45}.terminal-note .icon{flex:none}}

@media(max-width:720px){#teacher-results .section-head{display:flex;flex-direction:row;align-items:flex-start;gap:10px}#teacher-results .section-head .text-button{font-size:10px;padding:5px}.teacher-table td:first-child b{max-width:54%;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.teacher-table td:first-child small{max-width:44%;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}

.language-switch{display:flex;align-items:center;gap:2px;border:1px solid var(--line);border-radius:8px;padding:3px;background:var(--surface)}.language-switch button{background:none;border:0;border-radius:5px;padding:5px 7px;font:600 10px var(--body);color:var(--muted);min-height:27px}.language-switch button[aria-pressed=true]{background:var(--lavender);color:var(--purple)}.language-switch button:focus-visible{outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:720px){.language-switch{padding:2px;gap:1px}.language-switch button{font-size:9px;padding:4px 6px;min-height:25px}.header-right{gap:8px}.topbar{padding-left:12px;padding-right:12px}.xp-pill{padding-left:7px}.breadcrumb{gap:9px;font-size:10px}}

.onboarding-device{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.onboarding-device .text-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;white-space:normal}.onboarding-device .learning-note{margin:4px 0 0}

/* A checked case keeps the chosen wording next to the reasoning it challenges. */
.case-focus-decision .feedback.case-review {font-size:15px;line-height:1.65;color:var(--ink)}
.case-focus-decision .case-review p {display:block;font-size:15px;line-height:1.65;margin:10px 0 0;overflow-wrap:anywhere}
.case-review-answer {margin:12px 0;padding:10px 12px;border-left:2px solid var(--muted);background:var(--surface-soft);color:var(--ink);border-radius:0 8px 8px 0}
.case-review-answer > span {display:block;font-size:14px;font-weight:700}
.case-focus-decision .case-review-answer p {margin-top:5px}
.case-study-links {display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:10px}
.case-study-links .text-button {display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:100%;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;scroll-margin-block:var(--storage-inset,86px) 18px}
.case-study-links .text-button:focus-visible {outline:3px solid var(--purple);outline-offset:2px}
.case-focus-decision [data-case-retry] {min-height:44px;font-size:14px;scroll-margin-block:var(--storage-inset,86px) 18px}
.case-focus-decision [data-case-retry]:focus-visible {outline:3px solid var(--purple);outline-offset:2px}

/* Lab navigation names a URL; selecting the current lab keeps its volatile work. */
.lab-menu {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible}
.lab-menu .lab-choice {display:flex;align-items:center;gap:6px;min-height:44px;min-width:0;padding:10px 12px;color:var(--ink);text-decoration:none;text-align:left}
.lab-menu .lab-choice b {margin:0;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;letter-spacing:normal}
.lab-choice .lab-complete {flex:none;color:var(--green)}
.lab-menu .lab-choice:focus-visible {outline:3px solid var(--purple);outline-offset:2px}

/* A hint explains the next action and prepares it only on the learner's request. */
.terminal-hint {margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.lab-instructions .terminal-hint-reason {display:block;font-size:15px;line-height:1.65;color:var(--ink);margin:0 0 10px}
.terminal-hint .command-chip {min-height:44px;font-size:14px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;text-align:left}
.lab-instructions .terminal-hint-note {display:block;font-size:14px;line-height:1.6;color:var(--muted);margin:10px 0 0}
.terminal-hint :is(button,[tabindex]):focus-visible {outline:3px solid var(--purple);outline-offset:2px}

.terminal-result {margin-top:20px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
.terminal-result[hidden] {display:none}
.terminal-result h2 {font-size:20px;line-height:1.4;margin:0 0 10px}
.terminal-result p {font-size:15px;line-height:1.65;margin:0 0 14px;color:var(--ink)}
.terminal-result-next {margin-bottom:14px}
.terminal-result-next p {margin-bottom:6px;font-weight:600}
.terminal-result-actions {display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.terminal-result :is(.button,.text-button) {min-height:44px;height:auto;font-size:14px;line-height:1.6;white-space:normal;text-align:left;overflow-wrap:anywhere}
.terminal-result :is(.button,.text-button):focus-visible {outline:3px solid var(--purple);outline-offset:2px}
.terminal-result .terminal-result-note {font-size:14px;color:var(--muted);margin:14px 0 0}
