/* Exercise hub, lesson player and review. Tokens come from main.css. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html[lang="de"] .en-only { display: none; }

.page { padding-block: clamp(32px, 5vw, 56px) var(--section-y); }

.page-head { max-width: 60rem; margin-bottom: 32px; }

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem);
  line-height: 1.08;
}
.page-title--lesson {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem);
}
.page-title--lesson .level-tag { font-size: 1rem; padding: 4px 10px; }
/* Long German compounds (Wechselpräpositionen) must break on narrow screens. */
.page-title--lesson > [lang] { min-width: 0; max-width: 100%; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

.save-note { margin-top: 12px; font-size: 0.95rem; color: var(--ink-2); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.95rem; color: var(--ink-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--ink); text-underline-offset: 4px; }

/* ---------- Hub ---------- */
.hub-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  margin-top: 20px;
  font-weight: 500;
}
.hub-stats p:empty { display: none; }
.hub-stats a[aria-disabled="true"] { color: var(--ink-2); font-weight: 400; }
.hub-stats a[href] { text-decoration: underline; text-underline-offset: 4px; }

.filters {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
  padding: 20px;
  background: var(--band);
  border-radius: var(--r-m);
}
.filters__group { display: grid; grid-template-columns: 7rem 1fr; align-items: center; gap: 12px; }
.filters__label { font-weight: 600; font-size: 0.95rem; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.filter {
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .filter[aria-pressed="false"]:hover { border-color: var(--ink); }
}

.level-group + .level-group { margin-top: 48px; }
.level-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
}
.level-group__title .level-tag { font-family: var(--font-body); font-size: 0.95rem; }

.lesson-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 16px;
}
.lesson-list > li { display: flex; }

