/* Shared student interface: the same scale applies to the static and React routes. */
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--space-16:64px;--reading-width:68ch;--ink:#30283f;--muted-ink:#625b70;--line:#e6e1ee;--surface:#faf9fc}
*,*::before,*::after{box-sizing:border-box}body{color:var(--ink);line-height:1.6}h1,h2,h3,h4,p{overflow-wrap:anywhere}h1,h2,h3,h4{line-height:1.25}h1{font-size:clamp(1.75rem,3.5vw,2.6rem)}h2{font-size:1.35rem}h3{font-size:1.1rem}p{line-height:1.65}button,input,textarea,select{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,.btn,select,input:not([type=radio]):not([type=checkbox]),summary{min-height:44px}.btn{white-space:normal;line-height:1.4;text-align:center;max-width:100%}button{overflow-wrap:anywhere}input,textarea,select{max-width:100%;min-width:0}textarea{line-height:1.65;resize:vertical}input[type=radio],input[type=checkbox]{flex:0 0 auto;accent-color:#6043d3}summary{cursor:pointer;padding-block:8px}:focus-visible{outline:3px solid #7051c8!important;outline-offset:3px!important}a[onclick]:not([href]){cursor:pointer}.wrap{width:100%;min-width:0}.wrap.section{padding-inline:clamp(16px,4vw,32px)}.section{padding-block:var(--space-8)}.page-title{margin-bottom:12px;line-height:1.2}.page-sub{max-width:var(--reading-width);line-height:1.65;margin-bottom:24px}.card,.panel,.sel-card,.stat,.q-card{min-width:0}.card:not(.empty),.panel{overflow-wrap:anywhere}.card.q-card,.practice-card{padding:clamp(16px,3vw,32px)}.q-text,.scenario,.model-answer,.answer-plan{max-width:var(--reading-width);line-height:1.65}.q-actions,.learning-actions,.learning-tools,.learning-utility{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.q-actions>*{margin-left:0!important}.q-meta,.q-top,.session-header,.dash-subject,.ds-info,.reco,.upgrade-nudge{min-width:0;flex-wrap:wrap;gap:12px}.session-header{position:static!important}.session-header>*{min-width:0}.session-wrap{max-width:850px}.tag,.badge,.locktag,.pill{line-height:1.5;white-space:normal;max-width:100%}.sel-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.sel-card{display:flex;flex-direction:column;gap:12px;padding:24px!important}.sel-card h4,.sel-card .meta{padding:0!important;margin:0!important}.sel-card .locktag{position:static!important;align-self:flex-start}.sel-card .badge{align-self:flex-start}.sel-card .meta{line-height:1.6}.sel-card .ic{flex:none}.stat .val{font-size:clamp(1.6rem,3vw,2.3rem);overflow-wrap:anywhere}.stat .lab{line-height:1.5}.dash-2col{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.dash-grid{gap:16px}.weak-row{gap:12px;flex-wrap:wrap}.weak-row .nm{min-width:0;flex:1 1 130px;white-space:normal}.weak-row .pct{margin-left:auto;white-space:normal}.weak-row .mini{flex:0 1 70px}.reco .t,.upgrade-nudge .t,.ds-info>div{min-width:0;flex:1 1 180px}.ds-meta{white-space:normal!important}.dash-subject{margin-block:24px}.msub-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.msub-card{display:flex;flex-direction:column;gap:12px;padding:24px;min-width:0;cursor:default}.msub-top{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:12px}.msub-title{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}.msub-name{font-size:1.08rem;line-height:1.35;margin:0;min-width:0;font-weight:750}.msub-lock{position:static;margin:0;max-width:100%;white-space:normal;font-size:.75rem}.msub-pct{margin:0;font-size:.85rem;color:var(--muted-ink)}.msub-pct b{font-size:1.4rem}.msub-stats{margin:0;line-height:1.6;font-size:.85rem}.msub-papers{display:flex;flex-wrap:wrap;gap:8px}.msub-paper{white-space:normal;min-height:44px;max-width:100%}.msub-go{margin-top:auto;min-height:44px}.msub-options{font-size:.8rem}.msub-options summary{color:var(--muted-ink)}.msub-bar{margin:0}.subj-picker-head,.msub-cat-head{margin-bottom:16px}.learning-dashboard>.learning-recommend{margin-top:16px}.learning-dashboard .empty{padding:24px!important;text-align:left}.learning-dashboard .empty .m{display:none}.learning-dashboard .empty h3{margin:0 0 8px}.learning-dashboard .empty p{max-width:60ch}.learning-dashboard .dash-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))}.learning-page{max-width:1100px}.learning-session{max-width:800px}.learning-page,.learning-session{padding-inline:24px!important}.learning-page .page-sub{max-width:62ch}.learning-card{margin-top:24px;padding:32px;min-width:0}.learning-card h1{font-size:clamp(1.5rem,3vw,2rem);margin:12px 0 24px}.learning-card p{max-width:var(--reading-width)}.learning-eyebrow{font-size:.72rem;line-height:1.6;letter-spacing:.09em;overflow-wrap:anywhere}.learning-muted,.learning-storage,.learning-time,.learning-status{color:var(--muted-ink)}.learning-storage{margin-top:24px;font-size:.8rem}.learning-session-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center}.learning-session-top>span:nth-child(2){max-width:none;line-height:1.5;font-size:.8rem}.learning-session-top>span:last-child{white-space:nowrap;font-size:.8rem}.learning-next,.learning-path-row{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:16px;padding:24px}.learning-next .btn,.learning-path-row>.btn{grid-column:2;margin:8px 0 0}.learning-path-row>div{min-width:0}.learning-next h2,.learning-path-row h2{font-size:1.35rem;margin:8px 0}.learning-path-row p{max-width:58ch}.learning-unit-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr));gap:16px}.learning-unit{display:flex;flex-direction:column;gap:12px;padding:24px}.learning-unit h2{font-size:1.15rem;margin:0;line-height:1.35}.learning-unit p{margin:0}.learning-unit .btn{margin-top:auto}.learning-unit-top{gap:12px;flex-wrap:wrap}.learning-recommend{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:24px;box-shadow:none}.learning-recommend>div{min-width:0;flex:1 1 240px}.learning-recommend .btn{margin:0}.learning-recommend h2{margin:8px 0;font-size:1.4rem}.learning-recommend p{margin:0}.learning-options{padding-block:12px;margin-block:16px}.learning-options summary{line-height:1.6}.learning-status{font-size:.8rem;gap:16px}.learning-prompt{font-size:1.1rem;font-weight:650;line-height:1.6;margin:24px 0 16px}.learning-input{width:100%;padding:12px 16px;font-size:1rem;line-height:1.65}.learning-answer-label{display:block;margin-bottom:8px;font-weight:600}.learning-choices label,.learning-selfcheck{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;min-height:48px;line-height:1.6}.learning-choices input,.learning-selfcheck input{margin-top:6px}.learning-choices legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.learning-feedback{margin-top:24px;padding:24px}.learning-feedback h2{font-size:1.1rem;margin:0 0 12px}.learning-hint:empty{display:none}.learning-hint{margin-top:16px;line-height:1.65}.learning-encounter{margin-block:16px;gap:12px;line-height:1.5;font-size:.8rem}.learning-encounter>span:last-child{min-width:0}.learning-challenge{padding:24px}.learning-challenge form{display:grid;gap:12px}.learning-challenge h2{font-size:1.1rem}.concept-sprite{flex:0 0 var(--sprite-size,40px);width:var(--sprite-size,40px);height:var(--sprite-size,40px);max-width:none;background-color:#f0ebfa;border-radius:12px}.concept-detail{align-items:flex-start}.concept-detail>div{min-width:0}.concept-grid{gap:16px}.word-field{position:relative;display:block;min-width:0}.word-runner-rail{height:48px;position:relative;overflow:hidden;border-bottom:1px solid var(--line);margin-bottom:8px;background:var(--surface);border-radius:12px 12px 0 0}.word-runner{position:absolute;top:4px;left:0;height:40px;pointer-events:none}.word-answer{line-height:1.65!important;padding:12px 16px!important;min-height:48px}.word-answer:is(textarea){min-height:144px}.word-trace{line-height:1.9!important;padding-top:16px!important}.learning-visual{margin-block:24px;padding:16px;min-width:0}.learning-visual svg{width:100%;height:auto;max-height:none;font-size:13px}.graph-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:.8rem}.graph-legend span{display:flex;align-items:center;gap:8px}.graph-legend i{display:block;width:20px;height:3px}.table-scroll{width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.table-scroll table{width:100%;min-width:max-content;font-size:.9rem}.table-scroll th,.table-scroll td{white-space:nowrap}.table-scroll th{vertical-align:bottom}.table-scroll td,.table-scroll th{padding:12px}.table-scroll input{min-width:70px}.learning-sort{padding:0;list-style:none}.learning-sort li{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px;align-items:center}.learning-sort button{min-width:44px}.learning-command{font-size:.8rem;color:var(--muted-ink);margin-block:16px}.learning-levels{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px;padding:0;list-style:none}.learning-levels li{font-size:.72rem;padding:4px 8px;border-radius:6px;background:var(--surface);color:var(--muted-ink)}.learning-levels [aria-current=step]{background:#eee8fb;color:#4c319a;font-weight:750}.teaching-actions{margin-top:24px}.edu-content{max-width:var(--reading-width);font-size:1rem;line-height:1.65;overflow-wrap:anywhere}.edu-content>p,.edu-content>ul,.edu-content>ol,.edu-content>section,.edu-content>h3{margin:0 0 16px}.edu-content> :last-child{margin-bottom:0}.edu-content ul,.edu-content ol{padding-left:24px}.edu-content li+li{margin-top:8px}.edu-content h3{font-size:1.05rem;line-height:1.4}.edu-block{padding:16px 20px;border-left:3px solid #d4c8ec;background:var(--surface);border-radius:0 10px 10px 0}.edu-block h3{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#625074;margin:0 0 8px}.edu-block p{margin:0}.edu-warning{border-color:#be884f;background:#fdf9f2}.edu-equation{font-family:'JetBrains Mono',monospace;font-size:.95em;white-space:normal;padding:16px;background:var(--surface);border-radius:10px;overflow-wrap:anywhere}.edu-content sub,.edu-content sup{font-size:.75em}.edu-content details{margin-top:16px}.practice-card{margin-block:24px}.practice-meta{display:flex;gap:8px 16px;flex-wrap:wrap;color:var(--muted-ink);font-size:.8rem}.practice-question{font-size:1.25rem;line-height:1.6;margin:24px 0}.practice-topics button{padding:24px}.practice-feedback{margin-block:24px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:820px){.dash-2col{grid-template-columns:1fr}.nav-inner{flex-wrap:wrap;height:auto;min-height:62px;padding-block:12px;gap:12px}.nav-links,.nav-auth{flex-wrap:wrap;gap:8px}.nav-links a{display:inline-flex;align-items:center;min-height:44px}.hero-inner{grid-template-columns:1fr}.learning-session-top{gap:8px}.learning-card{padding:24px}}
@media(max-width:430px){.wrap,.learning-page,.learning-session{padding-inline:16px!important}.learning-card{padding:20px 16px}.learning-session-top{grid-template-columns:auto minmax(0,1fr)}.learning-session-top>span:last-child{grid-column:2}.learning-next,.learning-path-row{padding:20px 16px;gap:12px}.learning-path-row>.btn{grid-column:1/-1}.learning-recommend{padding:20px}.learning-recommend .btn{width:100%}.msub-card{padding:20px}.learning-feedback,.learning-challenge{padding:16px}.learning-visual{padding:8px}.typing-boxes{grid-template-columns:1fr}.concept-detail{flex-wrap:wrap}.learning-actions>.btn,.q-actions>.btn{flex:1 1 160px}.edu-block{padding:12px 16px}.nav-inner{padding-inline:16px}.nav-links{width:100%;order:3;justify-content:flex-start}.nav-auth{margin-left:auto}.learning-page .step-number{font-size:.8rem}.learning-path-row p{font-size:.9rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.confetti,.collection-burst{display:none!important}}

.q-header{position:static!important}.q-meta{flex-wrap:wrap;gap:12px}.q-stem{line-height:1.65;max-width:68ch}.sym-tray{flex-wrap:wrap}.sym-btn{min-width:44px;min-height:44px}

.msub-name,.msub-cat-head,.subj-picker-head,.ds-info b{font-family:inherit}.msub-name{font-weight:750}
@media(max-width:430px){.learning-visual svg{font-size:24px}}

body:has(.session-wrap) .fxbit,body:has(.timer) .coach{display:none!important}.msub-pct b,.msub-go,.weak-row .pct{color:var(--ink)!important}.msub-go{border-color:#d4c8ec!important}.learning-prompt .edu-content{font-size:inherit}.learning-prompt .edu-content p{font-weight:650}.learning-session .edu-content h3{font-family:inherit}.practice-topics a.card{padding:24px}.practice-topics a.card b{display:block;margin-bottom:8px}

.practice-topics a[aria-current="page"]{border:2px solid #7051c8;background:#f4effd}.practice-card>.q-stem{padding:16px;background:var(--surface);border-left:3px solid #7051c8;border-radius:8px;margin-top:16px}

body:has(.session-wrap) #coachFab,body:has(.session-wrap) .coach{display:none!important}
