/* 发音基础 — reuse WordNap cream tokens, do not invent a new theme. */

#screen-home .home-actions #btn-phonics-home,
#screen-home #btn-phonics-home,
.phonics-home-entry {
  align-self: flex-start;
  margin-top: 4px;
  height: auto;
  min-height: 32px;
  max-height: none;
  padding: 4px 2px;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  width: auto;
  max-width: none;
  min-width: 0;
}
#screen-home .home-actions #btn-phonics-home:active,
#screen-home #btn-phonics-home:active,
.phonics-home-entry:active {
  transform: none;
  filter: none;
  color: var(--text-accent);
}

/* Onboarding entry uses the shared .path-card style (see product.css). */

#screen-phonics {
  padding-bottom: 0;
}
#screen-phonics .topbar { flex-shrink: 0; }
#screen-phonics .phonics-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 20px calc(20px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phonics-banner {
  margin: 0;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.phonics-banner strong {
  color: var(--text-primary);
  font-weight: 800;
}
.phonics-audio-note {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.45;
}

.phonics-track {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 18px var(--shadow);
}
.phonics-track h3 {
  font-family: var(--display);
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}
.phonics-track .phonics-track-blurb {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.phonics-track .phonics-track-status {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  line-height: 1.4;
}
.phonics-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phonics-lesson-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 12px 12px;
  min-height: 48px;
}
.phonics-lesson-btn:active { transform: scale(.99); }
.phonics-lesson-btn .phonics-lesson-copy { flex: 1; min-width: 0; }
.phonics-lesson-btn .phonics-lesson-title {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
}
.phonics-lesson-btn .phonics-lesson-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.phonics-done-dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--status-unseen);
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.phonics-lesson-btn.is-done .phonics-done-dot {
  background: var(--status-remembered);
  color: var(--text-on-accent);
}

.phonics-progress {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.phonics-progress span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-muted);
}
.phonics-progress span.on { background: var(--fill-accent); }
.phonics-progress span.done { background: var(--status-remembered); }

