/* Level6 website design foundation, adapted for the training workspace. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/inter-latin-ext-variable.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
:root {
  color-scheme: light;
  --font-l6-primary: "Inter Variable", Inter, Arial, sans-serif;
  --color-l6-navy: #102f45;
  --color-l6-navy-deep: #082437;
  --color-l6-blue: #0876d9;
  --color-l6-blue-hover: #0065bd;
  --color-l6-yellow: #f4c617;
  --color-l6-surface: #f7f8f7;
  --color-l6-secondary: #5c6d78;
  --color-l6-border: #d8e0e5;
  --color-l6-error: #9c1c2d;
  --header-height: 88px;
  --radius-l6-small: 6px;
  --radius-l6-card: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 100px); }
body { margin: 0; font-family: var(--font-l6-primary); font-size: 16px; line-height: 1.6; color: var(--color-l6-navy); background: var(--color-l6-surface); }
body:not(.auth-page) { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
h3 { font-size: 1.5rem; }
p { overflow-wrap: anywhere; }
a { color: var(--color-l6-blue-hover); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--color-l6-blue); outline-offset: 4px; }
.site-container { width: min(100% - 80px, 1200px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: white; border: 2px solid var(--color-l6-blue); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--color-l6-border); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 194px; height: auto; display: block; }
.portal-label { border-left: 1px solid var(--color-l6-border); padding-left: 24px; font-size: .8125rem; color: var(--color-l6-secondary); line-height: 1.3; }
.header-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-link { color: var(--color-l6-navy); font-size: .875rem; font-weight: 600; text-decoration: none; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 6px; cursor: pointer; list-style: none; font-size: .875rem; font-weight: 600; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; background: #eaf3fb; color: var(--color-l6-blue-hover); border: 1px solid #d3e5f5; border-radius: 50%; text-transform: uppercase; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 12px); width: 240px; padding: 8px; background: #fff; border: 1px solid var(--color-l6-border); border-radius: 12px; box-shadow: 0 12px 32px rgb(8 36 55 / 12%); }
.account-name { padding: 8px 12px 12px; font-size: .875rem; font-weight: 600; border-bottom: 1px solid var(--color-l6-border); }
.account-dropdown a, .account-dropdown button { display: block; padding: 12px; color: var(--color-l6-navy); text-decoration: none; border-radius: 6px; font-size: .875rem; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--color-l6-surface); }
.website-link { margin-left: auto; font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--color-l6-navy); }
.site-footer { margin-top: 64px; border-top: 1px solid var(--color-l6-border); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px; color: var(--color-l6-secondary); font-size: .8125rem; }
.footer-inner span span { margin: 0 8px; color: #a8b4bc; }
.footer-inner a { font-weight: 600; text-decoration: none; }
.eyebrow { margin-bottom: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-l6-blue-hover); }
.page-description { margin-top: 14px; color: var(--color-l6-secondary); max-width: 60ch; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 50px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius-l6-small); font-size: .9375rem; line-height: 1.4; font-weight: 600; text-align: center; text-decoration: none; overflow-wrap: anywhere; min-width: 0; transition: background-color .15s, border-color .15s; }
.button-primary { background: var(--color-l6-blue); color: #fff; }
.button-primary:hover { background: var(--color-l6-blue-hover); color: #fff; }
.button-secondary { background: #fff; color: var(--color-l6-navy); border-color: var(--color-l6-border); }
.button-secondary:hover { background: #edf4f9; border-color: #9bb7ca; }
.button-full { width: 100%; }
.button-small { min-height: 44px; padding: 10px 16px; font-size: .8125rem; white-space: nowrap; }
.text-link { font-weight: 600; font-size: .875rem; }
.back-link { display: inline-flex; margin: 26px 0; font-size: .875rem; font-weight: 600; text-decoration: none; }
.tag { display: inline-flex; width: fit-content; padding: 5px 10px; border: 1px solid var(--color-l6-border); border-radius: 4px; color: var(--color-l6-secondary); background: #fff; font-size: .75rem; font-weight: 600; white-space: normal; max-width: 100%; }
.notice { padding: 16px 20px; margin-block: 16px; border: 1px solid; border-radius: var(--radius-l6-small); font-size: .9375rem; overflow-wrap: anywhere; }
.notice-error { color: var(--color-l6-error); background: #fff2f3; border-color: #e9bac1; }
.notice-success { color: #17633f; background: #edf8f1; border-color: #add7be; }
.flash-container:has(.notice) { padding-top: 8px; }
.form-stack { display: grid; gap: 24px; }
.field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.field label { color: var(--color-l6-navy); font-size: .875rem; font-weight: 600; }
.field input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; color: var(--color-l6-navy); background: white; border: 1px solid #aabac5; border-radius: var(--radius-l6-small); line-height: 1.5; }
.field input::placeholder { color: #6c7c87; }
.field input:focus { border-color: var(--color-l6-blue); outline: 3px solid rgb(8 118 217 / 18%); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--color-l6-error); }
.field-error { font-size: .8125rem; color: var(--color-l6-error); }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.password-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 60px; padding: 6px; background: white; border: 0; border-radius: 4px; font-size: .8125rem; font-weight: 600; color: var(--color-l6-blue-hover); }
.code-input { max-width: 280px; font-variant-numeric: tabular-nums; letter-spacing: .2em; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - var(--header-height)); }
.auth-intro { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; padding: clamp(48px, 6vw, 100px); color: white;
  background-color: var(--color-l6-navy);
  background-image: linear-gradient(110deg, rgb(8 36 55 / 90%) 0%, rgb(8 36 55 / 80%) 58%, rgb(8 36 55 / 78%) 100%), url("../images/training-aircraft.avif");
  background-size: cover;
  background-position: center;
}
.auth-intro-content { position: relative; z-index: 1; max-width: 440px; }
.auth-intro .eyebrow { color: #a4d6ff; margin-bottom: 24px; }
.auth-intro h2 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.05; margin-bottom: 28px; }
.auth-intro p:not(.eyebrow) { color: #d0dfe8; font-size: 1.0625rem; max-width: 37ch; }
.intro-rule { width: 48px; height: 4px; background: var(--color-l6-yellow); margin-block: 36px 24px; }
.auth-intro .intro-caption { font-size: .8125rem !important; }
.auth-content { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; padding: 56px 40px; }
.auth-card { width: min(100%, 440px); padding: 36px; background: white; border: 1px solid var(--color-l6-border); border-radius: var(--radius-l6-card); box-shadow: 0 8px 32px rgb(8 36 55 / 4%); }
.auth-card h1 { font-size: 1.875rem; }
.auth-card .page-description { font-size: .9375rem; margin-bottom: 28px; }
.auth-footnote { font-size: .75rem; color: var(--color-l6-secondary); }
.divider { display: flex; align-items: center; gap: 16px; color: var(--color-l6-secondary); margin-block: 24px; font-size: .8125rem; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--color-l6-border); flex: 1; }
.welcome-banner { background: var(--color-l6-navy); color: #fff; padding-block: 50px 56px; position: relative; overflow: hidden; }
.welcome-banner .eyebrow { color: #a4d6ff; }
.welcome-banner h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1.08; }
.welcome-banner p:last-child { max-width: 62ch; color: #d0dfe8; margin-top: 20px; }
.section-space { padding-top: 44px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading > p { color: var(--color-l6-secondary); font-size: .875rem; }
.database-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.database-card { min-width: 0; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--color-l6-border); border-radius: var(--radius-l6-card); background: white; transition: border-color .15s, box-shadow .15s; }
.database-card:hover, .database-card:focus-within { border-color: #90b5cf; box-shadow: 0 8px 24px rgb(8 36 55 / 5%); }
.card-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.level-marker { min-width: 64px; height: 56px; display: grid; place-items: center; padding-inline: 10px; background: #edf5fc; color: var(--color-l6-blue-hover); border-radius: 8px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.05em; }
.database-card > p { color: var(--color-l6-secondary); margin-top: 12px; max-width: 40ch; }
.card-detail { font-size: .8125rem; margin-block: 24px; color: var(--color-l6-secondary); border-top: 1px solid var(--color-l6-border); padding-top: 18px; }
.database-card .button { margin-top: auto; justify-content: space-between; }
.preparation-note { display: flex; align-items: start; gap: 12px; margin-top: 20px; color: var(--color-l6-secondary); font-size: .8125rem; }
.note-symbol { display: grid; place-items: center; flex: 0 0 18px; height: 18px; border: 1px solid #8ea0ac; border-radius: 50%; font-size: .6875rem; font-weight: 700; margin-top: 2px; }
.briefing-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 56px; padding-top: 56px; }
.briefing-copy > p:last-child { margin-top: 16px; color: var(--color-l6-secondary); max-width: 37ch; }
.video-frame { aspect-ratio: 16 / 9; background: #e6edf2; border: 1px solid var(--color-l6-border); border-radius: 12px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.practice-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding-bottom: 28px; }
.practice-heading h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); text-transform: none; }
.practice-heading > .tag { margin-top: 12px; }
.practice-toolbar { flex-wrap: wrap; position: sticky; top: var(--header-height); z-index: 10; display: flex; align-items: center; gap: 16px; padding: 14px 20px; border: 1px solid var(--color-l6-border); border-radius: 8px; background: #fff; box-shadow: 0 4px 16px rgb(8 36 55 / 4%); }
.toolbar-label { font-size: .8125rem; font-weight: 600; }
.timer { font-size: 1.5rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; padding: 8px 14px; border-radius: 6px; background: #edf5fc; }
.timer.is-expired { color: var(--color-l6-error); background: #fff2f3; font-size: 1rem; }
.timer-caption { font-size: .8125rem; color: var(--color-l6-secondary); }
.toolbar-jump { margin-left: auto; font-size: .8125rem; font-weight: 600; text-decoration: none; }
.practice-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; padding-top: 32px; }
.session-sidebar { align-self: start; position: sticky; top: calc(var(--header-height) + 100px); }
.section-nav { border: 1px solid var(--color-l6-border); border-radius: 12px; background: white; padding: 18px 12px 12px; }
.section-nav-title { padding: 0 12px 14px; font-size: .875rem; font-weight: 600; }
.section-nav-list { display: grid; gap: 4px; list-style: none; padding: 0; margin: 0; }
.section-nav-list li { min-width: 0; }
.section-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; color: var(--color-l6-navy); font-size: .8125rem; line-height: 1.4; text-decoration: none; border-radius: 6px; }
.section-nav a:hover, .section-nav a:focus-visible { background: #edf5fc; }
.section-nav a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.section-number { flex: 0 0 26px; height: 26px; display: grid; place-items: center; color: var(--color-l6-blue-hover); background: #edf5fc; border-radius: 6px; font-size: .75rem; font-weight: 600; line-height: 1; }
.section-nav-note { border-top: 1px solid var(--color-l6-border); margin: 12px 12px 0; padding-top: 14px; color: var(--color-l6-secondary); font-size: .75rem; line-height: 1.5; }
.practice-section { margin-bottom: 36px; }
.practice-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.practice-section-heading > div { flex: 1 1 12rem; min-width: 0; }
.practice-sections { min-width: 0; }
.practice-section-heading h2 { font-size: 1.375rem; letter-spacing: -.025em; }
.practice-section-heading .eyebrow { font-size: .6875rem; margin-bottom: 6px; }
.section-description { color: var(--color-l6-secondary); font-size: .875rem; margin-bottom: 20px; max-width: 70ch; }
.question-list { display: grid; gap: 16px; }
.question-card { border: 1px solid var(--color-l6-border); border-radius: var(--radius-l6-card); background: white; padding: 24px; min-width: 0; }
.question-caption { display: flex; align-items: start; justify-content: space-between; gap: 20px; font-size: .75rem; color: var(--color-l6-secondary); margin-bottom: 20px; }
.question-caption span:first-child { flex-shrink: 0; font-weight: 600; color: var(--color-l6-navy); }
.question-caption span:last-child { text-align: right; overflow-wrap: anywhere; }
.question-audio-group { display: grid; gap: 16px; }
.audio-label { font-size: .8125rem; font-weight: 600; margin-bottom: 8px; }
.audio-player audio { display: block; width: 100%; max-width: 100%; height: 44px; }
.media-retry { margin-top: 10px; }
.audio-error, .audio-unavailable, .image-error, .image-unavailable { font-size: .8125rem; color: var(--color-l6-error); margin-top: 8px; }
.question-transcript { padding: 16px 18px; border-left: 3px solid var(--color-l6-blue); background: #edf5fc; border-radius: 0 6px 6px 0; margin-top: 20px; }
.transcript-label { display: block; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-l6-blue-hover); margin-bottom: 8px; }
.question-text { overflow-wrap: anywhere; font-size: .9375rem; }
.question-text img { max-width: 100%; height: auto; }
.question-text table { display: block; max-width: 100%; overflow-x: auto; }
.question-image { display: block; border: 1px solid var(--color-l6-border); padding: 12px; border-radius: 8px; margin-bottom: 20px; text-decoration: none; background: #fafcfd; }
.question-image img { width: 100%; max-height: 360px; object-fit: contain; display: block; margin-inline: auto; }
.question-image > span { display: block; text-align: right; font-size: .75rem; margin-top: 10px; font-weight: 600; }
.part-intro { padding: 20px 24px; margin-bottom: 26px; border-left: 3px solid var(--color-l6-yellow); border-radius: 0 8px 8px 0; background: #eef2f4; }
.part-intro p:last-child { font-size: .875rem; color: var(--color-l6-secondary); }
.session-actions { margin-top: 20px; padding: 28px; border: 1px solid var(--color-l6-border); border-radius: 12px; background: white; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.session-actions > div { margin-right: auto; }
.session-actions h2 { font-size: 1.25rem; }
.session-actions p { color: var(--color-l6-secondary); font-size: .8125rem; margin-top: 8px; }
.empty-state { background: white; padding: 40px; margin-top: 32px; border-radius: 12px; border: 1px solid var(--color-l6-border); }
.empty-state p { margin-top: 12px; color: var(--color-l6-secondary); }
.image-dialog:not([open]) { display: none; }
.image-dialog { width: min(100% - 32px, 1100px); max-height: 90dvh; padding: 20px; border: 1px solid var(--color-l6-border); border-radius: 12px; background: white; color: var(--color-l6-navy); }
.image-dialog::backdrop { background: rgb(8 36 55 / 75%); }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 16px; }
.dialog-heading h2 { font-size: 1rem; }
.image-dialog > img { display: block; width: 100%; max-height: 72dvh; object-fit: contain; }
.account-page .page-heading { margin-bottom: 36px; }
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
.settings-nav { display: grid; gap: 6px; align-self: start; position: sticky; top: calc(var(--header-height) + 24px); }
.settings-nav a { padding: 12px 16px; color: var(--color-l6-navy); font-size: .875rem; text-decoration: none; border-left: 2px solid var(--color-l6-border); }
.settings-nav a:hover { border-color: var(--color-l6-blue); background: #eaf3fb; }
.settings-sections { display: grid; gap: 24px; min-width: 0; }
.settings-card { background: white; border: 1px solid var(--color-l6-border); border-radius: 12px; padding: 28px; min-width: 0; }
.settings-heading { margin-bottom: 28px; }
.settings-heading h2 { font-size: 1.375rem; }
.settings-heading p:last-child { color: var(--color-l6-secondary); font-size: .875rem; margin-top: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.qr-code { width: 220px; height: auto; border: 1px solid var(--color-l6-border); padding: 10px; }
.setup-key { overflow-wrap: anywhere; }
@media (max-width: 1050px) {
  .portal-label { display: none; }
  .auth-intro { padding: 48px 36px; }
  .auth-content { padding: 40px 24px; }
  .auth-card { padding: 28px; }
  .practice-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 800px) {
  :root { --header-height: 76px; }
  .site-container { width: calc(100% - 40px); }
  .brand img { width: 170px; }
  .header-inner { gap: 16px; }
  .header-nav { gap: 16px; }
  .account-label { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { padding: 32px 24px; }
  .auth-intro h2 { font-size: 2rem; margin-bottom: 12px; }
  .auth-intro h2 br { display: none; }
  .auth-intro h2 br::after { content: " "; }
  .auth-intro-content { max-width: none; }
  .auth-intro p:not(.eyebrow) { font-size: .9375rem; max-width: 60ch; }
  .auth-intro .eyebrow { margin-bottom: 12px; font-size: .6875rem; }
  .intro-rule, .auth-intro .intro-caption { display: none; }
  .auth-content { padding: 32px 20px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .briefing-section { grid-template-columns: 1fr; gap: 24px; }
  .briefing-copy > p:last-child { max-width: 60ch; }
  .practice-layout, .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .session-sidebar, .settings-nav { position: static; }
  .section-nav-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
  .section-nav-note { margin-top: 14px; }
  .settings-nav { display: flex; flex-wrap: wrap; gap: 10px; }
  .settings-nav a { border-left: 0; border-bottom: 2px solid var(--color-l6-border); padding: 8px; font-size: .8125rem; }
}
@media (max-width: 560px) {
  :root { --header-height: 72px; }
  .brand img { width: 150px; }
  .nav-link { display: none; }
  .website-link { font-size: .75rem; }
  .header-inner { gap: 12px; }
  .auth-card { padding: 24px; }
  .auth-card h1 { font-size: 1.625rem; }
  .welcome-banner { padding-block: 36px; }
  .welcome-banner h1 { font-size: 2.5rem; }
  .welcome-banner p:last-child { font-size: .9375rem; }
  .section-space { padding-top: 32px; }
  .database-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .database-card { padding: 24px; }
  .database-card h3 { font-size: 1.375rem; }
  .briefing-section { padding-top: 40px; }
  .footer-inner { flex-direction: column; gap: 12px; padding-block: 20px; }
  .site-footer { margin-top: 40px; }
  .practice-heading { flex-direction: column; gap: 12px; padding-bottom: 24px; }
  .practice-heading > .tag { margin-top: 0; }
  .practice-heading h1 { font-size: 1.75rem; }
  .practice-toolbar { gap: 10px; padding: 12px; }
  .toolbar-label { font-size: .75rem; }
  .timer { font-size: 1.25rem; padding: 8px 10px; }
  .timer-caption { display: none; }
  .toolbar-jump { font-size: .6875rem; }
  .practice-section-heading { align-items: start; gap: 12px; }
  .practice-section-heading h2 { font-size: 1.125rem; }
  .button-small { padding: 10px 12px; font-size: .75rem; }
  .question-card { padding: 18px; }
  .question-caption { gap: 12px; font-size: .6875rem; }
  .question-transcript { padding: 14px; }
  .part-intro { padding: 18px; }
  .session-actions { flex-direction: column; align-items: stretch; padding: 22px; }
  .session-actions .text-link { text-align: center; }
  .field-grid { grid-template-columns: 1fr; }
  .settings-card { padding: 22px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .code-input { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 801px) and (max-height: 800px) {
  .auth-content { padding: 24px 32px; gap: 16px; }
  .auth-card { padding: 24px 28px; }
  .auth-card .form-stack { gap: 18px; }
  .auth-card .page-description { margin-bottom: 22px; }
  .auth-card .divider { margin-block: 18px; }
}

/* Keep navigation reachable in landscape and when text is enlarged. */
@media (max-height: 600px) {
  .session-sidebar, .settings-nav { position: static; }
  .practice-toolbar { position: static; }
  html { scroll-padding-top: calc(var(--header-height) + 24px); }
}

