/* DACAR visual layer. Keep training content and account behavior in their own files. */
:root {
  --ink: #162d45;
  --muted: #52657b;
  --forest: #102c46;
  --green: #087f8c;
  --lime: #67e8f9;
  --line: #d8e0e2;
  --bg: #f3f6fa;
  --green-soft: #eaf8fc;
  --surface-muted: #f0f5fa;
  --green-border: #afd5e3;
  --green-text: #096477;
  --red: #a83c3c;
  --radius: 22px;
  --sidebar-width: 236px;
  --soft-shadow: 0 4px 20px rgb(19 35 42 / 5%);
}

html { scroll-padding-top: 100px; }
body { font-family: 'DM Sans', system-ui, sans-serif; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #237284;
  outline-offset: 4px;
}
h1 { font-size: clamp(1.75rem, calc(2.35vw * var(--font-scale, 1)), 2.25rem); letter-spacing: -1.15px; line-height: 1.25; }
h2, h3 { color: var(--ink); }
h2 { letter-spacing: -.65px; }
p { text-wrap: pretty; }
::selection { color: #192f39; background: var(--lime); }

/* Navigation and account header */
.sidebar {
  width: var(--sidebar-width);
  padding: 32px 18px 24px;
  background: var(--forest);
  color: #e4edef;
  border-right: 1px solid #214453;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #546e74 transparent;
}
.brand { gap: 11px; font-size: 1.5625rem; letter-spacing: 1.2px; }
.brand-symbol {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #1a303a;
  box-shadow: 0 4px 16px rgb(0 0 0 / 7%);
}
.brand small { color: #b1c4c8; font-size: 0.625rem; letter-spacing: 1.6px; }
.sidebar-caption { margin: 41px 14px 13px; color: #bfd0d4; font-size: 0.6875rem; }
.sidebar nav { gap: 7px; }
.sidebar nav a {
  padding: 13px 14px;
  gap: 12px;
  min-height: 48px;
  font-size: 0.875rem;
  border-radius: 12px;
  color: #e4edef;
  transition: background .18s, color .18s;
}
.sidebar nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar nav a:hover { background: #174052; color: #fff; }
.sidebar nav a.active {
  color: #1a303a;
  background: var(--lime);
  box-shadow: 0 5px 18px rgb(0 0 0 / 7%);
  font-weight: 700;
}
.nav-count { padding: 1px 7px; border-radius: 6px; background: #364e59; color: #edf4f6; }
.active .nav-count { background: #53c0d8; color: #1a303a; }
.sidebar-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  margin: auto 10px 0;
  padding-top: 20px;
  border-top: 1px solid #365360;
  color: #becfd3;
  font-size: 0.6875rem;
  font-style: normal;
  line-height: 1.9;
}
.sidebar-contact .contact-name { margin-bottom: 4px; color: #e4edef; font-weight: 600; }
.sidebar-contact a { margin-top: 5px; color: #e4edef; font-variant-numeric: tabular-nums; }
.sidebar-contact a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.sidebar nav { margin-bottom: 32px; }
.page { margin-left: var(--sidebar-width); }
.page>header {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 78px;
  height: auto;
  padding: 18px 38px;
  gap: 18px;
  background: rgb(255 255 255 / 97%);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}
.breadcrumb { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.breadcrumb strong { font-weight: 650; }
.breadcrumb span { margin: 0 12px; }
.header-right { gap: 12px; min-width: 0; }
.course-chip { border-radius: 8px; background: var(--surface-muted); color: #294856; padding: 5px 11px; }
#account-email { color: #43595e; max-width: 185px; white-space: nowrap; }
.avatar { background: #e1f0f3; color: #31505d; width: 36px; height: 36px; font-weight: 700; flex-shrink: 0; }
.header-right .button { border-radius: 9px; min-height: 38px; padding: 7px 12px; }
.sync-banner {
  padding: 10px 38px;
  background: var(--green-soft);
  border-bottom: 1px solid #c8dde2;
  color: var(--green-text);
  font-size: 0.8125rem;
}
.sync-banner::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #437682;
  flex-shrink: 0;
}
.sync-error { color: #883b27; background: #fff1e8; border-color: #efd8c9; }
.sync-error::before { background: #a45131; }
main { max-width: 1360px; padding: 34px 38px 28px; }
.intro { gap: 20px; align-items: center; margin-bottom: 27px; }
.intro>div { min-width: 0; }
.intro p { color: var(--muted); font-size: 0.9375rem; margin-top: 10px; }
.eyebrow { font-size: 0.6875rem; font-weight: 700; color: var(--green-text); letter-spacing: 1.5px; margin-bottom: 9px; }
.demo-badge {
  color: var(--green-text);
  background: var(--green-soft);
  border-color: var(--green-border);
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
}

/* Dashboard */
.hero {
  min-height: 282px;
  padding: 35px 36px;
  margin-bottom: 22px;
  border-radius: 23px;
  background: #1c343f;
  border-color: #204f63;
  box-shadow: 0 10px 28px rgb(25 47 57 / 8%);
}
.hero::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid #528e9c;
  border-radius: 50%;
  right: -85px;
  top: -120px;
  opacity: .45;
  pointer-events: none;
}
.hero-copy { max-width: 58%; }
.hero .eyebrow { color: var(--lime); }
.hero :is(h1, h2) { color: #ffffff; font-size: clamp(1.875rem, calc(2.5vw * var(--font-scale, 1)), 2.375rem); line-height: 1.25; letter-spacing: -1.1px; }
.hero p { max-width: 410px; color: #deebee; font-size: 0.9375rem; line-height: 1.75; }
.hero-tags { gap: 16px; color: #e0ecef; font-size: 0.75rem; margin-top: 22px; flex-wrap: wrap; }
.hero-tags svg { color: var(--lime); }
.forklift-art { width: 335px; height: 250px; right: 13px; bottom: 3px; }
.source-summary {
  padding: 20px 24px;
  margin-bottom: 20px;
  border-radius: 16px;
  border-color: var(--line);
  gap: 20px;
  box-shadow: var(--soft-shadow);
}
.source-summary strong { font-size: 1rem; }
.source-summary p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.section-heading { margin: 29px 0 17px; gap: 14px; }
.section-heading h2 { font-size: 1.3125rem; }
.section-heading>span { font-size: 0.8125rem; }
.panel { border-radius: 18px; border-color: var(--line); box-shadow: var(--soft-shadow); padding: 26px; }
.oral-home {
  position: relative;
  background: #ffffff;
  border-color: var(--green-border);
  padding: 26px;
  margin-bottom: 19px;
  gap: 24px;
}
.oral-home .eyebrow { color: var(--green-text); }
.oral-home h2 { font-size: 1.5625rem; }
.oral-home p { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; margin-top: 8px; max-width: 650px; }
.modes { gap: 17px; }
.mode-card {
  border-radius: 18px;
  padding: 25px;
  border-color: var(--line);
  box-shadow: var(--soft-shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.mode-card:hover { transform: translateY(-3px); border-color: #7dabb5; box-shadow: 0 9px 28px rgb(26 48 58 / 8%); }
.icon-box { width: 47px; height: 47px; border-radius: 14px; background: #e2f2f5; color: #145672; }
.mode-card:nth-child(2) .icon-box { background: #edf0fb; color: #5b65a0; }
.mode-card:nth-child(3) .icon-box { background: #fff0e2; color: #996335; }
.tag { padding: 4px 9px; border-radius: 7px; font-size: 0.75rem; color: var(--muted); background: var(--surface-muted); font-weight: 500; }
.mode-card h3 { margin: 20px 0 9px; font-size: 1.3125rem; }
.mode-card p { min-height: 78px; color: var(--muted); font-size: 0.9375rem; line-height: 1.75; }
.mode-meta { padding: 17px 0 20px; gap: 12px; color: var(--muted); font-size: 0.75rem; flex-wrap: wrap; }
.mode-meta svg { width: 15px; height: 15px; }
.button {
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 11px;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 650;
  text-align: center;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.button.primary { color: #fff; background: #11506b; }
.button.primary:hover { background: #1f3944; box-shadow: 0 3px 10px rgb(26 48 58 / 10%); }
.button.secondary { border-color: var(--line); background: #fff; color: #243f4b; }
.button.secondary:hover { border-color: #92b5bd; background: var(--green-soft); }
.button.lime { background: var(--lime); color: #1b323b; }
.button:disabled { opacity: .55; }
.button-row { gap: 10px; }
.below { gap: 18px; margin-top: 22px; grid-template-columns: 1.4fr 1fr; }
.panel-header { gap: 14px; margin-bottom: 20px; }
.panel-header h3 { font-size: 1.0625rem; }
.text-link, .text-button { color: var(--green-text); font-size: 0.8125rem; text-underline-offset: 4px; }
.text-link:hover, .text-button:hover { text-decoration: underline; }
.stats-row { margin: 15px 0 22px; gap: 18px; }
.stat strong { font-size: 2rem; color: var(--ink); }
.stat small { color: var(--muted); font-size: 0.875rem; }
.stat>span { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }
.progress-track { height: 7px; background: #e3eaeb; border-radius: 10px; }
.progress-track>span { background: #278094; border-radius: 10px; }
.progress-note { margin-top: 13px; font-size: 0.8125rem; color: var(--muted); }
.tip { background: #ffffff; border-color: var(--line); }
.tip-title { color: var(--green-text); font-size: 0.75rem; margin-bottom: 15px; }
.tip h3 { font-size: 1.1875rem; }
.tip p { font-size: 0.9375rem; color: var(--muted); line-height: 1.8; }
.material-note { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; line-height: 1.9; }
.page>footer { max-width: 1360px; border-top: 1px solid var(--line); padding: 20px 38px 25px; color: var(--muted); font-size: 0.6875rem; gap: 16px; }
.footer-details { line-height: 1.9; }
.footer-contact { display: none; font-style: normal; }
.footer-contact a { color: var(--green-text); font-variant-numeric: tabular-nums; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Theory questions and tests */
.toolbar { gap: 15px; margin-bottom: 24px; }
.field { gap: 7px; }
.field label, .oral-draft-label { color: #36474e; font-weight: 550; font-size: 0.875rem; }
.field input, .field select, #oral-draft {
  min-height: 48px;
  padding: 12px 14px;
  border-color: #c3d0d3;
  border-radius: 11px;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgb(26 48 58 / 2%);
}
.field select { padding-right: 38px; background-position: right 14px center; }
.field input::placeholder, #oral-draft::placeholder { color: #667578; }
.field input:focus, .field select:focus, #oral-draft:focus { border-color: #237284; }
.question-count { font-size: 0.8125rem; color: var(--muted); }
.quiz-layout { grid-template-columns: minmax(0, 1fr) 212px; gap: 20px; }
.question-card { padding: 31px; }
.question-top { gap: 12px; margin-bottom: 20px; color: var(--muted); font-size: 0.8125rem; flex-wrap: wrap; }
.question-top .tag { flex-shrink: 0; }
.question-card h2 { margin: 24px 0; font-size: 1.4375rem; line-height: 1.55; letter-spacing: -.4px; }
.options { gap: 12px; }
.answer { border-radius: 12px; padding: 17px; font-size: 1rem; line-height: 1.65; gap: 15px; border-color: var(--line); transition: background .15s, border-color .15s; }
.answer:hover { background: #f5f9fa; border-color: #7dabb5; }
.answer-letter { width: 33px; height: 33px; border-radius: 9px; background: var(--surface-muted); border-color: var(--line); color: #34515d; font-size: 0.875rem; font-weight: 650; }
.answer.selected { background: #e8f3f6; border-color: #337989; }
.answer.correct { background: #e8f4f7; border-color: #26788a; box-shadow: inset 3px 0 0 #26788a; }
.answer.correct .answer-letter { background: #cce5eb; border-color: #a6ccd4; color: #17495e; }
.answer.wrong { background: #fff1ee; border-color: #d99b90; box-shadow: inset 3px 0 0 #bf6759; }
.answer.wrong .answer-letter { background: #f8dbd5; border-color: #edc5bb; color: #883f32; }
.answer[aria-disabled=true]:hover { cursor: default; }
.explanation { padding: 21px; margin-top: 22px; border-radius: 13px; font-size: 1rem; line-height: 1.85; background: var(--green-soft); color: #23414e; border: 1px solid var(--green-border); }
.explanation.bad { background: #fff3ed; color: #774632; border-color: #eed8c9; }
.explanation strong { margin-bottom: 8px; font-size: 1rem; }
.explanation small { opacity: 1; font-size: 0.75rem; color: var(--muted); }
.explanation.bad small { color: #855e49; }
.question-source { color: var(--green-text); font-size: 0.75rem; margin-top: 20px; overflow-wrap: anywhere; }
.question-figure { padding: 18px; border-radius: 13px; border-color: var(--line); margin-bottom: 24px; }
.quiz-actions { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 25px; gap: 12px; }
.quiz-side { padding: 21px 18px; }
.quiz-side h3 { font-size: 1.0625rem; }
.question-map { gap: 7px; margin: 20px 0; }
.question-map button { border-radius: 8px; min-height: 36px; background: var(--surface-muted); border-color: var(--line); color: var(--muted); font-size: 0.75rem; }
.question-map button.current { border-color: #237284; background: #e5f2f5; color: var(--green-text); }
.question-map button.answered { background: #d6eaef; color: var(--green-text); }
.map-pager .button { font-size: 0.6875rem; padding: 7px 5px; min-height: 35px; border-radius: 8px; }
.subtle { color: var(--muted); font-size: 0.875rem; }
.timer { font-size: 1.9375rem; color: #24404c; font-variant-numeric: tabular-nums; }
.timer.low { color: var(--red); }
.exam-cover { padding: 34px; border-radius: 22px; }
.exam-cover h2 { font-size: 1.8125rem; letter-spacing: -.7px; }
.exam-rules { gap: 14px; margin: 28px 0; }
.rule { padding: 20px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 13px; }
.rule strong { font-size: 1.8125rem; color: #2e4b58; }
.rule span { font-size: 0.8125rem; color: var(--muted); }
.empty { padding: 64px 28px; }
.empty h2 { font-size: 1.625rem; }
.empty p { font-size: 1rem; line-height: 1.8; }
.score-circle { background: #ddeff3; color: var(--green-text); }
.stat-grid { gap: 18px; }
.stat-grid .stat { padding: 25px; border-radius: 18px; border-color: var(--line); box-shadow: var(--soft-shadow); }
.history { font-size: 0.9375rem; }
.history th { color: var(--muted); font-size: 0.8125rem; font-weight: 600; background: var(--surface-muted); }
.history th, .history td { padding: 16px 12px; border-color: var(--line); }
.history tbody tr:hover { background: #f7f9fa; }
.topic-progress { font-size: 0.875rem; }
.review-item { padding: 23px 0; }
.review-item h3 { font-size: 1.125rem; line-height: 1.65; }
.review-item p { font-size: 0.9375rem; }
.review-item details { font-size: 0.9375rem; line-height: 1.8; }

/* Oral study: reading rhythm and topic navigation, independent of the material text. */
.oral-overview { padding: 29px 30px; border-top: 3px solid #278094; }
.oral-overview h2 { font-size: 1.6875rem; }
.oral-overview>p { max-width: 74ch; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.oral-tabs { gap: 9px; margin: 23px 0 17px; }
.oral-tabs .button { min-height: 47px; border-radius: 11px; padding: 12px 18px; font-size: 0.9375rem; }
.oral-tabs .button[aria-pressed=true] { background: #11506b; color: #fff; border-color: #11506b; box-shadow: 0 3px 9px rgb(26 48 58 / 8%); }
.oral-foundations { margin-top: 12px; padding: 18px 23px; border-radius: 14px; box-shadow: none; }
.oral-foundations>summary { color: #35515d; font-size: 0.9375rem; line-height: 1.7; padding: 2px 0; }
.oral-foundations>summary::marker { color: #277283; }
.oral-foundations[open] { border-color: var(--green-border); background: #ffffff; }
.oral-foundations[open]>summary { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.oral-controls { margin: 27px 0 23px; }
.oral-layout { grid-template-columns: 224px minmax(0, 1fr); gap: 21px; }
.oral-index { padding: 21px 12px 14px; background: #ffffff; border-radius: 17px; }
.oral-index h2 { padding: 0 9px; font-size: 1.125rem; }
.oral-index>p { padding: 5px 9px 16px; font-size: 0.8125rem; }
.oral-topic-list { gap: 5px; }
.oral-topic { align-items: flex-start; padding: 12px 10px; gap: 9px; border-radius: 10px; font-size: 0.875rem; line-height: 1.65; color: #36484f; }
.oral-topic>span:first-child { flex-shrink: 0; color: var(--green-text); font-weight: 650; min-width: 19px; }
.oral-topic:hover { background: #f1f7f8; }
.oral-topic.current { background: #e5f2f5; border-color: var(--green-border); color: var(--green-text); font-weight: 650; }
.oral-topic small { color: var(--green-text); margin-top: 4px; font-weight: 500; }
.oral-card { padding: 31px; border-radius: 19px; }
.oral-card h2 { font-size: 1.5625rem; line-height: 1.45; margin: 20px 0 12px; letter-spacing: -.5px; }
.oral-scope { font-size: 0.875rem; color: var(--muted); line-height: 1.8; padding-bottom: 20px; margin-bottom: 24px; }
.oral-answer { background: var(--green-soft); border: 1px solid var(--green-border); border-left: 4px solid #278094; border-radius: 13px; padding: 23px; margin: 23px 0 28px; color: #23414e; font-size: 1.0625rem; line-height: 1.85; }
.oral-answer .eyebrow { color: var(--green-text); font-size: 0.6875rem; margin-bottom: 12px; }
.oral-answer>p { margin: 0; }
.oral-memory { padding-top: 15px; margin-top: 16px!important; border-top: 1px solid #c7dbe0; color: #344f5b; font-size: 0.9375rem; }
.oral-reading { max-width: 74ch; font-size: 1.0625rem; line-height: 1.9; color: #334248; }
.oral-reading section { margin-top: 29px; }
.oral-reading h3 { font-size: 1.25rem; line-height: 1.55; margin: 27px 0 12px; color: #1b323c; letter-spacing: -.25px; }
.oral-reading p { margin: 12px 0; }
.oral-reading ul, .oral-reading ol { padding-left: 25px; margin: 15px 0; }
.oral-reading li { margin: 12px 0; padding-left: 5px; }
.oral-reading li::marker { color: #277283; font-weight: 650; }
.oral-followup { margin: 20px 0; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.oral-followup h4 { font-size: 1rem; font-weight: 650; color: #23414e; line-height: 1.65; }
.oral-faults { padding: 4px 0 4px 21px; border-left: 3px solid #c58b5b; }
.oral-references { margin: 30px 0 0; padding-top: 7px; }
.oral-references a:not(.button) { font-size: 0.875rem; color: var(--green-text); }
.oral-references .subtle { font-size: 0.8125rem; color: var(--muted); }
.oral-table-wrap { border-radius: 10px; }
.oral-table-wrap table { font-size: 0.9375rem; line-height: 1.75; }
.oral-table-wrap th { font-size: 0.8125rem; }
.oral-self-rate { margin-top: 32px; padding-top: 21px; }
.oral-self-rate>p { color: #36474e; font-size: 0.875rem; font-weight: 550; }
.oral-self-rate .button { min-width: 115px; }
.oral-recall-prompt { color: #344c56; font-size: 1.0625rem; line-height: 1.8; }
.oral-draft-label { margin-top: 24px; }
#oral-draft { padding: 16px; line-height: 1.85; }
.oral-full-detail { padding: 17px 0; }
.oral-full-detail>summary { color: var(--green-text); font-size: 1rem; line-height: 1.7; }
.oral-card, .oral-foundations, .oral-answer { overflow-wrap: break-word; }

/* Sign in, account forms and dialogs */
.signed-out {
  color: #e4eff1;
  background-color: #102c46;
  background-image: radial-gradient(ellipse at 12% 20%, #194e65 0, transparent 44%), radial-gradient(ellipse at 90% 90%, #1c343f 0, transparent 48%);
}
.auth-screen { min-height: 100svh; padding: 44px 24px; }
.auth-screen>p { color: #e0ecef; font-size: 1rem; }
.auth-card {
  width: min(100%, 480px);
  padding: 38px 40px 31px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  box-shadow: 0 24px 90px rgb(6 12 14 / 24%);
}
.auth-card .brand { display: flex; padding: 0; color: #1e3843; margin-bottom: 31px; }
.auth-card .brand>span:last-child { display: block; }
.auth-card .brand small { color: var(--muted); }
.auth-card .brand-symbol { color: #192f39; background: var(--lime); }
.auth-card h1 { font-size: 1.8125rem; margin: 21px 0 12px; line-height: 1.3; letter-spacing: -.9px; }
.auth-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }
.auth-card label { color: #344c56; font-size: 0.875rem; font-weight: 550; margin: 21px 0 8px; }
.auth-card input { border: 1px solid #c3d0d3; min-height: 50px; border-radius: 11px; background: #ffffff; color: var(--ink); font-size: 1rem; padding: 12px 14px; }
.auth-card form>.button { display: block; margin-top: 27px; width: 100%; min-height: 49px; font-size: 1rem; }
.auth-card .text-button { margin-top: 16px; font-size: 0.875rem; color: var(--green-text); }
.auth-card #auth-message { color: #98492d; }
.auth-card #auth-message:empty { margin: 0; }
.auth-footer { margin-top: 28px; padding-top: 20px; border-color: var(--line); }
.auth-footer a { text-decoration: underline; text-underline-offset: 4px; }
.admin-form { gap: 19px; margin-top: 23px; }
.admin-members>p { color: var(--muted); font-size: 0.875rem; margin: 10px 0 19px; }
.admin-members #refresh-members { margin: 0 0 18px; }
.admin-members td .button { font-size: 0.8125rem; margin: 4px 0; }
dialog { border-radius: 21px; padding: 33px; max-height: calc(100svh - 40px); overflow-y: auto; border-color: var(--line); }
dialog::backdrop { background: rgb(16 29 35 / 55%); backdrop-filter: blur(5px); }
dialog p { font-size: 0.9375rem; line-height: 1.85; color: var(--muted); }
dialog label { color: #344c56; font-size: 0.875rem; }
dialog input:not([type=checkbox]) { font-size: 1rem; border-radius: 10px; border-color: #b8cace; min-height: 48px; }
.dialog-close { min-width: 40px; min-height: 40px; top: 9px; right: 9px; border-radius: 10px; }
.dialog-close:hover { background: #f1f7f8; }
#toast { background: #11506b; border: 1px solid #277283; border-radius: 13px; padding: 14px 22px; box-shadow: 0 6px 30px rgb(20 37 44 / 16%); }

/* Smaller laptops and tablets */
@media (min-width: 1450px) {
  main { padding-top: 41px; }
  .hero { min-height: 300px; }
  .forklift-art { width: 385px; height: 275px; right: 25px; }
}
@media (max-width: 1150px) {
  :root { --sidebar-width: 210px; }
  .sidebar { padding: 29px 14px 22px; }
  .sidebar nav a { padding: 12px; gap: 11px; font-size: 0.8125rem; }
  .page>header { padding: 16px 27px; }
  main { padding: 29px 27px 25px; }
  .sync-banner { padding: 10px 27px; }
  .page>footer { padding-left: 27px; padding-right: 27px; }
  .hero { padding: 30px; }
  .hero-copy { max-width: 59%; }
  .hero :is(h1, h2) { font-size: 1.9375rem; }
  .forklift-art { width: 270px; height: 224px; right: 0; }
  .hero-tags { gap: 11px; }
  .modes { gap: 13px; }
  .mode-card { padding: 21px; }
  .mode-card h3 { font-size: 1.1875rem; }
  .mode-card p { min-height: 105px; font-size: 0.875rem; }
  .mode-meta { gap: 8px; }
  .mode-card .tag { font-size: 0.6875rem; }
  .mode-card .icon-box { width: 40px; height: 40px; }
  .quiz-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 17px; }
  .question-card { padding: 25px; }
  .header-right { gap: 9px; }
  #account-email { max-width: 145px; }
}
@media (max-width: 1050px) {
  .oral-layout { grid-template-columns: minmax(0, 1fr); }
  .oral-index { padding: 18px 15px 12px; }
  .oral-topic-list { display: flex; width: 100%; gap: 8px; overflow-x: auto; padding-bottom: 9px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #83aab3 #edf3f4; }
  .oral-topic { flex-shrink: 0; min-width: 170px; max-width: 205px; }
  .oral-index>p { padding-bottom: 12px; }
  .oral-card { padding: 28px; }
}
@media (min-width: 601px) and (max-width: 850px) {
  :root { --sidebar-width: 80px; }
  .sidebar { padding: 25px 11px 20px; }
  .sidebar .brand { padding: 0 6px; }
  .sidebar nav { margin-top: 38px; gap: 11px; }
  .sidebar nav a { min-height: 52px; padding: 15px 17px; font-size: 0; }
  .sidebar nav a svg { width: 22px; height: 22px; }
  .page>header { padding-left: 25px; padding-right: 25px; }
  .hero-copy { max-width: 62%; }
  .hero :is(h1, h2) { font-size: 1.8125rem; }
  .hero p { font-size: 0.875rem; }
  .forklift-art { width: 235px; height: 205px; right: -12px; }
  .mode-card { padding: 18px; }
  .mode-card p { min-height: 115px; }
  .mode-card .mode-top { gap: 8px; flex-wrap: wrap; }
  .mode-card .tag { font-size: 0.625rem; }
  .below { grid-template-columns: minmax(0, 1fr); }
  .quiz-layout { grid-template-columns: minmax(0, 1fr); }
  .quiz-side { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
  #practice .quiz-side { order: 0; }
  .quiz-side .question-map { flex-basis: 100%; order: 3; }
  .quiz-side .map-pager { flex-basis: 100%; order: 4; }
  .oral-home { align-items: flex-start; flex-direction: column; }
}

/* Phone layouts retain safe-area space for all six destinations. */
@media (max-width: 600px) {
  html { scroll-padding-top: 82px; -webkit-text-size-adjust: 100%; }
  :root { --sidebar-width: 0px; }
  .page { width: 100%; margin: 0; padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
  .page>header { padding: 12px 16px; min-height: 66px; gap: 8px; flex-wrap: wrap; }
  .breadcrumb { font-size: 0.75rem; }
  .breadcrumb span { margin: 0 8px; }
  .header-right { gap: 6px; }
  .header-right .button { padding: 8px 9px; min-height: 38px; font-size: 0.75rem; }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    min-height: 76px;
    height: auto;
    padding: 7px 5px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #214453;
    border-right: 0;
    overflow: visible;
    box-shadow: 0 -3px 18px rgb(21 40 48 / 12%);
  }
  .sidebar .brand { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin: 0; }
  .sidebar nav a { min-height: 55px; padding: 8px 2px 6px; gap: 5px; flex-direction: column; justify-content: flex-start; border-radius: 10px; font-size: 0.625rem; line-height: 1.35; white-space: normal; text-align: center; overflow-wrap: normal; }
  .sidebar nav a svg { width: 20px; height: 20px; }
  .sidebar nav a.active { box-shadow: none; }
  .sync-banner { padding: 10px 16px; gap: 9px; font-size: 0.75rem; line-height: 1.55; }
  .sync-banner::before { width: 5px; height: 5px; }
  main { width: 100%; padding: 25px 16px 23px; }
  .intro { align-items: flex-start; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
  .intro>div { flex: 1 1 230px; }
  .intro h1 { font-size: 1.75rem; line-height: 1.3; letter-spacing: -.8px; }
  .intro p { font-size: 0.875rem; line-height: 1.75; margin-top: 8px; }
  .intro .eyebrow { font-size: 0.625rem; line-height: 1.6; letter-spacing: 1.3px; }
  .demo-badge, .intro .demo-badge { max-width: none; margin-top: 0; font-size: 0.6875rem; padding: 5px 10px; white-space: normal; }
  .hero { min-height: 352px; padding: 26px 24px; align-items: flex-start; border-radius: 19px; margin-bottom: 18px; }
  .hero-copy { max-width: 100%; }
  .hero :is(h1, h2) { max-width: none; font-size: 1.8125rem; line-height: 1.28; letter-spacing: -.8px; }
  .hero p { max-width: 285px; color: #deebee; font-size: 0.875rem; line-height: 1.7; }
  .hero .eyebrow { font-size: 0.625rem; }
  .hero-tags { flex-direction: column; align-items: flex-start; gap: 7px; max-width: 160px; margin-top: 22px; font-size: 0.6875rem; }
  .forklift-art { width: 188px; height: 154px; right: -3px; bottom: 4px; opacity: 1; }
  .hero::before { width: 300px; height: 300px; right: -150px; top: 45px; }
  .source-summary { padding: 19px; gap: 15px; margin-bottom: 18px; border-radius: 15px; flex-direction: column; align-items: flex-start; }
  .source-summary strong { font-size: 1rem; }
  .source-summary p { font-size: 0.875rem; }
  .source-summary .button { min-height: 42px; font-size: 0.875rem; padding: 10px 14px; }
  #practice-diagrams { width: 100%; white-space: normal; font-size: 0.875rem; }
  .section-heading { margin: 27px 0 16px; }
  .section-heading h2 { font-size: 1.3125rem; }
  .section-heading>span { font-size: 0.75rem; }
  .panel, .oral-card, .oral-foundations { padding: 22px 20px; border-radius: 16px; }
  .oral-home { gap: 19px; padding: 23px 21px; margin-bottom: 16px; }
  .oral-home h2 { font-size: 1.5rem; }
  .oral-home p { font-size: 0.9375rem; }
  .oral-home .button { width: 100%; }
  .modes { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .mode-card { padding: 24px 22px; border-radius: 17px; }
  .mode-card .mode-top { flex-wrap: nowrap; }
  .mode-card .icon-box { width: 45px; height: 45px; }
  .mode-card .tag { font-size: 0.75rem; }
  .mode-card h3 { font-size: 1.375rem; margin: 17px 0 8px; }
  .mode-card p { min-height: 0; font-size: 0.9375rem; }
  .mode-meta { font-size: 0.75rem; padding: 16px 0 19px; }
  .mode-meta span:last-child { display: flex; }
  .mode-card .button { min-height: 46px; padding: 12px 16px; }
  .below { grid-template-columns: minmax(0, 1fr); gap: 15px; margin-top: 18px; }
  .panel-header h3 { font-size: 1rem; }
  .panel-header .text-link { font-size: 0.75rem; text-align: right; }
  .stats-row { gap: 10px; }
  .stat strong { font-size: 1.6875rem; }
  .stat small { font-size: 0.75rem; }
  .stat>span { font-size: 0.75rem; line-height: 1.6; }
  .progress-note { font-size: 0.75rem; }
  .tip p { font-size: 0.9375rem; }
  .material-note { font-size: 0.75rem; margin-top: 24px; }
  .page>footer { padding: 21px 18px 24px; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 0.6875rem; }
  .page>footer .text-button { font-size: 0.75rem; }
  .toolbar { gap: 13px; margin-bottom: 20px; }
  .toolbar .field { min-width: 145px; }
  .field label { font-size: 0.8125rem; }
  .field input, .field select, input, select, textarea { font-size: 1rem; }
  .quiz-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .question-card { padding: 23px 18px; }
  .question-top { margin-bottom: 18px; font-size: 0.75rem; gap: 10px; }
  .question-top .tag { font-size: 0.6875rem; }
  .question-card h2 { margin: 22px 0; font-size: 1.3125rem; line-height: 1.6; }
  .answer { padding: 15px 12px; gap: 11px; font-size: 1rem; border-radius: 11px; }
  .answer-letter { width: 29px; height: 29px; font-size: 0.8125rem; border-radius: 8px; }
  .explanation { padding: 18px 16px; font-size: 1rem; }
  .question-figure { padding: 9px; }
  .quiz-actions { flex-wrap: wrap; padding-top: 20px; }
  .quiz-actions .button { flex: 1 1 120px; font-size: 0.875rem; padding: 12px 10px; }
  .quiz-side { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px; }
  #practice .quiz-side { order: 0; }
  .quiz-side .question-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); flex-basis: 100%; order: 3; width: 100%; gap: 8px; }
  .quiz-side .map-pager { flex-basis: 100%; order: 4; width: 100%; }
  .question-map { margin: 7px 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .question-map button { width: auto; min-height: 44px; font-size: 0.8125rem; }
  .map-pager .button { min-height: 39px; font-size: 0.75rem; }
  .exam-cover { margin-top: 0; padding: 26px 20px; }
  .exam-cover h2 { font-size: 1.625rem; }
  .exam-rules { gap: 9px; margin: 23px 0; }
  .rule { padding: 15px 10px; }
  .rule strong { font-size: 1.5625rem; }
  .rule span { font-size: 0.75rem; }
  .button-row .button { width: 100%; }
  .empty { padding: 45px 22px; }
  .empty h2 { font-size: 1.5rem; }
  .history th, .history td { padding: 14px 8px; font-size: 0.75rem; }
  .stat-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stat-grid .stat { padding: 22px; }
  .topic-progress { font-size: 0.8125rem; grid-template-columns: 110px minmax(0, 1fr) 40px; }
  .oral-overview { padding: 24px 21px; }
  .oral-overview h2 { font-size: 1.5625rem; }
  .oral-overview>p { font-size: 1rem; }
  .oral-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 22px 0 17px; }
  .oral-tabs .button { width: 100%; min-width: 0; min-height: 50px; font-size: 0.875rem; padding: 12px 9px; }
  .oral-overview>.subtle { font-size: 0.8125rem; }
  .oral-foundations { padding: 17px 19px; border-radius: 13px; }
  .oral-foundations>summary { font-size: 0.875rem; line-height: 1.75; }
  .oral-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0 21px; }
  .oral-controls .field { min-width: 0; }
  .oral-index { padding: 20px 13px 12px; }
  .oral-topic-list { gap: 8px; -webkit-overflow-scrolling: touch; }
  .oral-topic { min-width: 165px; max-width: 195px; min-height: 52px; padding: 12px 10px; font-size: 0.875rem; }
  .oral-card { padding: 24px 20px; }
  .oral-card h2 { font-size: 1.4375rem; line-height: 1.5; letter-spacing: -.4px; margin: 20px 0 12px; }
  .oral-scope { font-size: 0.875rem; padding-bottom: 19px; }
  .oral-answer { font-size: 1rem; padding: 20px 17px; line-height: 1.9; border-radius: 11px; }
  .oral-answer .eyebrow { font-size: 0.625rem; line-height: 1.6; }
  .oral-memory { font-size: 0.9375rem; }
  .oral-reading { font-size: 1rem; line-height: 1.9; }
  .oral-reading h3 { font-size: 1.1875rem; line-height: 1.6; margin: 27px 0 12px; }
  .oral-reading ul, .oral-reading ol { padding-left: 22px; }
  .oral-reading li { padding-left: 3px; }
  .oral-self-rate .button-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oral-self-rate .button { min-width: 0; }
  .oral-references .button { width: 100%; white-space: normal; }
  .oral-references .subtle { font-size: 0.8125rem; }
  .oral-table-wrap table { min-width: 560px; font-size: 0.875rem; }
  .oral-table-wrap th { font-size: 0.75rem; }
  .auth-screen { padding: 24px 16px; }
  .auth-card { padding: 31px 25px 27px; border-radius: 21px; }
  .auth-card .brand { margin-bottom: 27px; }
  .auth-card h1 { font-size: 1.75rem; }
  .auth-card p { font-size: 0.9375rem; }
  .admin-form { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .admin-members { max-width: 100%; overflow-x: auto; }
  dialog { padding: 30px 23px; max-height: calc(100svh - 32px); }
  dialog h2 { padding-right: 16px; font-size: 1.5rem; }
  dialog p { font-size: 0.9375rem; }
  #toast { bottom: calc(94px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 32px); width: max-content; font-size: 0.875rem; }
}
@media (max-width: 360px) {
  .intro h1 { font-size: 1.625rem; }
  .hero { padding: 24px 20px; min-height: 365px; }
  .hero :is(h1, h2) { font-size: 1.6875rem; }
  .hero p { max-width: 245px; }
  .forklift-art { width: 162px; height: 135px; right: -7px; }
  .oral-card, .oral-overview { padding-left: 17px; padding-right: 17px; }
  .oral-card h2 { font-size: 1.3125rem; }
  .auth-card { padding-left: 23px; padding-right: 23px; }
  .stats-row { gap: 8px; }
  .stat strong { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none!important; animation: none!important; scroll-behavior: auto!important; }
}

/* Original OSK DACAR identity, including the compact phone header. */
.platform-brand { gap: 11px; letter-spacing: 0; }
.platform-brand .brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e1e6e7;
  border-radius: 12px;
}
.platform-brand .brand-wordmark { min-width: 0; }
.platform-brand .brand-wordmark small {
  display: block;
  margin: 0 0 4px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.platform-brand .brand-wordmark strong {
  display: block;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .1px;
  white-space: nowrap;
}
.sidebar .brand.platform-brand { padding: 0 5px; }
.sidebar .platform-brand .brand-wordmark strong { color: #fff; }
.sidebar .platform-brand .brand-wordmark small { color: #bfd0d4; }
.page>header .header-brand { display: none; }
.auth-card .platform-brand .brand-wordmark strong { color: #1e3843; font-size: 1.3125rem; }
.auth-card .platform-brand .brand-wordmark small { color: var(--muted); }
@media (min-width: 851px) and (max-width: 1150px) {
  .sidebar .brand.platform-brand { gap: 9px; padding: 0; }
  .sidebar .platform-brand .brand-wordmark strong { font-size: 1.0625rem; }
}
@media (max-width: 850px) {
  .sidebar-contact { display: none; }
  .footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
  .sidebar nav { margin-bottom: 0; }
  .sidebar .brand.platform-brand { display: none; }
  .page>header .header-brand { display: flex; padding: 0; gap: 9px; }
  .page>header .header-brand .brand-wordmark { display: block; }
  .page>header .header-brand .brand-logo { width: 38px; height: 38px; flex-basis: 38px; border-radius: 9px; }
  .page>header .header-brand .brand-wordmark small { color: var(--muted); font-size: 0.5625rem; letter-spacing: 1.25px; margin-bottom: 2px; }
  .page>header .header-brand .brand-wordmark strong { color: #1e3843; font-size: 0.9375rem; }
  .page>header .breadcrumb { display: none; }
}

/* Personal bookmarks and question notes. */
.study-views { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 23px; }
.study-view {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 45px; padding: 10px 15px; background: #fff; color: #344c56;
  border: 1px solid var(--line); border-radius: 11px; font-size: 0.875rem; font-weight: 600;
}
.study-view:hover { background: var(--green-soft); border-color: #83aab3; }
.study-view.active { color: var(--green-text); background: #e5f2f5; border-color: #83aab3; }
.study-view [data-study-count] { min-width: 23px; padding: 1px 6px; background: var(--surface-muted); color: #34515d; border-radius: 6px; font-size: 0.75rem; }
.study-view.active [data-study-count] { background: #c4dfe5; color: var(--green-text); }
.study-unavailable { margin: 0 0 22px; padding: 16px 19px; border-radius: 12px; background: #fff3e9; color: #7b4b2e; font-size: 0.875rem; }
.study-unavailable .button { margin: 9px 0 0; min-height: 40px; }
.question-personal-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: -3px 0 17px; }
.question-bookmark { min-height: 42px; padding: 10px 14px; font-size: 0.875rem; }
.question-bookmark svg { width: 18px; height: 18px; flex-shrink: 0; }
.question-bookmark.is-saved { background: #e5f2f5; border-color: #83aab3; color: var(--green-text); }
.question-personal-tools .text-button { font-size: 0.875rem; min-height: 40px; }
.question-personal-status, .question-note-status { color: var(--green-text); font-size: 0.8125rem; line-height: 1.75; }
.question-personal-status:empty, .question-note-status:empty { display: none; }
.question-personal-status { margin: -5px 0 17px; }
.question-note-status { margin-top: 12px; }
.question-personal-status.is-error, .question-note-status.is-error { color: #994d32; }
.question-notes { margin-top: 23px; padding: 18px 20px; background: #f6f9fa; border: 1px solid var(--line); border-radius: 13px; }
.question-notes>summary { color: #244857; font-size: 1rem; font-weight: 650; cursor: pointer; line-height: 1.7; }
.question-notes>summary::marker { color: #277283; }
.note-saved-label { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 1px 7px; border-radius: 6px; background: #dcecef; color: #34515d; font-size: 0.6875rem; font-weight: 500; }
.question-notes .subtle { margin: 14px 0; color: var(--muted); font-size: 0.8125rem; }
.question-notes label { display: block; font-size: 0.875rem; color: #344c56; margin: 15px 0 8px; font-weight: 550; }
.question-notes textarea { display: block; width: 100%; min-height: 130px; resize: vertical; padding: 14px; background: #fff; color: var(--ink); border: 1px solid #b8cace; border-radius: 10px; font: inherit; font-size: 1rem; line-height: 1.8; }
.question-notes textarea::placeholder { color: #667578; }
.question-note-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 15px; }
.question-note-footer .button { min-height: 42px; padding: 10px 14px; font-size: 0.875rem; }
.question-note-footer .text-button { font-size: 0.8125rem; padding: 9px 0; }
.note-counter { color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.empty-reset { display: flex; justify-content: center; margin: 20px 0 26px; }
@media (max-width: 600px) {
  .study-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 23px; }
  .study-view { min-height: 47px; padding: 11px 10px; gap: 7px; font-size: 0.8125rem; }
  .study-view:first-child { grid-column: 1/-1; }
  .question-personal-tools { gap: 10px 15px; margin-bottom: 17px; }
  .question-bookmark { padding: 10px 12px; min-height: 44px; font-size: 0.875rem; }
  .question-personal-tools .text-button { min-height: 44px; }
  .question-notes { padding: 18px 16px; border-radius: 11px; }
  .question-notes textarea { padding: 13px; font-size: 1rem; }
  .question-note-footer { gap: 12px; }
  .question-note-footer .button-row { flex: 1 1 100%; align-items: center; }
  .question-note-footer .button-row .button { width: auto; min-height: 44px; }
  .question-note-footer .text-button { padding: 10px 0; }
}

/* Dashboard photograph */
.hero.dashboard-photo { overflow:hidden; }
.dashboard-photo .hero-copy { position:relative; z-index:2; }
.dashboard-photo .hero-photo { position:absolute;right:0;top:0;width:46%;height:100%;object-fit:cover;object-position:42% 62%;mask-image:linear-gradient(to right,transparent,#000 24%); }
@media(max-width:600px){.hero.dashboard-photo {padding-bottom:240px;} .dashboard-photo .hero-photo{top:auto;bottom:0;width:100%;height:240px;object-position:42% 65%;mask-image:linear-gradient(to bottom,transparent,#000 25%);} }

/* Account demo and purchase prompts */
.demo-banner { margin:20px 38px 0;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--surface,#fff);border:1px solid var(--line,#d3dddf);border-left:4px solid #2c8da3;border-radius:14px; }
.demo-banner[hidden] { display:none; }
.demo-banner strong,.demo-banner span { display:block; }
.demo-banner strong { margin-bottom:5px; }
.demo-banner span { color:var(--muted,#56676b);line-height:1.6; }
.demo-banner .button { flex-shrink:0; }
.demo-lock { margin:22px 0;padding:24px;border:1px solid var(--line,#d3dddf);border-radius:14px;background:var(--surface,#fff); }
.demo-lock h3 { margin:12px 0; }
.demo-lock p { max-width:650px;line-height:1.7; }
@media(max-width:600px){.demo-banner { margin:16px 16px 0;flex-direction:column;align-items:stretch;padding:18px; }.demo-lock { padding:20px; }.demo-banner .button,.demo-lock .button { width:100%;white-space:normal; }}


/* Administrator-created login accounts */
.credential-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
.credential-password-field { grid-column:1 / -1; }
.credential-password-tools { display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:10px; }
.credential-password-tools .check-label { margin:0;display:flex;align-items:center;gap:8px; }
.credential-password-tools input[type="checkbox"] { width:auto; }
.credential-result { margin-top:22px;padding:22px;border:1px solid var(--line,#d3dddf);border-radius:14px;background:var(--surface,#fff); }
.credential-result[hidden] { display:none; }
.credential-result textarea { width:100%;min-height:132px;padding:14px;border:1px solid var(--line,#b8cace);border-radius:10px;background:var(--surface,#fff);color:var(--ink,#172931);font:inherit;line-height:1.7;resize:vertical;margin-bottom:16px; }
#close-login-password { margin-top:20px; }
@media(max-width:600px){.credential-form { grid-template-columns:minmax(0,1fr); }.credential-result { padding:16px; }.credential-password-tools { align-items:flex-start;gap:12px; }}



/* Dashboard uses the full available width after removing the starter tip. */
.below.dashboard-progress { grid-template-columns: minmax(0, 1fr); }

/* Account actions grouped under the profile button. */
.account-menu { position: relative; }
.account-menu > summary.avatar { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; list-style: none; width: 40px; height: 40px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary::marker { content: ''; }
.account-menu > summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.account-menu[open] > summary { box-shadow: 0 0 0 3px var(--green-soft); }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 12px); z-index: 100; width: min(290px, calc(100vw - 32px)); padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 16px 44px rgb(16 44 70 / 16%); }
.account-identity { display: grid; gap: 5px; padding: 10px 10px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.account-identity small, #account-login { color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.account-dropdown #account-email { display: block; max-width: none; white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
.header-right .account-dropdown .button { width: 100%; justify-content: flex-start; margin-top: 4px; padding: 11px 12px; font-size: .875rem; text-align: left; }
.account-dropdown .appearance-trigger-label { display: inline; }
[data-theme="dark"] .account-dropdown { background: #162536; }

/* Oral learning navigation beside the heading, with context below. */
.oral-intro { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr); gap: 14px 28px; align-items: center; }
.oral-intro .oral-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin: 0; }
.oral-intro .oral-tabs .button { min-width: 0; white-space: normal; }
.oral-intro .oral-intro-description { grid-column: 1 / -1; max-width: 94ch; margin: 0; color: var(--muted); line-height: 1.75; }
.oral-save-status { margin-bottom: 20px; color: var(--muted); }
@media (max-width: 1100px) {
  .oral-intro { grid-template-columns: minmax(0, 1fr); }
  .oral-intro .oral-tabs { grid-row: 3; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .oral-intro .oral-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .oral-intro .oral-tabs .button:last-child { grid-column: 1 / -1; }
}
