/* The console uses compact instruments; review details open only when requested. */
.cockpit-instruments{align-items:start}
#reviewView .cockpit-sections{padding:16px 20px}
.cockpit-sections>summary{cursor:pointer;list-style:none;min-height:44px;margin-bottom:0}
.cockpit-sections>summary::after{content:'+';color:#8ae1ee;font-size:23px}
.cockpit-sections[open]>summary{margin-bottom:13px}
.cockpit-sections[open]>summary::after{content:'−'}
#reviewView button.cockpit-alert{align-items:center;text-align:center;gap:9px;padding:18px 12px;border-radius:48% 48% 18px 18px}
#reviewView button.cockpit-alert>strong{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;min-width:100px;min-height:100px;border:6px double #61c8dd7a;border-radius:50%;font-size:34px;box-shadow:0 0 22px #52c8df17,inset 0 0 16px #52c8df12}
#reviewView button.cockpit-alert>strong small{margin:0;display:block;font-size:10px;max-width:50px}
#reviewView button.cockpit-garage>strong,#reviewView button.cockpit-mock>strong{border-color:#e9b77188}
#reviewView #taxiDashMilestones .shift-rewards{padding:20px;margin:0 0 24px;border:1px solid #61b9da46;border-radius:18px;background:#081e32e8;backdrop-filter:none}
#reviewView #taxiDashMilestones h3{color:#e5f4fa;margin-bottom:16px}
#reviewView #taxiDashMilestones .shift-milestones{gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0}
#reviewView #taxiDashMilestones .shift-milestones li{background:#dcecff;border:1px solid #9abfea;color:#274d74;box-shadow:inset 0 1px 0 #fff9,0 4px 12px #0002;border-radius:14px;transition:transform .15s,box-shadow .15s}
#reviewView #taxiDashMilestones .shift-milestones li.milestone-colour-1{background:#ffe4d5;border-color:#eba17b;color:#864421}
#reviewView #taxiDashMilestones .shift-milestones li.milestone-colour-2{background:#e7dcf8;border-color:#b799df;color:#684294}
#reviewView #taxiDashMilestones .shift-milestones li.milestone-colour-3{background:#fff0b6;border-color:#e1bd4b;color:#7c601d}
#reviewView #taxiDashMilestones .shift-milestones button{color:inherit;min-height:88px;width:100%;padding:14px}
#reviewView #taxiDashMilestones .shift-milestones small{color:inherit;opacity:.8}
#reviewView #taxiDashMilestones .shift-milestones li.is-earned{box-shadow:0 0 0 2px #f3c76c,0 0 20px #f3c76c44}
@media(hover:hover){#reviewView #taxiDashMilestones .shift-milestones li:hover{transform:translateY(-3px);box-shadow:0 8px 22px #0004}}
#reviewView .dash-favourites{padding:12px 16px;border:1px solid #61b9da46;border-radius:12px;background:#081e32e8;color:#c7e3ed;margin-top:18px}
.dash-favourites>summary{cursor:pointer;font-size:14px}
#reviewView .dash-favourites .taxi-review-favorites{border:0;padding:12px 0 0;background:none}
.dash-favourites .taxi-review-deck-heading{display:none}
#reviewView .taxi-saved-concepts,#reviewView .taxi-looked-up-words{display:none}
#studyView .taxi-study-lead{display:none}
.study-in-review{margin-bottom:18px}
#taxiStudyReviewMount{margin-top:auto!important}
#studyView .study-in-review h2{font-size:22px;margin:0 0 16px;color:#e5f4fa}
#studyView .study-in-review>p{color:#b1cbd9}
.study-review-slider{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 36px)/4);gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding:3px 0 12px}
#studyView .study-review-card{display:flex;flex-direction:column;justify-content:space-between;gap:16px;min-height:115px;padding:16px;text-align:left;white-space:normal;background:#0b2639e8;border:1px solid #54859e78;border-radius:12px;scroll-snap-align:start;color:#dceef7}
.study-review-card strong{font-size:14px;line-height:1.45}.study-review-card small{font-size:12px;color:#8ed4e5}
#studyView #taxiStudyShiftPreview .shift-preview{margin:20px 0;padding:16px;border:1px solid #54859e78;border-radius:14px;background:#0b2639d9;color:#c9e6f2}
#studyView #taxiStudyShiftPreview .shift-preview>span{color:#c9e6f2}
#studyView #taxiStudyShiftPreview .shift-preview ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin-bottom:0}
#studyView #taxiStudyShiftPreview .shift-preview li button{width:100%;height:100%;padding:14px;border:1px solid #54859e78;border-radius:12px;background:#102c40;color:#e1f2fa;text-align:left;display:grid;gap:12px}
#studyView #taxiStudyShiftPreview .shift-preview li span{font-size:15px;color:#e1f2fa}
#studyView #taxiStudyShiftPreview .shift-preview li small{color:#96c7d7}
body .career-back{font-size:14px!important;font-weight:550!important;min-height:40px!important;padding:8px 12px!important;line-height:1.2!important}
#taxiGamesSession.is-word-match{position:fixed;inset:0;z-index:22;background:#02111c88;backdrop-filter:none;padding:80px 24px 24px;overflow-y:auto}
#taxiGamesSession.is-word-match .taxi-game-session{width:min(900px,100%);margin:0 auto;box-shadow:0 20px 90px #0006}
@media(min-width:761px){
 body .taxi-sidebar-toggle{width:auto;min-width:48px;height:48px;min-height:48px;padding:7px;justify-content:flex-start}
 body .taxi-sidebar-toggle img{width:32px;height:32px}
 body:has(#taxiView:not([hidden])) .taxi-sidebar-toggle{display:flex!important}
 body.taxi-sidebar-open:has(#taxiView:not([hidden])) .sidebar{display:flex!important}
 body .sidebar{background:#071827f5;border-right-color:#31576e}
 body .sidebar nav button{color:#b0ccd9}
 body .sidebar nav button[aria-current=page]{background:#17394e;color:#91e7f5;border-color:#62c4dc74}
 body .career-back,body:has(#taxiView:not([hidden])) .career-back{position:fixed!important;top:20px!important;left:76px!important;z-index:9}
 body .taxi-page-links{position:fixed!important;left:50%!important;right:auto!important;top:16px!important;transform:translateX(-50%);z-index:11}
 body .taxi-page-links button{background:#0c2135e8;color:#d5e8f1;border-color:#5f8aa44f}
 body:has(#taxiView:not([hidden])) .taxi-mobile-nav{display:none!important}
 body:has(#taxiView:not([hidden])) #taxiView{bottom:0}
}
@media(max-width:760px){.study-review-slider{grid-auto-columns:72%}#studyView #taxiStudyShiftPreview .shift-preview ul{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:78%;overflow-x:auto;scroll-snap-type:x proximity}#taxiGamesSession.is-word-match{padding:80px 12px 90px}#reviewView #taxiDashMilestones .shift-milestones{grid-template-columns:repeat(2,minmax(0,1fr))}}

body .career-back{text-decoration:none!important}
@media(min-width:761px){body:has(#taxiView:not([hidden])) .taxi-page-links button{background:#0c2135ed!important;color:#d5e8f1!important;border-color:#5f8aa480!important}}
#reviewView #taxiDashMilestones .shift-cab{width:36px;height:28px;flex:none}
@media(min-width:761px){
 #taxiRouteMount .route-exercise-overlay{background:#092235;color:#e2f2fa;border-color:#54859e78;border-radius:18px;box-shadow:0 18px 65px #0006}
 #taxiRouteMount .route-exercise-overlay::backdrop{background:#03121c66}
 #taxiRouteMount .route-exercise-overlay :is(.route-lesson,.route-boss,.route-finished){background:transparent;color:#e2f2fa}
 #taxiRouteMount .route-exercise-overlay :is(h2,h3,.taxi-quiz-template-prompt){color:#e2f2fa}
 #taxiRouteMount .route-exercise-overlay .taxi-choice{background:#102a3d;color:#deeff7;border-color:#3f657d}
 #taxiRouteMount .route-exercise-overlay .taxi-choice-letter{background:#203e52;color:#9bddeb}
 #taxiRouteMount .route-exercise-overlay :is(.secondary,.text-button){background:#102b40;color:#b8e6f4;border-color:#46728b}
 #taxiRouteMount .route-exercise-overlay :is(.route-passage,.route-language-help,.route-word-shelf){background:#102b40;color:#d8eaf4;border-color:#4c8297}
 #taxiRouteMount .route-exercise-overlay .taxi-long-passage{background:transparent;color:#d8eaf4}
 #taxiRouteMount .route-exercise-overlay .route-feedback.is-correct{background:#0d362f;color:#cefae8}
 #taxiRouteMount .route-exercise-overlay .route-feedback.is-wrong{background:#421e2c;color:#ffdce2}
 #taxiRouteMount .route-exercise-overlay .taxi-choice.is-correct{background:#0d362f;border-color:#50bf95;color:#cefae8}
 #taxiRouteMount .route-exercise-overlay .taxi-choice.is-wrong{background:#421e2c;border-color:#dc8294;color:#ffdce2}
}
@media(max-width:760px){#taxiRouteMount .route-exercise-overlay:has(>.route-boss),#taxiRouteMount .route-exercise-overlay>.route-boss{background:#092235;color:#e2f2fa;border-color:#54859e78}#taxiRouteMount .route-exercise-overlay>.route-boss h2:focus{outline:none}}
@media(min-width:761px) and (hover:hover){#taxiRouteMount .route-exercise-overlay .taxi-choice:not(:has(input:disabled)):hover{background:#17394f;border-color:#81d6ed}}
/* One compact header and dismissible overlay for all three quick games. */
#taxiGamesSession.is-short-quiz{position:fixed;inset:0;z-index:22;background:#02111c88;backdrop-filter:none;padding:80px 24px 24px;overflow-y:auto}
#taxiGamesSession.is-short-quiz .taxi-game-session{width:min(940px,100%);margin:0 auto;box-shadow:0 20px 90px #0006}
@media(max-width:600px){
 #taxiGamesSession.is-short-quiz{padding:80px 12px 90px}
}

@media(max-width:760px){
 body:has(#taxiView:not([hidden])){background:#061322 url('assets/dash-cockpit.webp') center bottom/cover fixed;color:#eaf6fb;min-height:100dvh}
}

body .career-back{font-weight:400}

/* Approved numbered UI batch. */
html body .career-back{font-weight:400!important}
#reviewView .cockpit-navigation{grid-template-rows:auto 1fr auto auto auto;position:relative}
#reviewView .cockpit-navigation .cockpit-panel-label{grid-row:1;align-self:start}
#reviewView .cockpit-navigation h3{position:absolute;bottom:76px;left:clamp(95px,var(--stop-progress),calc(100% - 95px));transform:translateX(-50%);margin:0;font-size:clamp(28px,3vw,40px);white-space:nowrap}
#reviewView .cockpit-navigation .cockpit-route-count{grid-row:3;color:#a2bccb;font-size:10px}
#reviewView #taxiDashMilestones .shift-rewards>summary{cursor:pointer;color:#e5f4fa;font-size:18px;font-weight:600}
#reviewView #taxiDashMilestones .shift-rewards>p{color:#a9c0ce;font-size:12px}
#reviewView #taxiDashMilestones .shift-milestones li:not(.is-earned){background:#112e43;border-color:#385b72;color:#a9c0ce;box-shadow:none}
#reviewView #taxiDashMilestones .shift-milestones button{min-height:60px;padding:10px}
#taxiRouteMount .route-treasure-map .route-road-surface{stroke:#102b40;stroke-opacity:1}
#taxiRouteMount .route-treasure-map .route-road-edge{stroke:#385b72;stroke-opacity:1}
#taxiGamesSession .taxi-game-phrase-feedback{height:20px;line-height:20px;margin:8px 0 0;font-size:13px;text-align:center;overflow:auto;white-space:nowrap}

.taxi-sync-chip{position:fixed;right:12px;bottom:12px;z-index:8;font-size:11px;padding:6px 10px;border:1px solid #456b80;border-radius:999px;background:#0b2236ed;color:#b6d5e3}
@media(max-width:760px){.taxi-sync-chip{bottom:calc(80px + env(safe-area-inset-bottom))}}
@media(max-width:600px){}

@media(min-width:481px){
}
@media(max-width:600px){
}
@media(max-width:600px){}
@media(max-width:600px){}

/* Dash: focused progress cards and an always-open, scrollable instrument panel. */
#reviewView :is(.route-placement,.dash-favourites,.taxi-review-favorites){display:none}
#reviewView .cockpit-navigation h3{grid-area:auto;top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);margin:0;max-width:calc(100% - 40px);white-space:normal}
#reviewView .cockpit-activity{align-self:start}
#reviewView .cockpit-sections{display:flex;flex-direction:column;min-height:0;padding:20px;overflow:hidden}
#reviewView .cockpit-sections .cockpit-section-heading{flex:none;margin-bottom:13px}
#reviewView .cockpit-section-scroll{flex:1;min-height:0;height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:8px}
#reviewView .dash-milestones-heading .dash-milestones-intro{font-size:14px;line-height:1.6;font-weight:400;letter-spacing:normal;color:#a9c0cc;margin:12px 0 0}

/* Reveal the cockpit background above the Dash content. */
#reviewView:not([hidden]){padding-top:clamp(120px,28vh,300px)}

/* Study: one complete review queue, with room above for the university backdrop. */
#studyView:not([hidden]){box-sizing:border-box;min-height:calc(100vh - 240px);min-height:calc(100svh - 240px);padding-top:0!important}
@media(min-width:761px) and (max-width:1100px){#studyView:not([hidden]){min-height:calc(100vh - 164px);min-height:calc(100svh - 164px)}}
@media(min-width:761px) and (max-width:850px){#studyView:not([hidden]){min-height:calc(100vh - 124px);min-height:calc(100svh - 124px)}}
@media(max-width:760px){#studyView:not([hidden]){min-height:calc(100vh - 196px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:calc(100svh - 196px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}
#studyView #taxiRouteReviewMount{display:none}
#studyView .study-in-review{padding:24px;border:1px solid #54859e78;border-radius:18px;background:#092235ed}
#studyView .study-review-heading>p:not(.eyebrow){font-size:14px;line-height:1.6;color:#aac7d6;margin:0 0 24px;max-width:65ch}
#studyView .study-review-heading .eyebrow{font-size:11px;letter-spacing:.14em;color:#85d8eb;margin:0 0 8px}
#studyView .study-review-group{border-top:1px solid #36576c;margin-top:16px;padding-top:16px}
#studyView .study-review-group>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;color:#dceef7}
#studyView .study-review-group>summary::after{content:'+';margin-left:auto;color:#85d8eb;font-size:22px}
#studyView .study-review-group[open]>summary::after{content:'−'}
#studyView .study-review-group h3{margin:0;font-size:16px}
#studyView .study-review-group>summary>span{padding:3px 9px;border-radius:99px;background:#203e52;color:#a4dfed;font-size:12px}
#studyView .study-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
#studyView :is(.study-review-card,.study-review-word){box-sizing:border-box;min-width:0;padding:16px;border:1px solid #3f657d;border-radius:12px;background:#102a3d;color:#deeff7;overflow-wrap:anywhere}
#studyView .study-review-card{min-height:132px;gap:12px;justify-content:flex-start}
#studyView .study-review-card>small,#studyView .study-review-word>small{color:#9bb9c9;font-size:11px}
#studyView .study-review-card>span{margin-top:auto;font-size:12px;color:#96dfef}
:is(#studyView,#vocabularyView,#reviewView) .study-review-word>details{margin-top:12px}
:is(#studyView,#vocabularyView,#reviewView) .study-review-word summary{font-size:17px;font-weight:600;cursor:pointer}
:is(#studyView,#vocabularyView,#reviewView) .study-review-word p{font-size:14px;line-height:1.5}
#studyView .study-review-word .study-word-context{color:#a9c3d1;font-size:12px}
#studyView .study-review-word>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:14px}
#studyView .study-review-word button{font-size:12px;min-height:32px;color:#96dfef}
#studyView .study-review-empty{padding:20px;border-radius:12px;background:#102a3d;color:#deeff7}
#studyView .study-review-empty p{color:#aac7d6;font-size:14px;line-height:1.6;margin-bottom:0}
@media(hover:hover){#studyView .study-review-card:hover{background:#193e55;border-color:#77cee8;box-shadow:none}}
@media(max-width:1000px){#studyView .study-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#studyView .study-in-review{padding:16px}#studyView .study-review-grid{grid-template-columns:1fr}}

#studyView .study-review-card>strong{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}

/* Tips focus checklist uses the shared dark blue surfaces. */
#pointersView .taxi-sprint-blocks{background:#092235ed;border-color:#3f657d;color:#e2f2fa}
#pointersView .taxi-sprint-task{background:#102a3d;border-color:#3f657d;color:#deeff7}
#pointersView .taxi-sprint-task.is-done{background:#103b32;border-color:#419d83}
#pointersView .taxi-sprint-check{background:#203e52;color:#9bddeb}
#pointersView .taxi-sprint-task.is-done .taxi-sprint-check{background:#185545;color:#a2ebd1}
#pointersView .taxi-sprint-task-link{background:transparent;color:#deeff7;box-shadow:none}
#pointersView .taxi-sprint-task-link small,#pointersView .taxi-sprint-focus{color:#aac7d6}
#pointersView .taxi-sprint-task input{accent-color:#80d6cb}
@media(hover:hover){#pointersView .taxi-sprint-task:hover{background:#193e55;border-color:#77cee8}#pointersView .taxi-sprint-task.is-done:hover{background:#18493e}}

/* Quiz landing: distinct game tiles and separate practice destinations. */
#quizView .quiz-page-areas{display:grid;gap:40px}
#quizView .quiz-area-heading{margin-bottom:20px}
#quizView .quiz-area-heading h2{font-size:28px;color:#e2f2fa;margin:0 0 10px}
#quizView .quiz-area-heading>p:not(.eyebrow){font-size:14px;line-height:1.6;color:#aac7d6;max-width:65ch;margin:0}
#quizView .taxi-game-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#quizView .taxi-game-cards .taxi-game-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;min-height:180px;padding:26px;border-radius:42px 18px 42px 18px;background:linear-gradient(135deg,#17475d,#0b2639);border:1px solid #427e96;color:#e2f2fa;overflow:hidden}
#quizView .taxi-game-cards .taxi-game-card:nth-child(2n){border-radius:18px 42px 18px 42px;background:linear-gradient(135deg,#223e59,#10263d)}
#quizView .taxi-game-cards .taxi-game-card:nth-child(3n){background:linear-gradient(135deg,#214746,#102d34)}
#quizView .taxi-game-cards .taxi-game-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#80d6cb19;color:#98e4ef;font-size:25px;line-height:1}
#quizView .taxi-game-cards strong{font-size:19px}#quizView .taxi-game-cards small{font-size:13px;line-height:1.5;color:#b1cedb;max-width:85%}
#quizView .quiz-card-go{position:absolute;right:24px;bottom:24px;font-size:24px;color:#9ae5ef}
#quizView #taxiDailyQuizMount{display:grid;gap:36px}
#quizView .taxi-activity-panel{padding:24px 28px;border-left:3px solid #82dacf;background:#0c293cc9;border-radius:0 28px 28px 0}
#quizView .quiz-shift-area{border-color:#efc782}
#quizView :is(.quiz-daily-area,.quiz-shift-area) .taxi-daily-practice-card{display:flex;align-items:center;gap:16px;width:100%;padding:16px 20px;border-radius:999px;background:#17394f;color:#e2f2fa;border:1px solid #46728b;min-height:64px}
#quizView :is(.quiz-daily-area,.quiz-shift-area) .taxi-daily-practice-card>span:last-child{margin-left:auto}
#quizView .quiz-blueprint-area>.taxi-quiz-menu-card{margin-top:20px;width:100%;border-radius:999px;background:#102c40}
#quizView .quiz-scenarios-area .taxi-quiz-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#quizView .quiz-scenarios-area .taxi-quiz-menu-card{border-radius:18px;background:#102c40;min-height:72px;padding:12px 16px}
#quizView .quiz-advanced-area{padding:32px;border:1px solid #9b86bd70;border-radius:36px;background:linear-gradient(135deg,#263651eF,#11263deF)}
#quizView .quiz-advanced-topics{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:22px 0;list-style:none}
#quizView .quiz-advanced-topics li{padding:9px 14px;border:1px solid #a28ac065;border-radius:999px;color:#d6c7e9;font-size:13px;background:#9b86bd10}
#quizView .quiz-advanced-area>.taxi-quiz-menu-card{width:100%;min-height:100px;background:#19334d;border-radius:24px}
@media(hover:hover){#quizView .taxi-game-cards .taxi-game-card:hover,#studyView .taxi-learning-hub [data-learning-open]:hover{border-color:#8bd9ed;background:#204e63;box-shadow:none;transform:translateY(-2px)}#studyView .taxi-learning-hub [data-learning-open]:hover{--taxi-panel:#204e63;--taxi-border:#8bd9ed}}
@media(max-width:760px){#quizView .taxi-game-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#quizView .taxi-game-cards .taxi-game-card{padding:18px;min-height:170px}#quizView .taxi-game-cards strong{font-size:16px}#quizView .taxi-game-cards small{font-size:12px}#quizView .quiz-scenarios-area .taxi-quiz-menu-grid{grid-template-columns:1fr}#quizView .quiz-advanced-area{padding:22px}#quizView .quiz-area-heading h2{font-size:24px}#quizView .taxi-activity-panel{padding:20px}}

#vocabularyView .taxi-vocabulary-tabs [data-vocab-add]{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0}
#vocabularyView [data-vocab-add]>svg{display:block;flex:none}
#quizView [data-taxi-game-start="truth"] .taxi-game-icon{font-size:18px;white-space:nowrap}

/* Compact game actions inside the reusable Activity Panel. */
#quizView .taxi-activity-panel.taxi-game-menu{margin:0}
#quizView .taxi-game-cards .taxi-game-card{display:grid;grid-template-columns:40px minmax(0,1fr) 16px;grid-template-areas:"icon title arrow" "icon description arrow";align-content:center;align-items:center;gap:5px 12px;min-height:104px;padding:16px 18px;border-radius:44px}
#quizView .taxi-game-cards .taxi-game-card:nth-child(3n+2){border-radius:32px 10px 32px 10px}
#quizView .taxi-game-cards .taxi-game-card:nth-child(3n){border-radius:10px 32px 10px 32px}
#quizView .taxi-game-cards .taxi-game-icon{grid-area:icon;width:40px;height:40px;font-size:21px}
#quizView .taxi-game-cards strong{grid-area:title;font-size:17px;line-height:1.3;min-width:0}
#quizView .taxi-game-cards small{grid-area:description;max-width:none;font-size:12px;line-height:1.45;min-width:0}
#quizView .taxi-game-cards .quiz-card-go{grid-area:arrow;position:static;font-size:22px}
@media(max-width:1000px){#quizView .taxi-game-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#quizView .taxi-game-cards{grid-template-columns:1fr;gap:12px}#quizView .taxi-game-cards .taxi-game-card{min-height:92px}}

#quizView .taxi-game-cards [data-taxi-game-start="truth"] .taxi-game-icon{font-size:14px}

/* Word Match retains pairing columns within the shared Small Quiz frame. */
#taxiGamesSession.is-word-match:has(.taxi-match-short){align-items:safe center}
#taxiGamesSession .taxi-match-short .taxi-match-column{display:grid;grid-template-rows:auto repeat(5,1fr);gap:8px;min-width:0}
#taxiGamesSession .taxi-match-short .taxi-match-column h3{font-size:12px;text-align:center;margin:0 0 2px;color:#a9c0ce}
#taxiGamesSession .taxi-match-short .taxi-game-word{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;min-width:0;min-height:44px;padding:8px 9px;border:1px solid #3f657d;border-radius:10px;background:#102a3d;color:#deeff7;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
#taxiGamesSession .taxi-match-short .taxi-game-word[aria-pressed=true]{background:#193e55;border-color:#77cee8;box-shadow:inset 0 0 0 1px #77cee8}
#taxiGamesSession .taxi-match-short .taxi-game-word.is-matched{background:#103b32;border-color:#40b98f;color:#c9f5e7;opacity:1}
#taxiGamesSession .taxi-match-short .taxi-game-word.is-wrong{background:#422c37;border-color:#dc8595;color:#f8dce2}
#taxiGamesSession .taxi-match-short .taxi-match-mark{flex:none;font-size:15px}
@media(hover:hover){#taxiGamesSession .taxi-match-short .taxi-game-word:not(:disabled):hover{background:#193e55;border-color:#77cee8}}
@media(max-width:600px){#taxiGamesSession .taxi-match-short .taxi-game-word{font-size:12px;padding:7px 6px}}

/* Quick Fire: title-only game badges with larger illustrations. */
#quizView .taxi-game-menu .taxi-game-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
#quizView .taxi-game-menu .taxi-game-cards .taxi-game-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:154px;padding:18px 12px;text-align:center;border-radius:28px}
#quizView .taxi-game-menu .taxi-game-cards .taxi-game-card:nth-child(1){border-radius:64px 64px 20px 20px}
#quizView .taxi-game-menu .taxi-game-cards .taxi-game-card:nth-child(2){border-radius:36px 8px 36px 8px}
#quizView .taxi-game-menu .taxi-game-cards .taxi-game-card:nth-child(3){border-radius:8px 36px 8px 36px}
#quizView .taxi-game-menu .taxi-game-cards .taxi-game-card:nth-child(4){border-radius:50px 16px 50px 16px}
#quizView .taxi-game-menu .taxi-game-cards .taxi-game-card:nth-child(5){border-radius:50px}
#quizView .taxi-game-menu .taxi-game-cards .taxi-game-icon{width:64px;height:64px;flex:none;background:none;border-radius:0}
#quizView .taxi-game-menu .taxi-game-icon svg{width:100%;height:100%;display:block}
#quizView .taxi-game-menu .taxi-game-cards strong{font-size:17px;line-height:1.3}
#quizView .quiz-longer-round>.taxi-quiz-menu-card{width:100%;border-radius:18px;background:#102c40;min-height:64px;padding:12px 16px}
@media(max-width:1000px){#quizView .taxi-game-menu .taxi-game-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#quizView .taxi-game-menu .taxi-game-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#quizView .taxi-game-menu .taxi-game-cards .taxi-game-card{min-height:150px;padding:16px 10px}#quizView .taxi-game-menu .taxi-game-cards strong{font-size:15px}#quizView .taxi-game-menu .taxi-game-cards .taxi-game-card:last-child{grid-column:1/-1;width:calc((100% - 12px)/2);justify-self:center;aspect-ratio:1;border-radius:50%;min-height:150px}}

/* Route situation paragraphs must keep contrast on mobile as well as desktop. */
#taxiRouteMount .route-passage{background:#102b40;color:#d8eaf4}
#taxiRouteMount .route-passage .taxi-long-passage{background:transparent;color:#d8eaf4}

/* Shared difficulty speedometer: needle position and colour both carry the level. */
#quizView .taxi-game-menu .quiz-area-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.taxi-difficulty-control{display:inline-flex;align-items:center;gap:8px;flex:none;color:#aac7d6;font-size:12px}
body .taxi-difficulty-button{box-sizing:border-box;display:grid;place-items:center;width:64px;height:52px;min-height:52px;padding:4px;border:1px solid #46728b;border-radius:14px;background:#102b40;color:#aac7d6;cursor:pointer}
.taxi-difficulty-button svg{display:block;width:54px;height:42px}
.difficulty-needle{stroke:#80d6cb;transform:rotate(var(--needle-angle));transform-origin:32px 35px;transition:transform .22s,stroke .22s}
[data-level="medium"] .difficulty-needle{stroke:#efc782}[data-level="hard"] .difficulty-needle{stroke:#ef8290}
.taxi-difficulty-button:focus-visible{outline:2px solid #8bd9ed;outline-offset:3px}
.taxi-difficulty-toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);z-index:100;padding:9px 16px;border:1px solid #46728b;border-radius:999px;background:#102b40;color:#e2f2fa;font-size:13px;pointer-events:none;white-space:nowrap}
.route-difficulty-bar{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:0 0 12px;color:#aac7d6;font-size:12px}
@media(prefers-reduced-motion:reduce){.difficulty-needle{transition:none}}

#quizView .quiz-scenarios-area>.quiz-area-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
#quizView .quiz-scenarios-area>.quiz-area-heading h2{margin-right:auto}
#quizView .quiz-scenarios-area>.quiz-area-heading>.eyebrow,#quizView .quiz-scenarios-area>.quiz-area-heading>p:not(.eyebrow){flex-basis:100%}
.route-difficulty-bar{flex-wrap:wrap}.route-difficulty-bar .text-button{font-size:12px}
#studyView .study-next-challenges{border-top:1px solid #36576c;margin-top:24px;padding-top:24px}
#studyView .study-next-challenges h3{color:#b4eed9;font-size:18px;margin:0 0 10px}
#studyView .study-next-challenges>p{color:#aac7d6;font-size:14px;line-height:1.6}

#quizView #taxiFocusedPracticeMount{margin:22px 0 26px}
/* Route results keep their navy theme and readable controls on mobile too. */
#taxiRouteMount .route-exercise-overlay:has(.route-finished){background:#092235;color:#e2f2fa;border-color:#54859e78}
#taxiRouteMount .route-exercise-overlay .route-finished{background:#092235;color:#e2f2fa;padding:76px 22px 24px}
#taxiRouteMount .route-finished h2{margin:0 auto 16px;max-width:30ch;color:#e2f2fa;font-size:clamp(22px,3vw,28px);line-height:1.25;text-align:center}
#taxiRouteMount .route-finished>p:not(.route-finish-score){color:#d8eaf4;font-size:16px;line-height:1.6;max-width:48ch;margin:16px auto}
#taxiRouteMount .route-finished .route-earned{margin:12px auto;color:#9de9f4;font-size:32px}
#taxiRouteMount .route-finished .secondary{background:#102b40;color:#b8e6f4;border-color:#46728b}
#taxiRouteMount .route-finished .route-difficulty-bar{justify-content:center;margin:22px 0 16px}
#taxiRouteMount .route-finished .route-finish-score small{line-height:1.6}
/* Page tools share one icon scale and touch target across every screen size. */
body .taxi-page-links{gap:6px}
body .taxi-page-links [hidden]{display:none!important}
body .taxi-page-links :is(.taxi-toolbar-vocabulary,.taxi-toolbar-level){display:inline-flex;align-items:center;gap:6px}
body .taxi-page-links button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;height:44px;width:auto;padding:8px 10px;border-radius:999px;background:#0c2135ed;color:#d5e8f1;border:1px solid #5f8aa480;font-size:12px}
body .taxi-page-links :is(.taxi-nav-icon,.taxi-difficulty-button svg){width:24px;height:24px;flex:none}
body .taxi-page-links .difficulty-needle{transform-origin:12px 18px}
body .taxi-page-links .taxi-difficulty-control{font-size:12px}
body .taxi-page-links .taxi-vocab-add-icon{padding:8px 10px}
#quizView .taxi-difficulty-control,#scenariosView .taxi-difficulty-control{display:none}
html:has(#taxiView),body:has(#taxiView){overscroll-behavior-y:none}
#quizView .taxi-section-choice{display:flex;flex-direction:column;min-width:0;scroll-snap-align:start;gap:10px}
#quizView .taxi-section-choice>.taxi-topic-card{width:100%;flex:1}
#quizView .taxi-section-choice>.taxi-difficulty-control{display:inline-flex;align-self:flex-end}
:is(#taxiGamesSession,#taxiQuizSession,#taxiShiftQuizSession,#taxiRouteMount) .is-eliminated{opacity:.25!important;cursor:default;box-shadow:none}
#taxiRouteMount .route-answer-tools{display:flex;justify-content:flex-start;margin:12px 0}
#taxiRouteMount .route-answer-tools button{min-height:44px;padding:8px 12px;border-radius:999px;background:#102b40;color:#b8e6f4;border:1px solid #46728b;font-size:12px}
#scenariosView .is-eliminated{opacity:.25;cursor:default}

/* A short priority list instead of full vocabulary cards. */
#studyView .study-word-shortlist{margin-top:24px}
#studyView .study-word-shortlist>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
#studyView .study-word-shortlist h3{margin:0;font-size:18px}
#studyView .study-word-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
:is(#studyView,#vocabularyView,#reviewView) .study-review-word{display:flex;align-items:flex-start;gap:12px;padding:4px 0;border:0;border-bottom:1px solid #3f657d66;border-radius:0;background:transparent}
:is(#studyView,#vocabularyView,#reviewView) .study-review-word>details{flex:1;min-width:0;margin:0}
:is(#studyView,#vocabularyView,#reviewView) .study-review-word summary{display:flex;align-items:center;min-height:44px;font-size:16px;font-weight:500}
:is(#studyView,#vocabularyView,#reviewView) .study-review-word p{margin:0 0 8px;color:#a7cfde;font-size:14px}
#studyView .study-review-word button{flex:none;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;font-size:20px;border-radius:50%}
:is(#studyView,#vocabularyView,#reviewView) .study-review-word summary:hover{color:#83dfed}
#reviewView button.cockpit-alert{grid-column:1/-1;display:flex;flex-direction:row;justify-content:center;border-radius:24px;padding:12px 20px;flex-wrap:wrap;text-align:left;gap:12px}
#reviewView button.cockpit-alert>strong{display:block;min-width:0;min-height:0;border:0;box-shadow:none;font-size:24px}
#reviewView button.cockpit-alert>small{margin:0}
@media(max-width:600px){#studyView .study-word-rows{grid-template-columns:minmax(0,1fr)}}

/* Use purpose-composed portrait scenes on narrow screens. */
@media(max-width:760px){
 body:has(#studyView:not([hidden])){background-image:linear-gradient(#04162535,#04162570),url("assets/study-university-night-mobile.webp");background-position:center bottom;background-size:cover}
 body:has(#vocabularyView:not([hidden])){background-image:linear-gradient(#02111b40,#02111b66),url("assets/vocab-library-cockpit-mobile.webp");background-position:center center;background-size:cover}
 body:has(:is(#quizView,#scenariosView,#pointersView,#libraryView,#profileView):not([hidden])){background-image:linear-gradient(#04162535,#04162570),url("assets/dash-cockpit-mobile.webp");background-position:center bottom;background-size:cover}
 body:has(#reviewView:not([hidden])){background-image:url("assets/dash-cockpit-mobile.webp");background-position:center bottom;background-size:cover}
 body:has(#taxiView:not([hidden])){background-image:url("assets/dash-cockpit-mobile.webp");background-position:center bottom;background-size:cover}
}

/* 14 October: compact Dash cards and consistent navigation breakpoints. */
#reviewView .cockpit-navigation{align-self:start;grid-template-rows:auto auto auto auto auto;row-gap:10px;min-height:0}
#reviewView .cockpit-navigation h3{position:static;grid-row:1;transform:none;margin:0 44px;max-width:none;font-size:28px}
#reviewView .cockpit-navigation .cockpit-panel-label{grid-row:2}
#reviewView .cockpit-navigation .cockpit-route-count{grid-row:3}
#reviewView .cockpit-navigation .cockpit-route-line{grid-row:4;margin:0}
#reviewView .cockpit-navigation .cockpit-route-caption{grid-row:5;margin:0}
@media(min-width:761px){body:not(:has(#taxiView:not([hidden]))) .taxi-mobile-nav{display:none!important}}
body:has(#taxiView:not([hidden])) .taxi-sync-chip{display:none}
body:has(#taxiView:not([hidden])){overflow:hidden}
#taxiRouteMount .route-map{scrollbar-width:none}
#taxiRouteMount .route-map::-webkit-scrollbar{display:none}

/* Shared quiz typography, readable situation order and stable answer sizing. */
:root{--taxi-question-size:18px}
#taxiRouteMount .route-passage{margin:12px 0;padding:12px;background:#102b40;border-radius:12px;color:#d8eaf4}
#taxiRouteMount .route-passage p{margin:0;font-size:15px;line-height:1.6}
#taxiRouteMount .route-answer-tools button{width:44px;height:44px;padding:0;border-radius:50%;font-size:12px}
.taxi-missing-word{display:inline-block;min-width:8ch;white-space:nowrap}
.taxi-tap-word{vertical-align:baseline}
.taxi-tap-word>.taxi-tap-source,.taxi-tap-word>[data-tap-gloss]{font:inherit;color:inherit}
.taxi-tap-word.is-translated>[data-tap-gloss]{color:#a3e4f4}
#taxiRouteMount .route-choices{width:max-content;max-width:100%;margin-inline:auto}
#taxiRouteMount .route-finished h2{margin-top:12px}
@media(max-width:600px){}
#studyView:not([hidden]){min-height:0}
#studyView #taxiStudyReviewMount{margin-top:0!important}
/* Inline questions reflow naturally; answer cells reserve both language widths. */
.taxi-tap-word{display:inline}
.taxi-tap-word>[data-tap-gloss][hidden]{display:none!important}
.taxi-tap-word.is-translated>.taxi-tap-source{display:none}
/* Reserve the full answer's width, keeping word spacing natural in both languages. */
.taxi-choice .taxi-tap-word,.taxi-reading-choice .taxi-tap-word{display:inline}
.taxi-choice .taxi-tap-word>[data-tap-gloss][hidden],.taxi-reading-choice .taxi-tap-word>[data-tap-gloss][hidden]{display:none!important}
.taxi-choice .taxi-tap-word.is-translated>.taxi-tap-source,.taxi-reading-choice .taxi-tap-word.is-translated>.taxi-tap-source{display:none}
.taxi-bilingual-answer{display:inline-block;min-width:0;width:var(--bilingual-width);max-width:calc(100% - 40px);flex:0 1 auto}

#quizView .quiz-shift-area .taxi-daily-practice-card{min-height:64px;padding:16px 20px;border-radius:999px}
#quizView :is(.quiz-scenarios-area,.quiz-longer-round) .taxi-quiz-menu-icon{width:36px;height:36px;flex:0 0 36px}

/* Compact Profile containers and actions. */
#profileView :is(.taxi-account-sync,.profile-backup,.taxi-profile-language){padding:16px;margin-block:12px;border-radius:18px;min-height:0}
#profileView :is(.taxi-account-sync,.profile-backup,.taxi-profile-language) :is(h2,p){margin-top:0;margin-bottom:10px}
#profileView .profile-backup :is(.email-buttons button,.app-switch-buttons .switch-app-link){width:auto;height:auto;min-height:44px;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:12px;white-space:normal}
#profileView .profile-backup :is(.email-buttons,.app-switch-buttons){gap:8px;margin:0}
#profileView .profile-backup :is(.email-buttons button,.app-switch-buttons .switch-app-link) svg{width:20px;height:20px;flex:none}

/* Resources: readable grids rather than clipped horizontal shelves. */
#libraryView,#libraryView #taxiResourceMount{min-width:0;max-width:100%}
#libraryView .taxi-library-panel{box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:20px;border-radius:18px}
#libraryView .taxi-library-heading{display:grid;grid-template-columns:1fr;gap:8px;padding:0;margin:0 0 20px}
#libraryView .taxi-library-heading :is(h2,p){margin:0}
#libraryView .taxi-library-source-grid{display:grid;gap:24px;min-width:0}
#libraryView .taxi-source-group{min-width:0;margin:0}
#libraryView .taxi-source-group-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;margin:0 0 12px}
#libraryView .taxi-source-group-heading h3{flex:1;min-width:0;margin:0}
#libraryView [data-source-slide]{display:none}
#libraryView .taxi-source-slider{display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;overflow:visible;scroll-snap-type:none;padding:0;min-width:0}
#libraryView .taxi-library-source{box-sizing:border-box;width:auto;min-width:0;min-height:84px;padding:16px;border:1px solid var(--taxi-border);border-radius:14px;background:var(--taxi-surface);color:var(--taxi-text)}
#libraryView .taxi-library-source h3{margin:0 0 10px;overflow-wrap:anywhere}
#libraryView .taxi-library-source :is(a,small){color:inherit}
#libraryView .taxi-library-citation{margin:24px 0 0;padding:16px;border:1px solid var(--taxi-border);border-radius:14px;background:var(--taxi-surface);color:var(--taxi-text)}
#libraryView .taxi-library-citation strong{color:var(--taxi-accent)}

/* Distinct Quick Fire badges: existing artwork, small colour accents and soft silhouettes. */
.taxi-game-card,
#studyView .taxi-learning-hub [data-learning-open],
.view .taxi-vocab-main-topics [data-vocabulary-topic-pill]{--taxi-panel:linear-gradient(145deg,var(--game-tint),#092235 75%);--taxi-border:var(--game-edge)}
#quizView #taxiQuizMenuMount [data-taxi-game-start="match"],.taxi-game-card[data-taxi-game-start="match"],
#studyView .taxi-learning-hub [data-learning-open="trainer"],
.view [data-vocabulary-topic-pill="Passenger safety"]{--game-accent:#83dfd0;--game-tint:#123e43;--game-edge:#427b7a;border-radius:40px 22px 40px 22px}
#quizView #taxiQuizMenuMount [data-taxi-game-start="phrase"],.taxi-game-card[data-taxi-game-start="phrase"],
#studyView .taxi-learning-hub [data-learning-open="speak"],
.view [data-vocabulary-topic-pill="Passenger needs"]{--game-accent:#f1c779;--game-tint:#3d3540;--game-edge:#86714e;border-radius:24px 48px 24px 48px}
#quizView #taxiQuizMenuMount [data-taxi-game-start="difference"],.taxi-game-card[data-taxi-game-start="difference"],
#studyView .taxi-learning-hub [data-learning-open="readiness"],
.view [data-vocabulary-topic-pill="Licences & duties"]{--game-accent:#c7adf4;--game-tint:#302e53;--game-edge:#756294;border-radius:48px 24px 48px 24px}
#quizView #taxiQuizMenuMount [data-taxi-game-start="word"],.taxi-game-card[data-taxi-game-start="word"],
#studyView .taxi-learning-hub [data-learning-open="shift"],
.view [data-vocabulary-topic-pill="Fares & customer service"]{--game-accent:#ffb28b;--game-tint:#403040;--game-edge:#986b59;border-radius:56px 56px 24px 24px}
#quizView #taxiQuizMenuMount [data-taxi-game-start="truth"],.taxi-game-card[data-taxi-game-start="truth"]{--game-accent:#a3dc8c;--game-tint:#203e3c;--game-edge:#5c825c;border-radius:48px}
#quizView #taxiQuizMenuMount [data-taxi-game-start="reverse"],.taxi-game-card[data-taxi-game-start="reverse"]{--game-accent:#90c8ff;--game-tint:#173951;--game-edge:#4e7da1;border-radius:24px 24px 52px 24px}
#quizView #taxiQuizMenuMount [data-taxi-game-start="spelling"],.taxi-game-card[data-taxi-game-start="spelling"]{--game-accent:#f2a8cf;--game-tint:#3b2d49;--game-edge:#8b627f;border-radius:48px 24px 24px 24px}
#quizView #taxiQuizMenuMount [data-taxi-game-start="context"],.taxi-game-card[data-taxi-game-start="context"],
#studyView .taxi-learning-hub [data-learning-open="recall"],
.view [data-vocabulary-topic-pill="Road safety"]{--game-accent:#8edfd4;--game-tint:#153c47;--game-edge:#448382;border-radius:24px 48px 48px 24px}
#quizView #taxiQuizMenuMount [data-taxi-game-start="synonym"],.taxi-game-card[data-taxi-game-start="synonym"]{--game-accent:#d5cf8b;--game-tint:#333c3c;--game-edge:#827f52;border-radius:48px 24px 24px 48px}
#quizView #taxiQuizMenuMount [data-taxi-game-start="opposite"],.taxi-game-card[data-taxi-game-start="opposite"]{--game-accent:#f1a49e;--game-tint:#3e2e41;--game-edge:#916564;border-radius:24px 48px 24px 48px}
#quizView #taxiQuizMenuMount .taxi-game-cards .taxi-game-icon{color:var(--game-accent);background:color-mix(in srgb,var(--game-accent) 12%,transparent);border-radius:46% 54% 42% 58%;padding:10px;box-sizing:border-box}
#quizView #taxiQuizMenuMount .taxi-game-icon>.taxi-vocab-graphic{display:block;width:100%;height:100%}
@media(max-width:600px){#quizView #taxiQuizMenuMount .taxi-game-menu .taxi-game-card:last-child{grid-column:auto;width:100%;aspect-ratio:auto}}

/* Quick Fire groups reuse the source shelf's horizontal slider controls. */
#quizView #taxiQuizMenuMount .taxi-game-group-slider{position:relative;min-width:0}
#quizView #taxiQuizMenuMount .taxi-game-group{min-width:0}
#quizView #taxiQuizMenuMount .taxi-game-group .taxi-game-cards{display:grid;grid-template-columns:none}
#quizView #taxiQuizMenuMount .taxi-game-group>.taxi-source-group-heading{margin-top:12px;color:var(--taxi-muted)}
#quizView #taxiQuizMenuMount .taxi-game-group>.taxi-source-group-heading h3{color:var(--taxi-text)}
#quizView #taxiQuizMenuMount [data-game-group-step]:disabled{opacity:.35;cursor:default}
#quizView #taxiQuizMenuMount .taxi-game-group-slider:focus-visible{outline:2px solid var(--taxi-accent);outline-offset:3px}


/* Profile keeps its existing editable portrait, centred above the account dropdown. */
#profileView>header.profile-heading{display:block!important;min-height:0!important;padding:20px!important;text-align:center}
#profileView>header.profile-heading .profile-identity{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px;width:100%!important;height:auto!important}
#profileView #profilePhotoButton{position:relative!important;inset:auto!important;transform:none!important;width:calc(var(--taxi-control-size)*3)!important;height:calc(var(--taxi-control-size)*3)!important;flex:none;padding:0}
#profileView #profilePhotoButton>.career-button-icon{display:none}
#profileView #profilePhotoInitials:not([hidden]){display:grid;place-items:center;width:100%;height:100%;font-size:var(--taxi-control-size)}
#profileView details.taxi-account-sync>summary{min-height:44px;cursor:pointer}
#profileView details.taxi-account-sync>summary>h2{display:inline;margin:0}
#profileView .profile-backup .email-buttons{flex-wrap:wrap}
#profileView .profile-backup .email-buttons button{aspect-ratio:auto;flex:0 0 auto;font-size:16px}
#profileView .profile-backup .email-buttons .sync-button-icon{display:none}

/* Reuse Focused Practice's panel padding, corners and heading rhythm. */
#quizView .taxi-activity-panel{padding:24px 28px;border-radius:0 28px 28px 0}
#quizView .taxi-activity-panel :is(.quiz-area-heading,.taxi-section-heading-primary){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--taxi-lead-gap);margin:0 0 20px}
#quizView .taxi-activity-panel .taxi-section-heading{margin:0}
#quizView .taxi-activity-panel :is(.quiz-area-heading,.taxi-section-heading-primary)>:is(p,h2){margin:0}
#quizView .taxi-activity-panel :is(.quiz-area-heading,.taxi-section-heading-primary)>p{grid-column:1/-1}
#quizView .taxi-activity-panel .quiz-area-heading>.taxi-difficulty-control{grid-column:2;grid-row:2}
#quizView .quiz-blueprint-area>.taxi-study-section{padding:0;gap:0}
@media(max-width:760px){#quizView .taxi-activity-panel{padding:20px}}

/* Quick Fire uses Section Practice's continuous card rail and compact actions. */
#quizView #taxiQuizMenuMount .taxi-game-menu .taxi-game-card{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:80px;padding:12px 16px;text-align:left;scroll-snap-align:start;scroll-snap-stop:always;grid-column:auto;width:100%;aspect-ratio:auto}
#quizView #taxiQuizMenuMount .taxi-game-cards .taxi-game-icon{width:40px;height:40px;padding:6px;flex:0 0 40px}
#quizView #taxiQuizMenuMount .taxi-game-cards .taxi-game-icon svg{width:100%;height:100%}
#quizView #taxiQuizMenuMount .taxi-game-cards strong{font-size:17px;line-height:1.3}

#quizView .quiz-daily-area{box-sizing:border-box;width:100%;max-width:520px;justify-self:start}

/* Short supporting copy shares one rhythm under module headings. */
.taxi-module-intro{margin:10px 0 20px;font-size:14px;line-height:1.6;font-weight:400;letter-spacing:normal;color:var(--taxi-muted);text-transform:none}
.taxi-module-heading{display:grid;gap:10px;margin:0 0 20px;padding:0;align-items:start}
.taxi-module-heading>h2{margin:0!important}
.taxi-module-heading>.taxi-module-intro,.quiz-area-heading>.taxi-module-intro,.taxi-section-heading-primary>.taxi-module-intro{margin:0;font-size:14px;line-height:1.6;font-weight:400;letter-spacing:normal;color:var(--taxi-muted);text-transform:none}
#reviewView :is(.taxi-cockpit,#taxiDashWordReview>.taxi-library-panel){box-sizing:border-box;padding:20px;border:1px solid var(--taxi-border);border-radius:20px;min-width:0;max-width:100%}
#taxiDashWordReview .taxi-module-heading{margin-bottom:20px}

#profileView .taxi-profile-language{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 20px;align-items:center}
#profileView .taxi-profile-language>h2{grid-column:1;grid-row:1;margin:0}
#profileView .taxi-profile-language>.taxi-module-intro{grid-column:1;grid-row:2;margin:0}
#profileView .taxi-profile-language>button{grid-column:2;grid-row:1/3}
#profileView .profile-heading .taxi-module-intro,#profileView .taxi-account-sync>summary .taxi-module-intro{margin:10px 0 0}
@media(max-width:600px){#profileView .taxi-profile-language{grid-template-columns:minmax(0,1fr)}#profileView .taxi-profile-language>button{grid-column:1;grid-row:3}}

/* Related practice modules share a row when space allows. */
#quizView .quiz-practice-pair{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--taxi-module-gap);min-width:0;max-width:100%}
#quizView .quiz-practice-pair>div{min-width:0;max-width:100%;flex:0 1 auto}
#quizView .quiz-practice-pair #taxiFocusedPracticeMount{margin:0}
#quizView .quiz-practice-pair .taxi-activity-panel{margin:0}
/* Keep the requested Next Steps pairs together. */
#studyView .taxi-learning-hub .taxi-quiz-menu-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:min(760px,100%);min-width:0;gap:12px}
#studyView .taxi-learning-hub [data-learning-open="speak"]{grid-column:1/-1}
#studyView .taxi-learning-hub .taxi-quiz-menu-card{min-width:0;max-width:100%}
/* Review prompts need only the question, with a compact touch target. */
#studyView .study-review-card{min-height:44px;padding:10px 12px;gap:0;justify-content:center}
#studyView .study-review-card strong{font-size:14px;font-weight:500;line-height:1.45}
#studyView #taxiStudyWordReviewMount:empty{display:none}
#studyView #taxiStudyWordReviewMount .study-word-shortlist{padding:20px;border-left:3px solid #e5a6bd;border-radius:0 28px 28px 0}
#studyView .study-word-shortlist>.taxi-module-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 20px}
#studyView .study-word-shortlist>.taxi-module-heading>.taxi-module-intro{grid-column:1/-1}
#studyView .study-word-shortlist>.taxi-module-heading>button{grid-column:2;grid-row:1}
#reviewView .cockpit-dials{margin:0 0 20px;min-width:0;max-width:100%}
#reviewView .cockpit-dials .cockpit-gauges{width:fit-content;max-width:100%;padding:16px 20px}
#reviewView .cockpit-dials .cockpit-gauge-row{flex-wrap:wrap;gap:20px}

/* Topic pills reuse the Next Steps palette without a surrounding panel. */
#vocabularyView #taxiVocabularyTopics{min-width:0;max-width:100%;background:transparent;border:0;padding:0}
.view .taxi-vocab-main-topics{background:transparent;border:0}
.view .taxi-vocab-main-topics [data-vocabulary-topic-pill]{background:var(--taxi-panel);border-color:var(--taxi-border);border-radius:999px;color:var(--taxi-text)}
.view .taxi-vocab-main-topics [data-vocabulary-topic-pill].is-active{border-color:var(--game-accent);color:var(--game-accent)}

/* Word actions use small artwork inside the existing comfortable tap targets. */
.taxi-vocab-row{touch-action:pan-y}
.taxi-vocab-row>details>summary{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.taxi-word-row-actions{display:flex;align-items:center;align-self:flex-start;gap:4px;flex:none}
#taxiWordNotice{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:1000;padding:10px 16px;border:1px solid var(--taxi-border);border-radius:12px;background:var(--taxi-panel);color:var(--taxi-text);font-size:14px;max-width:calc(100vw - 32px)}
#taxiWordNotice:not([hidden]){display:flex;align-items:center;gap:12px}
#taxiWordNotice>button{appearance:none;flex:none;min-height:44px;padding:8px 12px;border:1px solid var(--taxi-border);border-radius:10px;background:var(--taxi-surface);color:var(--taxi-accent);font:inherit;cursor:pointer}
#taxiWordNotice>button:hover{background:var(--taxi-hover)}
#taxiWordNotice>button:focus-visible{outline:2px solid var(--taxi-accent);outline-offset:3px}
@media(max-width:760px){.taxi-word-row-actions{display:none}.taxi-vocab-row{-webkit-touch-callout:none}}

/* A moved quiz remains the same widget outside its original rail. */
.taxi-game-card{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:80px;padding:12px 16px;text-align:left;aspect-ratio:auto;background:var(--taxi-panel);border-color:var(--taxi-border);color:var(--taxi-text)}
.taxi-game-card>.taxi-game-icon{display:grid;place-items:center;width:40px;height:40px;min-width:40px;max-width:40px;min-height:40px;max-height:40px;padding:6px;flex:0 0 40px;box-sizing:border-box;color:var(--game-accent,var(--taxi-accent));background:color-mix(in srgb,var(--game-accent,var(--taxi-accent)) 12%,transparent);border-radius:46% 54% 42% 58%}
.taxi-game-card>.taxi-game-icon>svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%}
.taxi-game-card>strong{min-width:0;font-size:17px;line-height:1.3}
