/* 301.120 — correct the three mobile regressions shown in the 17:37 screenshots. */
/* Keep the sound pager in document flow; it must never cover lesson content. */
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-single-item-nav,
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-letter-navigation,
html body.app-kids-mode #kidsVowelDrill .kids-vowel-tone-navigation{
  position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;z-index:2!important;
  display:grid!important;box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:8px 0 14px!important;padding:5px!important;border:1px solid #dce5dc!important;border-radius:16px!important;
  background:#f7faf3!important;box-shadow:0 3px 10px rgba(35,72,52,.08)!important
}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-single-item-nav,
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-letter-navigation,
html body.app-kids-mode #kidsVowelDrill .kids-vowel-tone-navigation{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:8px!important}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-single-item-nav button,
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-letter-navigation button,
html body.app-kids-mode #kidsVowelDrill .kids-vowel-tone-navigation button{
  box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:44px!important;max-height:none!important;padding:7px 10px!important;
  border-radius:13px!important;font-size:15px!important;line-height:1.2!important;white-space:nowrap!important
}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-single-item-nav span,
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-letter-navigation span,
html body.app-kids-mode #kidsVowelDrill .kids-vowel-tone-navigation span{min-width:42px!important;font-size:14px!important;line-height:1.2!important;text-align:center!important}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active,
html body.app-kids-mode #kidsVowelDrill{padding-top:0!important}

/* The free-practice panel is deliberately a recorder: target, record, replay. */
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-practice .kp-practice-avatar,
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-practice .kp-practice-choices,
html body.app-kids-mode #kidsVowelDrill .kp-practice .kp-practice-avatar,
html body.app-kids-mode #kidsVowelDrill .kp-practice .kp-practice-choices{display:none!important}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-practice> :not(.kp-practice-head):not(.kp-practice-console),
html body.app-kids-mode #kidsVowelDrill .kp-practice> :not(.kp-practice-head):not(.kp-practice-console){display:none!important}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-practice-head,
html body.app-kids-mode #kidsVowelDrill .kp-practice-head{display:flex!important;align-items:center!important;gap:10px!important}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-practice-console,
html body.app-kids-mode #kidsVowelDrill .kp-practice-console{display:grid!important;gap:10px!important}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-practice-record-row,
html body.app-kids-mode #kidsVowelDrill .kp-practice-record-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-practice-record-row>button,
html body.app-kids-mode #kidsVowelDrill .kp-practice-record-row>button{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:48px!important;padding:9px 8px!important;white-space:normal!important}

/* Initials: center the complete sound card and keep every line inside it. */
html body.app-kids-mode #kidsCourse #kidsInitialsLesson{padding-top:0!important}
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-letter-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;width:100%!important}
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-letter-card{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;justify-items:center!important;align-content:center!important;gap:9px!important;
  box-sizing:border-box!important;width:min(100%,560px)!important;min-width:0!important;height:auto!important;min-height:210px!important;max-height:none!important;
  margin:0 auto!important;padding:16px 18px!important;overflow:visible!important;text-align:center!important
}
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initial-card-top{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-width:0!important}
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initial-card-symbol{display:grid!important;justify-items:center!important;gap:2px!important;min-width:0!important}
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-letter-card .big{display:block!important;margin:0!important;font-size:clamp(68px,19vw,88px)!important;line-height:1!important}
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-letter-card .initial-ipa{display:block!important;min-height:0!important;margin:0!important;font-size:21px!important;line-height:1.25!important}
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initial-card-info{display:grid!important;justify-items:center!important;gap:5px!important;width:100%!important;min-width:0!important;text-align:center!important}
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initial-card-reading{display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important}
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initial-card-tip{display:block!important;max-width:34em!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.5!important;text-align:center!important}

/* Compound vowels: preserve the large centered sound and show its complete cue. */
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active :is(.cpv-letter-card,.cpo-letter-card,.cpn-letter-card){
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;justify-items:center!important;align-content:center!important;gap:6px!important;
  box-sizing:border-box!important;width:100%!important;min-width:0!important;height:auto!important;min-height:205px!important;max-height:none!important;
  padding:15px 16px!important;overflow:visible!important;text-align:center!important
}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active :is(.cpv-letter-card,.cpo-letter-card,.cpn-letter-card) .compound-card-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:100%!important;min-width:0!important}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active :is(.cpv-letter-card,.cpo-letter-card,.cpn-letter-card)>strong{display:block!important;margin:0!important;line-height:1.05!important}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active :is(.cpv-letter-card,.cpo-letter-card,.cpn-letter-card) .compound-ipa,
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active :is(.cpv-letter-card,.cpo-letter-card,.cpn-letter-card) .compound-model,
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active :is(.cpv-letter-card,.cpo-letter-card,.cpn-letter-card) .compound-cue{display:block!important;min-width:0!important;height:auto!important;max-height:none!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;line-height:1.45!important}
@media(max-width:390px){
 html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-letter-card{min-height:200px!important;padding:14px 12px!important}
 html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active :is(.cpv-letter-card,.cpo-letter-card,.cpn-letter-card){min-height:195px!important;padding:13px 12px!important}
}
/* The initials' roman/cue now live in the sound card; keep only the articulation visual below. */
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-focus-copy,
html body.app-kids-mode #kidsCourse #kidsInitialsLesson .initials-tone-mini-note{display:none!important}
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-practice-head p,
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-practice-target,
html body.app-kids-mode #kidsCourse .kids-lesson-card.is-roadmap-lesson-active .kp-practice-record-hint,
html body.app-kids-mode #kidsVowelDrill .kp-practice-head p,
html body.app-kids-mode #kidsVowelDrill .kp-practice-target,
html body.app-kids-mode #kidsVowelDrill .kp-practice-record-hint{display:none!important}
