/* v6.2 · Individual IPA lessons (keeps the existing contrast games intact) */
.phoneme-mode-toggle{display:flex;gap:8px;margin-bottom:14px;align-items:center;flex-wrap:wrap}
.phoneme-mode-toggle button{border:1px solid #bbd0e8;background:#fff;color:#17345f;padding:11px 18px;border-radius:12px;font-weight:800;cursor:pointer;min-height:44px}
.phoneme-mode-toggle button.is-active{background:#1769ec;border-color:#1769ec;color:white}
#page-listening.learning-phoneme-mode .listening-config,#page-listening.learning-phoneme-mode #contrast-lesson-overview,#page-listening.learning-phoneme-mode .listening-game{display:none!important}
#page-listening.learning-phoneme-mode .listening-sidebar>.listening-hero{display:block}
#page-listening.learning-phoneme-mode .listening-main{min-width:0}
.phoneme-study{min-width:0;padding:25px!important;color:#102b50}
.phoneme-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}
.phoneme-heading h2{margin:5px 0 8px;font-size:clamp(22px,2vw,31px);font-weight:850;color:#11274a}
.phoneme-heading p{max-width:560px;color:#364e70;line-height:1.6;margin:0}
.phoneme-counter{white-space:nowrap;background:#dceafa;padding:10px 12px;color:#114995;font-weight:800;border-radius:10px}
.phoneme-learn-grid{display:grid;grid-template-columns:minmax(165px,0.7fr) minmax(0,1.5fr);gap:18px}
.phoneme-learn-list{align-content:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:560px;overflow:auto;padding:4px}
.phoneme-sound-item{border:1px solid #bfcfe3;background:#f3f7fd;border-radius:12px;min-width:0;min-height:75px;cursor:pointer;display:grid;grid-template-columns:1fr auto;align-items:center;padding:10px;gap:2px 7px;text-align:left}
.phoneme-sound-item strong{font-size:21px;font-weight:850;color:#122f5e}.phoneme-sound-item small{grid-column:1;font-size:12px;color:#375578}.phoneme-done{grid-column:2;grid-row:1/3;color:#1a5593;font-size:11px;font-weight:800}
.phoneme-sound-item.is-current{background:#d8eaff;border-color:#1869ed;box-shadow:0 0 0 2px #1769ed20}
.phoneme-learning-card{border:1px solid #cbdbed;background:#fff;border-radius:18px;padding:20px;min-width:0}
.phoneme-primary{display:flex;align-items:center;gap:18px;margin:15px 0}.phoneme-primary>strong{min-width:90px;text-align:center;padding:14px;border-radius:14px;font-size:38px;background:#e1eeff;color:#1252ae}.phoneme-primary h3{margin:0 0 5px;color:#132e52;font-size:21px}.phoneme-primary p{color:#385472;margin:0;line-height:1.6}
.phoneme-levels{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.phoneme-level{border-radius:10px;border:1px solid #c5d6e8;background:#f5f8fe;color:#183d6f;padding:10px 13px;cursor:pointer;font-weight:750}.phoneme-level.is-current{background:#145de0;color:#fff;border-color:#145de0}
.phoneme-practice-content{border-radius:14px;border:1px solid #d6e2ef;background:#f7faff;padding:14px;min-height:152px}.phoneme-practice-content h3{font-size:18px;color:#17385e;margin:0 0 10px}.phoneme-practice-content p{line-height:1.6;color:#455c77}
.phoneme-study-example{display:flex;gap:15px;align-items:center;padding:8px 5px;border-bottom:1px solid #e0e8f3}.phoneme-study-example strong{font-size:19px;min-width:95px;color:#142b4e}.phoneme-study-example span{color:#335677}
.phoneme-accent-note{background:#fff3dd;border:1px solid #e7c38c;border-radius:10px;margin-top:12px;padding:11px;color:#654318}
.phoneme-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.phoneme-actions button{min-height:44px;max-width:100%}#phoneme-study-status{color:#385679;line-height:1.6;margin-bottom:0}
.contrast-vietnamese,.translation-caption{font-size:14px;line-height:1.65;color:#254a73;background:#eef6ff;border:1px solid #bad5f2;border-radius:11px;padding:11px 13px;margin-top:12px}
.contrast-vietnamese strong,.translation-caption strong{font-weight:850}
@media(max-width:850px){.phoneme-learn-grid{grid-template-columns:1fr}.phoneme-learn-list{max-height:170px;grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:540px){.phoneme-study{padding:14px!important}.phoneme-learn-list{grid-template-columns:repeat(3,minmax(0,1fr))}.phoneme-heading{flex-wrap:wrap}.phoneme-primary{align-items:flex-start;flex-wrap:wrap}.phoneme-primary>strong{font-size:29px}}
/* v6.2 readability: prevent narrow IPA selectors from splitting phoneme symbols */
@media(min-width:851px){.phoneme-learn-grid{grid-template-columns:minmax(126px,0.46fr) minmax(0,1.54fr)}.phoneme-learn-list{grid-template-columns:minmax(0,1fr)}.phoneme-sound-item{grid-template-columns:1fr auto}.phoneme-sound-item strong{font-size:20px;white-space:nowrap}}
.phoneme-sound-item strong{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.phoneme-sound-item .phoneme-done{white-space:nowrap}


/* Individual Stage 02 word samples; no combined pair playback. */
#phoneme-study-play[hidden]{display:none!important}
.phoneme-study-example .phoneme-single-word-speaker{display:inline-grid;place-items:center;flex:none;width:42px;height:42px;min-width:42px;padding:0;margin-left:auto;border:1px solid #95b6df;border-radius:10px;background:#e4f0ff;color:#164a92;cursor:pointer}
.phoneme-study-example .phoneme-single-word-speaker:hover:not(:disabled){background:#ccdeff}
.phoneme-study-example .phoneme-single-word-speaker:focus-visible{outline:3px solid #165fcb;outline-offset:2px}
.phoneme-study-example .phoneme-single-word-speaker:disabled{opacity:.55;cursor:wait}
.phoneme-study-example span{min-width:0;overflow-wrap:anywhere}
@media(max-width:540px){.phoneme-study-example{gap:9px}.phoneme-study-example strong{min-width:62px}.phoneme-study-example .phoneme-single-word-speaker{min-width:40px;width:40px;height:40px}}

/* PeakFour V20261113 — theme parity guard for Dictation translation blocks. */
:root[data-pf-theme="dark"] #page-dictation :is(.translation-caption,.contrast-vietnamese){background:#1c2542!important;color:#dbe5f5!important;border-color:#334155!important;}
:root[data-pf-theme="dark"] #page-dictation :is(.translation-caption strong,.contrast-vietnamese strong){color:#f8fafc!important;}
