:root {
  color-scheme: light;
  --page: #f6f5f1;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --line: #e1e0d9;
  --baseline: #c3c2b7;
  --wash: rgba(11, 11, 11, 0.05);
  --accent: #256abf;
  --accent-hover: #1c5cab;
  --accent-ink: #ffffff;
  --accent-wash: rgba(42, 120, 214, 0.12);
  --danger: #b42f2f;
  --series: #2a78d6;
  --r-forgot: #d03b3b;
  --r-hard: #eda100;
  --r-easy: #2a78d6;
  --r-very_easy: #1baf7a;
  --r-new: #c3c2b7;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 10px 30px rgba(11, 11, 11, 0.07);
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --line: #2c2c2a;
    --baseline: #383835;
    --wash: rgba(255, 255, 255, 0.06);
    --accent: #3987e5;
    --accent-hover: #5598e7;
    --accent-ink: #ffffff;
    --accent-wash: rgba(57, 135, 229, 0.18);
    --danger: #e66767;
    --series: #3987e5;
    --r-forgot: #d03b3b;
    --r-hard: #c98500;
    --r-easy: #3987e5;
    --r-very_easy: #199e70;
    --r-new: #52514e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100dvh;
}

h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.ar {
  font-family: var(--arabic);
  line-height: 1.7;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Шапка и вкладки ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 10px 16px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.brand .ar { font-size: 1.25rem; line-height: 1; color: var(--accent); }

.account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.account-email { overflow-wrap: anywhere; }
.account-link { color: var(--ink-2); font-weight: 550; text-decoration: none; }
.account-link:hover { color: var(--ink); }
.account-link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 550;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }


.badge {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 650;
  text-align: center;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.narrow { max-width: 560px; margin: 0 auto; }

.loading, .empty-note { color: var(--ink-2); text-align: center; padding: 48px 0; }

/* ---------- Кнопки и поля ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.btn:hover { background: var(--wash); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--danger); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 0.875rem; font-weight: 550; }
.btn-link {
  border: 0;
  background: none;
  padding: 6px 2px;
  color: var(--accent);
  font-weight: 550;
  min-height: 0;
}
.btn-link:hover { text-decoration: underline; background: none; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 0.875rem; font-weight: 550; color: var(--ink-2); }
.field .optional { font-weight: 400; color: var(--muted); }

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--baseline);
  background: var(--surface);
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.45; display: block; }
textarea.bulk-input { min-height: 260px; }
.bulk-input { font-size: 1.05rem; }
textarea.bulk-input.ar { font-size: 1.3rem; line-height: 1.7; }

.mode-switch {
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.mode-btn { border: 0; background: none; padding: 9px 16px; font-weight: 550; color: var(--ink-2); min-height: 40px; }
.mode-btn + .mode-btn { border-left: 1px solid var(--line); }
.mode-btn[aria-pressed="true"] { background: var(--accent-wash); color: var(--ink); }

.bulk-preview { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.925rem; color: var(--ink-2); }
.bulk-preview:empty { display: none; }
.bulk-preview li { overflow-wrap: anywhere; }
.bulk-preview strong { color: var(--ink); }
.input-word { font-size: 1.15rem; }
.input-word.ar { font-size: 1.5rem; line-height: 1.5; padding-block: 6px; }

.form { display: grid; gap: 14px; }
.form-error { color: var(--danger); font-size: 0.9rem; min-height: 1.3em; }
.form-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.interval-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.interval-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; }
.interval-field { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.925rem; }
.interval-input { width: 84px; text-align: center; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.panel + .panel, .panel + .section, .section + .section { margin-top: 16px; }
.panel-title { font-size: 1rem; font-weight: 650; }
.panel-sub { font-size: 0.875rem; color: var(--ink-2); margin-top: 2px; }
.page-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }

/* ---------- Вход ---------- */

.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.auth-box { width: 100%; max-width: 400px; }
.auth-brand { text-align: center; margin-bottom: 20px; }
.auth-brand .ar { font-size: 3rem; line-height: 1.3; color: var(--accent); display: block; }
.auth-brand h1 { font-size: 1.4rem; }
.auth-brand p { color: var(--ink-2); margin-top: 4px; }
.auth-switch { text-align: center; margin-top: 14px; font-size: 0.925rem; color: var(--ink-2); }
.auth-legal { text-align: center; margin-top: 18px; font-size: 0.8rem; }
.auth-legal a { color: var(--muted); }
.auth-legal a:hover { color: var(--ink-2); }

/* ---------- Текстовые страницы (политика конфиденциальности) ---------- */
.doc { max-width: 680px; line-height: 1.6; }
.doc h2 { font-size: 1.1rem; font-weight: 650; margin: 28px 0 8px; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.doc a { color: var(--accent); }
.doc .back-link { color: var(--ink-2); }
.doc .page-sub { margin: -8px 0 20px; }

.auth-alt { display: grid; gap: 12px; margin-top: 14px; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; gap: 10px; }

/* ---------- Повторение ---------- */

.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100dvh - 150px);
}