.lesson-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 22px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  text-decoration: none;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.lesson-card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .lesson-card:hover { border-color: var(--ink); }
  .lesson-card:hover .lesson-card__cta { text-decoration: underline; }
}
.lesson-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.lesson-card__summary { font-size: 1rem; color: var(--ink-2); text-wrap: pretty; }
.lesson-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lesson-card__grammar { font-size: 0.92rem; color: var(--ink-2); }
.lesson-card__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.lesson-card__foot .bar { grid-column: 1 / -1; width: 100%; }
.lesson-card__progress { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lesson-card__cta { font-weight: 600; text-underline-offset: 4px; }

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
  background: var(--band);
  color: var(--ink);
}
.skill-tag--hoeren { background: var(--der-soft); color: #1B4480; }
.skill-tag--lesen { background: #EFE7F6; color: #5A3380; }
.skill-tag--schreiben { background: var(--die-soft); color: var(--die-ink); }
.skill-tag--wortschatz { background: var(--das-soft); color: #1F6437; }
.skill-tag--grammatik { background: #F4E4DE; color: #8A3A1E; }

.empty { padding: 32px 0; color: var(--ink-2); }

/* ---------- Lesson layout ---------- */
.lesson-head { max-width: 60rem; margin-bottom: 28px; }

.lesson-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.lesson-steps { position: sticky; top: 96px; }
.lesson-steps__title { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.steps { display: grid; gap: 2px; }
.steps__link {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--r-s);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: background-color 200ms ease;
}
.steps__link[aria-current="step"] { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .steps__link:not([aria-current]):hover { background: var(--band); }
}
.steps__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.steps__dot.is-done { background: var(--das); border-color: var(--das); }
.steps__dot.is-tried { background: var(--die); border-color: var(--die); }
.steps__score { font-size: 0.82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.step-select { display: none; }
.step-select select {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

/* ---------- Exercise card ---------- */
.ex-card {
  padding: clamp(20px, 3.5vw, 36px);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-l);
}
.ex-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.ex-card__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.15;
}
.ex-card__title:focus { outline: none; }
.ex-card__title:focus-visible { outline: 3px solid var(--der); outline-offset: 4px; }
.ex-card__prompt { margin-top: 10px; font-weight: 500; max-width: 42em; }
.ex-card__prompt-en { margin-top: 2px; font-size: 0.95rem; color: var(--ink-2); max-width: 42em; }

.tip { margin-top: 16px; border-radius: var(--r-s); background: var(--der-soft); }
.tip summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.tip p { padding: 0 14px 14px; max-width: 42em; }

.audio-box {
  margin-top: 18px;
  padding: 16px;
  background: var(--band);
  border-radius: var(--r-m);
}
.audio-box__ctl { display: flex; flex-wrap: wrap; gap: 10px; }
.audio-box__note { margin-top: 10px; font-size: 0.9rem; color: var(--ink-2); }
.no-speech .audio-box__note { margin-top: 0; }
.transcript { margin-top: 12px; }
.transcript summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.transcript__lines p { margin-top: 6px; }

.reading {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--line);
  background: var(--bg);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  max-width: 46em;
}
.reading p + p { margin-top: 10px; }

.ex-body { margin-top: 24px; }
.help { margin-bottom: 14px; font-size: 0.95rem; color: var(--ink-2); }

/* Choice, true/false, multi */
.q { margin: 0; padding: 0; border: 0; min-width: 0; }
.q + .q { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.q__text { padding: 0; font-weight: 500; margin-bottom: 10px; }
.opts { display: grid; gap: 8px; }
.opts--row { display: flex; flex-wrap: wrap; }

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.opt input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.opt:has(input:focus-visible) { outline: 3px solid var(--der); outline-offset: 2px; }
.opt:has(input:disabled) { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .opt:has(input:not(:disabled)):hover { border-color: var(--ink); }
}

/* Verdicts */
.is-right { border-color: var(--das) !important; background: var(--das-soft) !important; }
.is-wrong { border-color: var(--wrong) !important; background: #FBE9E7 !important; }
.is-near { border-color: var(--die) !important; background: var(--die-soft) !important; }
.is-solution { box-shadow: inset 0 0 0 2px var(--das); }
.opt.is-solution { border-color: var(--das); }

.mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
}
.mark--right { background: var(--das); }
.mark--wrong { background: var(--wrong); }
.mark svg { width: 15px; height: 15px; }

.near-hint { display: block; margin-top: 4px; font-size: 0.88rem; color: var(--die-ink); }

.solution {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--das-soft);
  color: #1F6437;
  font-size: 0.95rem;
}
.solution__label { font-size: 0.85rem; }

/* Gaps */
.gap-lines { display: grid; gap: 14px; max-width: 48em; }
.gap-line { line-height: 2.4; }

.gap-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; vertical-align: middle; margin-inline: 2px; }
.gap-wrap--block { display: flex; margin: 8px 0 0; }
.gap-wrap .mark { margin-left: 2px; }

.gap {
  min-height: 44px;
  padding: 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.3;
  transition: border-color 200ms ease;
}
.gap:focus-visible { outline: 3px solid var(--der); outline-offset: 1px; border-color: var(--ink); }
.gap--type { min-width: 4ch; max-width: 100%; }
.gap--wide { width: min(100%, 32rem); }
.gap--select { max-width: 100%; }
.gap:disabled { opacity: 1; color: var(--ink); }

.bank {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-m);
}
.bank__label { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.bank__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: border-color 200ms ease, background-color 200ms ease, opacity 200ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip.is-used { opacity: 0.45; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip:disabled { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .chip:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--ink); }
}

.table-scroll { overflow-x: auto; }
.ex-table { border-collapse: collapse; min-width: min(100%, 420px); }
.ex-table th, .ex-table td { padding: 8px 14px 8px 0; text-align: left; border-bottom: 1px solid var(--line); }
.ex-table thead th { font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }
.ex-table tbody th { font-weight: 600; white-space: nowrap; }

/* Match */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.match__col { display: grid; gap: 10px; align-content: start; }
.pick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.pick:active { transform: scale(0.98); }
.pick[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pick.is-paired { background: var(--bg); border-color: var(--ink-2); }
.pick__num {
  display: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.pick.is-paired .pick__num { display: inline-grid; }
.pick__text { flex: 1; min-width: 0; }
.pick .solution { margin-left: 36px; }
@media (hover: hover) and (pointer: fine) {
  .pick:not(:disabled):hover { border-color: var(--ink); }
}

/* Sort */
.pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 60px;
  padding: 10px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-m);
}
.buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 16px; }
.bucket { border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--bg); overflow: hidden; }
.bucket__head {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: var(--band);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .bucket__head:not(:disabled):hover { background: var(--line); }
}
.bucket__items { display: flex; flex-wrap: wrap; gap: 8px; min-height: 64px; padding: 10px; }

/* Order */
.order { display: grid; gap: 8px; max-width: 46em; }
.order__item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
}
.order__item .mark { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 96px; }
.order__pos { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--band); font-weight: 600; font-size: 0.9rem; }
.order__ctl { display: flex; gap: 4px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:not(:disabled):hover { border-color: var(--ink); }
}

