/* Canonical Taxi style contract. Layered important rules outrank legacy page overrides.
   Edit these tokens and shared templates; never add a competing page palette. */
@layer taxi-global {
 :root{--taxi-bg:#061322;--taxi-panel:#092235ed;--taxi-surface:#102a3d;--taxi-hover:#193e55;--taxi-text:#e2f2fa;--taxi-muted:#a9c0ce;--taxi-accent:#79d6ec;--taxi-border:#46728b;--taxi-control-size:56px;--taxi-question-size:18px}
 body,.view{--ink:var(--taxi-text)!important;--text:var(--taxi-text)!important;--muted:var(--taxi-muted)!important;--green:var(--taxi-accent)!important;--line:var(--taxi-border)!important;--surface:var(--taxi-surface)!important;--bg:var(--taxi-bg)!important;--taxi-highlight:var(--taxi-accent)!important;color:var(--taxi-text)!important}
 :is(.taxi-page-links button,.taxi-sidebar-toggle,.career-back,.taxi-language-switch,.taxi-difficulty-button){background:var(--taxi-panel)!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important}
 .view :is(button.secondary,button.primary,a.switch-app-link){background:var(--taxi-surface)!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important}
 /* Selected settings and the next action must remain distinct from neutral controls. */
 #scenariosView .taxi-scenario-settings button[aria-pressed=true]{background:var(--taxi-hover)!important;border-color:var(--taxi-accent)!important;color:var(--taxi-text)!important;box-shadow:inset 0 0 0 1px var(--taxi-accent)}
 #scenariosView .taxi-scenarios-workspace button.primary:not(:disabled){background:var(--taxi-accent)!important;color:var(--taxi-bg)!important;border-color:var(--taxi-accent)!important}
 .view :is(input:not([type=radio]):not([type=checkbox]):not([type=file]),textarea,select){background:var(--taxi-surface)!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important}
 .taxi-mobile-nav,.sidebar{background:var(--taxi-panel)!important;border-color:var(--taxi-border)!important;color:var(--taxi-text)!important}
 .taxi-mobile-nav button,.sidebar nav button{background:transparent!important;color:var(--taxi-muted)!important}
 .taxi-mobile-nav button[aria-current=page],.sidebar nav button[aria-current=page]{color:var(--taxi-accent)!important}
 :is(.taxi-choice,.taxi-reading-choice,.taxi-game-option,.taxi-game-word){background:var(--taxi-surface)!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important}
 :is(.taxi-choice.is-correct,.taxi-reading-choice.is-correct,.taxi-game-option.is-correct,.taxi-game-word.is-matched){background:#0d362f!important;border-color:#50bf95!important;color:#cefae8!important}
 :is(.taxi-choice.is-wrong,.taxi-reading-choice.is-wrong,.taxi-game-option.is-wrong){background:#3b202a!important;border-color:#d27983!important;color:#ffe0e2!important}
 @media(max-width:600px){}
 .taxi-page-links .taxi-toolbar-level{display:flex;align-items:center}
 .taxi-page-links .taxi-toolbar-level[hidden]{display:none!important}
 @media(min-width:761px){body:not(:has(#taxiView:not([hidden]))) .taxi-mobile-nav{display:none!important}}
 @media(hover:hover){}
 /* Mobile scrolling must not blur and repaint the entire illustrated map. */
 @media(max-width:760px){body :is(.taxi-mobile-nav,.taxi-page-links button,.career-back){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.route-map{contain:layout paint}.route-finland-landscape{mask-image:none!important}}
 @media(min-width:761px){body .sidebar{box-sizing:border-box;width:240px!important;padding-inline:18px!important;background:#092235d6!important;backdrop-filter:none;-webkit-backdrop-filter:none}}
}
@layer taxi-global {
 @media(max-width:760px){
  body :is(.taxi-short-prompt,.taxi-quiz-template-prompt,.taxi-game-prompt,.taxi-scenario-prompt,.taxi-phrase-sentence,.taxi-sim-question>h3,.taxi-reading-question legend,.taxi-reading-text,.taxi-long-passage,.exam-plus-passage,.shift-passage p,.route-passage p){font-size:18px!important}
  body :is(.taxi-choice,.taxi-reading-choice,.taxi-game-option,.taxi-game-word,.journey-rule-check>button,.journey-help-options button){font-size:18px!important}
 }
}
@layer taxi-global {
 :is(.profile-heading,.profile-photo,.profile-details,.profile-backup,.taxi-profile-language,.taxi-study-section,.taxi-library-panel,.taxi-game-card,.taxi-topic-card,.taxi-quiz-menu-card,.taxi-reading-card,.taxi-long-reading,.taxi-vocab-card,.taxi-wording-card,.route-finished){background:var(--taxi-panel)!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important}
 :is(.taxi-training-note,.taxi-pass-rule,.taxi-language-note){background:var(--taxi-surface)!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important}
 :is(.taxi-training-note,.taxi-pass-rule,.taxi-language-note)>strong{color:var(--taxi-accent)!important}
 :is(.taxi-training-note,.taxi-pass-rule,.taxi-language-note)>span{color:var(--taxi-text)!important}
 :is(.profile-details,.profile-backup,.taxi-profile-language,.taxi-study-section,.taxi-library-panel,.taxi-long-reading,.study-in-review){background:#092235db!important}
 .taxi-activity-panel:not(.taxi-study-section){background:#0c293c93!important}
 .quiz-advanced-area{background:linear-gradient(135deg,#263651df,#11263ddf)!important}
 .taxi-vocab-section-row{background:linear-gradient(145deg,#0d293fdf,#071b2bdf)!important}
 #reviewView :is(.cockpit-navigation,.cockpit-activity){background:linear-gradient(145deg,#0b253bbf,#071827d1)!important}
 .taxi-account-sync{background:#0b253bd1!important}
 #pointersView :is(.taxi-pointer-card,.taxi-answer-method,.taxi-review-method,.taxi-exam-reminder){background:#092235db!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important}
 #pointersView :is(.taxi-pointer-terms>div,.taxi-pointer-cutoffs li,.taxi-answer-tips>li){background:var(--taxi-surface)!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important}
 #pointersView :is(.taxi-pointer-terms dt,.taxi-pointer-cutoffs strong,.taxi-answer-tips strong){color:var(--taxi-text)!important}
 #pointersView :is(.taxi-pointer-terms dd,.taxi-pointer-card p){color:var(--taxi-muted)!important}
}

@layer taxi-global {
 /* Quiz containers share the Focused Practice transparency and left accent. */
 #quizView .taxi-activity-panel{background:var(--taxi-container-background)!important;border:0!important;border-left:3px solid var(--quiz-container-accent,#efc782)!important}
 #quizView .taxi-game-menu{--quiz-container-accent:#55e5ff}
 #quizView .quiz-daily-area{--quiz-container-accent:#5bf3ce}
 #quizView .quiz-blueprint-area{--quiz-container-accent:#8ebdff}
 #quizView .quiz-shift-area{--quiz-container-accent:#ffd166}
 #quizView .quiz-scenarios-area{--quiz-container-accent:#ff8dc7}
 #quizView .quiz-advanced-area{--quiz-container-accent:#c7a1ff}
 #quizView .quiz-blueprint-area>.taxi-study-section{background:transparent!important;border:0!important}
}

@layer taxi-global {
 /* Content determines panel dimensions; the viewport remains the upper bound. */
 .view :is(.taxi-activity-panel,.taxi-study-section,.taxi-library-panel,.taxi-account-sync,.profile-heading,.profile-details,.profile-backup,.taxi-profile-language,.study-in-review,.taxi-overview-welcome,.taxi-overview-card,.taxi-review-hero,.taxi-review-topic-section,.taxi-review-method,.taxi-pointer-card,.taxi-answer-method,.taxi-exam-reminder,.taxi-library-intro,.taxi-library-source,.taxi-library-citation,.taxi-vocab-section-row,.taxi-long-reading,.taxi-reading-card,.taxi-wording-card,.taxi-vocab-card,.taxi-topic-card,.taxi-quiz-menu-card,.taxi-game-card,.taxi-daily-practice-card,.study-review-card,.taxi-review-cards article,.taxi-learning-map article,.cockpit-navigation,.cockpit-activity,.cockpit-sections,.cockpit-metric,.route-finished){box-sizing:border-box!important;width:fit-content!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;align-self:start!important;justify-self:start!important;flex-grow:0!important}
 .view :is(.taxi-quiz-menu-grid,.taxi-library-source-grid,.taxi-vocab-grid,.taxi-wording-grid,.taxi-review-cards,.study-review-grid,.taxi-learning-map,.taxi-concept-list){display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;justify-content:flex-start!important}
 .view :is(.taxi-quiz-menu-grid,.taxi-library-source-grid,.taxi-vocab-grid,.taxi-wording-grid,.taxi-review-cards,.study-review-grid,.taxi-learning-map,.taxi-concept-list)>*{flex:0 1 auto!important;min-width:0!important;max-width:100%!important}
}
@layer taxi-quiz-component {
 [data-quiz-template="short"]{width:fit-content!important;height:auto!important;min-height:0!important}
 @media(max-width:760px){[data-quiz-template="short"]{width:100%!important;max-width:100%!important}}
}
@layer taxi-global {
 @media(max-width:760px){
  body [data-quiz-template="short"]{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-inline:0!important;align-self:stretch!important;justify-self:stretch!important}
  body :is(.taxi-quiz-card,.taxi-game-session,.shift-session,.shift-question-card,.journey-quiz,.taxi-journey-quiz,.exam-plus-question,.route-exercise-overlay,.taxi-learning-body):has([data-quiz-template="short"]){box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-inline:0!important;align-self:stretch!important;justify-self:stretch!important}
  #taxiGamesSession.is-short-quiz .taxi-game-session{width:100%!important;max-width:100%!important}
 }
}
@layer taxi-global {
 /* Slider tracks follow each card's content rather than equal fractions. */
 .view :is(.taxi-topic-grid,.taxi-game-group-slider,.taxi-source-slider){grid-auto-columns:max-content!important}
 .view .taxi-section-choice{box-sizing:border-box!important;width:fit-content!important;min-width:0!important;max-width:100%!important;flex-grow:0!important}
 .view :is(.taxi-topic-card,.taxi-game-card,.taxi-library-source){max-width:calc(100vw - 80px)!important}
 .view .taxi-daily-practice-card>span:last-child{margin-left:0!important}
}
@layer taxi-global {
 .view .taxi-vocab-reveal summary>strong{padding-right:44px!important}
}
@layer taxi-quiz-component {
 @media(hover:hover){
  body :is(button,input[type="button"],input[type="submit"],input[type="reset"],[role="button"],a.switch-app-link,a.primary,a.secondary,a.text-button):not(:disabled):not([aria-disabled="true"]):not([data-route-stop]):not([data-quiz-template="short"] *):hover,
  body :is(.taxi-choice,.taxi-reading-choice,.taxi-game-option):not(:has(input:disabled)):not([data-quiz-template="short"] *):hover{--taxi-border:#8bd9ed!important;border-color:var(--taxi-button-hover-border,#8bd9ed)!important;box-shadow:none!important}
 }
}
@layer taxi-global {
 #profileData{width:max-content!important;max-width:100%!important}
 #profileData .email-buttons{display:flex!important;flex-wrap:wrap!important;width:max-content!important;max-width:100%!important}
 #profileData .email-buttons button{width:max-content!important;max-width:100%!important;flex:0 1 auto!important}
}
@layer taxi-global {
 /* Scroll containers need a definite available width, especially in mobile Safari. */
 html,body{max-width:100%;overflow-x:clip}
 html:has(#taxiView){background-color:#061322}
 main,.view{box-sizing:border-box;min-width:0;max-width:100%}
 .view :is(#taxiQuizMenuMount,.quiz-page-areas,.taxi-game-group,.taxi-game-group-slider,.taxi-topic-grid,#taxiVocabularyMount,#taxiDashWordReview){box-sizing:border-box;min-width:0;max-width:100%}
 #quizView :is(.taxi-game-menu,.quiz-blueprint-area,.quiz-blueprint-area>.taxi-study-section,.taxi-game-group,.taxi-game-group-slider,.taxi-topic-grid){width:100%!important;min-width:0!important;max-width:100%!important}
 #quizView .taxi-section-choice>.taxi-topic-card{flex:0 0 auto!important;height:auto!important;min-height:min-content!important}
}

@layer taxi-global {
 .view .eyebrow,dialog .eyebrow{display:none!important}
 #quizView .taxi-game-card strong>span{display:block;white-space:nowrap}
}

@layer taxi-global {
 :root{--taxi-container-background:#0c293c93;--taxi-dashboard-start:calc(70svh + 24px)}
 /* All pages share the Dashboard starting line. */
 body:has(.view:not([hidden])) main{padding-top:var(--taxi-dashboard-start)!important}
 .view:not([hidden]){padding-top:0!important}
 #taxiLearningStudyHub .taxi-learning-hub{margin-top:0!important}
 /* Match Quiz's approved transparency across the other page containers. */
 .view:not(#quizView) :is(.taxi-study-section,.taxi-activity-panel,.taxi-library-panel,.profile-heading,.profile-details,.profile-backup,.taxi-profile-language,.taxi-account-sync,.study-in-review,.taxi-pointer-card,.taxi-answer-method,.taxi-review-method,.taxi-exam-reminder,.taxi-library-citation,.taxi-long-reading,.taxi-reading-card,.taxi-vocab-section-row,.taxi-vocab-card,.taxi-wording-card,.cockpit-panel,.taxi-learning-map article,.study-review-group,.taxi-scenario-level-toolbar){background:var(--taxi-container-background)!important}
 /* The portrait is centred in the page, independently of account-card widths. */
 #profileView.view>header.profile-heading{width:100%!important;align-self:start!important;justify-self:stretch!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
 #profileView>header.profile-heading .page-visual{display:none!important}
 #profileView .taxi-profile-language{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:10px!important}
 #profileView .taxi-profile-language>:is(h2,p){margin:0!important}
 #profileView .taxi-profile-language>button{align-self:flex-start!important}
 /* Compact review cards must not inherit an old forced card height. */
 #studyView .study-review-card{min-height:44px!important;padding:10px 12px!important}
}

@layer taxi-global {
 #studyView .taxi-learning-hub .taxi-quiz-menu-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@layer taxi-global {
 /* Vocabulary icon colours have one shared dark-theme source. */
 :root{--taxi-cue-bg:#20384a;--taxi-cue-ink:#b4d2dd;--taxi-cue-fare:#eac587;--taxi-cue-assistance:#9ad3bf;--taxi-cue-border:#4c718550}
 :is(#taxiLibraryMount,#taxiDashWordReview,#taxiStudyWordReviewMount) .taxi-vocab-graphic{--cue-bg:var(--taxi-cue-bg);--cue-ink:var(--taxi-cue-ink);border:1px solid var(--taxi-cue-border)}
 :is(#taxiLibraryMount,#taxiDashWordReview,#taxiStudyWordReviewMount) .taxi-vocab-graphic:is(.cue-fare,.cue-card,.cue-coins,.cue-receipt){--cue-ink:var(--taxi-cue-fare)}
 :is(#taxiLibraryMount,#taxiDashWordReview,#taxiStudyWordReviewMount) .taxi-vocab-graphic:is(.cue-help,.cue-ramp,.cue-wheelchair,.cue-cane,.cue-aid,.cue-active){--cue-ink:var(--taxi-cue-assistance)}
}

@layer taxi-global {
 #vocabularyView .taxi-vocab-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;width:100%;min-width:0}
 #vocabularyView .taxi-vocab-row{width:100%;min-width:0;box-sizing:border-box;overflow-wrap:anywhere}
 @media(max-width:600px){#vocabularyView .taxi-vocab-grid{grid-template-columns:minmax(0,1fr)}}
}

@layer taxi-global {
 :root{--taxi-word-graphic-gap:8px}
 :is(#vocabularyView,#taxiStudyWordReviewMount,#taxiDashWordReview) .taxi-vocab-row,
 #taxiDashWordReview .taxi-vocab-reveal>summary{column-gap:var(--taxi-word-graphic-gap)!important}
}

@layer taxi-global {
 .view .taxi-vocab-row>.taxi-word-row-actions{margin:0!important}
 .view .taxi-word-row-actions>button{display:grid;place-items:center;flex:none;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:0;background:transparent;color:var(--taxi-muted);border-radius:8px}
 .view .taxi-word-row-actions>button svg{display:block;width:16px;height:16px}
 .view .taxi-word-row-actions>button.is-favorite{color:#f1c779}
 .view .taxi-word-row-actions>button.is-favorite svg{fill:currentColor}
 .view .taxi-word-removed>[data-word-row-undo]{width:auto!important;min-height:44px!important;height:auto!important;padding:0 8px!important;font-size:14px;background:transparent;color:var(--taxi-accent);border:0}
 .view .taxi-vocab-row>.taxi-word-row-actions{display:flex!important;visibility:hidden;pointer-events:none}
 .view .taxi-vocab-row.is-actions-visible>.taxi-word-row-actions{visibility:visible;pointer-events:auto}
}

/* Hide Vocab scroll indicators without disabling page or rail scrolling. */
#vocabularyView,#vocabularyView *,html:has(#vocabularyView:not([hidden])),body:has(#vocabularyView:not([hidden])){scrollbar-width:none!important}
#vocabularyView::-webkit-scrollbar,#vocabularyView *::-webkit-scrollbar,html:has(#vocabularyView:not([hidden]))::-webkit-scrollbar,body:has(#vocabularyView:not([hidden]))::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

@layer taxi-global {
 #studyView #taxiStudyWordReviewMount .study-word-shortlist{border-left-color:#ff8dc7!important}
 #studyView .taxi-study-lead{border-left-color:#55e5ff!important}
}

@layer taxi-global {
 #profileView :is(.taxi-account-sync button,[data-profile-language],.switch-app-link){display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;box-sizing:border-box;min-height:44px!important;height:auto!important;width:max-content!important;max-width:100%!important;padding:8px 12px!important;font-size:14px!important;line-height:1.25!important;border-radius:10px!important;aspect-ratio:auto!important}
 #profileView .taxi-account-sync button[hidden]{display:none!important}
 #profileView :is(.taxi-account-sync button,.switch-app-link) :is(svg,.action-icon){width:18px!important;height:18px!important;flex:none}
 #profileView .switch-app-link::before{font-size:18px!important;margin:0!important}
 #profileView :is(#mobileBackup,#profileImport)::before{content:none!important}
 #profileView .taxi-account-backups{margin-top:16px;padding:0;border:0;background:transparent}
 #profileView .taxi-account-backups .email-buttons{margin:0;gap:8px}
}

@layer taxi-global {
 #vocabularyView .taxi-vocabulary-tabs{display:flex!important;flex-wrap:wrap!important;align-items:center!important;width:fit-content!important;max-width:100%!important;gap:10px!important}
 #vocabularyView .taxi-vocabulary-tabs [data-vocabulary-section]{box-sizing:border-box;flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;min-height:44px!important;padding:10px 16px!important;white-space:nowrap!important}
}

@layer taxi-global {
 body .taxi-page-links{position:fixed!important;top:calc(20px + env(safe-area-inset-top,0px))!important;right:calc(20px + env(safe-area-inset-right,0px))!important;left:auto!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:20px!important;margin:0!important;padding:0!important;width:max-content!important;max-width:calc(100vw - 40px)!important;z-index:11!important}
 body .taxi-page-links :is(.taxi-toolbar-vocabulary,.taxi-toolbar-level){gap:20px!important}
 body .taxi-page-links button{box-sizing:border-box;min-width:44px!important;min-height:44px!important;height:44px!important;flex-shrink:0!important}
 body .taxi-page-links :is([data-view="profile"],[data-vocab-add],[data-vocabulary-search-toggle]){width:44px!important;min-width:44px!important;padding:0!important}
 body .taxi-page-links [data-view="profile"]{order:100!important;flex:0 0 44px!important;margin:0!important}
}

@layer taxi-global {
 body .taxi-difficulty-button[data-level="easy"]{border-color:#80d6cb!important;--taxi-button-hover-border:#80d6cb}
 body .taxi-difficulty-button[data-level="medium"]{border-color:#efc782!important;--taxi-button-hover-border:#efc782}
 body .taxi-difficulty-button[data-level="hard"]{border-color:#ef8290!important;--taxi-button-hover-border:#ef8290}
}

@layer taxi-global {
 body #taxiRouteMount .route-stop>button:hover{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
}

@layer taxi-global {
 #profileHeading[contenteditable]{cursor:text;min-width:1ch;white-space:normal;overflow-wrap:anywhere}
 #profileHeading[contenteditable]:focus{outline:2px solid var(--taxi-accent);outline-offset:4px}
}

@layer taxi-global {
 :root{--taxi-widget-title-size:14px;--taxi-widget-title-weight:700;--taxi-quiz-card-font-size:var(--taxi-widget-title-size)}
 .view :is(.taxi-game-card strong,.taxi-quiz-menu-copy>strong,.taxi-daily-practice-card strong,.taxi-topic-title,[data-maint-widget-title]){font-size:var(--taxi-widget-title-size)!important;line-height:1.3!important;font-weight:var(--taxi-widget-title-weight)!important}
}

@layer taxi-global {
 #quizView #taxiQuizMenuMount .quiz-scenarios-area [data-quiz-menu-action="reading"],#scenariosView .taxi-reading-card:nth-child(3n+1){background:linear-gradient(135deg,#123e43,#092235 85%)!important;border-color:#427b7a!important}
 #quizView #taxiQuizMenuMount .quiz-scenarios-area [data-quiz-menu-action="scenarios"],#scenariosView .taxi-reading-card:nth-child(3n+2){background:linear-gradient(135deg,#302e53,#092235 85%)!important;border-color:#756294!important}
 #quizView #taxiQuizMenuMount .quiz-scenarios-area [data-quiz-menu-action="quick"],#scenariosView .taxi-reading-card:nth-child(3n){background:linear-gradient(135deg,#403040,#092235 85%)!important;border-color:#986b59!important}
 #quizView #taxiQuizMenuMount .quiz-scenarios-area [data-quiz-menu-action="scenarios"]::after{display:none}
}

@layer taxi-quiz-component {
 @media(min-width:761px){
  body :is([data-quiz-audio],[data-quiz-audio-slot],[data-coach-audio],[data-learning-listen],[data-speaking-listen],[data-fuel-listen],[data-speaking-reveal]){display:none!important}
  body .taxi-speaking-dialog label:has([data-speaking-pref="slow"]),body .taxi-speaking-dialog label:has([data-speaking-pref="noise"]){display:none!important}
 }
}

@layer taxi-quiz-component {
 .taxi-career-dialog{width:min(720px,calc(100vw - 24px))!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
 .taxi-career-dialog [data-quiz-template="short"]{width:100%!important;max-width:100%!important;margin:0!important}
 .taxi-career-dialog .taxi-career-quiz-meta{margin:0 0 14px;color:var(--taxi-muted);font-size:13px}
}

@layer taxi-quiz-component {
 .taxi-skillpilot-dialog{width:min(720px,calc(100vw - 24px))!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
 .taxi-skillpilot-dialog .taxi-learning-body{padding:0!important}
 .taxi-skillpilot-dialog [data-quiz-template="short"]{width:100%!important;max-width:100%!important;margin:0!important}
}
@layer taxi-global {
 #pointersView :is(.taxi-sprint-hero,.taxi-sprint-blocks,.taxi-sprint-exam-rule,.taxi-sprint-progress){background:var(--taxi-container-background,var(--taxi-panel))!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important}
 #pointersView :is(.taxi-sprint-task,.taxi-sprint-task.is-done,.taxi-sprint-focus-controls button,.taxi-sprint-day-pills button,.taxi-answer-tips li>span){background:var(--taxi-surface)!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important}
 #pointersView :is(.taxi-sprint-check,.taxi-sprint-day-pills button.is-active){background:var(--taxi-hover)!important;color:var(--taxi-accent)!important;border-color:var(--taxi-accent)!important}
 #pointersView :is(.taxi-sprint-task-link,.taxi-sprint-task-link strong,.taxi-sprint-progress strong,.taxi-sprint-focus h3){color:var(--taxi-text)!important}
 #pointersView :is(.taxi-sprint-task small,.taxi-sprint-progress span,.taxi-sprint-progress small){color:var(--taxi-muted)!important}
 #pointersView .taxi-sprint-progress>div{background:var(--taxi-surface)!important}
 #pointersView .taxi-sprint-progress i{background:var(--taxi-accent)!important}
 #pointersView input[type=checkbox]{accent-color:var(--taxi-accent)}
}

@layer taxi-global {
 #studyView [data-review-reading-group]{box-sizing:border-box!important;width:min(100%,42rem)!important;min-width:min(100%,30rem)!important;max-width:100%!important}
 #studyView [data-review-reading-group]>.study-review-grid{grid-template-columns:minmax(0,1fr)!important}
 #studyView [data-review-reading-group] .study-review-card{width:100%!important;height:auto!important;min-height:96px!important;padding:20px!important;text-align:left!important;line-height:1.6!important;white-space:normal!important}
 #studyView [data-review-reading-group] .study-review-card>strong{display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important;max-width:65ch!important;line-height:1.6!important}
}

/* Fixed header glass: content scrolls beneath the controls and fades at the edge. */
@layer taxi-global {
 body::before{content:"";position:fixed;inset:0 0 auto;height:var(--taxi-top-ribbon-height,calc(104px + env(safe-area-inset-top,0px)));z-index:8;pointer-events:none;background:linear-gradient(to bottom,#061322cf,#0613228c 72%,#06132200);backdrop-filter:none;-webkit-backdrop-filter:none;mask-image:linear-gradient(to bottom,#000 0%,#000 68%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 68%,transparent 100%)}
 body .career-back{position:fixed!important;top:calc(20px + env(safe-area-inset-top,0px))!important;z-index:9!important}
}

@layer taxi-global {
 .view :is(.taxi-module-heading,.quiz-area-heading,[data-maint-container-heading]){margin-bottom:10px!important}
 .view :is(.taxi-module-heading,.quiz-area-heading,[data-maint-container-heading])>p:last-child{margin-bottom:0!important}
 #studyView .study-in-review>.study-review-group{margin-top:10px!important;padding-top:10px!important}
 #studyView .study-word-shortlist .study-word-rows{gap:12px!important}
 #studyView .study-word-shortlist .taxi-vocab-row{padding:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;align-items:center!important;min-height:44px!important}
 #studyView .study-word-shortlist .taxi-word-revisit-button{display:flex!important;align-items:center!important;gap:10px!important;flex:1!important;width:auto!important;min-width:0!important;height:auto!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--taxi-text)!important;text-align:left!important;font:inherit!important;font-size:16px!important;white-space:nowrap!important;overflow-wrap:normal!important}
 #studyView .study-word-shortlist .taxi-word-revisit-button>.taxi-vocab-graphic{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:var(--cue-bg,var(--taxi-cue-bg));color:var(--cue-ink,var(--taxi-cue-ink))}
}

@layer taxi-global {#studyView .study-word-shortlist .taxi-vocab-row:not(.is-actions-visible)>.taxi-word-row-actions{display:none!important}}

@layer taxi-global {
 /* Keep the approved mobile scene fixed to the viewport, independent of document height. */
 @media(max-width:760px){
  body:has(:is(#studyView,#reviewView,#quizView,#taxiView,#vocabularyView,#scenariosView,#pointersView,#libraryView,#profileView):not([hidden])){--taxi-mobile-background-image:linear-gradient(#04162535,#04162570),url("assets/dash-cockpit-mobile.webp");isolation:isolate;background-image:var(--taxi-mobile-background-image)!important;background-position:center bottom!important;background-attachment:scroll!important;background-repeat:no-repeat!important}
  body:has(#studyView:not([hidden])){--taxi-mobile-background-image:linear-gradient(#04162535,#04162570),url("assets/study-university-night-mobile.webp")}
  body:has(#vocabularyView:not([hidden])){--taxi-mobile-background-image:linear-gradient(#02111b40,#02111b66),url("assets/vocab-library-cockpit-mobile.webp");background-position:center center!important}
  body:has(:is(#reviewView,#taxiView):not([hidden])){--taxi-mobile-background-image:url("assets/dash-cockpit-mobile.webp")}
  body:has(:is(#studyView,#reviewView,#quizView,#taxiView,#vocabularyView,#scenariosView,#pointersView,#libraryView,#profileView):not([hidden]))::after{content:"";position:fixed;inset:0 0 auto;height:100vh;height:100lvh;z-index:-1;pointer-events:none;background-color:inherit;background-image:inherit;background-position:inherit;background-size:cover;background-repeat:no-repeat;background-attachment:scroll}
 }
}

@layer taxi-global {
 /* The fixed compass and sliding wordmark are navigation branding, not a pill control. */
 @media(min-width:761px){
  body .taxi-sidebar-toggle,body.taxi-sidebar-open .taxi-sidebar-toggle{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:visible!important}
  body .taxi-sidebar-toggle:focus-visible{outline:2px solid var(--taxi-accent)!important;outline-offset:5px!important;border-radius:6px!important}
 }
}

@layer taxi-global {
 .sidebar-bottom .taxi-get-latest{display:grid!important;place-items:center;width:46px;height:46px;min-height:46px;margin:0 auto;padding:0;border:1px solid var(--taxi-border)!important;border-radius:50%;background:var(--taxi-panel)!important;color:var(--taxi-accent)!important;box-shadow:0 5px 18px #0003;cursor:pointer}
 .sidebar-bottom .taxi-get-latest svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .sidebar-bottom .taxi-get-latest:hover{border-color:var(--taxi-accent)!important;background:var(--taxi-surface-strong,var(--taxi-surface))!important}
 .sidebar-bottom .taxi-get-latest:focus-visible{outline:2px solid var(--taxi-accent);outline-offset:3px}
 .sidebar-bottom .taxi-get-latest.is-updating svg{animation:taxi-latest-spin .8s linear infinite}
 @keyframes taxi-latest-spin{to{transform:rotate(360deg)}}
 @media(prefers-reduced-motion:reduce){.sidebar-bottom .taxi-get-latest.is-updating svg{animation:none}}
}

@layer taxi-global {
 /* Widgets are measured from their content. Presets choose width and orientation only. */
 @media(hover:hover){.view :is(.taxi-game-card,.taxi-quiz-menu-card,.taxi-topic-card,.taxi-daily-practice-card):hover{transform:none!important}}
 :root{--taxi-widget-radius:18px;--taxi-widget-title-size:18px;--taxi-widget-intro-size:18px;--taxi-cue-bg:#183c51;--taxi-cue-ink:#81d6e9;--taxi-cue-fare:#81d6e9;--taxi-cue-assistance:#81d6e9;--taxi-cue-border:#4f8aa466}
 :is([data-maint-widget-tile],[data-maint-widget],.taxi-game-card,.taxi-quiz-menu-card,.taxi-topic-card,.taxi-daily-practice-card,.taxi-vocab-row,.taxi-vocab-card,.taxi-wording-card,.taxi-reading-card,.taxi-long-reading,.taxi-pointer-card,.study-review-card,.cockpit-panel,.taxi-library-source){border-radius:var(--taxi-widget-radius,18px)!important}
 :is(.view,.taxi-widget-gallery-preview) :is(.taxi-game-card,.taxi-quiz-menu-card,.taxi-topic-card,.taxi-daily-practice-card,.taxi-vocab-row){box-sizing:border-box!important;height:auto!important;max-height:none!important;min-height:48px!important;padding:12px 14px!important;gap:12px!important;overflow:visible!important;align-self:start!important}
 :is(.view,.taxi-widget-gallery-preview) :is(.taxi-game-card,.taxi-topic-card){min-width:min(100%,150px)!important}
 :is(.view,.taxi-widget-gallery-preview) :is(.taxi-quiz-menu-card,.taxi-daily-practice-card){min-width:min(100%,220px)!important}
 :is(.view,.taxi-widget-gallery-preview) :is(.taxi-game-card strong,.taxi-quiz-menu-copy>strong,.taxi-daily-practice-card strong,.taxi-topic-title,[data-maint-widget-title]){font-size:var(--taxi-widget-title-size)!important;line-height:1.25!important;font-weight:700!important;white-space:normal!important;overflow:visible!important;overflow-wrap:break-word!important;word-break:normal!important;hyphens:none!important}
 #quizView .taxi-game-card strong>span{display:block;white-space:normal!important}
 :is(.view,.taxi-widget-gallery-preview) :is(.taxi-quiz-menu-copy>small,.taxi-daily-practice-card small,.taxi-topic-count,.taxi-topic-score){font-size:var(--taxi-widget-intro-size)!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important;overflow-wrap:break-word!important;word-break:normal!important}
 :is(.view,.taxi-widget-gallery-preview) :is(.taxi-quiz-menu-copy,.taxi-topic-card-heading,.taxi-topic-card-top,.taxi-daily-practice-card>span:nth-child(2)){min-width:0!important;max-width:100%!important}
 :is(.view,.taxi-widget-gallery-preview) :is(.taxi-quiz-menu-icon,.taxi-game-icon,.taxi-topic-graphic),
 :is(#taxiLibraryMount,#taxiDashWordReview,#taxiStudyWordReviewMount) .taxi-vocab-graphic,
 .taxi-daily-practice-card>span:first-child{display:grid!important;place-items:center!important;flex:0 0 56px!important;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;padding:6px!important;box-sizing:border-box!important;border:1px solid var(--taxi-cue-border)!important;border-radius:14px!important;background:var(--taxi-cue-bg)!important;color:var(--taxi-cue-ink)!important}
 :is(.view,.taxi-widget-gallery-preview) :is(.taxi-quiz-menu-icon,.taxi-game-icon,.taxi-topic-graphic) svg,
 :is(#taxiLibraryMount,#taxiDashWordReview,#taxiStudyWordReviewMount) .taxi-vocab-graphic svg,
 .taxi-daily-practice-card>span:first-child svg{display:block!important;width:40px!important;height:40px!important;max-width:100%!important;max-height:100%!important;color:inherit!important}
 :is(.view,.taxi-widget-gallery-preview) :is(.taxi-game-icon,.taxi-quiz-menu-icon) svg :is([fill]:not([fill=none]),[stroke]:not([stroke=currentColor]):not([stroke=none])){fill:none!important;stroke:currentColor!important}
 :is(.view,.taxi-widget-gallery-preview) .taxi-game-icon svg circle[stroke=none]{fill:currentColor!important;stroke:none!important}
 .taxi-daily-practice-card .taxi-practice-icon{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;background:transparent!important}
 .taxi-daily-practice-card .shift-cab{--cab-paint:transparent!important;--cab-glass:transparent!important;--cab-trim:currentColor!important;--cab-sign:transparent!important;opacity:1!important}
 #vocabularyView .taxi-vocab-row{width:100%!important;min-height:64px!important}
 #vocabularyView .taxi-vocab-row :is(summary,.taxi-word-revisit-button,.taxi-vocab-tap){font-size:18px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}
 :is(#vocabularyView,#reviewView) .taxi-vocab-row,#studyView .study-word-shortlist .taxi-vocab-row{padding:8px 12px!important;gap:12px!important;min-height:0!important;align-items:center!important}
 :is(#taxiLibraryMount,#taxiDashWordReview,#taxiStudyWordReviewMount) .taxi-vocab-row .taxi-vocab-graphic{flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:3px!important;align-self:center!important;margin-top:0!important}
 :is(#taxiLibraryMount,#taxiDashWordReview,#taxiStudyWordReviewMount) .taxi-vocab-row .taxi-vocab-graphic svg{width:36px!important;height:36px!important}
 .view :is(.taxi-activity-panel,.taxi-study-section,.taxi-library-panel){height:auto!important;max-height:none!important;overflow:visible!important}
 .view :is(.taxi-choice.is-correct,.taxi-reading-choice.is-correct,.taxi-game-option.is-correct,.taxi-game-word.is-matched){opacity:1!important;filter:none!important;color:#cefae8!important}
 :is(.view,.taxi-widget-gallery-preview) :is(.taxi-game-card,.taxi-quiz-menu-card,.taxi-topic-card,.taxi-daily-practice-card) :is(strong,small,p){margin-block:0!important}
 #studyView .study-review-group{min-width:min(100%,320px)!important;max-width:100%!important}
 #studyView .study-review-group>.study-review-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:12px!important}
 #studyView .study-review-group .study-review-card{width:100%!important;max-width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;padding:12px 14px!important;white-space:normal!important}
 #studyView .study-review-group .study-review-card>strong{display:block!important;font-size:18px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important;-webkit-line-clamp:unset!important;overflow:visible!important}
 #reviewView .cockpit-activity .cockpit-chart{gap:8px!important}
 #reviewView .cockpit-panel-label :is(h3,span){font-size:18px!important;line-height:1.3!important}
 #reviewView .cockpit-day-total{white-space:nowrap!important;font-size:14px!important}
 #reviewView .cockpit-day small{font-size:12px!important;white-space:nowrap!important}
 #reviewView .cockpit-chart-legend{font-size:14px!important}
 @media(max-width:760px){
  :is(.view,.taxi-widget-gallery-preview) :is(.taxi-game-card,.taxi-quiz-menu-card,.taxi-topic-card,.taxi-daily-practice-card,.taxi-vocab-row){padding:10px 12px!important;gap:10px!important}
  :is(.view,.taxi-widget-gallery-preview) :is(.taxi-game-card strong,.taxi-quiz-menu-copy>strong,.taxi-daily-practice-card strong,.taxi-topic-title,[data-maint-widget-title]){font-size:18px!important}
  :is(.view,.taxi-widget-gallery-preview) :is(.taxi-quiz-menu-copy>small,.taxi-daily-practice-card small,.taxi-topic-count,.taxi-topic-score){font-size:18px!important}
 }
}

@layer taxi-global {
 body:has(#libraryView:not([hidden])) main{padding-top:var(--taxi-dashboard-start)!important}
 body.taxi-maintenance-active:has(#libraryView:not([hidden])) main{padding-top:var(--taxi-dashboard-start)!important}
}

@layer taxi-global {
 #taxiView:has(>[data-maint-section]){box-sizing:border-box!important;padding-top:104px!important;padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))!important;max-height:100dvh!important;overflow-y:auto!important;scroll-padding-top:104px}
 #taxiView:has([data-maint-section]) .route-map-shell{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;z-index:0!important;isolation:isolate}
 #taxiView>[data-maint-section]{z-index:4!important}
 #vocabularyView .taxi-vocab-topics button.is-active{background:#193e55!important;color:var(--taxi-text,#e2f2fa)!important;border-color:var(--taxi-accent,#79d6ec)!important;box-shadow:inset 0 0 0 1px var(--taxi-accent,#79d6ec)!important}
}

@layer taxi-global {
 body.taxi-maintenance-active #taxiView:has(>[data-maint-section]){padding-top:calc(var(--taxi-top-ribbon-height,104px) + 68px)!important;scroll-padding-top:calc(var(--taxi-top-ribbon-height,104px) + 68px)}
}

@layer taxi-global {
 #vocabularyView .taxi-vocab-grid,.study-word-shortlist .study-word-rows{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;width:100%!important;gap:6px 24px!important}
 :is(#vocabularyView,#taxiStudyWordReviewMount,#taxiDashWordReview) .taxi-vocab-row{width:100%!important;max-width:none!important;border:0!important;background:transparent!important;box-shadow:none!important}
 :is(#vocabularyView,#taxiStudyWordReviewMount,#taxiDashWordReview) .taxi-vocab-row :is(summary,strong,[data-taxi-tap],.taxi-word-revisit-button){font-weight:400!important}
 :is(#vocabularyView,#taxiStudyWordReviewMount,#taxiDashWordReview) .taxi-vocab-row>details{flex:0 1 auto!important;min-width:0!important}
 :is(#vocabularyView,#taxiStudyWordReviewMount,#taxiDashWordReview) .taxi-vocab-row:not(.is-actions-visible)>.taxi-word-row-actions{display:none!important}
}
@layer taxi-global {
 #vocabularyView #taxiLibraryMount{display:block!important}
 #vocabularyView #taxiLibraryMount>.taxi-library-glossary{width:100%!important;max-width:none!important}
}

/* A fading edge indicates more slider content without large arrow controls. */
@layer taxi-global {
 .taxi-module-slider-navigation,[data-source-slide],[data-career-slide],[data-game-group-step]{display:none!important}
 [data-slider-more]{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent)}
}

@layer taxi-global {
 :is(#vocabularyView,#taxiStudyWordReviewMount,#taxiDashWordReview) .taxi-vocab-grid,.study-word-shortlist .study-word-rows{height:auto!important;min-height:0!important;grid-template-rows:none!important;grid-auto-rows:max-content!important;align-content:start!important;align-items:start!important;row-gap:8px!important}
}

@layer taxi-global {

}
@layer taxi-global {
 #vocabularyView .taxi-vocab-row summary *{font-weight:400!important}
 #vocabularyView :is(#taxiLibraryMount,#taxiResourcesPanel-glossary){padding-inline:0!important;max-width:none!important}
}

@layer taxi-global {
 @media(max-width:760px){
  body .taxi-mobile-nav{box-sizing:border-box!important;min-height:0!important;height:auto!important;padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px))!important}
  body .taxi-mobile-nav button{min-height:44px!important;height:44px!important;padding:2px!important;gap:2px!important}
  body .taxi-mobile-nav button>span:last-child{font-size:11px!important;line-height:1.15!important}
  body .taxi-mobile-nav button>span:last-child *{font-size:inherit!important;line-height:inherit!important}
  body .taxi-mobile-nav button .taxi-nav-icon{width:20px!important;height:20px!important}
 }
}

@layer taxi-global {
 #vocabularyView .taxi-vocab-row{min-height:44px!important;padding:4px 0!important;justify-content:flex-start!important;gap:8px!important;align-items:center!important}
 #vocabularyView .taxi-vocab-row summary,#studyView .study-word-shortlist .taxi-vocab-row summary{font-size:16px!important;font-weight:400!important;white-space:nowrap!important;overflow-wrap:normal!important}
 #vocabularyView .taxi-wording-clinic .taxi-vocab-row summary{white-space:normal!important}
 #studyView .study-word-shortlist .taxi-word-revisit-button>.taxi-vocab-graphic,#vocabularyView .taxi-vocab-row>.taxi-vocab-graphic{display:none!important}
 #studyView .study-word-shortlist .taxi-vocab-row>details{flex:0 1 auto!important}
 :is(#vocabularyView,#taxiStudyWordReviewMount) .taxi-word-row-actions{flex:none!important;margin-left:0!important;gap:2px!important}
 .taxi-vocab-guidance{font-size:14px!important;font-weight:400!important;color:var(--taxi-muted)!important;margin:0 0 18px!important;max-width:65ch}
}

@layer taxi-global {
 #studyView .study-word-shortlist .taxi-vocab-row summary{padding:0!important}
 #studyView .study-word-shortlist .taxi-vocab-row details{padding:0!important;margin:0!important}
 #vocabularyView .taxi-vocab-row .taxi-vocab-tap{font-size:16px!important;white-space:normal!important;overflow-wrap:anywhere!important}
 #vocabularyView .taxi-wording-clinic .taxi-vocab-row .taxi-vocab-tap{white-space:normal!important}
}

@layer taxi-global {
 /* A compact dock with breathing room around every edge, including iPhone's home indicator. */
 body nav.taxi-mobile-nav{position:fixed!important;inset:auto auto env(safe-area-inset-bottom,0px) 50%!important;transform:translateX(-50%)!important;box-sizing:border-box!important;width:calc(100% - 24px)!important;max-width:520px!important;height:64px!important;min-height:64px!important;padding:6px!important;gap:3px!important;border:1px solid #d5e5ed29!important;border-radius:36px!important;background:#0c1118f5!important;box-shadow:0 8px 30px #0006,0 1px 0 #ffffff0a inset!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body nav.taxi-mobile-nav button{display:grid!important;align-content:center!important;justify-items:center!important;min-width:0!important;width:100%!important;height:50px!important;min-height:50px!important;padding:4px 2px!important;gap:3px!important;border:0!important;border-radius:28px!important;background:transparent!important;color:#b6c3cc!important;box-shadow:none!important}
 body nav.taxi-mobile-nav button[aria-current=page]{background:#ffffff24!important;color:#f4f8fb!important}
 body nav.taxi-mobile-nav button .taxi-nav-icon{width:29px!important;height:29px!important}
 body nav.taxi-mobile-nav button>span:last-child{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
 body nav.taxi-mobile-nav button:focus-visible{outline:2px solid var(--taxi-accent)!important;outline-offset:-3px!important}
 @media(max-width:760px){body main{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}}
}
@layer taxi-global {
 @media(max-width:760px){
  body #designSiteNav{display:none!important}
  body nav.taxi-mobile-nav,body:has(#designSiteNav:not([hidden])) nav.taxi-mobile-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}
 }
}
