/* ===================================================================
   CompTIA A+ Study Terminal — design tokens & styles
   Aesthetic: dark "terminal / certification platform" — flat, no gradients.
   =================================================================== */

:root {
  /* Colors */
  --bg: #0D1117;
  --surface: #161B22;
  --panel: #0f1217;
  --card-back: #0f1722;
  --border: #30363D;
  --border-subtle: #21262d;
  --border-hover: #3d444d;

  --text: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #6e7681;
  --text-body: #c9d4e0;

  --blue: #2563EB;
  --blue-hover: #1d4fc4;
  --green: #3FB950;
  --red: #F85149;
  --amber: #D29922;

  /* Fonts */
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }

::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.app {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
}

/* ===================== TOP NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  min-height: 58px;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.nav__brand { display: flex; align-items: center; gap: 11px; min-height: 58px; }
.nav__square { width: 12px; height: 12px; background: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.nav__name { font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; color: var(--text); }
.nav__caret { font-family: var(--mono); font-size: 13px; color: var(--blue); animation: blink 1.1s steps(1) infinite; }
.nav__codes { font-family: var(--mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 0.05em; padding-left: 6px; border-left: 1px solid var(--border); margin-left: 4px; }

.nav__tabs { display: flex; align-items: stretch; gap: 2px; }
.tab {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 0 16px; min-height: 58px;
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--text-muted); cursor: pointer;
}
.tab.is-active { color: var(--text); border-bottom-color: var(--blue); }

.main { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 26px 20px 64px; }

/* ===================== SHARED PRIMITIVES ===================== */
.mono { font-family: var(--mono); }

/* Buttons */
.btn {
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  border-radius: 6px; cursor: pointer; transition: border-color .12s, background .12s, color .12s;
}
.btn--solid { background: var(--blue); color: #fff; border: 1px solid var(--blue); font-weight: 600; }
.btn--solid:hover { background: var(--blue-hover); }
.btn--surface { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn--surface:hover { background: #1c2230; border-color: var(--border-hover); }
.btn--ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--text); border-color: var(--border-hover); }
.btn--blue-outline { background: transparent; color: var(--blue); border: 1px solid var(--blue); font-weight: 600; }
.btn--blue-outline:hover { background: rgba(37, 99, 235, 0.1); }

/* Domain / type tag pill */
.tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-secondary); border: 1px solid var(--border); padding: 4px 9px; border-radius: 3px;
}

/* Section label, e.g. // flashcard_deck */
.section-label {
  margin: 0; font-family: var(--mono); font-weight: 600; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary);
}

/* ===================== FLASHCARDS ===================== */
.fc-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.fc-count { font-family: var(--mono); font-size: 12px; color: var(--text-secondary); letter-spacing: 0.04em; }

.filter-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.filter-row + .filter-row { margin-top: 9px; }
.filter-row__label { font-family: var(--mono); font-size: 11px; color: var(--text-muted); width: 54px; letter-spacing: 0.05em; }

.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em;
  padding: 6px 12px; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--text-secondary); border: 1px solid var(--border);
}
.chip--core-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip--domain-active { background: rgba(37, 99, 235, 0.16); color: var(--text); border-color: var(--blue); }

.progress { margin: 22px 0 16px; }
.progress__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 0.05em; margin-bottom: 6px; }
.progress__head strong { color: var(--text); font-weight: 400; }
.progress__track { height: 4px; background: var(--surface); border: 1px solid var(--border-subtle); overflow: hidden; }
.progress__fill { height: 100%; background: var(--blue); transition: width .3s ease; }

/* Flip card */
.card-wrap { perspective: 2000px; margin-bottom: 18px; }
.card {
  position: relative; transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
  min-height: 344px; cursor: pointer;
}
.card.is-flipped { transform: rotateY(180deg); }
.card__face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 8px; padding: 30px 34px; display: flex; flex-direction: column;
}
.card__front { background: var(--surface); border: 1px solid var(--border); }
.card__back { background: var(--card-back); border: 1px solid var(--blue); transform: rotateY(180deg); box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card__num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: 0.06em; }
.card__body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px 6px; }
.card__prompt { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.32; text-wrap: balance; text-align: center; color: var(--text); }
.card__answer { margin: 0; font-size: 18.5px; font-weight: 400; line-height: 1.55; text-wrap: pretty; text-align: left; color: var(--text-body); }
.card__foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; }
.card__hint { color: var(--blue); }

