:root {
  color-scheme: light;
  --page: #f7f9fc;
  --surface: #ffffff;
  --text: #18212f;
  --muted: #687386;
  --line: #dfe5ed;
  --accent: #58a700;
  --accent-soft: #efffdc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 55%);
  outline-offset: 4px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.import-panel { margin-bottom: 1rem; }
.import-panel h2 { margin: .2rem 0; }
.import-panel > p { color: var(--muted); }

.app-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  background:
    radial-gradient(circle at 10% 0%, rgba(88, 167, 0, 0.16), transparent 34rem),
    var(--page);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 760px);
  min-width: 0;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem);
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.prototype-badge,
.language-pill {
  width: fit-content;
  padding: 0.35rem 0.65rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #cbd8ff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  padding: clamp(1rem, 5vw, 2.5rem) 1rem 3rem;
}

.screen {
  width: min(100%, 680px);
  min-width: 0;
}

.start-screen,
.complete-screen {
  text-align: center;
}

.start-screen .language-pill {
  margin: 0 auto 1.2rem;
}

.start-screen h1,
.complete-screen h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 11vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.start-screen p,
.complete-screen p {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: #536074;
  font-size: clamp(1.05rem, 3vw, 1.22rem);
}

.primary-button {
  min-height: 54px;
  padding: 0.8rem 1.35rem;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(88, 167, 0, 0.23);
  font-weight: 750;
  cursor: pointer;
}

.primary-button:hover {
  background: #438400;
}

.primary-button:focus-visible,
.choice:focus-visible,
.suggestions button:focus-visible {
  outline: 3px solid rgba(36, 87, 214, 0.35);
  outline-offset: 3px;
}

