@layer taxi-quiz-component, taxi-global;
@layer taxi-quiz-component {
 /* Three full-sentence choices read in sequence without an empty grid cell. */
 [data-quiz-template="short"] .taxi-short-choices[data-choice-count="3"] { grid-template-columns:1fr!important; }
}
.taxi-quiz-template{min-width:0}
.taxi-quiz-template-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;color:var(--muted);font-size:14px;line-height:1.4}
.taxi-quiz-template-progress{height:6px;margin:0;border-radius:99px;background:#e8ede5;overflow:hidden}
.taxi-quiz-template-progress>span{display:block;height:100%;border-radius:inherit;background:var(--green);transition:width .2s}
#taxiExamMount .taxi-quiz-language-toggle{flex:0 0 auto;margin:0}
#taxiExamMount .taxi-quiz-language-toggle>.taxi-language-switch{min-height:40px}
#taxiExamMount .taxi-quiz-hint-button[aria-pressed="true"]{border-color:#c8d8c8;background:#e8f1e8;color:var(--green)}
#taxiExamMount .taxi-quiz-template .taxi-quiz-template-prompt,#taxiExamPlusMount .taxi-quiz-template .taxi-quiz-template-prompt{margin:0 0 12px;font-family:inherit;font-size:16px;font-weight:400;line-height:1.6;letter-spacing:normal}
.taxi-quiz-template-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:14px}
@media(max-width:760px){.taxi-quiz-template-meta{font-size:12px}#taxiExamMount .taxi-quiz-template .taxi-quiz-template-prompt,#taxiExamPlusMount .taxi-quiz-template .taxi-quiz-template-prompt{font-size:16px}}
@media(max-width:600px){#taxiExamMount .taxi-quiz-language-toggle{box-sizing:border-box;display:flex;width:100%;min-width:56px;justify-content:center}#taxiExamMount .taxi-quiz-language-toggle>.taxi-language-switch{box-sizing:border-box;width:100%;min-width:0;gap:1px;min-height:40px;padding:3px 2px;font-size:11px}#taxiExamMount .taxi-quiz-language-toggle>.taxi-language-switch>[data-language]{min-width:13px;min-height:26px;padding:3px 2px}}
@media(max-width:360px){#taxiExamMount .taxi-quiz-language-toggle{min-width:0}}

.taxi-quiz-word-hint-translation{display:inline;color:var(--muted);font-size:.82em;font-weight:500;font-style:italic;white-space:normal}

.taxi-tap-word{display:inline;font:inherit;color:inherit;cursor:pointer;border-radius:3px;touch-action:manipulation}
.taxi-tap-word:hover{text-decoration:underline;text-decoration-color:#a3b8b0;text-underline-offset:3px}
.taxi-tap-word:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.taxi-tap-gloss{color:var(--muted);font-size:.85em;font-style:italic;font-weight:400}
[data-tap-gloss][hidden]{display:none!important}
.taxi-tap-help{color:var(--muted);font-size:12px;line-height:1.5;margin:0 0 14px}
.taxi-reading-choice>.taxi-choice-letter{display:inline-flex;flex:0 0 30px;align-items:center;justify-content:center;min-width:30px;min-height:36px;border-radius:9px;background:#f2eee8;color:#896344;font-weight:600;cursor:pointer}
@media(max-width:600px){}
@media(hover:hover){}
@media(max-width:600px){}

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

#taxiGamesSession .taxi-phrase-result [data-result-label]{position:relative;overflow:visible}
#taxiGamesSession .taxi-phrase-result [data-result-label]::after{content:attr(data-result-label);position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);font-size:10px;line-height:14px;font-weight:400;white-space:nowrap;color:#a5c4d4;pointer-events:none}

/* The approved short quiz component owns every visible question frame.
   This first cascade layer prevents page rules from changing its appearance. */
@layer taxi-quiz-component {
 [data-quiz-template="short"]{box-sizing:border-box!important;display:block!important;position:relative!important;width:100%!important;max-width:520px!important;height:auto!important;min-height:0!important;margin:0 auto!important;padding:20px 20px 16px!important;border:1px solid #54859e78!important;border-radius:18px!important;background:rgb(9 34 53 / .75)!important;color:#e2f2fa!important;box-shadow:none!important;font:18px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
 [data-quiz-template="short"] .taxi-short-exercise-heading{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;align-items:center!important;column-gap:12px!important;row-gap:12px!important;margin:0 0 12px!important;padding:0!important}
 [data-quiz-template="short"] .taxi-short-title{display:block!important;min-width:0!important;margin:0!important;padding:0!important;font:600 24px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.035em!important;text-align:center!important;color:#e2f2fa!important}
 [data-quiz-template="short"] .taxi-short-instruction{display:block!important;font:inherit!important;margin:0!important;letter-spacing:inherit!important}
 [data-quiz-template="short"] :is(.taxi-short-back,.taxi-short-next,.taxi-template-hint){box-sizing:border-box!important;display:grid!important;place-items:center!important;flex:none!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;margin:0!important;padding:0!important;border:1px solid #46728b!important;border-radius:50%!important;background:#102a3d!important;color:#b8e6f4!important;font:600 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;box-shadow:none!important;letter-spacing:normal!important;transition:background-color .14s ease,border-color .14s ease,color .14s ease!important}
 [data-quiz-template="short"] .taxi-template-hint{position:static!important}
 [data-quiz-template="short"] .taxi-short-back{position:static!important;font-size:28px!important;line-height:1!important}
 [data-quiz-template="short"] .taxi-short-next{position:static!important;}
 [data-quiz-template="short"] :is(.taxi-short-back,.taxi-short-next){display:block!important;font-size:28px!important;line-height:1!important;text-align:center!important}
 [data-quiz-template="short"] button:disabled{opacity:.4!important;cursor:default!important}
 [data-quiz-template="short"] .taxi-short-content{box-sizing:border-box!important;display:block!important;position:static!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;scrollbar-gutter:auto!important}
 [data-quiz-template="short"] :is(.taxi-short-prompt,.taxi-quiz-template-prompt,.taxi-game-prompt,.taxi-scenario-prompt,.taxi-phrase-sentence){display:block!important;position:static!important;margin:0 0 16px!important;padding:0!important;transform:none!important;font:500 18px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:normal!important;text-align:center!important;color:#e2f2fa!important;overflow-wrap:normal!important;word-break:normal!important}
 [data-quiz-template="short"] .taxi-short-prompt{font-weight:600!important}
 [data-quiz-template="short"] :is(.route-passage,.shift-passage,.taxi-long-passage,.exam-plus-passage){margin:0 0 20px!important;padding:12px!important;background:#102a3d!important;color:#e2f2fa!important;font:400 18px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;border-radius:12px!important}
 [data-quiz-template="short"] :is(.route-passage p,.shift-passage p,.exam-plus-passage p){font-size:18px!important;line-height:1.5!important}
 [data-quiz-template="short"] .taxi-template-answer-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:center!important;gap:12px!important;margin:0!important;padding:0!important}
 [data-quiz-template="short"] .taxi-template-answers{display:block!important;min-width:0!important;grid-column:1!important}
 [data-quiz-template="short"] :is(.taxi-choices,.taxi-short-choices,.taxi-game-options,.taxi-game-matches,.journey-rule-check){box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;margin:0 auto!important;padding:0!important;border:0!important;background:none!important}
 [data-quiz-template="short"] :is(.taxi-choice,.taxi-reading-choice,.taxi-game-option,.taxi-game-word,.journey-rule-check>button){box-sizing:border-box!important;position:relative!important;display:flex!important;align-items:center!important;gap:8px!important;flex:none!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:7px 9px!important;border:1px solid #46728b!important;border-radius:10px!important;background:#102a3d!important;color:#e2f2fa!important;font:400 18px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-align:left!important;box-shadow:none!important;transition:background-color .14s ease,border-color .14s ease,color .14s ease!important}
 [data-quiz-template="short"] :is(input:not([type=radio]):not([type=checkbox]):not([type=range]),textarea){font-size:18px!important;line-height:1.5!important}
 [data-quiz-template="short"] input[type=radio]{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;margin:0!important}
 [data-quiz-template="short"] .taxi-choice-letter{display:grid!important;place-items:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;min-width:24px!important;margin:0!important;padding:0!important;border:0!important;border-radius:6px!important;background:#203e52!important;color:#9bddeb!important;font:600 14px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
 [data-quiz-template="short"] :is(.taxi-game-option-word,.taxi-game-finnish-word,.taxi-game-answer-translation){font:inherit!important;overflow-wrap:anywhere!important;word-break:normal!important}
 [data-quiz-template="short"] .taxi-game-option-word{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
 [data-quiz-template="short"] :is(.taxi-game-finnish-word,.taxi-game-answer-translation){grid-area:1/1!important}
 [data-quiz-template="short"].taxi-match-short .taxi-game-word[aria-pressed="true"]:not(.is-matched):not(.is-wrong){background:#193e55!important;border-color:#77cee8!important;color:#d4f5fc!important;box-shadow:inset 0 0 0 1px #77cee8!important}
 [data-quiz-template="short"] :is(.is-correct,.is-matched){background:#0d362f!important;border-color:#50bf95!important;color:#cefae8!important;opacity:1!important}
 [data-quiz-template="short"] .is-wrong{background:#3b202a!important;border-color:#d27983!important;color:#ffe0e2!important;opacity:1!important}
 [data-quiz-template="short"] button:is(.is-correct,.is-matched):disabled{background:#0d362f!important;border-color:#50bf95!important;color:#cefae8!important;opacity:1!important}
 [data-quiz-template="short"] button.is-wrong:disabled{background:#3b202a!important;border-color:#d27983!important;color:#ffe0e2!important;opacity:1!important}
 [data-quiz-template="short"] .is-eliminated{visibility:hidden!important;pointer-events:none!important}
 [data-quiz-template="short"] .taxi-template-timer{box-sizing:border-box!important;display:grid!important;place-items:center!important;position:static!important;flex:0 0 44px!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;transform:none!important;background:none!important;border:0!important}
 [data-quiz-template="short"] .taxi-game-timer-ring{box-sizing:border-box!important;position:relative!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:conic-gradient(#79d6ec var(--time-left,100%),#294a5f 0)!important;color:#e2f2fa!important;font:700 19px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;isolation:isolate!important}
 [data-quiz-template="short"] .taxi-game-timer-ring::before{content:''!important;position:absolute!important;inset:3px!important;border-radius:50%!important;background:#092235!important;z-index:-1!important}
 [data-quiz-template="short"] :is(.taxi-answer-feedback,.exam-plus-feedback,.shift-feedback,.taxi-game-phrase-feedback,.route-answer-example){margin:20px 0 0!important;font:400 18px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-align:center!important}
 #taxiGamesSession [data-quiz-template="short"] .taxi-game-phrase-feedback{height:auto!important;min-height:0!important;max-height:none!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important}
 [data-quiz-template="short"] .taxi-template-extra-tools{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:16px 0 0!important}
 @media(max-width:600px){[data-quiz-template="short"]{padding:20px 20px 16px!important}[data-quiz-template="short"] .taxi-short-title{font-size:22px!important}[data-quiz-template="short"] .taxi-choice-letter{width:22px!important;height:22px!important;min-width:22px!important;flex-basis:22px!important;font-size:14px!important}[data-quiz-template="short"] :is(.taxi-choice,.taxi-reading-choice,.taxi-game-option,.taxi-game-word){font-size:18px!important;padding:9px 8px!important;gap:7px!important}}
 @media(max-width:480px){
  [data-quiz-template="short"] :is(.taxi-choices,.taxi-short-choices,.taxi-game-options,.journey-rule-check){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  [data-quiz-template="short"] :is(.taxi-choice,.taxi-reading-choice,.taxi-game-option,.taxi-game-word,.journey-rule-check>button){font-size:18px!important;line-height:1.35!important;padding:10px 12px!important;gap:8px!important}
  [data-quiz-template="short"] .taxi-choice-letter{font-size:14px!important}
  [data-quiz-template="short"] .taxi-template-extra-tools{width:100%!important;flex-wrap:nowrap!important}
  [data-quiz-template="short"] .taxi-template-extra-tools>*{box-sizing:border-box!important;flex:1 1 0!important;min-width:0!important}
  [data-quiz-template="short"] .taxi-template-extra-tools>.taxi-quiz-language-toggle{width:auto!important}
  [data-quiz-template="short"] .taxi-template-extra-tools>.taxi-quiz-hint-button{min-height:44px!important;padding:8px!important;white-space:normal!important}
 }
 @media(hover:hover){[data-quiz-template="short"] :is(.taxi-short-back,.taxi-short-next,.taxi-template-hint,.taxi-choice,.taxi-reading-choice,.taxi-game-option,.taxi-game-word):not(:disabled):not(.is-correct):not(.is-wrong):not(.is-matched):hover{border-color:var(--taxi-accent,#79d6ec)!important;background:var(--taxi-hover,#193e55)!important}}
 @media(hover:hover){[data-quiz-template="short"] .taxi-short-back:not(:disabled):hover{background:#204e63!important;border-color:#8bd9ed!important;box-shadow:none!important}}
 [data-quiz-template="short"] :is(button,label):focus-visible{outline:2px solid #79d6ec!important;outline-offset:3px!important}
}
@layer taxi-quiz-component {
 :is(.taxi-quiz-card,.taxi-game-session,.shift-session,.journey-quiz,.exam-plus-question):has([data-quiz-template="short"]){background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
 .route-exercise-overlay:has(>[data-quiz-template="short"]){width:min(520px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 [data-quiz-template="short"] .taxi-game-timer-ring:has([data-sim-timer]){font-size:12px!important}
}
@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-template-hint-placeholder{display:block!important;width:44px!important;height:44px!important}
 [data-quiz-template="short"] .taxi-game-matches{width:100%!important}
 [data-quiz-template="short"] .taxi-game-matches>div{display:grid!important;grid-template-rows:auto!important;grid-auto-rows:minmax(44px,1fr)!important;gap:8px!important;min-width:0!important}
 [data-quiz-template="short"] .taxi-game-matches h3{margin:0 0 4px!important;font-size:14px!important;line-height:1.5!important;font-weight:600!important;text-align:center!important;color:#a9c0ce!important}
}
@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-phrase-sentence>.taxi-game-prompt{margin:0!important}
 .exam-plus-question [data-quiz-template="short"] .taxi-template-answer-row{grid-template-columns:minmax(0,1fr)!important}
 .exam-plus-question [data-quiz-template="short"] .taxi-template-answers{grid-column:1!important}
 .exam-plus-question [data-quiz-template="short"] .taxi-choices{width:100%!important}
}


@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-template-left-controls{display:flex!important;align-items:flex-start!important;gap:12px!important;min-width:0!important;min-height:44px!important;grid-column:1!important;grid-row:1!important}
 [data-quiz-template="short"] .taxi-template-right-controls{display:flex!important;flex-direction:row-reverse!important;flex-wrap:nowrap!important;justify-content:flex-end!important;align-items:flex-start!important;gap:12px!important;min-width:0!important;grid-column:2!important;grid-row:1!important}
 [data-quiz-template="short"] .taxi-short-title-group{display:flex!important;align-items:center!important;justify-content:center!important;position:static!important;grid-column:1 / -1!important;grid-row:2!important;transform:none!important;min-height:0!important;width:100%!important;max-width:100%!important;min-width:0!important;text-align:center!important;pointer-events:none!important}
 [data-quiz-template="short"] .taxi-short-title-group>.taxi-short-title{display:block!important;width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:clamp(16px,2.4vw,24px)!important;text-align:center!important}
 [data-quiz-template="short"] .taxi-short-audio-slot{display:block;flex:0 0 44px;margin:0}
 [data-quiz-template="short"] .taxi-short-audio-slot:empty{display:none}
 [data-quiz-template="short"] .taxi-quiz-audio{display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:6px!important;margin:0!important;border:1px solid #46728b!important;border-radius:50%!important;background:#102a3d!important;color:#9bddeb!important;cursor:pointer!important}
 [data-quiz-template="short"] .taxi-quiz-audio .taxi-vocab-graphic,[data-quiz-template="short"] .taxi-quiz-audio svg{display:block!important;width:20px!important;height:20px!important}
 [data-quiz-template="short"] .taxi-quiz-audio[aria-pressed="true"]{background:#204e63!important;border-color:#8bd9ed!important}
}


@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-game-answer-badge{box-shadow:0 0 0 3px #092235!important}
}

@layer taxi-quiz-component {
 @media(max-width:760px){
  [data-quiz-template="short"] .taxi-short-exercise-heading{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:10px!important;align-items:center!important}
  [data-quiz-template="short"] .taxi-template-left-controls{grid-column:1!important;grid-row:1!important;gap:8px!important;min-width:0!important}
  [data-quiz-template="short"] .taxi-template-right-controls{grid-column:2!important;grid-row:1!important;flex-wrap:nowrap!important;justify-content:flex-end!important;gap:8px!important}
  [data-quiz-template="short"] .taxi-short-title-group{grid-column:1 / -1!important;grid-row:2!important;min-height:0!important}
  [data-quiz-template="short"] .taxi-short-title-group>.taxi-short-title{font-size:22px!important;line-height:1.25!important}
 }
}

@layer taxi-quiz-component {
 #taxiShiftQuizSession [data-quiz-template="short"] .shift-passage{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important}
}

@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-template-answer-row{width:calc(100% + 24px)!important;margin-inline:-12px!important}
 [data-quiz-template="short"] :is(.taxi-choice,.taxi-reading-choice,.taxi-game-option,.taxi-game-word,.journey-rule-check>button){min-height:54px!important;padding:10px 12px!important}
}

@layer taxi-quiz-component {
 :is(#taxiQuizSession,#taxiGamesSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount):not([hidden]):not(:empty),:is(.route-exercise-overlay,.taxi-wordfuel-dialog:has([data-quiz-template="short"]))[open]{box-sizing:border-box!important;display:block!important;position:fixed!important;inset:auto 0 0!important;z-index:30!important;width:100%!important;max-width:none!important;max-height:calc(100dvh - env(safe-area-inset-top,0px))!important;height:auto!important;margin:0!important;padding:0 0 env(safe-area-inset-bottom,0px)!important;border:0!important;border-radius:18px 18px 0 0!important;background:rgb(9 34 53 / .75)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;animation:none!important}
 :is(#taxiQuizSession,#taxiGamesSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,.route-exercise-overlay,.taxi-wordfuel-dialog:has([data-quiz-template="short"])) [data-quiz-template="short"]{width:100%!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important}
 :is(#taxiQuizSession,#taxiGamesSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,.route-exercise-overlay,.taxi-wordfuel-dialog:has([data-quiz-template="short"])) :is(.taxi-quiz-card,.taxi-game-session,.taxi-exam-panel,.taxi-quiz-template,.taxi-learning-body,.shift-session,.exam-plus-question){box-sizing:border-box!important;display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
 #taxiQuizSession .taxi-section-source{display:none!important}
 #taxiQuizSession .taxi-exam-status:empty{display:none!important}
 body:has(.view:not([hidden]) :is(#taxiQuizSession,#taxiGamesSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount):not([hidden]):not(:empty)){overflow:hidden!important}
 @media(prefers-reduced-motion:reduce){:is(#taxiQuizSession,#taxiGamesSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,.route-exercise-overlay,.taxi-wordfuel-dialog:has([data-quiz-template="short"])){animation:none!important}}
}

@layer taxi-quiz-component {
 #taxiGamesSession.is-short-quiz>.taxi-game-session{display:contents!important;box-shadow:none!important}
}

@layer taxi-quiz-component {
 body:has(#scenariosView:not([hidden]) [data-reading-form]) main{padding-inline:0!important}
 #scenariosView:has([data-reading-form]),#scenariosView :is(#taxiScenariosMount,#taxiExamMount,.taxi-exam-panel,.taxi-scenario-reading-list,.taxi-long-reading){box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;margin-inline:0!important;padding-inline:0!important}
 #scenariosView .taxi-long-reading{border-inline:0!important;border-radius:0!important}
 #scenariosView .taxi-long-reading>:is(.taxi-reading-header,h2,.taxi-module-intro){padding-inline:20px!important}
 #scenariosView [data-reading-form] [data-quiz-template="short"]{width:100%!important;max-width:none!important;margin-inline:0!important;border-inline:0!important;border-radius:0!important}
}

@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-short-exercise-heading:has(.taxi-quiz-answer-progress){grid-template-columns:auto minmax(0,1fr) auto!important}
 [data-quiz-template="short"] .taxi-short-exercise-heading:has(.taxi-quiz-answer-progress) .taxi-template-right-controls{grid-column:3!important}
 [data-quiz-template="short"] .taxi-quiz-answer-progress{grid-column:2!important;grid-row:1!important;align-self:center!important;justify-self:center!important;width:100%!important;max-width:240px!important;min-width:0!important;display:flex!important;gap:3px!important;margin:0!important}
 [data-quiz-template="short"] .taxi-quiz-answer-progress i{min-width:0!important;height:5px!important;flex:1!important;background:#44627870!important;border-radius:2px!important}
 [data-quiz-template="short"] .taxi-quiz-answer-progress i.is-covered{background:#3cc58f!important;box-shadow:0 0 5px #3cc58f55!important}
}

@layer taxi-quiz-component {
 #taxiGamesSession [data-quiz-template="short"] .taxi-truth-statement>.taxi-game-prompt{display:inline!important}
}

@layer taxi-quiz-component {
 #taxiGamesSession [data-quiz-template="short"].taxi-match-short .taxi-game-matches{max-width:720px!important;margin:0 auto!important;gap:12px!important}
 #taxiGamesSession [data-quiz-template="short"].taxi-match-short .taxi-game-word{min-height:48px!important;padding:8px 12px!important}
 :is(#taxiQuizSession,#taxiGamesSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount,.route-exercise-overlay,.taxi-wordfuel-dialog:has([data-quiz-template="short"]))[data-quiz-entrance-complete]{animation:none!important}
}

@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-template-hint.taxi-hint-symbol{font-size:24px!important;font-weight:600!important;line-height:1!important}
 [data-quiz-template="short"] .taxi-quiz-answer-progress{width:max-content!important;max-width:min(240px,100%)!important;flex-wrap:wrap!important;justify-content:center!important;gap:4px!important}
 [data-quiz-template="short"] .taxi-quiz-answer-progress i{width:5px!important;height:5px!important;flex:0 0 5px!important;border-radius:50%!important}
}

@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-quiz-answer-progress i{box-sizing:border-box!important;display:grid!important;place-items:center!important;width:12px!important;height:14px!important;flex:0 0 12px!important;border-radius:0!important;background:transparent!important;font:700 13px/1 sans-serif!important;color:#3cc58f!important;box-shadow:none!important}
 [data-quiz-template="short"] .taxi-quiz-answer-progress i:empty::after{content:'';width:5px;height:5px;border-radius:50%;background:#44627870}
 [data-quiz-template="short"] .taxi-quiz-answer-progress i.is-incorrect{color:#ef8290!important}
 @media(max-width:760px){#taxiGamesSession [data-quiz-template="short"].taxi-match-short .taxi-game-matches{max-width:none!important}}
}
@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-quiz-answer-progress i:is(.is-covered,.is-incorrect){background:transparent!important;box-shadow:none!important}
}
@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-game-option-word{align-items:center!important}
 [data-quiz-template="short"] :is(.taxi-game-finnish-word,.taxi-game-answer-translation){align-self:center!important}
}

@layer taxi-quiz-component {
 [data-quiz-template="short"] .taxi-short-exercise-heading:has(.taxi-quiz-answer-progress){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}
 [data-quiz-template="short"] .taxi-quiz-answer-progress{max-width:min(240px,calc(100vw - 240px))!important}
 [data-quiz-template="short"] .taxi-template-left-controls{justify-self:start!important}
 [data-quiz-template="short"] .taxi-template-right-controls{justify-self:end!important}
 :is(#taxiQuizSession,#taxiGamesSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount):not([hidden]):not(:empty),:is(.route-exercise-overlay,.taxi-wordfuel-dialog:has([data-quiz-template="short"]))[open],.taxi-learning-dialog:not(.taxi-skillpilot-dialog):not(.taxi-speaking-dialog)[open]:has([data-quiz-template="short"]){height:82dvh!important;max-height:82dvh!important;max-width:960px!important;width:calc(100% - 16px)!important;margin-inline:auto!important;inset-inline:0!important;border-radius:18px 18px 0 0!important;overflow-y:auto!important}
 :is(.taxi-scenario-quiz,.taxi-career-situation-quiz,.exam-plus-question,#scenariosView) :is(.taxi-scenario-prompt,.taxi-quiz-template-prompt,.taxi-long-passage,.route-passage,.taxi-game-prompt,.taxi-choice,.taxi-reading-choice,.taxi-game-option){font-size:18px!important;line-height:1.5!important;font-weight:400!important}
 :is(.taxi-scenario-quiz,.taxi-career-situation-quiz,.exam-plus-question,#scenariosView) :is(.taxi-scenario-prompt,.taxi-quiz-template-prompt,.taxi-long-passage,.route-passage) :is(strong,b){font-weight:400!important}
 :is(.taxi-scenario-quiz,.taxi-career-situation-quiz,.exam-plus-question,#scenariosView) .taxi-short-title{font-size:20px!important;font-weight:500!important}
}

@layer taxi-quiz-component {
 #taxiAdvancedSession .exam-plus-footer{box-sizing:border-box!important;position:relative!important;width:100%!important;margin:0!important;padding:16px!important;background:rgb(9 34 53 / .98)!important;color:var(--taxi-text,#e2f2fa)!important;backdrop-filter:none;-webkit-backdrop-filter:none}
 #taxiAdvancedSession .exam-plus-map{margin:0 0 12px!important;gap:6px!important}
 #taxiAdvancedSession .exam-plus-map button{color:var(--taxi-text,#e2f2fa)!important;background:var(--taxi-surface,#102a3d)!important;min-height:36px!important;font-size:12px!important}
 #taxiAdvancedSession .exam-plus-map button.is-answered{background:var(--taxi-hover,#193e55)!important}
}

/* Quick quiz sheets grow upward; their controls stay at the bottom. */
@layer taxi-quiz-component {
 #taxiGamesSession.is-short-quiz:not([hidden]){height:auto!important;min-height:0!important;padding-bottom:0!important;max-height:82vh!important;max-height:82dvh!important;overflow:hidden!important}
 #taxiGamesSession.is-short-quiz [data-quiz-template="short"]{display:flex!important;flex-direction:column!important;max-height:82vh!important;max-height:82dvh!important;padding:20px 20px 0!important;overflow:hidden!important}
 #taxiGamesSession.is-short-quiz .taxi-short-exercise-heading{display:flex!important;flex-direction:column!important;flex:none!important;gap:12px!important;margin:0 0 16px!important}
 #taxiGamesSession.is-short-quiz .taxi-short-title-group{order:0!important}
 #taxiGamesSession.is-short-quiz .taxi-quiz-answer-progress{order:1!important;max-width:240px!important;align-self:center!important}
 #taxiGamesSession.is-short-quiz .taxi-short-content{flex:0 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain}
 #taxiGamesSession.is-short-quiz .taxi-quick-controls{display:flex!important;align-items:center!important;justify-content:space-between!important;flex:none!important;gap:12px!important;margin:12px -20px 0!important;padding:12px 20px calc(20px + env(safe-area-inset-bottom,0px))!important;background:rgb(9 34 53 / .9)!important;backdrop-filter:none;-webkit-backdrop-filter:none}
 #taxiGamesSession.is-short-quiz :is(.taxi-template-left-controls,.taxi-template-right-controls){align-items:center!important;gap:8px!important}
 #taxiGamesSession.is-short-quiz .taxi-game-phrase-feedback{flex:none!important}
}

@layer taxi-quiz-component {
 #taxiGamesSession .taxi-quick-question{position:relative!important;min-height:54px;margin-bottom:16px}
 #taxiGamesSession .taxi-quick-question .taxi-phrase-sentence{margin-bottom:0!important}
 #taxiGamesSession .taxi-quick-feedback{box-sizing:border-box;position:absolute;inset:0;z-index:2;padding:8px 12px;border-radius:12px;background:rgb(9 34 53 / .96);backdrop-filter:none;-webkit-backdrop-filter:none;overflow:auto}
 #taxiGamesSession .taxi-quick-feedback:has([aria-hidden="true"]){visibility:hidden;pointer-events:none}
 #taxiGamesSession .taxi-quick-feedback .taxi-game-phrase-feedback{margin:0!important;min-height:0!important;padding:0!important}
}

@layer taxi-quiz-component {
 #taxiGamesSession.is-short-quiz .taxi-template-answer-row{width:100%!important;margin-inline:0!important}
}

/* Similar answer layouts share enough room for their taller questions. */
@layer taxi-quiz-component {
 #taxiGamesSession.is-short-quiz:not([hidden]){--taxi-quick-group-height:420px;--taxi-quick-group-limit:82vh}
 #taxiGamesSession.is-short-quiz:not([hidden])[data-quick-quiz-layout="two-answer"]{--taxi-quick-group-height:320px}
 #taxiGamesSession.is-short-quiz:not([hidden])[data-quick-quiz-layout="match"]{--taxi-quick-group-height:560px}
 #taxiGamesSession.is-short-quiz [data-quiz-template="short"]{min-height:min(var(--taxi-quick-group-height),var(--taxi-quick-group-limit))!important}
 #taxiGamesSession.is-short-quiz .taxi-quick-controls{margin-top:auto!important}
 #taxiGamesSession.is-short-quiz .taxi-short-content{padding-bottom:12px!important}
 @supports(height:1dvh){#taxiGamesSession.is-short-quiz:not([hidden]){--taxi-quick-group-limit:82dvh}}
}

@layer taxi-quiz-component {
 #taxiGamesSession.is-short-quiz .taxi-quick-controls{display:grid!important;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr)!important;gap:8px!important}
 #taxiGamesSession.is-short-quiz .taxi-quick-controls>.taxi-template-left-controls{grid-column:1!important;grid-row:1!important;justify-self:start!important}
 #taxiGamesSession.is-short-quiz .taxi-quick-controls>.taxi-template-right-controls{grid-column:3!important;grid-row:1!important;justify-self:end!important}
 #taxiGamesSession .taxi-quick-clock{grid-column:2;grid-row:1;display:grid;place-items:center;width:44px;min-height:44px}
}

/* Give quick quiz answers the available width without nested scrolling. */
@layer taxi-quiz-component {
 #taxiGamesSession.is-short-quiz:not([hidden]){background:rgb(9 34 53 / .25)!important;overflow-y:auto!important}
 #taxiGamesSession.is-short-quiz [data-quiz-template="short"]{max-height:none!important;overflow:visible!important;padding-inline:10px!important}
 #taxiGamesSession.is-short-quiz .taxi-short-content{flex:none!important;overflow:visible!important}
 #taxiGamesSession.is-short-quiz .taxi-choice-letter{display:none!important}
 #taxiGamesSession.is-short-quiz :is(.taxi-game-option,.taxi-game-word){overflow:visible!important;padding-inline:8px!important}
 #taxiGamesSession.is-short-quiz .taxi-quick-controls{position:sticky;bottom:0;z-index:5;margin-inline:-10px!important}
 @media(max-width:760px){#taxiGamesSession.is-short-quiz:not([hidden]){width:100%!important;max-width:none!important}}
}

/* The document scrolls for long rounds; the quiz itself never scrolls. */
@layer taxi-quiz-component {
 body:has(#quizView:not([hidden]) #taxiGamesSession.is-short-quiz:not([hidden])){overflow-y:auto!important}
 body:has(#quizView:not([hidden]) #taxiGamesSession.is-short-quiz:not([hidden])) main{padding:96px 0 0!important;margin-left:0!important;width:100%!important;max-width:none!important}
 #quizView:has(>#taxiGamesSession.is-short-quiz:not([hidden])){display:flex!important;flex-direction:column!important;justify-content:flex-end!important;min-height:calc(100svh - 96px)!important;padding:0!important}
 #quizView:has(>#taxiGamesSession.is-short-quiz:not([hidden]))>:not(#taxiGamesSession){display:none!important}
 #taxiGamesSession.is-short-quiz:not([hidden]){position:relative!important;inset:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;flex:none!important;margin:0 auto!important}
 #taxiGamesSession.is-short-quiz [data-quiz-template="short"]{max-height:none!important;overflow:visible!important;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
 #taxiGamesSession.is-short-quiz .taxi-quick-controls{position:fixed!important;left:50%!important;right:auto!important;bottom:0!important;transform:translateX(-50%)!important;box-sizing:border-box!important;width:min(960px,100vw)!important;margin:0!important}
 #taxiGamesSession .taxi-quick-feedback{inset:auto 0 0;min-height:100%;overflow:visible}
}

@layer taxi-quiz-component {
 #taxiGamesSession.is-short-quiz [data-quiz-template="short"]:not(.taxi-phrase-result) .taxi-short-title-group{display:none!important}
}

@layer taxi-quiz-component {
 body:has(#quizView:not([hidden]) #taxiGamesSession.is-short-quiz:not([hidden])) .taxi-mobile-nav{visibility:hidden!important;pointer-events:none!important}
}

/* Content ends just above the fixed controls; reuse the module fill colour. */
@layer taxi-quiz-component {
 #taxiGamesSession.is-short-quiz:not([hidden]){background:rgb(var(--taxi-panel-rgb,12 41 60) / .25)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 #taxiGamesSession.is-short-quiz [data-quiz-template="short"]{min-height:0!important;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}

@layer taxi-quiz-component {
 #taxiGamesSession.is-short-quiz :is(.taxi-game-option,.taxi-game-word){min-height:44px!important;padding-block:8px!important;font-weight:400!important}
 #taxiGamesSession.is-short-quiz :is(.taxi-game-prompt,.taxi-quiz-template-prompt,.taxi-phrase-sentence,.taxi-game-option-word),#taxiGamesSession.is-short-quiz .taxi-short-content :is(strong,b){font-weight:400!important}
 #taxiGamesSession .taxi-quiz-missing-word{display:inline-block;width:8ch;max-width:40vw;white-space:nowrap;text-align:center}
}

/* Long Advanced Finnish questions use one document scroll surface. */
@layer taxi-quiz-component {
 body:has(#quizView:not([hidden]) #taxiAdvancedSession:not([hidden])){overflow-y:auto!important}
 body:has(#quizView:not([hidden]) #taxiAdvancedSession:not([hidden])) main{padding:96px 0 0!important;margin-left:0!important;width:100%!important;max-width:none!important}
 #quizView:has(>#taxiAdvancedSession:not([hidden])){display:block!important;min-height:calc(100svh - 96px)!important;padding:0!important}
 #quizView:has(>#taxiAdvancedSession:not([hidden]))>:not(#taxiAdvancedSession){display:none!important}
 #quizView #taxiAdvancedSession:not([hidden]){position:relative!important;inset:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0 auto!important;padding:20px 12px calc(96px + env(safe-area-inset-bottom,0px))!important;animation:none!important;overflow-anchor:none;scroll-margin-top:96px}
 #taxiAdvancedSession .exam-plus-question{scroll-margin-top:96px}
}

/* Activity panels are runtime UI, independent of the editable page canvas. */
@layer taxi-quiz-component {
 #quizView:has(>:is(#taxiQuizSession,#taxiGamesSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount):not([hidden]):not(:empty))>:not(#taxiQuizSession,#taxiGamesSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount){display:none!important}
 #quizView :is(#taxiQuizSession,#taxiShiftQuizSession):not([hidden]){padding:18px 16px calc(16px + env(safe-area-inset-bottom,0px))!important}
 #quizView :is(#taxiQuizSession,#taxiShiftQuizSession) .taxi-quiz-template-meta{box-sizing:border-box!important;gap:12px!important;padding:0 8px 12px!important;flex-wrap:wrap!important;min-width:0!important}
 #quizView :is(#taxiQuizSession,#taxiShiftQuizSession) .taxi-quiz-template-meta>*{min-width:0!important;overflow-wrap:anywhere}
 #quizView :is(#taxiQuizSession,#taxiShiftQuizSession) .taxi-template-answer-row{width:100%!important;margin-inline:0!important}
}
@layer taxi-quiz-component {
 body:has(#quizView>:is(#taxiQuizSession,#taxiGamesSession,#taxiAdvancedSession,#taxiShiftQuizSession,#taxiJourneyQuizMount):not([hidden]):not(:empty)) .taxi-mobile-nav{visibility:hidden!important;pointer-events:none!important}
 @media(max-width:480px){#quizView :is(#taxiQuizSession,#taxiShiftQuizSession) .taxi-choice{font-size:16px!important;padding:9px 8px!important;gap:7px!important}}
}

/* A compact desktop exercise with separate controls, without a footer colour band. */
@layer taxi-quiz-component {
 #quizView #taxiGamesSession.is-short-quiz:not([hidden]){width:min(760px,100%)!important;max-width:760px!important;background:transparent!important}
 #quizView #taxiGamesSession.is-short-quiz .taxi-template-answer-row{width:100%!important;max-width:640px!important;margin-inline:auto!important}
 #quizView #taxiGamesSession.is-short-quiz .taxi-quick-controls{width:min(760px,100vw)!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:0!important;box-shadow:none!important;padding:12px 16px calc(16px + env(safe-area-inset-bottom,0px))!important}
 #quizView #taxiGamesSession .taxi-game-option-word:not([data-game-reserved-translation]){display:block!important;flex:1 1 auto!important;width:100%!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
}
@layer taxi-quiz-component {
 #quizView:has(>#taxiGamesSession.is-short-quiz:not([hidden])){justify-content:center!important}
 #quizView #taxiGamesSession.is-short-quiz [data-quiz-template="short"]{padding-bottom:20px!important}
 #quizView #taxiGamesSession.is-short-quiz .taxi-quick-controls{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;margin:18px 0 0!important;padding:0!important}
 #quizView #taxiGamesSession .taxi-quick-question{min-height:72px}
 #quizView #taxiGamesSession .taxi-quick-feedback{position:relative!important;inset:auto!important;min-height:0!important;background:transparent!important;padding:8px 0!important}
 #quizView #taxiGamesSession .taxi-quick-feedback:has([aria-hidden="true"]){display:none!important}
 #quizView #taxiGamesSession .taxi-quick-question:has(.taxi-game-phrase-feedback[role="status"])>:not(.taxi-quick-feedback){display:none!important}
}
@layer taxi-quiz-component {
 #taxiGamesSession .taxi-phrase-result [data-result-label]{position:relative!important;overflow:visible!important}
 #taxiGamesSession .taxi-phrase-result :is(.taxi-round-result-score,.taxi-round-result-message){text-align:center!important}
 #taxiGamesSession .taxi-phrase-result .taxi-game-score{margin:20px 0!important;font-size:48px!important;line-height:1.1!important}
 #quizView #taxiGamesSession .taxi-phrase-result .taxi-quick-controls{padding-bottom:20px!important}
}

/* Route exercises share the bottom control layout, including audio and timer. */
@layer taxi-quiz-component {
 #taxiRouteMount .route-exercise-overlay[open]:has([data-quiz-controls="bottom"]){background:#091e2ff5!important}
 #taxiRouteMount .route-exercise-overlay [data-quiz-controls="bottom"]{display:flex!important;flex-direction:column!important;min-height:100%!important;box-sizing:border-box!important}
 #taxiRouteMount .route-exercise-overlay [data-quiz-controls="bottom"] .taxi-short-content{flex:0 0 auto!important}
 #taxiRouteMount .route-exercise-overlay .taxi-short-controls{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;flex:none!important;position:sticky!important;bottom:0!important;margin-top:auto!important;padding:16px 0 0!important;background:#091e2f!important}
 #taxiRouteMount .route-exercise-overlay .taxi-short-controls>.taxi-template-left-controls{grid-column:1!important;grid-row:1!important;justify-self:start!important}
 #taxiRouteMount .route-exercise-overlay .taxi-short-controls>.taxi-quick-clock{display:grid;place-items:center;grid-column:2;grid-row:1}
 #taxiRouteMount .route-exercise-overlay .taxi-short-controls>.taxi-template-right-controls{grid-column:3!important;grid-row:1!important;justify-self:end!important}
 body:has(#taxiRouteMount .route-exercise-overlay[open]) .taxi-mobile-nav{visibility:hidden!important;pointer-events:none!important}
}
@layer taxi-quiz-component {
 #taxiRouteMount:has(>.route-exercise-overlay[open])>:not(.route-exercise-overlay){visibility:hidden!important;pointer-events:none!important}
 body:has(#taxiRouteMount .route-exercise-overlay[open]) #designSiteNav{display:none!important}
 #taxiRouteMount .route-answer-example[aria-hidden="true"]{visibility:hidden!important}
}

@layer taxi-quiz-component {
 body #taxiView dialog.route-map-shell[open]{position:fixed!important;inset:0!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#e9efdf!important}
 body #taxiView dialog.route-map-shell[open] .route-map{width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important}
 body #taxiView .route-map-close{position:absolute!important;top:calc(12px + env(safe-area-inset-top))!important;right:calc(12px + env(safe-area-inset-right))!important;z-index:10!important;display:grid!important;place-items:center!important;width:48px!important;height:48px!important;padding:0!important;border:1px solid #cfdfec70!important;border-radius:50%!important;background:#091e2f!important;color:#e2f2fa!important;font:32px/1 sans-serif!important;box-shadow:0 2px 12px #0003!important}
 body:has(dialog.route-map-shell[open]){overflow:hidden!important}
 body:has(dialog.route-map-shell[open]) :is(.taxi-mobile-nav,#designSiteNav){display:none!important}
}

@layer taxi-quiz-component {
 body #taxiView .route-exercise-overlay .route-map-close{position:sticky!important;float:right!important;top:0!important;right:0!important;margin:0 0 -48px!important;z-index:20!important}
}