.progress { display: grid; gap: 6px; }
.progress-text { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--ink-2); }
.progress-track { height: 6px; border-radius: 999px; background: var(--accent-wash); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }

.card {
  flex: 1;
  min-height: 260px;
  max-height: 460px;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  perspective: 1400px;
  -webkit-tap-highlight-color: transparent;
}
.card:focus-visible { outline: none; }
.card:focus-visible .card-face { outline: 2px solid var(--accent); outline-offset: 3px; }

.card-inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.card.flipped .card-inner { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow-y: auto;
  text-align: center;
}
.card-back { transform: rotateY(180deg); }

.card-word {
  font-size: clamp(2.6rem, 11vw, 4.25rem);
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.card-word:not(.ar) { font-size: clamp(1.8rem, 7vw, 2.75rem); line-height: 1.25; }
.card-hint { font-size: 0.85rem; color: var(--muted); }

.card-small { font-size: 1.5rem; color: var(--ink-2); line-height: 1.5; }
.card-translation { font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.card-translation.ar { line-height: 1.6; }
/* Содержимое стороны: по центру, пока помещается; длинный текст прокручивается с самого начала. */
.card-content {
  margin: auto 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.card-text {
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: start;
}
.card-text.ar { font-size: 1.3rem; line-height: 1.8; }

.ratings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: sticky;
  bottom: 0;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--page) 80%, transparent);
}

.rate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 68px;
  padding: 12px 4px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  line-height: 1.15;
}
.rate::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--rate-color);
}
.rate:hover:not(:disabled) { background: var(--wash); }
.rate:active:not(:disabled) { transform: translateY(1px); }
.rate:disabled { opacity: 0.45; cursor: default; }
.rate-label { font-weight: 650; font-size: 0.9rem; }
.rate-days { font-size: 0.75rem; color: var(--ink-2); }
.rate[data-rating="forgot"] { --rate-color: var(--r-forgot); }
.rate[data-rating="hard"] { --rate-color: var(--r-hard); }
.rate[data-rating="easy"] { --rate-color: var(--r-easy); }
.rate[data-rating="very_easy"] { --rate-color: var(--r-very_easy); }

.done {
  text-align: center;
  padding: 40px 20px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.done-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
}
.done h2 { font-size: 1.35rem; }
.done p { color: var(--ink-2); max-width: 36ch; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.done .segbar-wrap { width: 100%; max-width: 380px; text-align: start; }

/* ---------- Слова ---------- */

/* ---------- Папки ---------- */

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head .page-title { margin-bottom: 0; overflow-wrap: anywhere; }
.page-sub { color: var(--ink-2); font-size: 0.925rem; margin: -8px 0 14px; }
.head-actions { display: flex; gap: 16px; }
.btn-link-danger { color: var(--danger); }
.btn-block { display: flex; width: 100%; margin-bottom: 14px; }

.back-link { display: inline-block; margin-bottom: 10px; color: var(--ink-2); font-size: 0.9rem; font-weight: 550; text-decoration: none; }
.back-link:hover { color: var(--ink); }

.folder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) {
  .folder-list { grid-template-columns: 1fr 1fr; }
}
.folder-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.folder-card:hover { border-color: var(--baseline); background: var(--wash); }
.folder-main { display: grid; gap: 2px; min-width: 0; }
.folder-name { font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; text-align: left; }
.folder-name.ar { font-size: 1.35rem; line-height: 1.4; }
.folder-meta { font-size: 0.85rem; color: var(--ink-2); }
.folder-due { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink-2); white-space: nowrap; }
.folder-due-none { color: var(--muted); }
.folder-link { color: var(--ink); font-weight: 550; text-decoration: none; }
.folder-link:hover { text-decoration: underline; }