.controls { display: flex; gap: 8px; flex-wrap: wrap; }
.controls .btn { flex: 1; min-width: 120px; padding: 13px 14px; }

/* ===================== EXAM: INTRO ===================== */
.exam-intro { max-width: 640px; margin: 14px auto 0; }
.term-line { font-family: var(--mono); font-size: 11px; color: var(--blue); letter-spacing: 0.1em; margin-bottom: 14px; }
.exam-intro h1 { margin: 0 0 10px; font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.exam-intro__desc { margin: 0 0 18px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; max-width: 520px; }
.exam-intro__desc strong { color: var(--text); font-weight: 400; }
.callout {
  display: flex; align-items: flex-start; gap: 9px;
  border: 1px solid var(--border-subtle); border-left: 2px solid var(--blue); border-radius: 4px;
  padding: 10px 13px; margin-bottom: 22px; background: var(--panel);
}
.callout__icon { color: var(--blue); font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.callout__text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

.field-label { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.08em; margin-bottom: 9px; }
.exam-select { display: flex; gap: 8px; margin-bottom: 24px; }
.seg {
  flex: 1; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em;
  padding: 13px 14px; border-radius: 6px; cursor: pointer; text-align: center;
  background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border);
}
.seg.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle);
  border-radius: 8px; overflow: hidden; margin-bottom: 22px;
}
.stat { background: var(--surface); padding: 18px 16px; }
.stat__num { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--text); }
.stat__num--blue { color: var(--blue); }
.stat__label { font-family: var(--mono); font-size: 10.5px; color: var(--text-secondary); letter-spacing: 0.07em; margin-top: 4px; }

.sample-set { border: 1px solid var(--border-subtle); border-radius: 8px; padding: 16px 18px; margin-bottom: 26px; background: var(--panel); }
.sample-set__head { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.08em; margin-bottom: 10px; }
.sample-set__item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); padding: 3px 0; }
.sample-set__marker { color: var(--blue); font-family: var(--mono); font-size: 11px; }

.btn-full { width: 100%; font-size: 14px; padding: 16px; letter-spacing: 0.05em; }

/* ===================== EXAM: ACTIVE ===================== */
.statusbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 18px;
}
.statusbar__q { font-family: var(--mono); font-size: 12px; color: var(--text-secondary); letter-spacing: 0.05em; }
.statusbar__q strong { color: var(--text); font-weight: 600; }
.statusbar__meta { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; }
.statusbar__meta span { color: var(--text-secondary); }
.statusbar__meta .v-text { color: var(--text); }
.statusbar__meta .v-flag { color: var(--amber); }
.timer-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 4px; border: 1px solid var(--border); }
.timer-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.timer-pill__label { font-weight: 600; color: var(--text); }
.timer-pill.is-warn { border-color: rgba(210, 153, 34, 0.5); }
.timer-pill.is-warn .timer-pill__dot { background: var(--amber); }
.timer-pill.is-warn .timer-pill__label { color: var(--amber); }
.timer-pill.is-crit { border-color: var(--red); background: rgba(248, 81, 73, 0.12); }
.timer-pill.is-crit .timer-pill__dot { background: var(--red); }
.timer-pill.is-crit .timer-pill__label { color: var(--red); }

.question-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 26px 28px; margin-bottom: 16px; }
.question-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.q-type { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; }
.q-type--single { color: var(--blue); }
.q-type--multi { color: var(--amber); }
.question-card__text { margin: 0 0 22px; font-size: 20px; font-weight: 600; line-height: 1.45; text-wrap: pretty; color: var(--text); }
.options { display: flex; flex-direction: column; gap: 9px; }

