/* A focused reading scale and one current task, shared across the existing app. */
html{font-size:18px;scroll-padding-bottom:110px}
html.large-text{font-size:22px}
body,body.large-text{font-size:1rem}
:root{--muted:#52695e}
.main-content{max-width:790px;padding-top:16px}
.main-content:not(.dashboard-content){font-size:1rem}
.page-heading{margin:8px 0 22px}
.page-heading h1,.large-text .page-heading h1{font-size:1.9rem;line-height:1.25;margin:0}
.page-heading .eyebrow{font-size:.82rem;letter-spacing:.06em;margin-bottom:10px}
.page-heading .lead{font-size:1rem;margin:12px 0 0}
.breadcrumb{font-size:.9rem;font-weight:650;white-space:nowrap}
.topbar{padding-top:18px;gap:12px}
.topbar-actions{gap:6px}.top-action{font-size:.88rem;min-height:46px;min-width:46px;padding:8px 12px}
.profile-avatar{display:none}.brand small,.sidebar-note{display:none}
.sidebar{padding-top:24px}.sidebar .brand{margin-bottom:20px}
.sidebar .nav-item.empowerment-toggle{font-size:.82rem}.sidebar .nav-submenu button{font-size:.87rem}
.sidebar-footer{padding-top:16px}.sidebar-footer .nav-item{font-size:.83rem}
.footer-note{margin-top:24px;padding-top:16px;font-size:.8rem}.footer-note>span{display:none}.footer-note button{min-height:44px}
.resume-card{background:#eef3e8;padding:30px;margin-bottom:12px}
.resume-card h2{font-size:1.8rem;max-width:580px;margin:12px 0}
.resume-prompt{font-size:1.1rem;margin-bottom:24px}
.resume-meta{font-size:.9rem;margin:18px 0 0!important;color:var(--muted)}
.home-links{display:flex;justify-content:space-between;gap:15px;margin-bottom:12px}.home-links .text-link{font-size:.95rem;margin:0}
.compact-details{padding:18px 22px;margin-bottom:16px}.compact-details>summary{font-size:.95rem;line-height:1.5;min-height:44px;padding:8px 0;font-weight:600}
.compact-details[open]>summary{margin-bottom:14px}.compact-details p{font-size:1rem}.compact-details .btn{margin-top:8px}
.journey-resume{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.94rem}.journey-resume .text-link{margin:0;white-space:nowrap}
.module-select{margin-bottom:22px}.field,.field label{font-size:1rem}.field input,.field textarea,.field select,select{font-size:1rem;line-height:1.45;min-height:54px}
.module-lessons{padding:24px}.module-lessons h2{font-size:1.45rem}.lesson-row{min-height:78px;padding:16px 12px}.lesson-row b{font-size:1rem;line-height:1.4}.lesson-row small{font-size:.85rem}.lesson-number{min-width:32px;height:32px;font-size:.88rem}
.btn,.large-text .btn{font-size:1rem;min-height:54px;line-height:1.4}.text-link{font-size:.93rem;min-height:44px}
.browsing-notice{padding:14px 18px;border-left:4px solid #b39351;background:#f6efd9;margin:0 0 20px}.browsing-notice p{font-size:.92rem;margin-bottom:10px}
.lesson-media{background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-bottom:18px}
.lesson-media>summary{display:flex;gap:9px;align-items:center;min-height:50px;padding:10px 16px;cursor:pointer;font-size:.95rem;font-weight:600;list-style:none}
.lesson-media>summary:after{content:'+';margin-left:auto}.lesson-media[open]>summary:after{content:'−'}
.media-language{margin-left:auto;font-size:.78rem;font-weight:400;max-width:50%;line-height:1.35;color:var(--muted)}
.video-card{margin:0;border:0;border-radius:0;box-shadow:none}.video-frame{background:#e8eee1}
.player-controls{padding:12px 14px 6px;gap:8px}.player-controls .btn,.large-text .player-controls .btn{font-size:1rem;padding:9px;min-height:54px}.video-caption,.large-text .video-caption{font-size:.9rem;margin:6px 0 10px}
.video-timeline{font-size:.86rem;padding:5px 16px}.video-source{padding:12px 16px}.video-source>summary{min-height:44px;font-size:.9rem;padding:8px 0}.video-source p,.video-source a{font-size:.93rem}
.simple-outcome{font-size:1rem;line-height:1.5;margin:0!important;padding:15px 18px;background:#f0f4e9}
.guide-available{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid var(--line);border-radius:14px 14px 0 0;background:var(--white)}
.guide-available>span{display:flex;align-items:center;gap:9px;font-weight:600;font-size:.95rem}.guide-available small{font-size:.84rem;color:var(--muted)}
.guide-available+.simple-outcome{margin-bottom:18px!important;border-radius:0 0 14px 14px}
#lesson-stages{scroll-margin-top:16px}
.stage-picker{border:1px solid #cbd9cb;border-radius:12px;margin-bottom:12px;background:#eef3e9}
.stage-picker>summary{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;font-size:1rem;font-weight:650;cursor:pointer;list-style:none}
.stage-picker>summary:after{content:'⌄';font-size:1.1rem}.stage-picker[open]>summary:after{content:'⌃'}
.stage-picker small{font-size:.8rem;font-weight:400;color:var(--muted);margin-left:auto;white-space:nowrap}
.stage-tabs{padding:0 12px 12px;margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.stage-tabs button,.large-text .stage-tabs button{font-size:.88rem;min-height:58px;flex-direction:row;align-items:center;padding:10px;line-height:1.35}
.stage-panel{padding:24px;margin-bottom:16px}.senior-prompt,.large-text .senior-prompt{font-size:1.5rem;line-height:1.4;margin-bottom:8px;letter-spacing:-.025em}
.current-task>p,.task-response{font-size:1rem;line-height:1.6;margin:14px 0}
.read-prompt,.large-text .read-prompt{font-size:.88rem;padding:8px 4px;min-height:44px;margin-bottom:8px;gap:8px;font-weight:550}
.read-prompt .icon{width:20px;height:20px}.read-prompt[aria-pressed=true]{background:#e3edde}
.activity-details{margin:12px 0}.activity-details>summary{font-size:.94rem;min-height:44px;padding:10px 0}
.step-actions{border:0;padding:0;margin:20px 0 0;display:flex;justify-content:space-between;gap:12px}
.step-actions .btn,.large-text .step-actions .btn{font-size:1rem;min-height:54px;padding:12px 18px}
.youth-note{margin-top:24px;padding:16px 18px;background:#edf2e7;display:block;border-radius:12px}.youth-note .eyebrow{font-size:.79rem;letter-spacing:.07em;margin-bottom:8px}.youth-note p:not(.eyebrow),.large-text .youth-note p:not(.eyebrow){font-size:.95rem;line-height:1.6;margin:0}
.lesson-preparation{padding:18px 22px}.lesson-preparation>summary{font-size:.95rem;min-height:48px;padding:10px 0;font-weight:600}.lesson-preparation h3{font-size:1.15rem;margin:22px 0 12px}.lesson-preparation li,.lesson-preparation p{font-size:1rem}.lesson-role-grid{display:block;margin-bottom:18px}.role-support{padding:12px 0;border-bottom:1px solid var(--line)}.role-support summary{min-height:44px;font-size:1rem}.role-support p{padding-top:12px}
.activity-lesson-name,.review-context{font-size:1rem;color:var(--muted);margin-top:-10px;margin-bottom:20px}
.response-card{padding:24px}.response-card>.senior-prompt{font-size:1.35rem}.record-panel{padding:16px;border:0;background:#edf2e7;margin:10px 0 0}.record-panel #record-status,.large-text .record-panel #record-status{font-size:.93rem;font-weight:400;margin:12px 0 0}
.record-panel .inline-actions{display:flex;gap:10px}.record-panel .btn{flex:1 1 auto}.written-response{margin:14px 0 0}.written-response>summary{min-height:48px;font-size:1rem;font-weight:600;padding:12px 0}.written-response .field{margin:10px 0 16px}.response-card>.compact-details{padding:12px 0 0;margin:12px 0 0;border-top:1px solid var(--line)}
.response-success{padding:26px}.response-success>h2{font-size:1.55rem;margin-top:16px}.response-success>.btn.primary{margin-top:14px}.saved-response{padding:14px 0;border-bottom:1px solid var(--line)}.saved-response:last-child{border-bottom:0}.saved-response .response-text{font-size:1.05rem;line-height:1.6}.response-date{font-size:.85rem;color:var(--muted);margin:0 0 12px}.saved-response .text-link{margin:0;font-size:.9rem}
.review-evidence h2{font-size:1.3rem}.review-evidence .saved-response:first-of-type{padding-top:0}.practice-evidence{font-size:.93rem;margin:12px 0 0!important}.check-row{font-size:1rem;padding:12px 0}.review-check{font-size:1rem;padding:14px!important}.readiness{font-size:1rem}.ready-field .comfort-choices{grid-template-columns:1fr}.ready-field .choice{font-size:1rem;min-height:54px;text-align:left;justify-content:flex-start;padding:12px 16px}.saved-review{margin-top:20px;padding:16px;border-radius:12px;background:#edf3e8}.saved-review p{font-size:1rem}
.youth-current h2{font-size:1.5rem}.youth-current p{font-size:1rem}.guide-list .lesson-row{width:100%;margin-bottom:8px;background:#f7f9f2}.guide-list .lesson-row b{font-size:1rem;flex:1;text-align:left}.guide-steps li,.youth-guide .note-card p{font-size:1rem}.role-summary{padding:14px 0;border-bottom:1px solid var(--line)}.role-summary h3{font-size:1.1rem}.role-summary p{font-size:1rem}
.modal .btn{font-size:1rem}.modal h2{font-size:1.5rem}.modal p{font-size:1rem}.modal>.wide{margin:8px 0}.help-current{font-size:1.25rem!important;line-height:1.5}.practice-device h3{font-size:1.2rem}.practice-icons .choice{font-size:1rem;min-height:105px}.practice-feedback{font-size:1rem;line-height:1.55}
.q-header{margin-bottom:18px}.q-header h1{font-size:1.9rem}.q-header p{font-size:.95rem}.q-companion{margin-bottom:14px}.q-companion small{font-size:.84rem}.q-panel{padding:24px}.q-panel h2{font-size:1.5rem}.q-panel p{font-size:1rem}.q-panel .q-question{font-size:1.15rem}.q-landscape{height:150px;min-height:150px}.q-map-caption{display:none}.q-eyebrow,.q-note,.q-feedback{font-size:.88rem}.q-choice,.q-button{font-size:1rem;min-height:56px}.q-map-stop b{font-size:.85rem}.q-field,.q-field input{font-size:1rem}.q-looks{gap:8px}.q-look{font-size:.9rem;min-height:64px}.q-look span{display:none}.q-discoveries small{font-size:.9rem}.q-companion .q-button{min-height:44px;font-size:.85rem}
@media(max-width:760px){
 .main-content{padding:16px 18px calc(115px + env(safe-area-inset-bottom));max-width:660px}.topbar{padding:12px 14px 6px;gap:6px}.topbar-actions{gap:4px}.top-action{font-size:.85rem;min-width:42px;min-height:46px;padding:7px 9px}.top-action.help span{display:none}.breadcrumb{font-size:.85rem}.mobile-menu{width:40px;min-width:40px}
 .page-heading h1,.large-text .page-heading h1{font-size:1.65rem}.page-heading{margin:6px 0 20px}.page-heading .eyebrow{font-size:.82rem}
 .card{padding:21px;border-radius:16px}.resume-card{padding:24px}.resume-card h2{font-size:1.6rem}.resume-prompt{font-size:1.05rem}.resume-meta{font-size:.9rem}
 .bottom-nav{padding:6px 8px max(8px,env(safe-area-inset-bottom));min-height:76px;grid-template-columns:repeat(4,minmax(0,1fr))}.bottom-nav button{font-size:.82rem;min-height:62px;line-height:1.2;gap:5px;padding:7px 2px}.bottom-nav .icon{width:23px;height:23px}#toast{bottom:calc(92px + env(safe-area-inset-bottom));font-size:.94rem}
 .stage-picker>summary{font-size:.95rem;padding:12px}.stage-picker small{font-size:.8rem}.stage-tabs button,.large-text .stage-tabs button{font-size:.86rem}.senior-prompt,.large-text .senior-prompt{font-size:1.35rem}
 .player-controls .btn,.large-text .player-controls .btn{font-size:.94rem;flex-direction:column;gap:4px;padding:8px 4px;min-height:68px}.player-controls .btn .icon{width:21px;height:21px;margin:0}.media-language{font-size:.76rem}.video-timeline{font-size:.86rem}.video-caption{font-size:.9rem}
 .home-links{gap:8px}.home-links .text-link{font-size:.9rem}.journey-resume{font-size:.9rem}.module-lessons h2{font-size:1.3rem}.lesson-row small{font-size:.84rem}
 .compact-details,.lesson-preparation{padding:14px 18px}.lesson-role-grid{display:block}.response-card{padding:21px}.response-card>.senior-prompt{font-size:1.25rem}.record-panel{padding:14px}
 .q-header h1{font-size:1.65rem}.q-panel{padding:20px}.q-panel h2{font-size:1.35rem}.q-landscape{height:125px;min-height:125px}.q-companion{padding:10px 14px}.q-choice{padding:16px 6px;font-size:.92rem}.q-choice .icon{width:34px;height:34px}.q-choices{gap:8px}
}
@media(max-width:360px){.main-content{padding-left:14px;padding-right:14px}.breadcrumb{font-size:.75rem}.top-action{min-width:39px;padding:6px}.stage-picker small{display:none}.home-links{flex-wrap:wrap}.bottom-nav button{font-size:.77rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(min-width:361px) and (max-width:760px){.bottom-nav button{font-size:.9rem}}
.q-more{margin-top:16px}.q-more>summary{font-size:.95rem;min-height:48px;padding:12px 0;cursor:pointer}.q-more .q-button{margin:8px 0}.q-earned{display:flex;align-items:center;gap:10px;font-size:.95rem!important}
.practice-icons .icon{width:44px;height:44px}.practice-icons .choice{min-height:118px}.lesson-media video::cue{font-size:1rem;background:#173e35;color:#fff}

/* The viewport sets the layout; text stays readable without a fixed app frame. */
.studio-shell{width:100%;max-width:none;min-height:100dvh;margin:0;border:0;border-radius:0;overflow:visible;box-shadow:none;grid-template-columns:clamp(215px,19vw,290px) minmax(0,1fr)}
.sidebar{top:0;height:100dvh;border-radius:0;padding-inline:clamp(12px,1.3vw,24px)}
.main-content,.main-content.dashboard-content{width:100%;max-width:none;padding-inline:clamp(18px,3.4vw,64px)}
.topbar{padding-inline:clamp(18px,3.4vw,64px)}
.main-content>*{min-width:0}.main-content p,.lesson-preparation li,.guide-steps li{max-width:70ch}
.main-content h1,.main-content h2{overflow-wrap:break-word}
.lesson-workspace{min-width:0}.lesson-workspace>*{min-width:0}.lesson-media{align-self:start}
.video-frame video,.video-frame iframe{width:100%;max-width:100%;height:auto;aspect-ratio:16/9}
.youtube-frame iframe,.youtube-frame>div{height:100%}
.response-card>.senior-prompt,.current-task>.senior-prompt{max-width:34ch}
.lesson-row>span:not(.lesson-number){min-width:0;flex:1}.lesson-row>.icon{flex-shrink:0}
.field select,.module-select select{width:100%;max-width:100%;text-overflow:ellipsis}
.record-panel audio,.saved-audio audio{max-width:100%}
.q-page{width:100%;max-width:none}
@media(min-width:1150px){
 .lesson-workspace:has(.lesson-media[open]){display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(20px,2.4vw,42px);align-items:start}
 .lesson-workspace:has(.lesson-media[open]) .stage-panel{padding:clamp(20px,2vw,36px)}
 .resume-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,35%);column-gap:clamp(28px,4vw,72px);align-items:center}
 .resume-card>.eyebrow,.resume-card>h2,.resume-card>.resume-prompt,.resume-card>.resume-meta{grid-column:1}
 .resume-card>.btn{grid-column:2;grid-row:2 / span 2;align-self:center}
 .resume-card>.resume-prompt{margin-bottom:8px}
 .home-links{justify-content:flex-start;gap:36px}
 .lesson-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 30px}
}
@media(min-width:761px) and (max-width:950px){
 .studio-shell{grid-template-columns:205px minmax(0,1fr)}
 .main-content,.main-content.dashboard-content,.topbar{padding-inline:24px}
}
@media(max-width:760px){
 .studio-shell{display:block}.sidebar{width:min(320px,90vw);padding-inline:18px}
 .main-content,.main-content.dashboard-content{max-width:none;padding-inline:clamp(14px,4.6vw,30px)}
 .topbar{padding-inline:clamp(12px,3.6vw,24px)}
 .step-actions .btn{min-width:0}
 .topbar-actions{flex-shrink:0}.breadcrumb{min-width:0}.page-heading h1{font-size:1.65rem}
}
@media(max-width:360px){
 .topbar{flex-wrap:wrap}.breadcrumb{flex:1}.topbar-actions{margin-left:auto}
 .step-actions{gap:6px}.step-actions .btn{padding-inline:10px;font-size:.93rem}
 .player-controls{gap:6px;padding-inline:10px}
}
.video-frame video{aspect-ratio:4/3}
.quest-experience{width:100%;max-width:none}
.quest-experience .q-header{margin:8px 0 20px}.quest-experience .q-header h1{font-size:1.9rem;margin-bottom:0}
.quest-experience .q-landscape{height:170px;min-height:170px}
.quest-experience .q-panel{padding:24px}.quest-experience .q-panel h2{font-size:1.5rem;line-height:1.4;margin-bottom:18px}
.quest-experience .q-look-field{margin-bottom:8px}.quest-experience .q-look{min-height:64px;padding:12px 4px;gap:0}
.quest-experience .q-name-option{margin:8px 0 18px}.q-name-option>summary{font-size:.95rem;min-height:46px;padding:10px 0;cursor:pointer}
.q-example{margin:12px 0 24px}.q-example>summary{font-size:1rem;min-height:48px;padding:12px 0;cursor:pointer}.q-example p{font-size:1.1rem}.q-example small{font-size:.95rem}
.quest-experience .q-world.q-complete{display:block}.q-complete>.q-landscape{display:none}
.quest-experience .q-field{margin:8px 0 18px;font-size:.95rem}.quest-experience .q-field input{font-size:1rem}
.quest-experience .q-companion{margin-bottom:16px}.quest-experience .q-companion small{font-size:.9rem}
.quest-experience .q-map-stop{padding:8px 14px;gap:4px}.quest-experience .q-map-stop>.icon{width:28px;height:28px}
.quest-experience .q-map-home{top:22%}.quest-experience .q-map-help{top:9%}.quest-experience .q-traveller{top:59%;width:46px;height:46px;border-width:4px}.quest-experience .q-traveller .icon{width:27px;height:27px}
.quest-experience .q-choices{margin-top:12px}.quest-experience .q-choice{min-height:100px;font-size:1rem;padding:16px 6px}
.quest-experience .q-discoveries{margin:12px 0}.quest-experience .q-discoveries>div{padding:10px 14px}.quest-experience .q-discoveries small{font-size:.9rem}
.large-text .quest-experience .q-button,.large-text .quest-experience .q-choice{font-size:1rem}
@media(min-width:1150px){
 .quest-experience .q-world{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
 .quest-experience .q-landscape{height:100%;min-height:310px}.quest-experience .q-panel{padding:clamp(24px,3vw,50px)}
}
@media(max-width:760px){
 .quest-experience .q-header h1{font-size:1.65rem}.quest-experience .q-panel h2{font-size:1.35rem}
 .quest-experience .q-panel{padding:20px}.quest-experience .q-landscape{height:125px;min-height:125px}
 .quest-experience .q-map-stop{padding:6px 12px;gap:2px}.quest-experience .q-map-stop b{font-size:.8rem}
 .quest-experience .q-traveller{top:63%;width:40px;height:40px}.quest-experience .q-traveller .icon{width:22px;height:22px}
 .quest-experience .q-choice{font-size:.95rem;min-height:95px}.quest-experience .q-panel>p:not(.q-eyebrow){font-size:1rem}
}