.session-status {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.session-status > div {
  display: grid;
  gap: 0.05rem;
}

.status-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.session-status strong {
  font-size: 1.25rem;
}

.score-box {
  text-align: right;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #dfe5ed;
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 180ms ease;
}

.var-badge {
  width: fit-content;
  margin: 0 auto 0.7rem;
  padding: 0.35rem 0.7rem;
  color: #9c2d17;
  background: #fff0eb;
  border: 1px solid #f5c1b5;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.word-card {
  display: grid;
  min-height: 330px;
  padding: clamp(1.5rem, 6vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(31, 43, 61, 0.09);
}

.word-card.is-revealing {
  cursor: pointer;
}

.word-card.is-revealing:focus-visible {
  outline: 3px solid rgba(36, 87, 214, 0.35);
  outline-offset: 4px;
}

#question-view {
  align-self: center;
  text-align: center;
}

.card-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.word-card h2 {
  margin: 0.65rem 0;
  font-size: clamp(2rem, 8vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.choice {
  min-height: 72px;
  padding: 0.75rem;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(31, 43, 61, 0.16);
  font-size: 1.2rem;
  font-weight: 850;
  text-transform: lowercase;
  cursor: pointer;
}

.choice:hover {
  filter: saturate(1.12) brightness(0.98);
  transform: translateY(-2px);
}

.choice-know {
  color: #fff;
  background: #16a34a;
}

.choice-no {
  color: #fff;
  background: #ef4444;
}

.answer-form {
  align-self: center;
  display: grid;
  gap: 0.75rem;
}

.answer-form label {
  font-weight: 750;
}

.answer-form input {
  width: 100%;
  min-height: 58px;
  padding: 0.75rem 1rem;
  color: var(--text);
  background: #fbfcfe;
  border: 2px solid #b8c4d5;
  border-radius: 14px;
  font-size: 1.2rem;
}

.answer-form input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(36, 87, 214, 0.12);
}

.suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.suggestions:empty {
  display: none;
}

.suggestions button {
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  color: #33415a;
  background: var(--accent-soft);
  border: 1px solid #cbd8ff;
  border-radius: 10px;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.answer-reveal {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.answer-reveal strong {
  color: var(--accent);
  font-size: clamp(2.4rem, 10vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.answer-translation {
  margin-top: -0.45rem;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.35rem);
  line-height: 1.3;
}

.mascot {
  display: block;
  object-fit: cover;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(31, 43, 61, 0.14);
}

.mascot-login,
.mascot-start,
.mascot-complete {
  width: 132px;
  height: 132px;
  margin: 0 auto 1rem;
}

.mascot-start {
  width: 116px;
  height: 116px;
  margin-bottom: 0.8rem;
}

.mascot-complete {
  width: 150px;
  height: 150px;
}

.points-delta {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 850;
}

.points-positive {
  color: #08783f;
  background: #dcfce7;
}

.points-negative {
  color: #b42318;
  background: #fee4e2;
}

.return-button {
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  color: #465267;
  background: #fff;
  border: 1px solid #b8c4d5;
  border-radius: 12px;
  font-weight: 750;
  cursor: pointer;
}

.return-button:hover {
  color: var(--text);
  border-color: #8997aa;
  background: #f7f9fc;
}

.return-button:focus-visible {
  outline: 3px solid rgba(36, 87, 214, 0.35);
  outline-offset: 3px;
}

.complete-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem;
  color: #fff;
  background: #138a5b;
  border-radius: 50%;
  font-size: 2.4rem;
  font-weight: 800;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

@media (max-width: 480px) {
  .app-header .prototype-badge { display: none; }
  .account-actions { gap: .45rem; }
  .header-language-switch button { padding-inline: .5rem; }
  .alex-bundle-head { flex-direction: column; align-items: stretch; }
  .alex-bundle-head .primary-button { width: 100%; }
}

.header-language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: #e9edf4;
  border-radius: 999px;
}

.header-language-switch button {
  min-height: 34px;
  padding: 0.25rem 0.65rem;
  color: #59667a;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.header-language-switch button.is-selected {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 2px 8px rgba(31,43,61,.1);
}

.learning-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: -0.75rem auto 1.5rem;
}

.learning-summary span {
  padding: 0.4rem 0.65rem;
  color: #536074;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
}

.learning-summary .streak-pill { color: #9a3412; background: #fff7ed; border-color: #fed7aa; }
.learning-summary .streak-pill::before { content: "🔥"; margin-right: .2rem; filter: grayscale(1); }
.learning-summary .streak-pill.is-active::before { filter: none; }

.alex-bundle-list {
  display: grid;
  min-width: 0;
  gap: 0.85rem;
  width: min(100%, 680px);
  margin: 0 auto;
  text-align: left;
}

.alex-bundle-card {
  min-width: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(31,43,61,.07);
}

.alex-bundle-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.alex-bundle-head h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.alex-bundle-head p { margin: .25rem 0 0; color: var(--muted); }
.alex-bundle-head .primary-button { min-width: 112px; }
.bundle-study-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: .8rem; }
.direction-switch { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem .7rem; color: #5b2b82; background: var(--accent-soft); border: 1px solid #d9bdf1; border-radius: 12px; font-size: .88rem; font-weight: 750; cursor: pointer; }
.direction-switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.bundle-active-progress { margin: .8rem 0 0; padding: .6rem .75rem; color: var(--accent); background: var(--accent-soft); border-radius: 10px; font-weight: 750; }
.bundle-empty-history { margin: .75rem 0 0; color: var(--muted); font-size: .9rem; }
.bundle-history { display: grid; gap: .35rem; margin-top: .8rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.bundle-history > strong { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.bundle-history span { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; font-size: .9rem; }
.bundle-history b { font-weight: 700; }

.warmup-badge {
  width: fit-content;
  margin: 0 auto 0.7rem;
  padding: 0.35rem 0.7rem;
  color: #6b3a00;
  background: #fff5d6;
  border: 1px solid #f2d285;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.text-button {
  padding: 0.35rem 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-weight: 750;
  cursor: pointer;
}

.login-screen {
  max-width: 520px;
  text-align: center;
}

.login-screen .language-pill {
  margin: 0 auto 1rem;
}

.login-screen h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.3rem, 9vw, 4rem);
}

.login-screen > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.login-card,
.admin-card {
  padding: clamp(1rem, 4vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(31, 43, 61, 0.08);
}

.login-card {
  display: grid;
  gap: 0.8rem;
  text-align: left;
}

.login-card label,
.bundle-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 750;
}

.login-card input,
.bundle-form input,
.bundle-form select,
.bundle-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  background: #fbfcfe;
  border: 1px solid #b8c4d5;
  border-radius: 11px;
}

.bundle-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.role-button {
  min-height: 48px;
  color: #465267;
  background: #f2f5f9;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.role-button.is-selected {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #9bb4ff;
  box-shadow: inset 0 0 0 1px #9bb4ff;
}

.form-error {
  margin: 0;
  padding: 0.65rem 0.8rem;
  color: #a12018;
  background: #fff0ed;
  border: 1px solid #ffc9c2;
  border-radius: 10px;
  font-weight: 650;
}

.parent-area {
  width: min(100%, 900px);
}

.parent-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.parent-heading h1 {
  margin: 0.5rem 0 0;
}

.bundle-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bundle-form h2,
.bundle-card h2 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-actions,
.bundle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.bundle-list {
  display: grid;
  gap: 0.75rem;
}

.bundle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bundle-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.bundle-actions button {
  min-height: 42px;
  padding: 0.5rem 0.7rem;
  color: #33415a;
  background: #f2f5f9;
  border: 1px solid #c8d1de;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.bundle-actions .danger-button {
  color: #a12018;
  background: #fff4f2;
  border-color: #ffc9c2;
}

.status-chip {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.5rem;
  color: #465267;
  background: #eef1f5;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-active { color: #08783f; background: #dcfce7; }
.status-completed { color: #2457d6; background: #edf2ff; }
.status-disabled { color: #667085; background: #e4e7ec; }
.bundle-card.is-disabled { opacity: .62; background: #f2f4f7; }

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-page {
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--surface);
}

.site-footer {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  font-size: 0.95rem;
  color: inherit;
}

.preview-dialog { width: min(calc(100% - 1.5rem), 680px); max-height: min(86svh, 820px); padding: 1rem; color: var(--text); background: var(--surface); border: 0; border-radius: 22px; box-shadow: 0 24px 80px rgba(24,33,47,.28); }
.preview-dialog::backdrop { background: rgba(24,33,47,.55); backdrop-filter: blur(3px); }
.preview-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.preview-heading h2 { margin: .2rem 0 0; }
.dialog-close { width: 44px; height: 44px; color: var(--muted); background: #f2f5f9; border: 0; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.preview-description { color: var(--muted); }
.preview-words { display: grid; max-height: 56svh; overflow: auto; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 14px; }
.preview-word { display: grid; grid-template-columns: 2rem minmax(0,1fr) minmax(0,1fr); gap: .65rem; padding: .7rem; align-items: start; }
.preview-word + .preview-word { border-top: 1px solid var(--line); }
.preview-word > span { color: var(--muted); font-size: .82rem; }
.preview-word strong,.preview-word b { overflow-wrap: anywhere; }
.preview-word b { color: var(--accent); }

.docs-page {
  background: var(--page);
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0.75rem max(1rem, env(safe-area-inset-left));
  color: var(--surface);
  background: #18212f;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.docs-topbar a {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}

.docs-topbar span {
  color: #b9c3d1;
  font-size: 0.9rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 860px);
  gap: 2rem;
  justify-content: center;
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

.docs-toc {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.docs-toc strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.docs-toc ul {
  margin: 0;
  padding-left: 1.1rem;
}

.docs-toc li {
  margin: 0.35rem 0;
}

.docs-toc ul ul {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.docs-toc a {
  color: #465267;
  text-decoration: none;
}

.docs-toc a:hover {
  color: var(--accent);
}

.docs-content {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(31, 43, 61, 0.06);
}

.docs-content > h1:not(:first-child) {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 2px solid var(--line);
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  scroll-margin-top: 88px;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 6vw, 3.15rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 2.7rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

p,
ul,
ol,
blockquote,
table,
pre {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

li + li {
  margin-top: 0.35rem;
}

code {
  padding: 0.12rem 0.35rem;
  background: var(--accent-soft);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

pre {
  max-width: 100%;
  overflow: auto;
  padding: 1rem;
  color: #f5f7fb;
  background: #18212f;
  border-radius: 10px;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

blockquote {
  margin-left: 0;
  padding: 0.75rem 1rem;
  color: #465267;
  background: #f5f7fa;
  border-left: 4px solid #9aabc2;
}

.table-wrap,
.docs-content table {
  max-width: 100%;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-spacing: 0;
  border-collapse: collapse;
}

th,
td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

th {
  background: #f2f5f9;
}

@media (max-width: 800px) {
  .docs-topbar span {
    display: none;
  }

  .docs-layout {
    display: block;
    padding: 1rem 0.75rem 3rem;
  }

  .docs-toc {
    position: static;
    max-height: none;
    margin-bottom: 1rem;
  }

  .docs-toc ul ul {
    display: none;
  }

  .docs-content {
    border-radius: 14px;
  }
}

@media (max-width: 900px) and (pointer: coarse), (max-width: 560px) {
  .game-shell {
    align-items: start;
    padding-top: 1rem;
  }

  .word-card {
    min-height: 290px;
    border-radius: 20px;
  }

  .choice {
    min-height: 64px;
  }

  .site-footer {
    padding: 1rem;
  }

  .verification-active {
    grid-template-rows: 1fr;
  }

  .verification-active .app-header,
  .verification-active .site-footer {
    display: none;
  }

  .verification-active .game-shell {
    place-items: start center;
    min-height: 100svh;
    padding: max(0.35rem, env(safe-area-inset-top)) 0.75rem 0.35rem;
  }

  .is-verifying .session-status {
    margin-bottom: 0.25rem;
  }

  .is-verifying .status-label {
    font-size: 0.68rem;
  }

  .is-verifying .session-status strong {
    font-size: 1rem;
    line-height: 1.1;
  }

  .is-verifying .progress-track {
    height: 6px;
    margin-bottom: 0.4rem;
  }

  .is-verifying .var-badge {
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
  }

  .is-verifying .warmup-badge {
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
  }

  .is-verifying .word-card {
    min-height: 0;
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 43, 61, 0.08);
  }

  .is-verifying #question-view {
    align-self: start;
  }

  .is-verifying .word-card h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 6vw, 1.8rem);
    line-height: 1.05;
  }

  .is-verifying .answer-form {
    align-self: start;
    gap: 0.4rem;
  }

  .is-verifying .answer-form label {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .is-verifying .answer-form input {
    min-height: 48px;
    padding: 0.55rem 0.75rem;
    font-size: 1.05rem;
  }

  .is-verifying .suggestions {
    gap: 0.35rem;
  }

  .is-verifying .suggestions button {
    min-height: 40px;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .is-verifying .primary-button {
    min-height: 46px;
    padding: 0.55rem 0.75rem;
  }

  .parent-heading,
  .bundle-card {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    flex-wrap: wrap;
  }

  .account-actions {
    gap: 0.4rem;
  }

  .header-language-switch button {
    padding-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