.account-dropdown button { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; font-family: inherit; }

/* A once-per-sign-in briefing for the student's linked Ground Staff partner. */
.ground-notice { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 34px; overflow-y: auto; border: 1px solid var(--color-l6-border); border-top: 5px solid var(--color-l6-yellow); border-radius: 16px; color: var(--color-l6-navy); background: #fff; box-shadow: 0 24px 80px rgb(8 36 55 / 20%); }
.ground-notice[open]:not(:modal) { position: relative; margin-block: 24px; }
.ground-notice::backdrop { background: rgb(8 26 40 / 68%); backdrop-filter: blur(4px); }
body:has(.ground-notice:modal) { overflow: hidden; }
.ground-notice h2 { font-size: clamp(1.625rem, 4vw, 2rem); }
/* This static heading receives initial reading focus; controls retain focus rings. */
.ground-notice h2:focus { outline: none; }
.ground-notice-intro { margin-top: 14px; color: var(--color-l6-secondary); }
.ground-notice-points { display: grid; gap: 12px; margin-block: 24px; }
.ground-notice-point { display: flex; align-items: start; gap: 16px; padding: 18px; background: var(--color-l6-surface); border: 1px solid var(--color-l6-border); border-radius: 10px; }
.ground-notice-symbol { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 8px; background: #e7ecef; color: var(--color-l6-navy); font-size: 1rem; font-weight: 700; }
.ground-notice-point h3 { margin-bottom: 4px; font-size: .8125rem; letter-spacing: .045em; text-transform: uppercase; }
.ground-notice-point p { font-size: .9375rem; }
.ground-notice-required { background: #f0f7fd; border-color: #cfe3f5; }
.ground-notice-required .ground-notice-symbol { color: var(--color-l6-blue-hover); background: #dfedfb; }
.ground-notice-footnote { margin-bottom: 24px; color: var(--color-l6-secondary); font-size: .8125rem; }
.ground-staff-reminder { padding: 16px 20px; margin-bottom: 24px; border: 1px solid #cfe3f5; border-left: 4px solid var(--color-l6-blue); border-radius: 8px; background: #f0f7fd; font-size: .875rem; }
@media (max-width: 560px) {
  .ground-notice { padding: 24px 20px; max-height: calc(100dvh - 24px); }
  .ground-notice-points { margin-block: 20px; }
  .ground-notice-point { padding: 14px; gap: 12px; }
  .ground-notice-symbol { width: 36px; height: 36px; flex-basis: 36px; font-size: .875rem; }
}
