/* Candidate122. Preserve the approved palette and the learner's progress. */
.home122{width:min(100%,660px);height:100dvh;margin:0 auto;padding:18px 22px 82px;display:flex;flex-direction:column;gap:15px;box-sizing:border-box}
.home122-top{display:flex;align-items:center;justify-content:space-between;padding-left:44px;gap:12px;flex-shrink:0}.home122 .brand{font-size:23px}.home122 .brand small{font-size:11px;margin-top:1px;color:var(--muted)}.home122-stats{display:flex;gap:9px;align-items:center;font-size:12px;color:var(--text)}.home122-stats>span{display:flex;gap:3px;align-items:center;white-space:nowrap}.home122-stats svg{width:17px;height:21px}
.home122-welcome{display:flex;align-items:center;justify-content:space-between;min-height:108px;gap:6px}.home122-welcome img{width:100px;height:115px;object-fit:contain}.home122-welcome h1{font-size:25px;line-height:1.5;margin:5px 0}.home122-welcome p{font-size:13px;margin:0;color:var(--muted)}.home122 .eyebrow{font-size:11px;letter-spacing:0;color:var(--muted);background:none;padding:0}
.home122-next{background:var(--panel);border:2px solid var(--line);border-radius:23px;padding:17px;flex-shrink:0;box-shadow:0 4px 0 var(--line)}.home122-sectionlabel{display:flex;justify-content:space-between;font-size:12px;font-weight:700;color:var(--muted)}.home122-sectionlabel a{color:var(--teal);text-decoration:none}.home122-unit{display:flex;align-items:center;justify-content:space-between;min-height:85px;gap:9px}.home122-unit h2{font-size:22px;line-height:1.5;margin:3px 0 7px}.home122-context{width:100px;height:75px;object-fit:contain}.home122 .btn{min-height:49px;font-size:17px;display:flex;justify-content:center;gap:20px;align-items:center}.home122-unitprogress{display:flex;align-items:center;gap:12px;margin-top:14px}.home122-unitprogress .progress{flex:1;height:7px}.home122-unitprogress small{font-size:11px;white-space:nowrap;color:var(--muted)}
.home122-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-height:0;flex:1;max-height:200px}.home122-tools a{padding:10px 13px;border:1.5px solid var(--line);border-radius:17px;text-decoration:none;display:grid;grid-template-columns:32px 1fr;align-content:center;column-gap:8px;min-height:65px;color:var(--text);background:var(--panel)}.home122-tools a>span{grid-row:span 2;font-size:28px;align-self:center;color:var(--teal)}.home122-tools strong{font-size:14px}.home122-tools small{font-size:11px;color:var(--muted)}.home122-note{font-size:10px!important;line-height:1.6!important;text-align:center;margin:0!important;color:var(--muted)}.home122 .mobile-nav{display:flex!important}.home122 .mobile-nav a{flex:1}.home122 .mobile-nav{max-width:660px;left:50%;transform:translateX(-50%);width:100%}
@media(min-width:800px){.home122{padding-top:27px;gap:20px}.home122-welcome img{width:135px;height:145px}.home122-welcome h1{font-size:30px}.home122-next{padding:22px}.home122-tools{max-height:210px}.home122-tools a{padding:16px}.home122 .mobile-nav{border:1px solid var(--line);border-radius:18px 18px 0 0}}
@media(max-width:350px){.home122{padding-inline:13px;gap:11px}.home122 .brand{font-size:20px}.home122 .brand small{font-size:10px}.home122-stats{font-size:10px;gap:5px}.home122-welcome h1{font-size:22px}.home122-welcome img{width:82px;height:100px}.home122-next{padding:13px}.home122-context{width:83px}.home122-unit h2{font-size:20px}.home122-tools{gap:8px}.home122-tools a{padding:8px;grid-template-columns:25px 1fr;column-gap:5px}.home122-tools strong{font-size:13px}.home122-tools small{font-size:10px}}
@media(max-height:650px){.home122{gap:9px;padding-top:10px;padding-bottom:72px}.home122-welcome{min-height:75px}.home122-welcome img{height:85px;width:75px}.home122-welcome h1{font-size:22px;margin:1px 0}.home122-welcome p{font-size:12px}.home122-next{padding:12px}.home122-unit{min-height:66px}.home122-context{height:58px;width:86px}.home122-unit h2{font-size:19px}.home122-unitprogress{margin-top:9px}.home122-tools a{min-height:55px;padding-block:6px}.home122-tools{gap:7px}.home122 .mobile-nav{height:59px;min-height:59px}.home122-top .brand small{display:none}}
.home122 .mobile-nav{inset-inline:auto;left:50%;right:auto;bottom:0;box-sizing:border-box;transform:translateX(-50%);position:fixed;min-height:64px;height:64px;padding:7px 5px 5px;box-shadow:0 -2px 0 var(--line)}.home122 .mobile-nav a{min-width:0;flex:1}.home122-tools,.home122-note{flex-shrink:0}.home122-tools{flex-grow:1;flex-basis:auto;min-height:130px}.home122 .progress{background:var(--line);height:7px;min-width:0}.home122-unitprogress{min-height:14px}
@media(max-height:650px){.home122{gap:8px;padding-bottom:73px}.home122-welcome{min-height:68px;flex-shrink:0}.home122-welcome img{height:78px}.home122-tools{flex-grow:0;min-height:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.home122-tools a{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:1px;padding:5px 3px;min-height:64px;box-sizing:border-box;border-radius:12px}.home122-tools a>span{font-size:23px}.home122-tools strong{font-size:11px;line-height:1.5}.home122-tools small{display:none}.home122-next{padding:11px}.home122-unit{min-height:63px}.home122-unit h2{font-size:19px;margin:2px 0}.home122-unitprogress{margin-top:8px}.home122 .btn{min-height:46px}.home122-note{font-size:10px!important}.home122 .brand small{display:none}}
@media(max-height:510px){.home122{gap:6px;padding:8px 12px 66px}.home122-welcome{min-height:56px}.home122-welcome img{height:62px;width:60px}.home122-welcome h1{font-size:19px;line-height:1.35}.home122-welcome p{display:none}.home122 .eyebrow{font-size:10px}.home122-next{padding:9px}.home122-unit{min-height:53px}.home122-context{width:70px;height:49px}.home122-unit h2{font-size:18px}.home122 .mobile-nav{min-height:55px;height:55px;padding-top:3px}.home122-tools a{min-height:57px}.home122-note{font-size:9px!important;line-height:1.5!important}.home122 .brand{font-size:20px}}
.home122-unitprogress .bar{flex:1;min-width:30px;height:7px;margin:0;background:var(--line)}.home122 .mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:42px;text-decoration:none;font-size:10px;color:var(--muted)}.home122 .mobile-nav a span{font:23px Arial;display:block;margin-bottom:3px}.home122 .mobile-nav a.active{color:var(--teal);font-weight:700}.home122-note{color:var(--text)!important;opacity:.8}
@media(max-height:510px){.home122-note{font-size:10px!important}.home122-tools a{min-height:54px}.home122 .eyebrow{line-height:1.4}.home122-unitprogress{margin-top:5px}}
@media(max-height:510px){.home122{gap:4px}.home122-welcome{min-height:50px}.home122-welcome img{height:54px}.home122-unit{min-height:46px}.home122-context{height:44px}.home122-next{padding:8px}.home122-note{margin:0!important}}
/* A lesson is a fixed screen. Long content gets numbered parts, not an inner scrollbar. */
.lesson-shell.exercise-layout{height:var(--visible-height,100dvh);padding:8px 14px max(8px,env(safe-area-inset-bottom));gap:0}.lesson-shell.exercise-layout>.exercise{display:flex;flex-direction:column;overflow:visible;padding:4px 2px;scrollbar-gutter:auto;gap:7px}.lesson-top{padding-bottom:6px}.fit-title{flex:none}.fit-title h1{font-size:clamp(19px,5vw,25px);margin:0;line-height:1.4}.fit-title .lesson-sub{margin:0 0 3px;font-size:11px}.fit-deck{flex:1;min-height:0;position:relative;width:100%}.fit-page{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:9px;overflow:visible}.fit-page[hidden]{display:none!important}.fit-pages{height:42px;min-height:42px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none}.fit-pages:empty{height:0;min-height:0;display:none}.fit-pages button{font:inherit;font-size:13px;font-weight:700;min-height:42px;min-width:64px;padding:4px 10px;background:var(--panel);border:1px solid var(--line);border-radius:12px;color:var(--text)}.fit-pages button:disabled{opacity:.35}.fit-pages span{font-size:12px;color:var(--muted)}
.fit-page>*{flex-shrink:0;max-width:100%;box-sizing:border-box}.fit-page>p{margin:0;font-size:14px;line-height:1.65}.fit-page .stage{margin:0;gap:9px}.fit-page .bubble{padding:10px 12px}.fit-page .bubble .phrase{font-size:clamp(19px,5.2vw,25px);line-height:1.45}.fit-page .bubble p{font-size:14px;line-height:1.65;margin-top:5px}.fit-page .context-strip{margin:0;min-height:48px;padding:3px 7px}.fit-page .teaching-context-art{height:45px;width:80px}.fit-page .context-strip strong{font-size:13px}.fit-page .stage .mascot{width:70px!important;height:90px!important;object-fit:contain}.fit-page .tip,.fit-page .notice{font-size:13px;line-height:1.65;margin:0;padding:8px 11px}.fit-page .small{font-size:12px;line-height:1.6}.fit-page .exercise-coach{margin:0}.fit-page .exercise-coach img{width:42px;height:50px}.fit-page .options{margin:0;gap:7px;display:flex;flex-direction:column}.fit-page .option{min-height:44px;padding:2px 9px;margin:0}.fit-page .option .choose{min-height:42px;font-size:15px;padding:5px 2px}.fit-page .option .es{font-size:17px}.fit-page .option .audio{min-width:42px;min-height:42px}.fit-page .audio{width:44px;height:44px;min-height:44px;min-width:44px}.fit-page .dialogline{margin:0;gap:8px}.fit-page .dialogline img{width:43px;height:64px}.fit-page .dialogline .phrase{font-size:18px}.fit-page .dialogline small{font-size:13px;line-height:1.6}.fit-page .listen-scene{height:130px;margin:0}.fit-page .listen-fox{height:126px;width:100px}.fit-page .listen-big{width:64px;height:64px;margin:0 auto}.fit-page .plain{font-size:13px;min-height:44px}.fit-page .definition{font-size:19px;margin:0;line-height:1.5}.fit-page .tiles{gap:6px;margin:0}.fit-page .tile{font-size:16px;min-height:44px;padding:6px 9px;line-height:1.5}.fit-page .answerline{min-height:48px;padding:4px;margin:0;gap:5px}.fit-page .match-grid{margin:0;gap:7px}.fit-page .match-col{gap:7px;display:flex;flex-direction:column}.fit-page .match-item{display:flex;gap:3px;align-items:stretch}.fit-page .match-item .tile{flex:1;min-width:0}.fit-page .match-item .audio{flex:none;min-width:36px;width:36px}.fit-page .match-col .tile{font-size:14px;min-height:46px;padding:6px 3px}.fit-page .feedback{padding:12px;margin:0;font-size:14px;line-height:1.65;max-height:none;overflow:visible}.fit-page .feedback h3{font-size:18px}.lesson-actions{padding:6px 0 0}.lesson-actions>.btn{min-height:48px;font-size:16px}.lesson-actions>.statusline{font-size:12px;line-height:1.5}.lesson-actions .feedback{max-height:none;overflow:visible}
@media(max-height:650px){.fit-page{gap:7px}.fit-page .fit-decoration{display:none}.fit-page .stage .mascot{width:52px!important;height:68px!important}.fit-page .listen-scene{height:100px}.fit-page .listen-fox{height:98px;width:76px}.fit-page .context-strip{min-height:41px}.fit-page .teaching-context-art{height:38px;width:65px}.fit-title h1{font-size:20px}.fit-page .bubble{padding:8px 10px}.fit-page .dialogline img{height:47px;width:34px}.fit-page .listen-big{height:56px;width:56px}.fit-page .stage .phrase{font-size:20px}.fit-page .tip{font-size:13px}}
@media(max-height:420px) and (min-width:450px){.lesson-shell.exercise-layout{padding:4px 12px}.lesson-shell.exercise-layout>.exercise{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(0,1.35fr);grid-template-rows:minmax(0,1fr) 42px;gap:4px 12px}.fit-title{grid-column:1;grid-row:1;align-self:center}.fit-title h1{font-size:19px}.fit-deck{grid-column:2;grid-row:1;height:100%}.fit-pages{grid-column:1/-1;grid-row:2;height:42px;min-height:42px}.fit-page .stage .mascot,.fit-page .dialogline>img{display:none}.fit-page .listen-fox{height:70px;width:52px}.fit-page .listen-scene{height:78px}.lesson-top{padding-bottom:2px}.lesson-top .iconbtn{min-height:36px;height:36px}.lesson-actions>.btn{min-height:44px}.fit-page{gap:5px}.fit-page .tip,.fit-page .notice{font-size:12px;line-height:1.5}.fit-page .bubble p{font-size:13px}.fit-page .dialogline .bubble{padding:5px 8px}.fit-page .dialogline .phrase{font-size:17px}.fit-page .audio{min-height:42px;height:42px}.fit-page .dialogline small{font-size:12px}}
/* Non-lesson destinations use the same explicit page model. */
.route122{width:min(100%,760px);height:var(--visible-height,100dvh);margin:0 auto;display:flex;flex-direction:column;padding:12px 18px 77px;gap:10px;box-sizing:border-box}.route122-top{display:flex;justify-content:space-between;align-items:center;padding-left:46px;min-height:39px;flex:none;gap:10px}.route122-top .brand{font-size:22px}.route122-top .account-entry{font-size:12px;min-height:38px;padding:5px 10px}.route122-source,.home122-paged{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}.route122-heading{flex:none}.route122-heading h1{font-size:clamp(21px,5vw,28px);line-height:1.4;margin:0}.route-deck{flex:1;min-height:0;position:relative}.route-part{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:10px}.route-part[hidden]{display:none!important}.route-part>*{flex-shrink:0;max-width:100%;box-sizing:border-box}.route122>#global-status:empty{display:none}.route122+.mobile-nav{display:flex!important;position:fixed;bottom:0;inset-inline:0;background:var(--surface)!important;border-top:1px solid var(--line);padding:7px 4px 5px;min-height:61px;height:61px;justify-content:space-around;z-index:3;box-sizing:border-box}.route122+.mobile-nav a{min-width:44px;min-height:44px;text-decoration:none;font-size:10px;text-align:center;color:var(--muted);display:flex;align-items:center;flex-direction:column;justify-content:center}.route122+.mobile-nav a span{font:23px Arial;margin-bottom:4px}.route122+.mobile-nav a.active{color:var(--teal);font-weight:700}.route-part .card,.route-part .notice{padding:13px;margin:0;border-radius:17px}.route-part p{font-size:14px;line-height:1.65;margin:4px 0}.route-part .small,.route-part small{font-size:12px;line-height:1.65}.route-part h2{font-size:21px;line-height:1.5;margin:5px 0 8px}.route-part h3{font-size:18px;margin:4px 0}.route-part .hero{min-height:0;padding:13px}.route-part .hero img{width:75px;height:90px}.route-part .hero h2{font-size:20px}.route-part .btn{min-height:44px;font-size:14px;padding:7px 11px;white-space:normal;line-height:1.5}.route-part .rowgap{gap:8px}.route-part label{font-size:14px;line-height:1.6}.route-part input,.route-part select{min-height:44px;max-width:100%;box-sizing:border-box;font-size:16px;padding:7px}.route-part .unit{margin:0}.route-part .unithead{padding:12px}.route-part .unithead>.row{min-height:55px;padding-left:77px}.route-part .unit-head-art{width:80px;height:57px}.route-part .path{padding:10px 13px}.route-part .lessonrow{gap:10px;margin:6px 0;min-height:52px}.route-part .lessonrow .node{height:43px;width:43px;min-width:43px}.route-part .lessonrow strong{font-size:14px}.route-part .lessonrow small{font-size:11px}.route-part .path:before{display:none}.route-part .wordlist{display:flex;flex-direction:column;gap:8px}.route-part .word{padding:12px}.route-part .flashcard{min-height:145px;margin:0;padding:15px;gap:15px}.route-part .result-img{height:90px;width:90px;object-fit:contain}.route-part .grid2,.route-part .grid3{gap:8px}.route-part .metric{padding:12px}.route-part .mode-grid{gap:8px}.route-part .mode-card{padding:10px}.route-part .sectionhead{margin:0;gap:10px}.route-part .sectionhead h2{margin:0}.route-part .settings-row{margin:5px 0}.route-part .notice{font-size:13px;line-height:1.65}.route-part .options{margin:6px 0;gap:6px}.route-part .tile{min-height:44px;font-size:15px;line-height:1.5;padding:7px}
@media(max-height:420px) and (min-width:450px){.route122{padding-top:4px;padding-bottom:57px;gap:4px}.route122-top{min-height:33px}.route122-top .brand{font-size:20px}.route122-source{display:grid;grid-template-columns:minmax(100px,.5fr) minmax(0,1.5fr);grid-template-rows:minmax(0,1fr)42px;gap:4px 12px}.route122-heading{grid-column:1;grid-row:1;align-self:center}.route122-heading h1{font-size:20px}.route-deck{grid-column:2;grid-row:1;height:100%}.route-pages{grid-column:1/-1;grid-row:2}.route-part .card{padding:9px}.route-part p{font-size:13px}.route122+.mobile-nav{height:51px;min-height:51px;padding:2px 4px}.route-part .metric{padding:6px}.route-part{gap:5px}.route-part .hero img{height:60px}.route-part .hero h2{font-size:18px}.route-part .notice{font-size:12px;padding:6px}}
@media(max-height:479px){.home122-paged .home122-welcome{min-height:55px}.home122-paged .home122-welcome img{width:60px;height:60px}.home122-paged .home122-tools{min-height:0;grid-template-columns:repeat(4,1fr);display:grid}.home122-paged .home122-next{width:100%;padding:9px}.home122-paged .home122-note{font-size:11px!important}.home122-paged .route-part{gap:7px}.home122-paged .route-pages{min-height:42px}}
.route-part .setting{padding:7px 0;margin:0}.route-part .week{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.route-part .day{min-width:0;padding:5px 1px;font-size:9px;white-space:normal;overflow-wrap:anywhere}.route-part .day b{font-size:21px}
@media(max-height:420px) and (max-width:449px){.route122{padding:5px 10px 59px;gap:4px}.route122-top{min-height:33px}.route122-top .brand{font-size:18px}.route122-top .account-entry{font-size:11px;min-height:33px}.route122-source{gap:3px}.route122-heading:empty{display:none}.route-part{gap:5px}.route-part h1{font-size:19px;line-height:1.4;margin:0}.route-part h2{font-size:18px;margin:2px 0}.route-part h3{font-size:16px}.route-part .card{padding:8px}.route-part p{font-size:12px;line-height:1.55;margin:2px 0}.route-part .small,.route-part small{font-size:11px;line-height:1.5}.route-part .notice{font-size:12px;line-height:1.5;padding:6px}.route-part .metric b{font-size:26px}.route-part .hero img{height:58px;width:50px}.route-part .flashcard{min-height:90px}.route122+.mobile-nav{height:51px;min-height:51px;padding:2px}.route-part .btn{font-size:13px;min-height:44px;padding:5px 7px}.route-part .setting{padding:4px 0}.route-part .badge{padding:6px}.route-part .badge>span{font-size:23px}.route-part .setting select{margin:2px 0}.route-part .rowgap{gap:5px}.route-part .unithead>.row{padding-left:56px}.route-part .unit-head-art{width:62px}.route-part .unithead{padding:6px}}
@media(max-height:420px) and (max-width:449px){.lesson-shell.exercise-layout{padding:4px 10px}.lesson-top{padding-bottom:3px}.lesson-top .iconbtn{height:36px;min-height:36px}.lesson-shell.exercise-layout>.exercise{gap:3px}.fit-title .lesson-sub{font-size:10px;margin:0}.fit-page h1{font-size:20px;line-height:1.4;margin:0}.fit-page .stage .mascot{display:none}.fit-page .bubble{padding:7px 9px}.fit-page .bubble .phrase{font-size:19px}.fit-page .bubble p{font-size:13px}.fit-page .notice,.fit-page .tip{font-size:12px;line-height:1.5;padding:6px 8px}.fit-page .dialogline>img{display:none}.fit-page .dialogline .phrase{font-size:17px}.fit-page .dialogline small{font-size:12px}.fit-page .listen-fox{height:64px;width:50px}.fit-page .listen-scene{height:78px}.lesson-actions>.btn{min-height:44px}.fit-page .feedback h3{font-size:17px}.fit-page .feedback{font-size:13px;padding:8px}.fit-page .feedback-friend{height:34px;width:34px}.fit-page .tile{font-size:15px}.fit-page .match-col .tile{font-size:13px}}
@media(max-height:420px) and (max-width:449px){.fit-page .bubble{padding:5px 7px;min-height:0}.fit-page .bubble .phrase{font-size:18px;line-height:1.4}.fit-page .bubble p{margin-top:3px;line-height:1.5}.fit-page .stage{min-height:0}.fit-page .dialogline .bubble .phrase{font-size:17px}}
#theme-toggle{min-width:44px;min-height:44px}.fit-page .match-item .audio{min-width:44px;width:44px}.fit-pages{height:44px;min-height:44px}.fit-pages button{min-height:44px}.route-part input[type="checkbox"]{min-height:20px;min-width:20px;width:20px}.route-part label:has(input[type="checkbox"]){min-height:44px;display:flex;align-items:center;gap:8px}.home122-sectionlabel a{min-height:32px;display:flex;align-items:center}
@media(max-height:420px) and (max-width:449px){.fit-page .match-item{display:grid;grid-template-columns:minmax(0,1fr);gap:1px}.fit-page .match-item .audio{justify-self:center}.fit-page .match-item .tile{width:100%;font-size:13px;line-height:1.4;padding:4px 2px}}
.fit-page .wide-link{margin:0 auto!important}.route122-top .brand{white-space:nowrap}
html:has(.exercise-layout),body:has(.exercise-layout),html:has(.route122),body:has(.route122),html:has(.home122),body:has(.home122){min-height:0;height:var(--visible-height,100dvh);overflow:hidden;margin:0;padding:0}

@media(max-height:420px) and (max-width:280px){.fit-page .option .es{font-size:15px;line-height:1.4}.fit-page .option{padding-inline:4px}.fit-page .option .choose{font-size:14px}.fit-page .match-col .tile{font-size:12px;line-height:1.3}.fit-page .match-item{gap:0}.fit-page .match-grid{gap:4px}.fit-page p.es{font-size:17px;line-height:1.4;overflow-wrap:anywhere}.fit-page .bubble .phrase{overflow-wrap:anywhere}}

.btn[aria-pressed="true"]{border-color:var(--accent,#20a5b3);background:var(--surface2,#e8f8f8);box-shadow:0 0 0 2px var(--accent,#20a5b3)}

/* Formative instructions stay next to the task rather than floating above a centered deck. */
.formative-question-route .route-part{justify-content:flex-start;padding-top:3px}
.formative-question-route .route122-heading h1{font-size:19px;line-height:1.55}
.formative-question-route .route-part p.es{font-size:18px;line-height:1.65}
@media(max-height:420px){.formative-question-route .route122-heading h1{font-size:18px;line-height:1.4}.formative-question-route .route-part p.es{font-size:15px;line-height:1.5}}

/* Desktop uses a readable page, not a stretched mobile pager. */
@media(min-width:1000px){
 html:has(.exercise-layout),body:has(.exercise-layout),html:has(.route122),body:has(.route122),html:has(.home122),body:has(.home122){height:auto;min-height:100vh;overflow:auto}
 .route122{width:min(100%,1120px);height:auto;min-height:100vh;padding:24px 38px 100px;gap:26px}
 .route122-top{padding-left:42px;min-height:48px}.route122-top .brand{font-size:26px}
 .route122-source{display:block;flex:none;min-height:0}.route122-source>.reading,.route122-source>.dashboard{width:100%;max-width:900px;margin:0 auto;padding:0}
 .route122-source h1{font-size:30px;margin:0 0 24px;line-height:1.5}.route122-source p{font-size:17px;line-height:1.85}.route122-source .small{font-size:14px}
 .route122-source .card{padding:24px;margin:18px 0}.route122-source .grid2 .card{margin:0}.route122-source .hero{min-height:190px}.route122-source .hero img{width:120px;height:150px}
 .route122-source .formative-question{max-width:760px}.formative-question .btn{min-height:52px;font-size:18px}.formative-question .tile{display:inline-flex;margin:7px;min-height:48px;padding:10px 18px;font-size:18px}.formative-question h1{font-size:27px}.formative-question p.es{font-size:21px}
 .route122+.mobile-nav{left:50%;right:auto;transform:translateX(-50%);width:min(100%,1044px);border:1px solid var(--line);border-radius:18px 18px 0 0}
 .lesson-shell.exercise-layout{width:min(100%,960px);max-width:960px;height:auto;min-height:100vh;padding:28px 40px 44px;justify-content:flex-start;gap:24px}
 .lesson-shell.exercise-layout>.exercise{display:flex;flex:none;width:100%;max-width:780px;margin:0 auto;padding:0;gap:18px;overflow:visible;min-height:0;justify-content:flex-start}
 .exercise h1{font-size:30px;margin:0;line-height:1.5}.exercise .stage{margin:16px 0}.exercise .bubble .phrase{font-size:30px}.exercise .stage .mascot{width:125px!important;height:159px!important}.exercise .context-strip{margin:0}.exercise .tip{font-size:16px;line-height:1.8}.exercise>p{font-size:18px}
 .lesson-actions{position:static;flex:none;width:100%;max-width:780px;margin:8px auto 0;padding-top:20px}.lesson-actions>.btn{min-height:56px;font-size:19px}.lesson-top{flex:none}
 .home122{width:min(100%,1120px);height:auto;min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:auto auto auto auto;gap:25px 30px;padding:26px 38px 105px;align-content:start}
 .home122-top,.home122-welcome,.home122-note{grid-column:1/-1}.home122-welcome{min-height:170px}.home122-welcome h1{font-size:36px}.home122-welcome img{width:150px;height:170px}.home122-next{grid-column:1;grid-row:3;align-self:stretch;padding:28px}.home122-tools{grid-column:2;grid-row:3;max-height:none;min-height:260px;gap:14px}.home122-tools a{padding:19px}.home122-tools strong{font-size:18px}.home122-tools small{font-size:14px}.home122-note{font-size:13px!important}.home122 .mobile-nav{max-width:1044px}
}
@media(min-width:1000px){.lesson-shell.exercise-layout{display:flex;flex-direction:column;overflow:visible}.lesson-shell.exercise-layout>.exercise{height:auto;align-self:center}.lesson-top{width:100%;box-sizing:border-box}.formative-question>.btn{display:flex;width:100%;justify-content:center;margin:12px 0}.formative-question>.plain{display:block;margin:12px 0}.route122-source>.reading.formative-question{margin:0 auto}.route122-source .formative-question{width:100%}}
@media(min-width:1000px){
 .route122-source>.reading:has(#exam-question-nav){max-width:800px}
 .reading:has(#exam-question-nav)>button[data-action="exam-choice"]{display:flex;justify-content:flex-start;width:100%;min-height:54px;margin:10px 0;padding:12px 18px;font-size:19px;text-align:left}
 .reading:has(#exam-question-nav)>h2{font-size:27px;line-height:1.65;margin:20px 0}.reading:has(#exam-question-nav)>label{display:block;margin:16px 0 8px}.reading:has(#exam-question-nav)>select{width:100%;min-height:48px;font-size:17px;padding:8px 12px}.reading:has(#exam-question-nav)>.rowgap{margin:12px 0}.reading:has(#exam-question-nav)>label:has(input){display:flex;align-items:center;gap:10px}.reading:has(#exam-question-nav) input[type="checkbox"]{width:20px;height:20px;flex:none}
}

/* Review fix: ordinary document scroll must remain reachable below mobile browser chrome. */
html:has(.exercise-layout),body:has(.exercise-layout),html:has(.route122),body:has(.route122),html:has(.home122),body:has(.home122){height:auto;min-height:100%;overflow-x:clip;overflow-y:auto;margin:0;padding:0;overscroll-behavior-y:auto}
@media(max-width:999px){
 .home122{height:auto;min-height:100svh;padding-bottom:calc(105px + env(safe-area-inset-bottom,0px));overflow:visible}
 .home122-welcome,.home122-tools,.home122-next{flex:none}.home122-tools{max-height:none;min-height:150px}
 .home122-top{align-items:flex-start;gap:8px}.home122 .brand small{font-size:10px;white-space:nowrap}.home122 .brand{font-size:22px}.home122-stats{padding-top:8px;gap:5px;font-size:11px}
 .route122{height:auto;min-height:100svh;padding-bottom:calc(105px + env(safe-area-inset-bottom,0px));overflow:visible}
 .route122-source{display:block;flex:none;min-height:0}.route122-source>.reading,.route122-source>.dashboard{padding:0;max-width:100%;width:100%}
 .route122-source .card{margin:14px 0}.route122-source .reading>h1{font-size:26px;margin:12px 0 22px}
 .lesson-shell.exercise-layout{height:auto;min-height:100svh;display:flex;flex-direction:column;overflow:visible;padding:10px 14px calc(30px + env(safe-area-inset-bottom,0px));gap:15px}
 .lesson-shell.exercise-layout>.exercise{height:auto;min-height:0;flex:none;display:flex;flex-direction:column;overflow:visible;gap:14px;padding:0;width:100%}
 .lesson-shell.exercise-layout .lesson-actions{position:static;flex:none;padding:14px 0 0;width:100%}.lesson-top{flex:none}
 .lesson-shell.exercise-layout .exercise h1{font-size:23px;line-height:1.5;margin:0}.lesson-shell.exercise-layout .exercise .stage{margin:10px 0}.lesson-shell.exercise-layout .exercise .tip{margin:0;font-size:14px;line-height:1.8}.lesson-shell.exercise-layout .exercise .mascot{width:85px!important;height:108px!important}
 .route122+.mobile-nav,.home122 .mobile-nav{height:calc(64px + env(safe-area-inset-bottom,0px));min-height:64px;padding-bottom:calc(5px + env(safe-area-inset-bottom,0px))}
}
/* Keep the four learning tools readable as 2x2 cards at every phone height. */
@media(max-height:650px){.home122-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;min-height:190px!important;max-height:none!important;flex:none!important}.home122-tools a{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;column-gap:8px!important;align-content:center!important;text-align:start!important;padding:10px 11px!important;min-height:90px!important;border-radius:17px!important}.home122-tools a>span{grid-row:span 2!important;font-size:26px!important;align-self:center!important}.home122-tools strong{font-size:14px!important;line-height:1.5!important}.home122-tools small{display:block!important;font-size:11px!important;line-height:1.5!important}.home122{height:auto!important;min-height:100dvh;overflow:visible!important;padding-bottom:82px!important}}