.phonics-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.phonics-heading {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}
.phonics-body-copy {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.phonics-letter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.phonics-letter-chip {
  min-width: 52px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--bg-surface);
  box-shadow: 0 6px 14px var(--shadow);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.phonics-ipa, .phonics-ipa-opt .phonics-ipa {
  font-family: var(--font-ipa);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  user-select: text;
  -webkit-user-select: text;
}
.phonics-pair {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.phonics-pair-card {
  flex: 1 1 140px;
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 14px var(--shadow);
  text-align: left;
}
.phonics-pair-card .lbl {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-tertiary);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.phonics-pair-card .val {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.phonics-examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.phonics-word-card,
.phonics-choice {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 6px 14px var(--shadow);
  border: 2px solid transparent;
  min-width: 0;
}
.phonics-choice { cursor: pointer; }
.phonics-choice:active { transform: scale(.985); }
.phonics-choice.is-on { border-color: var(--water); }
.phonics-choice.is-right { border-color: var(--leaf); background: #eef7ee; }
.phonics-choice.is-wrong { border-color: var(--coral); background: var(--coral-soft); }
.phonics-word-card .illust,
.phonics-choice .illust {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.phonics-word-card .illust img,
.phonics-choice .illust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.phonics-word-card .w,
.phonics-choice .w {
  margin-top: 6px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 800;
}
.phonics-word-card .zh,
.phonics-choice .zh {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.phonics-word-card .ipa,
.phonics-choice .ipa { font-size: 13px; margin-top: 1px; }
.phonics-word-card.is-speakable,
.phonics-vowel-row.is-speakable {
  cursor: pointer;
}
.phonics-word-card.is-speakable:active,
.phonics-vowel-row.is-speakable:active { transform: scale(.985); }
.phonics-word-card.is-speakable:focus-visible,
.phonics-vowel-row.is-speakable:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 2px;
}
.phonics-word-card .zh,
.phonics-vowel-row .zh { cursor: default; }

.phonics-mouth,
.phonics-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-secondary);
}
.phonics-mouth b, .phonics-note b { color: var(--text-primary); }

.phonics-hear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  box-shadow: 0 6px 14px var(--shadow);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.phonics-hear:active { transform: scale(.98); }
.phonics-hear-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phonics-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.phonics-choices.count-3 .phonics-choice:first-child {
  grid-column: 1 / -1;
  max-width: 220px;
  justify-self: center;
  width: 100%;
}

.phonics-text-choice {
  width: 100%;
  text-align: left;
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 6px 14px var(--shadow);
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 700;
}
.phonics-text-choice:active { transform: scale(.99); }
.phonics-text-choice.is-on { border-color: var(--water); }
.phonics-text-choice.is-right { border-color: var(--leaf); background: #eef7ee; }
.phonics-text-choice.is-wrong { border-color: var(--coral); background: var(--coral-soft); }

.phonics-ipa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.phonics-ipa-opt {
  min-height: 56px;
  border-radius: 16px;
  background: var(--bg-surface);
  box-shadow: 0 6px 14px var(--shadow);
  border: 2px solid transparent;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-ipa);
}
.phonics-ipa-opt.is-on { border-color: var(--water); }
.phonics-ipa-opt.is-right { border-color: var(--leaf); background: #eef7ee; }
.phonics-ipa-opt.is-wrong { border-color: var(--coral); background: var(--coral-soft); }

.phonics-vowel-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phonics-vowel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 8px 10px;
  box-shadow: 0 6px 14px var(--shadow);
}
.phonics-vowel-row .illust {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden;
}
.phonics-vowel-row .illust img { width: 100%; height: 100%; object-fit: contain; }
.phonics-vowel-row .copy { flex: 1; min-width: 0; }
.phonics-vowel-row .ipa { font-size: 18px; }
.phonics-vowel-row .meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.phonics-blend-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.phonics-blend-letter {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-surface);
  box-shadow: 0 6px 14px var(--shadow);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  border: 2px solid transparent;
}
.phonics-blend-letter.is-on { border-color: var(--water); background: #e8f4fb; }
.phonics-blend-letter.is-done { border-color: var(--leaf); }
.phonics-blend-letter.is-wait { opacity: .55; }

.phonics-feedback {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}
.phonics-feedback.is-right { color: var(--sage-deep); }
.phonics-feedback.is-wrong { color: var(--coral-pressed); }

.phonics-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  padding: 12px 0 4px;
  background: linear-gradient(to bottom, transparent, var(--bg-page) 16px, var(--bg-page) 100%);
  z-index: 2;
}
.phonics-actions .btn { width: 100%; }

.phonics-complete {
  text-align: center;
  padding: 12px 8px 8px;
}
.phonics-complete h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  margin: 8px 0 6px;
}
.phonics-complete p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.phonics-compare {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phonics-compare-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 14px var(--shadow);
}
.phonics-compare-card .letter {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

@media (min-width: 744px) and (min-height: 600px) and (orientation: landscape) {
  #screen-phonics .phonics-body {
    padding: 12px 28px calc(24px + var(--safe-bottom));
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
  }
  .phonics-examples,
  .phonics-choices,
  .phonics-ipa-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .phonics-choices.count-3 .phonics-choice:first-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
  .phonics-heading { font-size: 26px; }
  .phonics-track h3 { font-size: 22px; }
  #screen-home .home-actions #btn-phonics-home,
  #screen-home #btn-phonics-home,
  .phonics-home-entry {
    font-size: 15px;
    min-height: 36px;
    height: auto;
    width: auto;
    max-width: none;
    border-radius: 0;
    padding: 4px 2px;
    background: transparent;
    box-shadow: none;
    font-weight: 700;
  }
}

/* 2026-11-23 · approved round-two reference lock. Only existing brand tokens. */
#screen-phonics { background: var(--bg-page); color: var(--text-primary); }
#screen-phonics .phonics-body {
  width: 100%; max-width: 560px; margin: 0 auto; box-sizing: border-box;
  padding: 10px 24px calc(24px + var(--safe-bottom)); gap: 16px;
  overscroll-behavior: contain; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
#screen-phonics .phonics-body > * { flex-shrink: 0; min-width: 0; }
#screen-phonics button, #screen-phonics summary,
#screen-home #btn-phonics-home { min-height: 44px; touch-action: manipulation; }
#screen-phonics button { max-height: none; height: auto; white-space: normal; }
#screen-phonics .btn, #screen-phonics .phonics-hear {
  background: var(--fill-accent); color: var(--text-on-accent); font-size: 19px;
  font-weight: 800; line-height: 1.4; padding: 10px 14px; border-radius: 14px;
  box-shadow: none; border: 0; width: 100%;
}
#screen-phonics .btn:active, #screen-phonics .phonics-hear:active { background: var(--fill-pressed); }
#screen-phonics .btn.ghost { background: var(--bg-soft); color: var(--text-primary); }
#screen-phonics button:disabled { opacity: .5; cursor: not-allowed; }
#screen-phonics :is(button,summary,[role="button"]):focus-visible {
  outline: 3px solid var(--text-primary); outline-offset: 3px;
}
#screen-phonics .phonics-heading { font-family: var(--font), sans-serif; font-size: 27px; font-weight: 800; line-height: 1.35; }
.phonics-section-title { margin: 0 0 8px; font-size: 17px; font-weight: 800; line-height: 1.4; }
#screen-phonics .phonics-kicker { color: var(--text-secondary); font-size: 12px; letter-spacing: 0; text-transform: none; }
.phonics-recommend { background: var(--bg-soft); border-radius: 22px; padding: 18px; }
.phonics-recommend > img { float: right; object-fit: contain; }
.phonics-recommend h2 { font-size: 22px; line-height: 1.3; margin: 12px 0 6px; }
.phonics-recommend p { color: var(--text-secondary); font-size: 14px; margin: 0 0 12px; }
.phonics-recommend .btn { clear: both; }
#screen-phonics .phonics-track {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: 18px; box-shadow: none; padding: 0;
}
.phonics-track summary {
  display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; padding: 14px;
}
.phonics-track summary::-webkit-details-marker { display: none; }
.phonics-track summary > span:nth-child(2) { min-width: 0; flex: 1; }
.phonics-track summary strong { display: block; font-size: 16px; }
.phonics-track-number { display: grid; place-items: center; align-self: flex-start; width: 36px; min-width: 36px; height: 40px; border-radius: 12px; background: var(--bg-page); font-size: 13px; font-weight: 800; }
#screen-phonics .phonics-track-blurb, #screen-phonics .phonics-track-status { display: block; margin: 3px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.4; font-weight: 500; }
.phonics-chevron { color: var(--text-secondary); font-size: 24px; }
.phonics-track[open] .phonics-chevron { transform: rotate(90deg); }
.phonics-track .phonics-lesson-list { border-top: 1px solid var(--border-default); padding: 8px 12px 12px; }
#screen-phonics .phonics-lesson-btn { background: var(--bg-page); box-shadow: none; border: 1px solid var(--border-default); color: var(--text-primary); border-radius: 12px; padding: 12px; }
#screen-phonics .phonics-lesson-btn.is-done { background: var(--bg-soft); }
.phonics-drill-link { background: transparent; color: var(--text-primary); box-shadow: none; text-align: left; font-size: 15px; font-weight: 700; border: 0; padding: 8px 0; }
.phonics-sound-hero { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 22px; padding: 16px; }
.phonics-sound-hero > img { float: right; object-fit: contain; margin: 10px 12px 0; }
#screen-phonics .phonics-symbol { font-size: 64px; line-height: 1.25; margin: 4px 0; font-weight: 500; }
.phonics-sound-hero > strong { display: block; font-size: 17px; margin: 8px 0 16px; }
#screen-phonics .phonics-compact-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.phonics-example { text-align: left; padding: 12px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 16px; color: var(--text-primary); box-shadow: none; }
.phonics-example > strong { font-family: var(--font-en); font-size: 21px; }
.phonics-speaker { float: right; color: var(--fill-accent); font-size: 16px; }
.phonics-example-meta { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; color: var(--text-secondary); font-size: 12px; line-height: 1.6; margin-top: 4px; }
#screen-phonics .phonics-example-meta .phonics-ipa { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
.phonics-teaching-note { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.phonics-teaching-note summary { display: flex; align-items: center; cursor: pointer; font-weight: 700; }
#screen-phonics .phonics-actions { position: static; margin-top: 8px; background: none; border-top: 1px solid var(--border-default); padding: 16px 0 0; }
#screen-phonics .phonics-feedback:empty { display: none; }
#screen-phonics .phonics-progress { gap: 0; flex-wrap: nowrap; padding: 0; }
#screen-phonics .phonics-progress span { flex: 1; height: 4px; width: auto; border-radius: 2px; }
#screen-phonics .phonics-progress span.done, #screen-phonics .phonics-progress span.on { background: var(--fill-accent); }
.phonics-practice-play { border: 1px solid var(--border-default); border-radius: 22px; background: var(--bg-surface); padding: 18px; display: grid; place-items: center; gap: 10px; box-shadow: none; color: var(--text-primary); width: 100%; }
.phonics-practice-play > span { display: grid; place-items: center; border-radius: 50%; width: 64px; height: 64px; background: var(--fill-accent); color: var(--text-on-accent); font-size: 24px; }
.phonics-practice-play > strong { font-size: 14px; }
.phonics-practice-choices { display: grid; gap: 12px; }
.phonics-practice-option { position: relative; padding: 12px 48px 12px 16px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); box-shadow: none; border-radius: 18px; text-align: left; width: 100%; }
.phonics-practice-option > strong { font-size: 24px; font-family: var(--font-en); }
.phonics-practice-option.is-on, .phonics-practice-option.is-right { border-color: var(--fill-accent); background: var(--bg-soft); }
.phonics-answer-mark { position: absolute; right: 16px; top: 20px; font-size: 20px; font-weight: 800; }
.phonics-practice-option.is-right .phonics-answer-mark { background: var(--status-remembered); border-radius: 50%; width: 24px; height: 24px; text-align: center; color: var(--text-primary); line-height: 24px; }
.phonics-practice-feedback { background: var(--bg-soft); padding: 14px 16px; border-radius: 18px; font-size: 14px; line-height: 1.55; }
.phonics-practice-feedback p { margin: 8px 0 0; }
.phonics-practice-feedback .phonics-ipa { font-size: 16px; font-weight: 500; }
.phonics-audio-status { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.phonics-audio-status:empty { display: none; }
/* Legacy activities retain their content but use the same surface/feedback roles. */
#screen-phonics :is(.phonics-word-card,.phonics-choice,.phonics-pair-card,.phonics-compare-card) { box-shadow: none; border: 1px solid var(--border-default); }
#screen-phonics .phonics-choice:is(.is-on,.is-right,.is-wrong),
#screen-phonics .phonics-ipa-opt:is(.is-on,.is-right,.is-wrong),
#screen-phonics .phonics-blend-letter:is(.is-on,.is-done) { background: var(--bg-soft); border-color: var(--fill-accent); }
#screen-phonics .phonics-feedback:is(.is-right,.is-wrong) { color: var(--text-primary); }
@media (max-width: 350px) {
  #screen-phonics .phonics-body { padding-inline: 16px; }
  #screen-phonics .phonics-heading { font-size: 24px; }
  .phonics-example-meta { gap: 6px; }
}
@media (min-width: 744px) {
  #screen-phonics .phonics-body { max-width: 640px; padding-inline: 32px; }
  #screen-phonics .phonics-examples { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #screen-phonics *, #screen-phonics *::before { animation: none !important; transition: none !important; }
}

/* Browser-QA follow-up: constrain the entire phonics sizing chain, not just
   overflow-x. Zero-minimum grid tracks + wrapping let zoomed text reflow. */
#screen-phonics { min-inline-size: 0; max-inline-size: 100%; }
#screen-phonics .topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-inline-size: 0;
  max-inline-size: 100%;
  block-size: auto;
  padding-inline: 12px;
  box-sizing: border-box;
}
#screen-phonics .round-title,
#screen-phonics .top-actions,
#screen-phonics .lang-switch,
#screen-phonics .phonics-body,
#screen-phonics .phonics-body * {
  min-inline-size: 0;
  box-sizing: border-box;
}
#screen-phonics .round-title { inline-size: 100%; }
#screen-phonics :is(h1,h2,h3,p,strong,summary,button,.name,.meta) {
  white-space: normal;
  overflow-wrap: anywhere;
  max-inline-size: 100%;
}
#screen-phonics .phonics-body {
  inline-size: min(100%, 560px);
  max-inline-size: 100%;
  align-self: center;
  margin-inline: 0;
}
#screen-phonics .phonics-body > * { max-inline-size: 100%; }
#screen-phonics .phonics-practice-play,
#screen-phonics .phonics-practice-choices {
  grid-template-columns: minmax(0, 1fr);
  inline-size: 100%;
  max-inline-size: 100%;
}
#screen-phonics .phonics-practice-play > * { justify-self: center; }
#screen-phonics .phonics-practice-play > strong { text-align: center; }
#screen-phonics .phonics-examples,
#screen-phonics .phonics-choices,
#screen-phonics .phonics-ipa-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
}
#screen-phonics .phonics-progress > span { min-inline-size: 0; }
@media (max-width: 480px) {
  #screen-phonics .topbar {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 6px;
  }
  #screen-phonics .top-actions {
    grid-column: 1 / -1;
    justify-self: end;
    flex-wrap: wrap;
  }
  #screen-phonics .phonics-body {
    padding-inline: clamp(12px, 4vw, 24px);
  }
}
@media (min-width: 744px) {
  #screen-phonics .phonics-body { inline-size: min(100%, 640px); }
}
