/* Shared visual refinement. Behaviour, saved layouts and theme overrides stay with their components. */
@layer taxi-global {
 :root {
  --taxi-panel-rgb:18 29 38;
  --taxi-panel:#121d26f2;
  --taxi-surface:#1b2934;
  --taxi-hover:#263a47;
  --taxi-text:#edf3f4;
  --taxi-muted:#b9c8cf;
  --taxi-accent:#b4dedf;
  --taxi-border:#536873;
  --taxi-container-background:rgb(18 29 38 / .88);
  --taxi-refined-line:#d7e5ed24;
  --taxi-refined-fill:linear-gradient(135deg,#1b2a35ef,#101c26ed);
  --taxi-refined-feature:linear-gradient(125deg,#24414be8,#152631f0);
 }
 /* Keep Helsinki as atmosphere while giving the text a quiet, stable backdrop. */
 body:has(.view:not([hidden]))::after,
 body:has(:is(#plannerView,#journalView,#labView):not([hidden]))::after {
  filter:brightness(.24) saturate(.55);
 }
 body .view .design-page-heading {gap:22px;margin-bottom:22px!important;padding-bottom:18px!important}
 body .view .design-page-heading h1 {font-size:clamp(30px,3.2vw,44px)!important;font-weight:500!important;letter-spacing:-.045em!important;line-height:1.12!important;max-width:850px;text-wrap:balance}
 body .view .design-page-heading p {font-size:15px!important;line-height:1.65!important}
 body .view .design-page-heading .design-eyebrow {font-size:10px!important;letter-spacing:.17em!important;color:var(--taxi-muted)!important;margin-bottom:18px!important}
 body .view .design-text-link {color:var(--taxi-text)!important;border-color:#c9e2e546!important;gap:16px}
 body #designSiteNav {padding:5px 7px;border-color:#d5e5ed24;background:#101a23f5;box-shadow:0 8px 24px #0003}
 body #designSiteNav button {font-size:13px;min-height:36px;padding-inline:18px;color:#bac9d0}
 body #designSiteNav button[aria-current=page] {background:#d9edf11c!important;color:#f2f7f8!important;box-shadow:inset 0 1px 0 #fff1}
 body :is(.taxi-page-links button,.career-back,.taxi-sidebar-toggle) {background:#121e29e6!important;border-color:#d5e5ed36!important;color:var(--taxi-text)!important;box-shadow:none!important}
 body nav.taxi-mobile-nav {background:#111b24f5!important;border-color:#d5e5ed35!important;box-shadow:0 6px 22px #0005,inset 0 1px 0 #fff1!important}
 body nav.taxi-mobile-nav button[aria-current=page] {background:#d9edf121!important;color:#f1f7f8!important}
 /* A single calm surface family replaces the competing blue container treatments. */
 body .view :is(.taxi-activity-panel,.taxi-learning-hub,.study-in-review,.study-word-shortlist,.practice-card,.cockpit-panel,.lab-card,.lab-entry,.taxi-account-sync,.taxi-profile-language,.profile-backup):not([data-maint-container-style=invisible]) {
  background:var(--taxi-refined-fill)!important;border:1px solid var(--taxi-refined-line)!important;border-radius:20px!important;box-shadow:inset 0 1px 0 #ffffff04,0 12px 28px #00000018!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 body #quizView .taxi-activity-panel:not([data-maint-container-style=invisible]) {border-left:2px solid var(--quiz-container-accent,#b4dedf)!important;padding:24px!important}
 body #quizView .taxi-game-menu {--quiz-container-accent:#b4dedf}
 body #quizView .quiz-daily-area {--quiz-container-accent:#b6d6bf}
 body #quizView .quiz-blueprint-area {--quiz-container-accent:#b7c9e0}
 body #quizView .quiz-scenarios-area {--quiz-container-accent:#cbbde2}
 body #quizView .quiz-shift-area {--quiz-container-accent:#e3c791}
 body .view :is(.taxi-module-heading h2,.quiz-area-heading h2,.practice-card h2,.study-review-heading h2) {font-size:22px!important;letter-spacing:-.03em!important;font-weight:500!important}
 body .view :is(.taxi-module-intro,.quiz-area-heading>p:not(.eyebrow)) {font-size:14px!important;line-height:1.65!important}
 body .view :is(.taxi-game-card,.taxi-quiz-menu-card,.taxi-daily-practice-card,.taxi-topic-card):not([data-maint-theme]):not([data-maint-custom-theme]) {
  background:linear-gradient(135deg,#e4f0f207,#e4f0f202)!important;border-color:#d7e5ed20!important;border-radius:13px!important;box-shadow:none!important;
 }
 body .view :is(.taxi-game-card,.taxi-quiz-menu-card,.taxi-daily-practice-card) strong {font-weight:500!important;font-size:15px!important;line-height:1.4!important}
 body .view :is(.taxi-game-card,.taxi-quiz-menu-card,.taxi-daily-practice-card) small {font-size:12px!important;line-height:1.55!important;color:var(--taxi-muted)!important}
 body .view :is(.taxi-game-icon,.taxi-quiz-menu-icon) {color:#b4ced5!important}
 body #quizView .design-quiz-nav {gap:4px;padding-bottom:24px!important}
 body #quizView .design-quiz-nav button {border-color:transparent!important;background:transparent!important;color:var(--taxi-muted)!important;padding-inline:18px!important}
 body #quizView .design-quiz-nav button[aria-pressed=true] {background:#d9edf11a!important;border-color:#d9edf136!important;color:var(--taxi-text)!important}
 body #taxiQuizSpotlight {background:var(--taxi-refined-feature);border:1px solid #d4e9ec32;border-radius:24px;padding:34px 36px;gap:40px;box-shadow:inset 0 1px 0 #ffffff08}
 body #taxiQuizSpotlight h2 {font-size:clamp(29px,3vw,39px);font-weight:450;letter-spacing:-.045em;line-height:1.14}
 body #taxiQuizSpotlight .spotlight-copy>p:not(.spotlight-eyebrow) {font-size:14px;line-height:1.7}
 body #taxiQuizSpotlight .preview-finnish {color:var(--taxi-accent);font-size:30px;line-height:1.4;font-weight:400;letter-spacing:-.025em}
 body #taxiQuizSpotlight .spotlight-preview {border-color:#d7e5ed25}
 body #taxiQuizSpotlight [data-design-start] {background:#e2eff0!important;color:#152a34!important;min-height:46px!important;padding-inline:22px!important;box-shadow:none!important}
 body #reviewView :is(#taxiDashFocus,#taxiDashNextStop,#taxiDashWeeklyActivity,#taxiDashGauges,#taxiDashReviewQueue) {background:var(--taxi-refined-fill)!important;border:1px solid var(--taxi-refined-line)!important;border-radius:20px!important}
 body #reviewView #taxiDashFocus {background:var(--taxi-refined-feature)!important;padding:26px!important}
 body #taxiDashFocus h2 {font-size:28px!important;letter-spacing:-.035em!important;line-height:1.2!important;font-weight:450!important}
 body #taxiDashFocus nav button:first-child {background:#e2eff0!important;color:#152a34!important;border-color:transparent!important}
 body .cockpit-bar {background:#48636d!important;border-radius:5px 5px 0 0!important}
 body .cockpit-bar i {background:linear-gradient(#b5dedc,#769ca7)!important}
 body .cockpit-chart-legend>span:first-child i {background:#b5dedc!important}
 body .cockpit-chart-legend>span:nth-child(2) i {background:#48636d!important}
 body #studyView .taxi-learning-hub {padding:26px!important}
 body .studio-path {border-color:#d7e5ed24!important}
 body #taxiLearningStudyHub [data-learning-open] {padding:17px!important}
 /* Vocabulary remains plain text, with generous lines instead of filled boxes. */
 body #vocabularyView .taxi-vocab-row {font-size:16px!important;border-color:#d7e5ed24!important;background:transparent!important}
 body #vocabularyView .taxi-vocab-row .taxi-vocab-tap {font-size:16px!important;line-height:1.55!important;font-weight:400!important;padding-block:15px!important}
 body #vocabularyView :is([data-vocabulary-topic-pill],[data-vocabulary-section]) {border-color:#d7e5ed2d!important;background:#c9dce808!important;min-height:44px!important;font-size:13px!important}
 body #vocabularyView :is([data-vocabulary-topic-pill][aria-pressed=true],[data-vocabulary-section][aria-current=page]) {background:#d9edf11c!important;border-color:#c9e3e66b!important;color:var(--taxi-text)!important;box-shadow:none!important}
 body .view :is(input:not([type=radio]):not([type=checkbox]):not([type=file]),select,textarea) {color-scheme:dark;background:var(--taxi-surface)!important;border-color:var(--taxi-border)!important;border-radius:11px!important}
 body .view :is(.lab-button,.practice-link,.secondary) {border-color:#d7e5ed36!important}
 body .view :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid #c8e6e6!important;outline-offset:3px!important}
 body #scenariosView :is(.taxi-story-hero,.taxi-story-card,.taxi-story-session,.taxi-story-brief,.taxi-story-debrief,.taxi-story-coach) {background:var(--taxi-refined-fill)!important;border-color:var(--taxi-refined-line)!important}
 body #scenariosView .taxi-story-hero {background:linear-gradient(120deg,#263647ed,#15232fed)!important}
 body #scenariosView .taxi-story-passage {line-height:1.75!important}
 body #taxiView .route-itinerary button {border-color:#d7e5ed28!important}
 body #taxiView .route-itinerary button:disabled {opacity:.65!important}
 body .work-session,body .work-pack,body .work-calculator {border-color:#d7e5ed29;background:var(--taxi-refined-fill)}
 body .work-pack--shift {background:var(--taxi-refined-feature)}
 @media(hover:hover) {
  body .view :is(.taxi-game-card,.taxi-quiz-menu-card,.taxi-daily-practice-card,.taxi-topic-card):hover:not(:disabled) {border-color:#bad9df68!important;background-color:#d3e9ef0c!important}
  body #designSiteNav button:hover,body .view .design-text-link:hover {background-color:#d3e9ef0b!important}
 }
 @media(max-width:760px) {
  body .view .design-page-heading {gap:16px;margin-bottom:18px!important;padding-bottom:10px!important}
  body .view .design-page-heading h1 {font-size:32px!important;max-width:100%;line-height:1.14!important}
  body .view .design-page-heading p {font-size:14px!important;line-height:1.65!important}
  body .view .design-page-heading .design-eyebrow {font-size:9px!important;margin-bottom:14px!important}
  body #quizView .taxi-activity-panel:not([data-maint-container-style=invisible]) {padding:20px!important}
  body #taxiQuizSpotlight {padding:24px;gap:24px;border-radius:20px}
  body #taxiQuizSpotlight h2 {font-size:30px}
  body #taxiQuizSpotlight .preview-finnish {font-size:27px}
  body #taxiQuizSpotlight .spotlight-preview {padding-top:20px}
  body #taxiDashFocus h2 {font-size:25px!important}
  body #reviewView #taxiDashFocus,body #studyView .taxi-learning-hub {padding:22px!important}
  body #taxiLearningStudyHub [data-learning-open] {padding:15px!important}
 }
 @media(prefers-reduced-motion:reduce) {
  body .view *,body #designSiteNav * {scroll-behavior:auto!important;transition:none!important}
 }
 @media(prefers-reduced-transparency:reduce) {
  body .view :is(.taxi-activity-panel,.taxi-learning-hub,.practice-card,.cockpit-panel,.lab-card,.lab-entry),body #taxiQuizSpotlight {background:#121d26!important}
 }
}
@layer taxi-quiz-component {
 /* The answer state colours stay untouched: correct and incorrect remain unmistakable. */
 body:not(:has([data-maint-theme],[data-maint-custom-theme])) [data-quiz-template=short] :is(.taxi-choice,.taxi-reading-choice,.taxi-game-option,.taxi-game-word):not(.is-correct):not(.is-wrong):not(.is-matched):not(.is-selected) {background:#d7e5ed08!important;border-color:#d7e5ed40!important;box-shadow:none!important}
 body:not(:has([data-maint-theme],[data-maint-custom-theme])) [data-quiz-template=short] :is(.taxi-choice-letter,.taxi-choice-key) {background:#d7e5ed10!important;color:#cce1e6!important}
}
@layer taxi-global {
 @media(min-width:761px) {
  body .taxi-sidebar-toggle {padding:6px!important;background:transparent!important;border:0!important;border-radius:12px!important;box-shadow:none!important}
  body .taxi-sidebar-toggle img {flex:none;width:32px;height:32px}
  body.taxi-sidebar-open .taxi-sidebar-toggle {width:auto!important;max-width:220px!important;gap:10px!important;padding-inline:8px 14px!important}
  body.taxi-sidebar-open .taxi-sidebar-toggle-label {max-width:160px;flex:none;font-size:18px;font-weight:500;letter-spacing:-.025em}
  body.taxi-sidebar-open .career-back {visibility:hidden!important}
 }
}
@layer taxi-quiz-component {
 body .taxi-sidebar-toggle:focus-visible {outline:1px solid #d7e5ed80!important;outline-offset:3px!important;border-radius:12px!important}
 body .taxi-sidebar-toggle:focus:not(:focus-visible) {outline:none!important}
}
@layer taxi-global {
 @media(max-width:760px) {
  body .taxi-page-links button:is([data-view=pointers],[data-view=library]) {width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
 }
 @media(max-width:360px) {
  body .career-back {width:44px!important;max-width:44px!important;padding:0!important;font-size:0!important;text-align:center!important}
  body .career-back::before {content:'‹';font:400 24px/1 sans-serif}
 }
}
@layer taxi-global {
 @media(max-width:760px) {body .taxi-page-links {gap:8px!important}}
}
@layer taxi-global {@media(max-width:760px){body .taxi-page-links>button{margin-inline:0!important}}}
@layer taxi-global {
 @media(max-width:760px) {
  body .taxi-page-links {padding-right:120px!important}
  body .taxi-page-links [data-maint-toggle] {right:52px!important}
 }
}
@layer taxi-global {
 body .view .taxi-vocab-row {scroll-margin-top:100px;scroll-margin-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
}
@layer taxi-global {
 :is(.view,dialog)[data-maint-theme] {--taxi-refined-fill:var(--taxi-panel);--taxi-refined-feature:var(--taxi-panel);--taxi-refined-line:var(--taxi-border)}
 :is(.view,dialog)[data-maint-theme=light] :is(input,select,textarea) {color-scheme:light!important}
}
@layer taxi-global {
 /* Light presets need a page surface as well as light cards: headings sit outside cards. */
 body .view[data-maint-theme=light] {background:#edf2f7!important;border-radius:24px;padding-block:24px!important}
 body dialog[data-maint-theme=light],body .view[data-maint-theme=light] .taxi-case-glass {background:var(--taxi-panel)!important;color:var(--taxi-text)!important}
}
@layer taxi-quiz-component {
 .view[data-maint-theme=light] #taxiWorkMount {--work-line:#233b4b33}
 .view[data-maint-theme=light] #taxiWorkMount .work-session-footer {background:var(--taxi-panel)}
 .view[data-maint-theme=light] #taxiWorkMount :is(input:not([type=radio]):not([type=checkbox]),select) {background:var(--taxi-surface)!important;color:var(--taxi-text)!important;border-color:var(--taxi-border)!important;color-scheme:light}
 .view[data-maint-theme=light] #taxiWorkMount :is(.work-eyebrow,a,summary,.work-icon,.work-result-stats strong) {color:var(--taxi-accent)!important}
 .view[data-maint-theme=light] #taxiWorkMount :is(.work-trip-values,.work-field-feedback li>span:first-child) {color:var(--taxi-text)}
 .view[data-maint-theme=light] #taxiWorkMount .work-feedback h4 {color:#20634c!important}
 .view[data-maint-theme=light] #taxiWorkMount .work-feedback.is-review h4 {color:#79551c!important}
}
/* Editorial redesign: a visible new composition, rather than another tint adjustment. */
@layer taxi-global {
 :root {--taxi-refined-fill:linear-gradient(135deg,#16232ee8,#101c27ed);--taxi-refined-feature:linear-gradient(125deg,#203642e8,#13232fed)}
 body:has(.view:not([hidden]))::after,body:has(:is(#plannerView,#journalView,#labView):not([hidden]))::after {filter:brightness(.18) saturate(.6)}
 body .view .design-page-heading {
  --taxi-text:#f5f4ed;--taxi-muted:#c6d0d2;--taxi-accent:#e5cc96;
  position:relative;isolation:isolate;align-items:flex-end;overflow:hidden;border:1px solid #dce9ef25;border-radius:24px;
  padding:30px 32px!important;margin-bottom:28px!important;min-height:220px;
  background:linear-gradient(90deg,#10212bf5 4%,#10212bd9 48%,#10212b40),url('assets/dash-cockpit.webp') center 47%/cover;
 }
 body #studyView .design-page-heading {background-image:linear-gradient(90deg,#10212bf5 4%,#10212bd9 48%,#10212b40),url('assets/study-university-night.webp')}
 body #vocabularyView .design-page-heading {background-image:linear-gradient(90deg,#10212bf5 4%,#10212bd9 48%,#10212b40),url('assets/vocab-library-cockpit.webp')}
 body .view .design-page-heading>div {position:relative;z-index:1;max-width:760px}
 body .view .design-page-heading h1 {font-size:clamp(34px,3.5vw,50px)!important;max-width:700px;line-height:1.08!important;font-weight:450!important;letter-spacing:-.045em!important;margin-bottom:16px!important}
 body .view .design-page-heading .design-eyebrow {font-size:10px!important;letter-spacing:.16em!important;color:#e5cc96!important;margin-bottom:15px!important}
 body .view .design-page-heading .design-text-link {position:relative;z-index:1;color:#f5f4ed!important;border-bottom-color:#e5cc9670!important}
 body #designSiteNav {background:#101b24f7;border-radius:16px;padding:5px 7px;border-color:#e3d8bd35}
 body #designSiteNav button {border-radius:11px}
 body #designSiteNav button[aria-current=page] {background:#d9edf11c!important;color:#f2f7f8!important;font-weight:500!important}
 body nav.taxi-mobile-nav button[aria-current=page] {background:#d9edf121!important;color:#f1f7f8!important}
 /* Muted feature panels create a clear starting point against the quieter charcoal tools. */
 body #reviewView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiDashFocus,
 body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight {
  --taxi-panel-rgb:38 49 55;--taxi-text:#edf1ef;--taxi-muted:#bac7ca;--taxi-accent:#c2d5d3;
  color:var(--taxi-text)!important;background:#263137!important;border:1px solid #b2c7cc40!important;box-shadow:none!important;
 }
 body #reviewView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiDashFocus {padding:28px!important}
 body #reviewView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiDashFocus h2 {font-size:30px!important;max-width:440px}
 body #reviewView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiDashFocus .design-eyebrow {color:var(--taxi-muted)!important;font-size:10px!important;letter-spacing:.13em}
 body #reviewView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiDashFocus nav button {border-color:#53665e50!important;color:var(--taxi-text)!important;background:transparent!important}
 body #reviewView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiDashFocus nav button:first-child {background:#193540!important;color:#f7f3e8!important;border-color:#193540!important}
 body #reviewView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiDashFocus .dash-topic-pulse {border-color:#455c6530}
 body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight {padding:26px 32px;gap:32px}
 body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight h2 {font-size:34px}
 body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight .spotlight-copy>p:first-child {font-size:10px!important;letter-spacing:.14em!important;color:var(--taxi-muted)!important}
 body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight .spotlight-preview {border-color:#455c6530}
 body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight :is(.preview-finnish,.preview-kicker,.preview-speaker,.preview-caption,.preview-language) {color:#244d59!important}
 body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight [data-design-start] {background:#193540!important;color:#f7f3e8!important}
 /* Open rows, inspired by the Scenarios list, replace the nested miniature blue cards. */
 body #quizView .taxi-game-card:not([data-maint-theme]):not([data-maint-custom-theme]) {background:transparent!important;border-width:0 0 1px!important;border-color:#d7e5ed35!important;border-radius:0!important;box-shadow:none!important}
 body #quizView .taxi-game-card strong {font-size:16px!important;letter-spacing:-.02em!important}
 body #quizView .taxi-game-card strong::after {font-size:12px!important;line-height:1.55!important}
 body #quizView .taxi-activity-panel:not([data-maint-container-style=invisible]) {border-left-width:0!important;border-radius:18px!important;padding:26px!important}
 body #studyView .taxi-learning-hub .taxi-quiz-menu-card {border-width:0 0 1px!important;border-radius:0!important;background:transparent!important;border-color:#d7e5ed30!important}
 body #studyView .taxi-learning-hub [data-learning-open=trainer] {border-left:2px solid #e5cc96!important;background:#e5cc960a!important;padding-left:18px!important}
 body #studyView .taxi-learning-hub .studio-path i {color:#e5cc96;border-color:#e5cc9650}
 @media(max-width:760px) {
  body .view .design-page-heading {padding:24px!important;min-height:0;gap:18px;align-items:flex-start;border-radius:20px;background-position:center;margin-bottom:24px!important}
  body .view .design-page-heading h1 {font-size:34px!important;line-height:1.1!important;margin-bottom:14px!important}
  body .view .design-page-heading p {max-width:520px}
  body .view .design-page-heading .design-eyebrow {font-size:9px!important;margin-bottom:14px!important}
  body #reviewView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiDashFocus {padding:24px!important}
  body #reviewView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiDashFocus h2 {font-size:27px!important}
  body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight {padding:24px;gap:20px}
  body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight h2 {font-size:29px}
  body #quizView .taxi-activity-panel:not([data-maint-container-style=invisible]) {padding:20px!important}
 }
 @media(prefers-reduced-transparency:reduce) {body .view .design-page-heading {background-image:none;background-color:#10212b}}
}
@layer taxi-global {
 body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight .spotlight-copy h2 {color:var(--taxi-text)!important}
 body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight .spotlight-copy>p:not(.design-eyebrow) {color:var(--taxi-muted)!important}
 body #quizView:not([data-maint-theme]):not([data-maint-custom-theme]) #taxiQuizSpotlight .spotlight-preview :is(p,span,svg,button) {color:var(--taxi-accent)!important}
}
@layer taxi-quiz-component {
 /* Word lists are text, including when moved or rendered under a custom widget palette. */
 body .view .taxi-vocab-row,body .view [data-maint-word-list] .taxi-vocab-row {
  background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;border-bottom:1px solid var(--taxi-refined-line,#d7e5ed24)!important;border-radius:0!important;
 }
 body .view .taxi-vocab-row :is(details,summary,.taxi-word-revisit-button,.taxi-vocab-tap) {background:transparent!important;background-image:none!important;box-shadow:none!important;border-radius:0!important}
}
@layer taxi-global {
 /* Each page has its own visual; the approved banner composition is shared. */
 body #quizView .design-page-heading {background-image:linear-gradient(90deg,#10212bf5 4%,#10212bd9 48%,#10212b40),url('assets/finland-south.webp')}
 body #libraryView .design-page-heading {background-image:linear-gradient(90deg,#10212bf5 4%,#10212bd9 48%,#10212b40),url('assets/vocab-bookshelves.webp')}
 body #pointersView .design-page-heading {background-image:linear-gradient(90deg,#10212bf5 4%,#10212bd9 48%,#10212b20),url('assets/banners/pointers.svg')}
 body #plannerView .design-page-heading {background-image:linear-gradient(90deg,#10212be8 4%,#10212baf 48%,#10212b38),url('assets/study-university-night.webp');background-position:center 46%}
 body #journalView .design-page-heading {background-image:linear-gradient(90deg,#10212be8 4%,#10212baf 48%,#10212b38),url('assets/vocab-bookshelves.webp');background-position:center 42%}
 body #labView .design-page-heading {background-image:linear-gradient(90deg,#10212bf5 4%,#10212bd9 48%,#10212b20),url('assets/banners/lab.svg')}
 body #taxiView .route-page-intro.design-page-heading {display:block!important;background-image:linear-gradient(90deg,#10212bf5 4%,#10212bd9 48%,#10212b40),url('assets/finland-north.webp')}
 body #taxiView .route-page-intro.design-page-heading h1 {font-size:clamp(34px,3.5vw,50px)!important;color:#f5f4ed!important}
 body #scenariosView .taxi-story-hero {background:linear-gradient(90deg,#10212bf5 4%,#10212bd9 48%,#10212b40),url('assets/finland-central.webp') center/cover!important;border-radius:24px!important}
 body #scenariosView .taxi-story-hero h2 {font-size:clamp(30px,3vw,42px)!important}
 body #profileView.view>header.profile-heading {background:linear-gradient(90deg,#10212bf5 4%,#10212bd9 48%,#10212b20),url('assets/banners/profile.svg') center/cover!important;border:1px solid #dce9ef25!important;border-radius:24px!important;padding:30px!important;min-height:220px!important}
 body #profileView .profile-heading #profileHeading {color:#f5f4ed!important}
 body .practice-heading.design-page-heading>nav {position:relative;z-index:1;display:flex;gap:8px;flex-wrap:wrap}
 body .practice-heading.design-page-heading>nav button,body #labView .lab-head.design-page-heading>button {color:#f5f4ed!important;background:#10212bb3!important;border-color:#dce9ef50!important}
 /* Extend the muted starting-point treatment to planning, reflection and custom practice. */
 body :is(#plannerView,#journalView,#labView):not([data-maint-theme]):not([data-maint-custom-theme]) :is(#practicePlanToday,#practiceJournalNote,#labBuilder) {
  --taxi-panel-rgb:38 49 55;--taxi-text:#edf1ef;--taxi-muted:#bac7ca;--taxi-accent:#c2d5d3;--taxi-surface:#303d44;--taxi-border:#6a7d83;
  background:#263137!important;color:var(--taxi-text)!important;border-color:#b2c7cc40!important;
 }
 body :is(#practicePlanToday,#practiceJournalNote,#labBuilder) :is(h2,h3,p,label,legend) {color:var(--taxi-text)!important}
 @media(max-width:760px) {
  body #profileView.view>header.profile-heading {padding:24px!important;min-height:180px!important}
  body #taxiView .route-page-intro.design-page-heading h1 {font-size:34px!important}
  body #scenariosView .taxi-story-hero h2 {font-size:30px!important}
 }
}
@layer taxi-global {
 body #labView .lab-head.design-page-heading h1 {font-size:clamp(34px,3.5vw,50px)!important;line-height:1.08!important}
 body #practicePlanToday :is(strong,span,small) {color:var(--taxi-text)!important}
 body #labBuilder .lab-button.primary,body #practiceJournalNote button[type=submit] {background:#193540!important;color:#f7f3e8!important;border-color:#193540!important}
 @media(max-width:760px){body #labView .lab-head.design-page-heading h1{font-size:34px!important}}
}
/* Keep the journey in the document scroll flow, with modal scrolling isolated. */
@layer taxi-quiz-component {
 html:has(#taxiView:not([hidden])) {overflow-y:auto!important}
 body:has(#taxiView:not([hidden])):not(:has(dialog[open])) {overflow:visible!important;height:auto!important;max-height:none!important}
 body #taxiView:not([hidden]) {max-height:none!important;height:auto!important;overflow:visible!important;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
 body .view .taxi-learning-hub .taxi-quiz-menu-grid {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))!important;align-items:stretch!important;gap:16px!important}
 body .view .taxi-learning-hub .taxi-quiz-menu-card {width:100%!important;height:100%!important;align-self:stretch!important;justify-self:stretch!important;align-items:flex-start!important;padding:20px!important;min-width:0!important}
 body .view .taxi-learning-hub .taxi-quiz-menu-card .taxi-quiz-menu-icon {margin-top:3px!important;flex:none!important}
 body .view .taxi-learning-hub .taxi-quiz-menu-copy {flex:1;min-width:0}
 body .view .taxi-learning-hub .taxi-quiz-menu-card:not([data-maint-theme]):not([data-maint-custom-theme]) {background:#ffffff04!important;border:1px solid #d7e5ed26!important;border-radius:18px!important}
 body .view .design-page-heading {align-items:flex-start!important;min-height:190px!important;padding:26px 32px!important}
 body .view .design-page-heading :is(h1,p) {margin-top:0!important}
 body .view .design-page-heading .design-eyebrow {margin-top:0!important}
 body .practice-heading.design-page-heading {max-width:none!important;width:100%!important}
 body #plannerView .practice-grid {gap:22px!important;align-items:stretch!important}
 body #plannerView .practice-card {width:100%!important;align-self:stretch!important;border-radius:20px!important}
 body #plannerView #practicePlanToday .practice-steps {display:grid!important;grid-template-columns:1fr!important;gap:0!important}
 body #plannerView #practicePlanToday .practice-steps>button {display:flex!important;align-items:center!important;flex-wrap:nowrap!important;padding:16px 0!important;border-bottom:1px solid #d7e5ed24!important}
 body #plannerView #practicePlanToday .practice-steps>button>span:nth-child(2) {order:0!important;flex:1!important}
 body #plannerView #practicePlanToday .plan-today-progress {margin:14px 0 20px!important}
 @media(max-width:760px) {body .view .design-page-heading {min-height:0!important;padding:24px!important}body .view .taxi-learning-hub .taxi-quiz-menu-grid{grid-template-columns:1fr!important}}
}
@layer taxi-global {
 /* Uneven edge reflections give the glass a quiet glint without covering controls. */
 body .view :is(.taxi-vocab-main-topics,.practice-card,.taxi-activity-panel,.route-mission) {position:relative;isolation:isolate}
 body .view :is(.taxi-vocab-main-topics,.practice-card,.taxi-activity-panel,.route-mission)::after {content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;pointer-events:none;border:1px solid transparent;background:radial-gradient(ellipse 100px 2px at 22% 100%,#d0f3f567,transparent),radial-gradient(ellipse 2px 70px at 100% 36%,#bce7ef55,transparent),radial-gradient(ellipse 65px 2px at 8% 0%,#c4f1f34a,transparent);opacity:.7}
 body .view :is(.practice-card,.taxi-activity-panel):nth-of-type(2n)::after {transform:rotate(180deg);opacity:.45}
 body #taxiView .route-mission {background:linear-gradient(120deg,#25383ee8,#16242de8)!important;border-color:#c7e3e42e!important}
 body #plannerView #practicePlanRhythm {background:linear-gradient(145deg,#1c2b32f0,#131f29f0)!important}
 body #plannerView #practiceExamFocus {background:#14232bc9!important}
}
@layer taxi-quiz-component {
 body.taxi-maintenance-active .maint-selected>[data-maint-edge=se] {background:#b4dedf!important;border:2px solid #14252e!important;box-shadow:0 1px 6px #0007!important;border-radius:6px!important}
 .taxi-maintenance-access form>label {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0}
 .taxi-maintenance-access form>label input {width:110px;min-height:44px;font:inherit}
}
@layer taxi-quiz-component {
 body:not(.taxi-maintenance-active) .taxi-page-links :is([data-maint-history-global],[data-maint-undo-global],[data-maint-redo-global]) {display:none!important}
 body .taxi-page-links [data-maint-history-global][hidden] {display:none!important}
 body .taxi-page-links .taxi-toolbar-level {align-self:flex-start!important;margin-top:0!important}
 body .taxi-page-links .taxi-toolbar-level .taxi-difficulty-control {display:flex!important;align-items:center!important;margin:0!important}
 body #taxiView #taxiRouteMount dialog.route-map-shell[open] {position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;padding:0!important;overflow:hidden!important}
 body #taxiView #taxiRouteMount dialog.route-map-shell[open] .route-map {height:100dvh!important;max-height:none!important;min-height:0!important;width:100%!important;border:0!important;border-radius:0!important}
 body #taxiView #taxiRouteMount dialog.route-exercise-overlay:has(.route-finished) {box-sizing:border-box!important;width:min(460px,calc(100vw - 24px))!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important}
 body #taxiView #taxiRouteMount .route-finished {box-sizing:border-box!important;width:100%!important;min-height:0!important;height:auto!important;padding:28px 24px!important;text-align:center!important}
 body #taxiView #taxiRouteMount .route-finished h2 {margin:12px 0!important}
 body #taxiView #taxiRouteMount .route-finish-actions {display:flex!important;flex-wrap:wrap;justify-content:center!important;gap:12px!important}
}
@layer taxi-quiz-component {
 body #taxiView #taxiRouteMount dialog.route-exercise-overlay:has(.route-finished) {position:fixed!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;margin:0!important;transform:translate(-50%,-50%)!important}
}
/* A shared action size across pages, dialogs and exercise controls. */
@layer taxi-quiz-component {
 :root {--taxi-control-radius:999px}
 body :is(.view,dialog,.taxi-page-links) button:not([data-maint-ui]):not([data-maint-ui] button):not([data-taxi-tap]):not([data-vocab-reveal]):not([data-word-row-reveal]) {box-sizing:border-box!important;min-height:var(--taxi-control-size)!important;min-width:var(--taxi-control-size)!important;border-radius:var(--taxi-control-radius)!important}
 body :is(.taxi-page-links button,.career-back,.taxi-sidebar-toggle) {min-height:var(--taxi-control-size)!important}
 body :is(.taxi-round-close,.route-map-close,[data-game-exit],[data-learning-close].taxi-round-close,.taxi-quiz-audio,.taxi-short-back,.taxi-short-next) {box-sizing:border-box!important;width:var(--taxi-control-size)!important;height:var(--taxi-control-size)!important;min-width:var(--taxi-control-size)!important;min-height:var(--taxi-control-size)!important;flex:0 0 var(--taxi-control-size)!important;border-radius:50%!important;padding:10px!important}
 body :is(.view,dialog) :is(.taxi-choice,.taxi-reading-choice,.taxi-game-option,.lab-choice>button:first-child) {border-radius:16px!important}
 body :is(#taxiView,#quizView,#studyView,#labView,dialog) :is(#taxiRouteMount,#taxiGamesSession,#taxiQuizSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,[data-quiz-template="short"]) :is(.taxi-short-controls,.taxi-quick-controls) {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:center!important;justify-items:center!important;column-gap:4px!important;min-height:var(--taxi-control-size)!important}
 body :is(#taxiView,#quizView,#studyView,#labView,dialog) :is(#taxiRouteMount,#taxiGamesSession,#taxiQuizSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,[data-quiz-template="short"]) :is(.taxi-short-controls,.taxi-quick-controls)>:is(.taxi-template-left-controls,.taxi-template-right-controls) {display:contents!important}
 body :is(#taxiView,#quizView,#studyView,#labView,dialog) :is(#taxiRouteMount,#taxiGamesSession,#taxiQuizSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,[data-quiz-template="short"]) :is(.taxi-short-controls,.taxi-quick-controls) :is(button,.taxi-quick-clock,.taxi-short-audio-slot) {grid-row:1!important;justify-self:center!important;align-self:center!important;margin:0!important}
 body :is(#taxiView,#quizView,#studyView,#labView,dialog) :is(#taxiRouteMount,#taxiGamesSession,#taxiQuizSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,[data-quiz-template="short"]) :is(.taxi-short-controls,.taxi-quick-controls) .taxi-short-back {grid-column:1!important}
 body :is(#taxiView,#quizView,#studyView,#labView,dialog) :is(#taxiRouteMount,#taxiGamesSession,#taxiQuizSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,[data-quiz-template="short"]) :is(.taxi-short-controls,.taxi-quick-controls) .taxi-template-left-controls>button:not(.taxi-short-back) {grid-column:2!important;width:var(--taxi-control-size)!important;height:var(--taxi-control-size)!important;min-width:var(--taxi-control-size)!important;max-width:var(--taxi-control-size)!important;padding:0!important;font-size:12px!important;border-radius:50%!important}
 body :is(#taxiView,#quizView,#studyView,#labView,dialog) :is(#taxiRouteMount,#taxiGamesSession,#taxiQuizSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,[data-quiz-template="short"]) :is(.taxi-short-controls,.taxi-quick-controls)>.taxi-quick-clock {grid-column:3!important;width:var(--taxi-control-size)!important;height:var(--taxi-control-size)!important;display:grid!important;place-items:center!important}
 body :is(#taxiView,#quizView,#studyView,#labView,dialog) :is(#taxiRouteMount,#taxiGamesSession,#taxiQuizSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,[data-quiz-template="short"]) :is(.taxi-short-controls,.taxi-quick-controls) .taxi-short-audio-slot {grid-column:4!important;display:grid;place-items:center}
 body :is(#taxiView,#quizView,#studyView,#labView,dialog) :is(#taxiRouteMount,#taxiGamesSession,#taxiQuizSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,[data-quiz-template="short"]) :is(.taxi-short-controls,.taxi-quick-controls) .taxi-short-next {grid-column:5!important}
 body :is(#taxiView,#quizView,#studyView,#labView,dialog) :is(#taxiRouteMount,#taxiGamesSession,#taxiQuizSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,[data-quiz-template="short"]) :is(.taxi-short-controls,.taxi-quick-controls) :is(.taxi-game-countdown,.taxi-game-timer-ring) {box-sizing:border-box!important;width:var(--taxi-control-size)!important;height:var(--taxi-control-size)!important;min-width:var(--taxi-control-size)!important;min-height:var(--taxi-control-size)!important}
 body :is(#taxiView,#quizView,#studyView,#labView,dialog) :is(#taxiRouteMount,#taxiGamesSession,#taxiQuizSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,[data-quiz-template="short"]) :is(.taxi-short-controls,.taxi-quick-controls) button svg {width:24px!important;height:24px!important;flex:none!important}
}
/* Use the screen width on phones instead of nesting two sets of side margins. */
@layer taxi-quiz-component {
 :root {--taxi-control-size:56px!important}
 @media(max-width:760px) {
  body:has(.view:not([hidden])) main {box-sizing:border-box!important;width:100%!important;margin-inline:0!important;padding-inline:0!important}
  body main>.view:not([hidden]) {box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-inline:0!important;padding-left:max(8px,env(safe-area-inset-left,0px))!important;padding-right:max(8px,env(safe-area-inset-right,0px))!important}
  body .taxi-page-links {padding-right:136px!important}
  body .taxi-page-links [data-maint-toggle] {right:64px!important}
 }
 @media(max-width:359px) {:root {--taxi-control-size:52px!important}}
}
@layer taxi-quiz-component {
 @media(max-width:760px) {
  body .taxi-page-links {max-width:calc(100vw - 80px)!important;flex-wrap:wrap!important;align-content:flex-start!important;row-gap:4px!important}
 }
}
@layer taxi-quiz-component {
 @media(max-width:760px) {
  body #scenariosView .taxi-scenarios-workspace {box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-inline:0!important}
 }
}

@layer taxi-global {
 /* Full-page scenes for planning and reflection, including mobile Safari. */
 body:has(#taxiView:not([hidden])) {background-image:url('assets/dash-cockpit.webp')!important;background-position:center bottom!important;background-size:cover!important}
 body:has(#labView:not([hidden])) {background-image:url('assets/vocab-bookshelves.webp')!important;background-position:center!important;background-size:cover!important}
 body:has(#plannerView:not([hidden])) {background-image:url('assets/study-university-night.webp')!important;background-position:center!important;background-size:cover!important;background-attachment:fixed!important}
 body:has(#journalView:not([hidden])) {background-image:url('assets/vocab-bookshelves.webp')!important;background-position:center!important;background-size:cover!important;background-attachment:fixed!important}
 body:has(:is(#plannerView,#journalView):not([hidden]))::after {background-image:inherit!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;filter:brightness(.22) saturate(.6)}
 @media(max-width:760px) {
  body:has(#taxiView:not([hidden])) {background-image:url('assets/dash-cockpit-mobile.webp')!important}
  body:has(#plannerView:not([hidden])) {background-image:url('assets/study-university-night-mobile.webp')!important;background-attachment:scroll!important}
  body:has(#journalView:not([hidden])) {background-attachment:scroll!important}
 }
}

@layer taxi-quiz-component {
 /* A brighter glass window onto the page scene: one image, one scroll position. */
 body .view .design-page-heading,
 body #profileView header.profile-heading,
 body #scenariosView .taxi-story-hero {
  background:linear-gradient(90deg,#0a192366, #0a19232b 60%, #0a192308)!important;
  backdrop-filter:brightness(2.1) saturate(1.15)!important;
  -webkit-backdrop-filter:brightness(2.1) saturate(1.15)!important;
  border-color:#dce9ef25!important;
 }
 @media(prefers-reduced-transparency:reduce) {
  body .view .design-page-heading,
 body #profileView header.profile-heading,
 body #scenariosView .taxi-story-hero {
   background:#10212bf2!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }
 }
}