.folder-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.folder-actions .btn { flex: 1 1 150px; }
.folder-actions + .input { margin-bottom: 10px; }

.review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.review-head .back-link { margin-bottom: 0; }
.review-scope { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; text-align: right; }

select.input { appearance: auto; }

.count-note { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 8px; }

.word-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.word-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.word-main { min-width: 0; display: grid; gap: 2px; }
.word-front { font-size: 1.5rem; font-weight: 600; overflow-wrap: anywhere; text-align: left; }
.word-front:not(.ar) { font-size: 1.15rem; }
.word-back {
  color: var(--ink-2);
  overflow-wrap: anywhere;
  text-align: left;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.word-back.ar { line-height: 1.5; }
.word-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; color: var(--ink-2); margin-top: 4px; }
.level { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--r-new)); flex: none; }
.word-actions { display: flex; flex-direction: column; gap: 6px; }

@media (min-width: 560px) {
  .word-actions { flex-direction: row; }
}

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

dialog {
  width: min(92vw, 460px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog h2 { font-size: 1.15rem; margin-bottom: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ---------- Статистика ---------- */

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.tile-label { font-size: 0.85rem; color: var(--ink-2); }
.tile-value { font-size: 1.9rem; font-weight: 650; line-height: 1.2; margin-top: 2px; }
.tile-note { font-size: 0.8rem; color: var(--ink-2); }

.stats-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .wide { grid-column: 1 / -1; }
}
.stats-grid .panel { margin: 0; }

.chart {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 6px;
  margin-top: 16px;
}
.yaxis { position: relative; height: 150px; }
.yaxis span {
  position: absolute;
  right: 0;
  transform: translateY(50%);
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.plot { position: relative; height: 150px; border-bottom: 1px solid var(--baseline); }
.gridline { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.cols { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1px;
}
.col:hover { background: var(--wash); }
.bar {
  width: 100%;
  max-width: 24px;
  min-height: 2px;
  background: var(--series);
  border-radius: 4px 4px 0 0;
}
.col-value { font-size: 0.75rem; color: var(--ink-2); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.xaxis { grid-column: 2; display: flex; margin-top: 6px; }
.xaxis span {
  flex: 1;
  display: flex;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 0;
}
.xaxis span:last-child { justify-content: flex-end; }
.xaxis span:first-child { justify-content: flex-start; }
.tip {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--page);
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
}

.segbar-wrap { margin-top: 16px; }
.segbar { display: flex; gap: 2px; height: 14px; }
.seg { min-width: 4px; background: var(--seg); }
.seg:first-child { border-radius: 4px 0 0 4px; }
.seg:last-child { border-radius: 0 4px 4px 0; }
.seg:only-child { border-radius: 4px; }
.segbar-empty { height: 14px; border-radius: 4px; background: var(--wash); }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.legend .legend-value { margin-left: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.hero { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.hero-value { font-size: 2rem; font-weight: 650; line-height: 1.1; }
.hero-note { color: var(--ink-2); font-size: 0.875rem; }

.hard-list { list-style: none; margin: 12px 0 0; padding: 0; }
.hard-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.hard-list li:first-child { border-top: 0; }
.hard-word { font-size: 1.3rem; font-weight: 600; }
.hard-tr { color: var(--ink-2); min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hard-count { color: var(--ink-2); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

details.table-view { margin-top: 12px; font-size: 0.875rem; }
details.table-view summary { color: var(--ink-2); cursor: pointer; }
.table-view table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { text-align: left; padding: 5px 8px 5px 0; border-top: 1px solid var(--line); }
.table-view th { font-weight: 600; color: var(--ink-2); border-top: 0; }

/* ---------- Уведомление ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--page);
  font-size: 0.925rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

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