:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #4b5563;
  --line: #e2e8f0;
  --brand: #15803d;
  --brand-dark: #14532d;
  --cta: #f59e0b;
  --cta-ink: #3d2a02;
  --blue: #2563eb;
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Arial, "Segoe UI", sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Шапка ──────────────────────────────────────────────── */

.app-header {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex: none; }
.brand-logo { width: 46px; height: 46px; flex: none; }
.brand-names { display: flex; flex-direction: column; line-height: 1.2; }
.brand-school { font-size: 17px; font-weight: 700; }
.brand-sub { font-size: 12px; opacity: .82; text-transform: uppercase; letter-spacing: .07em; }
.brand:hover .brand-school { text-decoration: underline; }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  padding: 8px 13px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 17px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 18px;
  flex-wrap: wrap;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255, 255, 255, .16); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.btn-cta {
  display: inline-block;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 17px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.app-title {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.app-title-icon { font-size: 34px; }
.app-header h1 { margin: 0; font-size: 24px; }
.tagline { margin: 2px 0 0; font-size: 14px; opacity: .92; }

.title-stats { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.title-stat { font-size: 13px; opacity: .95; }
.title-stat strong { font-size: 18px; display: inline-block; margin-right: 3px; }

.tabs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab {
  appearance: none;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  padding: 8px 15px;
}
.tab:hover { background: rgba(255, 255, 255, .22); }
.tab.is-on { background: #fff; color: var(--brand-dark); border-color: #fff; font-weight: 700; }

/* ── Общие элементы ─────────────────────────────────────── */

.work { max-width: 1100px; margin: 0 auto; padding: 18px 16px 40px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.panel + .panel, .panel + .stage, .stage + .panel { margin-top: 14px; }
.panel h2 { margin: 0 0 4px; font-size: 20px; }
.panel h3 { margin: 22px 0 8px; font-size: 16px; }

.hint { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.hint.tight { margin: 0 0 12px; }
.hint.tiny, .tiny { font-size: 13px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.toolbar-sub { margin-top: 12px; align-items: center; }
.toolbar-info { color: var(--muted); font-size: 14px; margin-left: auto; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.field.grow { flex: 1 1 220px; }
.field.block { display: block; margin-top: 12px; }
.field-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

input[type="text"], input[type="search"], select, textarea {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea { resize: vertical; }

.btn {
  appearance: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 14px;
}
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #1d4ed8; }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 11px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.bad.ghost { background: transparent; color: var(--bad); border-color: #fecaca; }
.btn:disabled { opacity: .5; cursor: default; }

.icon-btn {
  appearance: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  padding: 6px;
}
.icon-btn:hover { background: #f1f5f9; border-color: var(--line); }

.check-inline { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; }
.check-inline input { width: 17px; height: 17px; }

.types { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.types legend { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible, .tab:focus-visible, .option:focus-visible,
.icon-btn:focus-visible, .dropzone:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.empty-note { color: var(--muted); font-size: 14px; text-align: center; padding: 18px 0; }

/* ── Список слов ────────────────────────────────────────── */

.word-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }

.word-row {
  display: grid;
  grid-template-columns: 28px 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.word-row.is-selected { border-color: #93c5fd; background: #f4f8ff; }
.row-check { display: grid; place-items: center; }
.row-check input { width: 18px; height: 18px; }

.thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-emoji { font-size: 30px; line-height: 1; }

.row-main { min-width: 0; }
.row-tr { display: flex; align-items: center; gap: 8px; }
.tr-word { font-size: 18px; font-weight: 700; }
.pos-tag { font-size: 12px; color: var(--muted); background: #f1f5f9; border-radius: 999px; padding: 2px 8px; }
.row-ru { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

.row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.chip { font-size: 12.5px; background: #eef2f7; border-radius: 999px; padding: 3px 10px; color: #334155; }
.pill { font-size: 12.5px; border-radius: 999px; padding: 3px 10px; font-weight: 700; }
.pill-known { background: #dcfce7; color: #166534; }
.pill-unknown { background: #fee2e2; color: #991b1b; }
.due-note { font-size: 12.5px; color: var(--muted); }

.row-actions { display: flex; gap: 2px; }

.bulkbar {
  position: sticky;
  bottom: 12px;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
}
.bulk-count { font-weight: 700; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.bulkbar .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.bulkbar .btn:hover { background: rgba(255, 255, 255, .2); }
.bulkbar .btn.good { background: var(--good); border-color: var(--good); }
.bulkbar .btn.warn { background: var(--warn); border-color: var(--warn); }
.bulkbar .btn.bad { background: var(--bad); border-color: var(--bad); }

/* ── Тренировки ─────────────────────────────────────────── */

.stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.stage-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stage-count { font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.progress { flex: 1 1 120px; height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); transition: width .25s ease; }

.study-card, .quiz-card, .tr-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  text-align: center;
}

.card-media {
  margin: 0 auto 12px;
  width: 180px; height: 180px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-media.big { width: 240px; height: 240px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-emoji { font-size: 96px; line-height: 1; }

.card-main-tr { font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.card-main-ru { font-size: 26px; color: #0f172a; }
.card-hint { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.card-back { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.card-meta { margin-top: 8px; font-size: 13px; color: var(--muted); }

.card-example { margin-top: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.card-example .ex-tr { font-weight: 700; }
.card-example .ex-ru { color: var(--muted); font-size: 14.5px; }

.card-front + .btn { margin-top: 16px; }

.grade-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.grade-row .grade { flex: 1 1 140px; padding: 14px 10px; font-size: 15px; }

.stage-tools { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.quiz-title { margin: 0 0 12px; font-size: 15px; color: var(--muted); font-weight: 700; }
.quiz-prompt { font-size: 32px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.quiz-sentence { font-size: 24px; font-weight: 700; line-height: 1.4; }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.option {
  appearance: none;
  font: inherit;
  cursor: pointer;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  min-height: 60px;
}
.option:hover:not(:disabled) { border-color: #93c5fd; }
.option-text { font-size: 19px; font-weight: 700; }
.option-key { position: absolute; top: 5px; left: 8px; font-size: 12px; color: var(--muted); }
.option.is-right { border-color: var(--good); background: #f0fdf4; }
.option.is-wrong { border-color: var(--bad); background: #fef2f2; }
.option:disabled { cursor: default; }

.options-media .option { padding: 8px; }
.option-media { width: 120px; height: 120px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #f8fafc; }
.option-media img { width: 100%; height: 100%; object-fit: cover; }
.option-media .card-emoji { font-size: 64px; }
.option-media.small { width: 44px; height: 44px; }
.option-media.small .card-emoji { font-size: 26px; }

.feedback { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; font-size: 15px; }
.feedback.is-good { color: #166534; }
.feedback.is-bad { color: #991b1b; }
.feedback.is-warn { color: #92400e; }
.feedback-ru { width: 100%; color: var(--muted); font-size: 14.5px; }

.summary { padding: 10px 0 4px; text-align: center; }
.summary h2 { margin: 0 0 6px; }
.summary-big { font-size: 24px; font-weight: 700; margin: 4px 0 10px; }
.summary-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.wrong-list { display: flex; flex-direction: column; gap: 6px; align-items: center; margin: 10px 0; }
.wrong-item { display: flex; align-items: center; gap: 10px; font-size: 15px; }

/* ── Перевод ────────────────────────────────────────────── */

.tr-dir { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tr-prompt { font-size: 26px; font-weight: 700; line-height: 1.35; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.tr-tag { margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.tr-input { font-size: 19px; text-align: center; }
.tr-keys { display: flex; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.key-btn {
  appearance: none;
  cursor: pointer;
  font: 700 17px/1 Arial, sans-serif;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}
.key-btn:hover { background: #f1f5f9; }
.tr-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.tr-answer { width: 100%; font-size: 16px; }
.tr-answer .label { color: var(--muted); font-size: 14px; }
.tr-answer .value { font-weight: 700; }
.tr-answer.dim .value { font-weight: 400; color: var(--muted); }
.tr-after { width: 100%; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

/* ── Импорт ─────────────────────────────────────────────── */

.dropzone {
  margin-top: 14px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.dropzone.is-hot { border-color: var(--blue); background: #eff6ff; }
.dropzone span { color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; margin: 12px 0; }
.preview { border-collapse: collapse; width: 100%; font-size: 14px; }
.preview th, .preview td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; white-space: nowrap; }
.preview th { background: #f1f5f9; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.preview tr.is-dupe td { background: #fff7ed; }
.preview caption { caption-side: bottom; padding-top: 8px; color: var(--muted); font-size: 13px; text-align: left; }

.help { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.help summary { cursor: pointer; font-weight: 700; }
.help ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.help code { background: #f1f5f9; border-radius: 5px; padding: 1px 5px; font-size: 13.5px; }

/* ── Прогресс ───────────────────────────────────────────── */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.stat-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfdff; display: flex; flex-direction: column; gap: 2px; }
.stat-card.good { background: #f0fdf4; border-color: #bbf7d0; }
.stat-card.warn { background: #fffbeb; border-color: #fde68a; }
.stat-value { font-size: 26px; font-weight: 700; }
.stat-label { font-size: 13px; color: var(--muted); }

.theme-bars { display: flex; flex-direction: column; gap: 10px; }
.theme-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.theme-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; grid-column: 1 / -1; }
.theme-name { font-weight: 700; }
.theme-num { color: var(--muted); }
.bar { height: 10px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), #4ade80); }

.activity { display: flex; gap: 10px; align-items: flex-end; padding: 10px 0; }
.act-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; }
.act-bar { width: 100%; max-width: 46px; background: var(--blue); border-radius: 6px 6px 0 0; }
.act-label { font-size: 12px; color: var(--muted); }
.act-num { font-size: 12px; font-weight: 700; }

.settings { display: flex; flex-direction: column; gap: 10px; }

/* ── Диалог ─────────────────────────────────────────────── */

.dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  max-width: 680px;
  width: calc(100% - 24px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .3);
}
.dialog::backdrop { background: rgba(15, 23, 42, .45); }
.dialog form { padding: 18px; }
.dialog h2 { margin: 0 0 14px; font-size: 19px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }

.img-editor { margin-top: 16px; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.img-preview {
  width: 120px; height: 120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .thumb-emoji { font-size: 56px; }
.img-controls { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 240px; align-content: flex-start; }
.emoji-picks { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.emoji-pick {
  appearance: none;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 7px;
}
.emoji-pick:hover { background: #f1f5f9; }

.examples { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.example-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; gap: 8px; width: 100%; }

.dialog-actions { display: flex; gap: 8px; align-items: center; margin-top: 20px; }
.dialog-actions .spacer { flex: 1 1 auto; }

/* ── Тост ───────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  background: #0f172a;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast-good { background: #166534; }
.toast-bad { background: #991b1b; }

.app-footer {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
}

/* ── Адаптив ────────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
  .site-nav:not(.is-open) { display: none; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 10px 12px; font-size: 16px; }
  .btn-cta { text-align: center; }
  .title-stats { margin-left: 0; width: 100%; }
  .word-row { grid-template-columns: 26px 48px minmax(0, 1fr); row-gap: 8px; }
  .row-meta { grid-column: 1 / -1; justify-content: flex-start; }
  .row-actions { grid-column: 1 / -1; }
  .thumb { width: 48px; height: 48px; }
  .toolbar-info { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .app-header h1 { font-size: 20px; }
  .header-inner, .app-title, .tabs { padding-left: 14px; padding-right: 14px; }
  .card-media.big { width: 180px; height: 180px; }
  .card-emoji { font-size: 72px; }
  .card-main-tr { font-size: 28px; }
  .card-main-ru { font-size: 22px; }
  .quiz-prompt { font-size: 26px; }
  .quiz-sentence { font-size: 20px; }
  .tr-prompt { font-size: 21px; }
  .options { grid-template-columns: 1fr; }
  .option-media { width: 90px; height: 90px; }
  .grade-row .grade { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill, .toast { transition: none; }
}