.option {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 13px 15px; border-radius: 6px; cursor: pointer; font-family: inherit; color: var(--text);
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color .12s, background .12s;
}
.option:hover { border-color: var(--border-hover); }
.option.is-selected { background: rgba(37, 99, 235, 0.12); border-color: var(--blue); }
.option__text { flex: 1; text-align: left; font-size: 15px; line-height: 1.45; }
.marker {
  flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  background: transparent; color: var(--text-secondary); border: 1px solid var(--border);
}
.marker--single { border-radius: 50%; }
.marker--multi { border-radius: 4px; }
.option.is-selected .marker { background: var(--blue); color: #fff; border-color: var(--blue); }

.exam-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.exam-controls .btn--nav { flex: 1; min-width: 100px; padding: 12px; }
.btn--next-q { background: #1c2230; color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.btn--next-q:hover { border-color: var(--blue); }
.flag-btn { flex: none; padding: 12px 16px; background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border); }
.flag-btn.is-active { background: rgba(210, 153, 34, 0.15); color: var(--amber); border-color: var(--amber); }

.navigator { border-top: 1px solid var(--border-subtle); padding-top: 18px; }
.navigator__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.navigator__title { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.08em; }
.legend { display: flex; gap: 13px; font-family: var(--mono); font-size: 10px; color: var(--text-secondary); letter-spacing: 0.04em; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend__swatch { width: 9px; height: 9px; }
.legend__swatch--answered { border: 1px solid var(--blue); background: rgba(37, 99, 235, 0.18); }
.legend__swatch--flagged { border: 1px solid var(--amber); }

.nav-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-cell {
  width: 34px; height: 34px; font-family: var(--mono); font-size: 12px; font-weight: 600;
  border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text-muted); border: 1px solid var(--border);
}
.nav-cell.is-answered { background: rgba(37, 99, 235, 0.14); color: var(--text); border-color: var(--blue); }
.nav-cell.is-flagged { background: rgba(210, 153, 34, 0.12); color: var(--amber); border-color: var(--amber); }
.nav-cell.is-current { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--submit { width: 100%; margin-top: 20px; padding: 15px; letter-spacing: 0.05em; }

/* ===================== EXAM: RESULTS ===================== */
.results-label { font-family: var(--mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 0.1em; margin-bottom: 6px; }
.report-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 18px; line-height: 1.4; text-wrap: pretty; }

.score-cards { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; margin-bottom: 24px; }
.score-card {
  flex: 1; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 26px 28px; display: flex; flex-direction: column; justify-content: center;
}
.score-card__label { font-family: var(--mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 0.07em; margin-bottom: 8px; }
.score-card__value { display: flex; align-items: baseline; gap: 8px; }
.score-card__num { font-family: var(--mono); font-size: 54px; font-weight: 700; line-height: 1; }
.score-card__max { font-family: var(--mono); font-size: 18px; color: var(--text-muted); }
.score-bar { margin-top: 16px; height: 5px; background: var(--bg); border: 1px solid var(--border-subtle); position: relative; overflow: hidden; }
.score-bar__fill { height: 100%; transition: width .6s ease; }
.score-bar__marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); }
.score-bar-cap { font-family: var(--mono); font-size: 10px; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.04em; }

.verdict-card {
  width: 200px; min-width: 180px; flex: 1; border-radius: 8px; padding: 26px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.verdict-card__verdict { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: 0.04em; }
.verdict-card__correct { font-family: var(--mono); font-size: 12px; color: var(--text-body); margin-top: 8px; }
.verdict-card__time { font-family: var(--mono); font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

.breakdown-label { font-family: var(--mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 0.08em; margin-bottom: 14px; }
.breakdown { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.dom-row__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 10px; flex-wrap: wrap; }
.dom-row__name-wrap { display: flex; align-items: center; gap: 9px; }
.dom-row__name { font-size: 13.5px; color: var(--text); font-weight: 500; }
.dom-row__stat { font-family: var(--mono); font-size: 12px; color: var(--text-secondary); }
.dom-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 3px; }
.dom-tag--weak { background: rgba(248, 81, 73, 0.14); color: var(--red); border: 1px solid rgba(248, 81, 73, 0.4); }
.dom-tag--strong { background: rgba(63, 185, 80, 0.12); color: var(--green); border: 1px solid rgba(63, 185, 80, 0.35); }
.dom-row__track { height: 6px; background: var(--surface); border: 1px solid var(--border-subtle); overflow: hidden; }
.dom-row__fill { height: 100%; transition: width .5s ease; }

.objectives { border: 1px solid var(--border-subtle); border-radius: 8px; padding: 18px 20px; margin-bottom: 28px; background: var(--panel); }
.objectives__intro { margin: 0 0 14px; font-size: 13.5px; color: var(--text-body); line-height: 1.5; }
.objectives__list { display: flex; flex-direction: column; gap: 9px; }
.objective-item { display: flex; align-items: flex-start; gap: 10px; }
.objective-item__bullet { color: var(--red); font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.objective-item__text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; text-wrap: pretty; }

.results-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.results-actions .btn { flex: 1; min-width: 160px; padding: 14px; }

/* ===================== EXAM: REVIEW ===================== */
.review-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.review-head__label { font-family: var(--mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 0.1em; }
.btn--back { font-size: 12px; padding: 9px 16px; flex: none; }
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-card { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 20px 22px; }
.review-card--correct { border-left: 3px solid var(--green); }
.review-card--incorrect { border-left: 3px solid var(--red); }
.review-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.review-card__num { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.05em; }
.review-card__num span { color: var(--text-muted); font-weight: 400; }
.review-verdict { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 3px; }
.review-verdict--correct { background: rgba(63, 185, 80, 0.14); color: var(--green); }
.review-verdict--incorrect { background: rgba(248, 81, 73, 0.14); color: var(--red); }
.review-card__text { margin: 0 0 16px; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--text); }
.review-options { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.review-option { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 5px; color: var(--text-body); background: var(--panel); border: 1px solid var(--border-subtle); }
.review-option--correct { background: rgba(63, 185, 80, 0.1); border-color: rgba(63, 185, 80, 0.5); }
.review-option--picked { background: rgba(248, 81, 73, 0.1); border-color: rgba(248, 81, 73, 0.5); }
.review-option__text { flex: 1; font-size: 14px; line-height: 1.4; }
.review-option__note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; }
.review-marker { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 600; background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.review-marker--single { border-radius: 50%; }
.review-marker--multi { border-radius: 4px; }
.review-option--correct .review-marker { background: var(--green); color: var(--bg); border-color: var(--green); }
.review-option--picked .review-marker { background: var(--red); color: var(--bg); border-color: var(--red); }
.explanation { background: var(--panel); border: 1px solid var(--border-subtle); border-radius: 5px; padding: 12px 14px; }
.explanation__label { font-family: var(--mono); font-size: 10px; color: var(--blue); letter-spacing: 0.08em; margin-bottom: 5px; }
.explanation__text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }

/* ===================================================================
   PHONE / SMALL SCREENS
   Fluid layout already wraps; these tune spacing, type, and tap targets
   so nothing feels cramped on a handset.
   =================================================================== */
@media (max-width: 600px) {
  .main { padding: 18px 14px 56px; }

  /* nav: tighter, drop the long code string (it also appears on exam screens) */
  .nav { gap: 10px; padding: 0 14px; }
  .nav__codes { display: none; }
  .tab { padding: 0 12px; font-size: 11.5px; }

  /* flashcards */
  .card { min-height: 300px; }
  .card__face { padding: 22px 20px; }
  .card__prompt { font-size: 22px; }
  .card__answer { font-size: 16.5px; }
  .filter-row__label { width: 100%; }                 /* label on its own line, chips align left */
  .controls .btn { min-width: 0; flex: 1 1 100%; }     /* full-width, easy-to-tap controls */

  /* exam — active */
  .statusbar { padding: 10px 12px; }
  .statusbar__meta { gap: 12px; }
  .question-card { padding: 20px 18px; }
  .question-card__text { font-size: 18px; }
  .option { padding: 12px 13px; gap: 11px; }
  .option__text { font-size: 14.5px; }
  .exam-controls .btn--nav { min-width: 0; }           /* PREV / NEXT share a row */
  .flag-btn { flex: 1 1 100%; }                        /* FLAG on its own row */
  .nav-cell { width: 32px; height: 32px; }

  /* exam — results */
  .score-card { padding: 22px 20px; }
  .score-card__num { font-size: 44px; }
  .verdict-card { padding: 22px; }
  .verdict-card__verdict { font-size: 34px; }
  .results-actions .btn { min-width: 0; flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .card__prompt { font-size: 20px; }
  .seg { font-size: 11px; padding: 12px 8px; }
  .statusbar__meta { gap: 9px; font-size: 11px; }
  .nav-cell { width: 30px; height: 30px; font-size: 11px; }
}