/* Build a sentence */
.build + .build { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.build__en { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 8px; }
.build__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-bottom-width: 3px;
  border-radius: var(--r-s);
  background: var(--bg);
}
.build__line .chip { background: var(--surface); border-color: var(--ink-2); }
.build__line .chip.is-first::first-letter { text-transform: uppercase; }
.build__pool { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Rewrite and dictation */
.typed + .typed { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.typed__from { font-weight: 500; }
.cue { color: var(--ink-2); font-weight: 400; }
.typed__audio { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Word snake */
.snake { display: flex; flex-wrap: wrap; gap: 3px; max-width: 46em; }
.snake__cell {
  width: 40px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: lowercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.snake__cell[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.snake__cell.is-found { background: var(--das-soft); border-color: var(--das); color: #1F6437; }
.snake__cell.is-solution { background: var(--die-soft); border-color: var(--die); }
.snake__count { margin-top: 14px; font-weight: 600; }
.snake__found { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.snake__found li { padding: 2px 10px; border-radius: 999px; background: var(--das-soft); color: #1F6437; font-weight: 500; }

/* Articles */
.arts { display: grid; gap: 10px; }
.art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  min-width: 0;
}
.art__noun { display: flex; align-items: baseline; gap: 10px; padding: 0; float: left; font-family: var(--font-display); font-size: 1.3rem; }
.art__en { font-family: var(--font-body); font-size: 0.9rem; color: var(--ink-2); }
.art__opts { display: flex; gap: 8px; }
.art__opts .opt { min-width: 84px; justify-content: center; font-weight: 600; }
.opt--der span { color: var(--der); }
.opt--die span { color: var(--die-ink); }
.opt--das span { color: var(--das); }
.art__opts .opt .mark { margin-left: 4px; }

/* Writing */
.write__label { display: block; font-weight: 600; margin-bottom: 8px; }
.write__area {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}
.write__area:focus-visible { outline: 3px solid var(--der); outline-offset: 1px; }
.write__count { margin-top: 6px; font-size: 0.92rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.write__count.is-enough { color: #1F6437; }
.checklist { margin: 18px 0 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-m); }
.checklist legend { padding: 0 6px; font-weight: 600; }
.checklist__item { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.checklist__item input { width: 18px; height: 18px; accent-color: var(--das); }
.model { margin-top: 16px; padding: 0 16px; border-radius: var(--r-m); background: var(--das-soft); }
.model summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.model p { padding-bottom: 16px; white-space: pre-line; }

/* Umlaut keys */
.umlauts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.umlauts__key {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.umlauts__key:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .umlauts__key:hover { border-color: var(--ink); }
}

/* Result and actions */
.result:empty { display: none; }
.result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: var(--band);
}
.result--top { background: var(--die-soft); }
.result--good { background: var(--der-soft); }
.result__face { width: 52px; height: 52px; flex-shrink: 0; }
.result__score { font-weight: 600; font-variant-numeric: tabular-nums; }

.ex-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ex-actions [hidden] { display: none; }

.story-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }

.done-table { width: 100%; margin-top: 20px; border-collapse: collapse; }
.done-table th, .done-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.done-table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.done-table a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-underline-offset: 4px; }

/* ---------- Review ---------- */
.review-group + .review-group { margin-top: 36px; }
.review-group__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 12px; }
.review-list { display: grid; gap: 12px; }
.review-item { padding: 16px 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-m); }
.review-item__title { font-weight: 600; }
.review-item__ctx { margin-top: 4px; color: var(--ink-2); }
.review-item__answers { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 4px; }
.review-item__answers dt { color: var(--ink-2); font-size: 0.95rem; }
.review-item__answers .is-given { color: var(--wrong); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.review-item__answers .is-correct { color: #1F6437; font-weight: 600; }
#clear-mistakes { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-steps { position: static; }
  .steps, .lesson-steps__title { display: none; }
  .step-select { display: block; font-weight: 600; font-size: 0.95rem; }
}

@media (max-width: 600px) {
  .filters { padding: 16px; }
  .filters__group { grid-template-columns: 1fr; gap: 6px; }
  .match { grid-template-columns: 1fr; }
  .match__col + .match__col { padding-top: 12px; border-top: 1.5px dashed var(--line); }
  .order__item { grid-template-columns: 28px 1fr; }
  .order__ctl { grid-column: 1 / -1; justify-content: flex-end; }
  .order__item .mark { grid-column: 2; grid-row: 1; margin-right: 0; }
  .art__opts { width: 100%; }
  .art__opts .opt { flex: 1; min-width: 0; }
  .snake__cell { width: 34px; }
  .ex-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .filter:active, .chip:active, .pick:active, .icon-btn:active, .umlauts__key:active, .lesson-card:active { transform: none; }
}
