/* A focused course storefront: one route from the promise to the learning path. */
.phone.landing{background:#fff}.phone.landing .topbar{background:#fff;color:#0c2d4b;padding-left:18px;padding-right:18px;border-bottom:1px solid #e9eef3;min-height:62px;flex-basis:62px}.phone.landing .brandmark{background:#145cb5;color:#fff}.phone.landing .brand-title{font-size:17px;letter-spacing:0}.phone.landing .brand-title>span{display:inline;font-size:inherit;margin:0}.phone.landing .header-tools .translation-open-prominent{display:flex}.phone.landing .header-tools [data-action=voice-settings]{display:grid;place-items:center;background:#f1f5fa;color:#245270;border:1px solid #dce5ed;border-radius:8px;min-height:36px;min-width:36px}.phone.landing .header-tools .language-switch{background:#f1f5fa;color:#245270;border-color:#dce5ed;border-radius:8px;min-height:36px}.phone.landing .header-tools .sound-search-prominent{background:transparent;border:0;color:#184b78;min-height:36px;min-width:56px;padding:4px}.phone.landing #inspectionbar{display:none}.phone.landing .screen{background:#fff;padding-top:0}.home-focus{color:#14344f;padding:0 0 8px;font-size:16px}.home-focus h1,.home-focus h2,.home-focus p{overflow-wrap:break-word}.home-focus button{font:inherit;cursor:pointer;touch-action:manipulation}.home-focus button:focus-visible,.home-focus summary:focus-visible{outline:3px solid #639fee;outline-offset:4px}.home-focus h2{font-size:25px;line-height:1.35;letter-spacing:-.5px;margin:0;font-weight:750;color:#102f4c}.hf-opening{padding:23px 0 0}.hf-eyebrow{font-size:14px;line-height:1.45;font-weight:650;color:#5b7187;margin:0 0 16px}.hf-opening h1{display:flex;align-items:center;gap:20px;margin:0;letter-spacing:-.6px;line-height:1.25}.hf-seven{flex:0 0 97px;color:#155fbd;display:flex;align-items:flex-end;gap:0}.hf-seven>b{font:800 142px/.88 ui-sans-serif,system-ui,sans-serif;letter-spacing:-10px;padding-right:6px}.hf-seven>span{font-size:23px;line-height:1;font-weight:700;margin-bottom:7px}.hf-headline{font-size:29px;line-height:1.3;font-weight:760;display:block;min-width:0}.hf-headline em{font-style:normal;color:#155fbd}.hf-intro{font-size:16px;line-height:1.65;color:#4b647b;margin:20px 0 20px}.home-focus .hf-primary{display:block;width:100%;min-height:52px;border:1px solid #155fbd;background:#155fbd;color:#fff;border-radius:12px;font-size:18px;line-height:1.4;font-weight:700;margin:0;padding:13px 12px;box-shadow:0 4px 12px #165ebd12}.hf-taster-note{font-size:12px;line-height:1.5;color:#7b8b9b;margin:8px 0 0;text-align:center}.hf-purchase{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e2eaf2;border-bottom:1px solid #e2eaf2;padding:17px 0;margin-top:22px}.hf-purchase>div{display:flex;align-items:center;gap:12px;min-width:0}.hf-price{font:750 34px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:-1px;white-space:nowrap;color:#173f67}.hf-price>small{font-size:17px;margin-right:3px;font-weight:500}.hf-price-caption{font-size:12px;line-height:1.45;color:#81909e}.hf-price-caption b{display:block;font-size:14px;color:#35566f;font-weight:600;margin-top:2px}.hf-purchase>button{border:0;background:transparent;color:#165bb0;min-height:44px;font-size:15px;font-weight:650;display:flex;align-items:center;gap:8px;padding:3px 0;text-align:right}.hf-purchase>button>span{font-size:22px}.hf-method{padding-top:33px}.hf-section-tag{color:#3c729f;font-size:13px;line-height:1.45;font-weight:650;margin:0 0 9px;letter-spacing:.35px}.hf-lesson-steps{list-style:none;padding:0;margin:19px 0 0;background:#f5f8fc;border:1px solid #dfe8f1;border-radius:16px;overflow:hidden}.hf-lesson-steps>li{display:grid;grid-template-columns:24px minmax(0,1fr) 90px;align-items:center;gap:10px;padding:15px 13px;border-bottom:1px solid #dfe8f1;min-height:83px}.hf-lesson-steps>li:last-child{border:0}.hf-step-number{font-size:12px;color:#8596a9;font-weight:550;align-self:start;padding-top:4px;font-variant-numeric:tabular-nums}.hf-lesson-steps strong{font-size:17px;font-weight:650;display:block;color:#173f62}.hf-lesson-steps p{font-size:14px;line-height:1.5;color:#677e94;margin:4px 0 0}.hf-example{font-size:32px;line-height:1.2;color:#185fad;font-weight:700;display:block;text-align:right;letter-spacing:-.5px}.hf-vowel{font-size:45px}.hf-example b{display:block;font-size:32px;font-weight:600}.hf-example small{display:block;font-size:18px;font-weight:600;margin-top:3px;letter-spacing:.4px}.hf-example.hf-sentence{font-size:18px;line-height:1.45;letter-spacing:0;max-width:90px}.hf-standard{color:#6c8295;font-size:13px;line-height:1.65;margin:13px 0 0}.hf-course{padding-top:34px}.hf-day-list{list-style:none;padding:0;margin:18px 0 0;border-top:1px solid #dce6ef}.hf-day-list>li{display:grid;grid-template-columns:83px minmax(0,1fr);gap:8px;align-items:center;border-bottom:1px solid #e3eaf1;padding:10px 0;min-height:51px}.hf-day-label{display:flex;align-items:baseline;gap:7px;font-size:12px;letter-spacing:.4px;color:#778da2}.hf-day-label>b{font-size:28px;color:#2468aa;font-weight:700;line-height:1}.hf-day-list strong{font-size:16px;font-weight:550;line-height:1.4;color:#34536e}.hf-day-list li:last-child{background:#f1f6fe}.hf-day-list li:last-child .hf-day-label{padding-left:6px}.hf-day-list li:last-child strong{font-weight:700;color:#195996}.hf-route-foot{margin:14px 0 0}.hf-route-foot>p{font-size:14px;color:#718498;line-height:1.6;margin:0}.hf-route-foot>button{border:0;background:transparent;color:#195f9f;padding:12px 0;min-height:46px;font-size:15px;font-weight:650;display:flex;align-items:center;justify-content:space-between;width:100%}.hf-route-foot>button>span{font-size:22px;font-weight:400}.hf-life{margin-top:23px}.hf-life-card{background:#103b60;color:#fff;border-radius:17px;padding:23px 20px 18px}.hf-life-card .hf-section-tag{color:#bad3e9;font-size:12px}.hf-life-card h2{color:#fff;font-size:24px;line-height:1.4}.hf-thousand{display:flex;align-items:baseline;gap:11px;margin:19px 0 15px;flex-wrap:wrap}.hf-thousand>b{font:750 57px/1 ui-sans-serif,system-ui,sans-serif;color:#ffd078;letter-spacing:-2px}.hf-thousand>span{font-size:16px;color:#d8e8f5}.hf-scenes{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;border-top:1px solid #ffffff24;border-bottom:1px solid #ffffff24;padding:15px 0;color:#c9ddec;font-size:14px;line-height:1.5}.hf-life-card>button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:transparent;border:0;color:#fff;font-size:16px;font-weight:650;min-height:48px;padding:12px 0 0;text-align:left}.hf-life-card>button>span{font-size:22px}.hf-tools{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.hf-tools>button{background:#f4f8fc;border:1px solid #e0e8f0;border-radius:11px;min-width:0;padding:13px 11px;text-align:left;color:#1b5588}.hf-tools strong{display:block;font-size:14px;line-height:1.5;font-weight:500;color:#6a8195}.hf-tools span{display:block;font-size:16px;line-height:1.5;font-weight:650;margin-top:7px}.hf-closing{padding:28px 0 25px}.hf-closing>p{font-size:22px;color:#173e61;font-weight:650;line-height:1.5;margin:0 0 18px}.hf-closing>small{display:block;font-size:12px;line-height:1.5;text-align:center;color:#8492a1;margin:10px 0 0}.hf-footer .developer-credit{padding:15px 0;gap:8px;flex-wrap:wrap}.hf-footer .developer-credit strong{font-size:16px;letter-spacing:0}.hf-footer .developer-credit span,.hf-footer .developer-credit p{font-size:12px;color:#82909d}.hf-footer .developer-credit>div{gap:8px}.hf-details{border-top:1px solid #e5ebf1;padding:13px 0}.hf-details summary{font-size:14px;color:#6b8093;line-height:1.6;cursor:pointer}.hf-details>p{font-size:14px;line-height:1.65;color:#6c8297;margin:13px 0}.hf-details .cta{font-size:14px;min-height:44px;padding:9px}.hf-settings{display:grid;gap:7px;margin-top:13px}.hf-settings .cta{margin:0}.hf-prototype-note{font-size:12px;color:#92a0ad;line-height:1.5;margin:8px 0 0}
html[data-language=en] .hf-eyebrow{font-size:12px;letter-spacing:.35px}html[data-language=en] .hf-seven{flex-direction:column;align-items:center;gap:11px;flex-basis:87px}html[data-language=en] .hf-seven>span{font-size:16px;margin:0}html[data-language=en] .hf-headline{font-size:27px;line-height:1.28}html[data-language=en] .hf-price-caption{font-size:11px}html[data-language=en] .hf-price-caption b{font-size:12px}html[data-language=en] .hf-purchase>button{max-width:76px;font-size:14px}html[data-language=en] .hf-day-list>li{grid-template-columns:70px 1fr}html[data-language=en] .hf-day-list strong{font-size:15px}html[data-language=en] .hf-thousand>span{font-size:15px}
@media(max-width:375px){.phone.landing .topbar{padding-left:14px;padding-right:14px}.phone.landing .brand-title{font-size:15px}.hf-opening h1{gap:12px}.hf-seven{flex-basis:85px}.hf-seven>b{font-size:122px}.hf-headline{font-size:26px}.hf-opening{padding-top:20px}.hf-purchase>div{gap:8px}.hf-price{font-size:30px}.hf-purchase>button{font-size:14px;gap:4px}.hf-lesson-steps>li{grid-template-columns:20px minmax(0,1fr) 77px;gap:7px;padding:13px 10px}.hf-example.hf-sentence{font-size:17px}.hf-day-list>li{grid-template-columns:71px 1fr}.home-focus h2{font-size:23px}html[data-language=en] .hf-headline{font-size:25px}html[data-language=en] .hf-purchase{flex-wrap:wrap}html[data-language=en] .hf-purchase>button{max-width:none}html[data-language=en] .hf-seven{flex-basis:80px}}
@media(prefers-reduced-motion:no-preference){.home-focus button{transition:background-color .15s,border-color .15s,transform .15s}.home-focus .hf-primary:active{transform:translateY(1px);background:#104b97}}

.hf-newhk-proof{display:flex;align-items:center;justify-content:space-between;gap:10px;border-left:3px solid #ffbd3d;background:#f5f8fc;padding:9px 10px;margin:-7px 0 17px;color:#335671}.hf-newhk-proof span{font-size:12px;line-height:1.4;color:#2163a2;font-weight:700}.hf-newhk-proof b{font-size:13px;line-height:1.4;text-align:right;font-weight:600}.hf-newhk-line{font-size:14px;line-height:1.55;color:#d8e8f5;margin:12px 0 3px}.hf-life-card .hf-newhk-line+ .hf-scenes{margin-top:11px}html[data-language=en] .hf-newhk-proof{align-items:flex-start;flex-direction:column}html[data-language=en] .hf-newhk-proof b{text-align:left}

.hf-audiences{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:-7px 0 9px}.hf-audiences span{display:grid;place-items:center;min-height:38px;padding:5px 3px;border:1px solid #d7e4f1;border-radius:8px;background:#fff;color:#315e84;text-align:center;font-size:13px;line-height:1.35;font-weight:600}html[data-language=en] .hf-audiences span{font-size:11px}

/* Keep the two learning actions together in the centre of the opening section. */
.hf-learning-actions{display:grid;gap:10px;width:min(100%,360px);margin:24px auto;text-align:center}.hf-learning-actions>.cta{width:100%;min-height:52px;margin:0;padding:13px 12px;font-size:18px;line-height:1.4;border-radius:12px;white-space:normal}.hf-learning-actions>.ghost{border:1px solid #bfd3ec;color:#155fbd;background:#fff;font-weight:650}.hf-learning-actions .hf-taster-note{font-size:14px;line-height:1.6;margin:2px 0 0;color:#5b7187}

/* Keep both lookup entrances visible on the home screen without squeezing the brand. */
.phone.landing .topbar{height:auto;min-height:102px;flex-basis:auto;display:grid;grid-template-columns:1fr;gap:10px;padding-top:12px;padding-bottom:12px}.phone.landing .header-tools{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) minmax(0,1fr) 38px;gap:7px}.phone.landing .header-tools .sound-search-prominent{justify-content:center;background:#ffc449;border:1px solid #efb53f;border-radius:10px;color:#103b60;min-height:40px}.phone.landing .header-tools .translation-open-prominent{justify-content:center;font-size:15px;min-height:40px;min-width:0}.phone.landing .header-tools [data-action=voice-settings]{min-height:40px}
.lookup-locked{margin:18px 0;padding:20px 16px;border:1px solid #c8d9ec;border-radius:16px;background:#f3f7fd;color:#183f60}.lookup-locked h3{font-size:22px;line-height:1.4;margin:0 0 10px}.lookup-locked p{font-size:16px;line-height:1.7;margin:10px 0}.lookup-locked .lookup-price{font-size:28px;color:#155fbd;font-weight:750}.lookup-locked small{display:block;font-size:14px;line-height:1.6;margin-top:10px;color:#5c7288}

.explanation-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:8px 12px;margin:7px 0;border:1px solid #b7cce2;border-radius:10px;background:#fff;color:#315c80;font-size:16px;line-height:1.4;white-space:normal;cursor:pointer}.explanation-toggle.on{background:#e5f0ff;color:#1557a5;border-color:#7bade4}.explanation-toggle:focus-visible{outline:3px solid #357de0;outline-offset:3px}.guided-card .explanation-toggle{margin:4px auto 10px}

/* The introductory chart scrolls naturally; it does not inherit the fixed lesson card. */
.tone-overview-page{padding-bottom:20px}.tone-overview-page .pagehead h2{font-size:26px;line-height:1.3}.tone-overview-page .pagehead p{font-size:16px;line-height:1.5}.tone-overview-page .lesson-sound-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.tone-overview-page .lesson-sound{font-size:14px;min-height:44px;padding:6px 2px;overflow-wrap:anywhere}.tone-overview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:14px 0}.tone-overview-toolbar>span{font-size:14px;color:#526a85}.tone-overview-page .tone-chart-grid{gap:8px}.tone-overview-page .tone-card .tone-plot{height:auto;min-height:64px}.tone-overview-page .tone-card.active{box-shadow:0 0 0 2px #176cf0 inset}.tone-overview-controls{margin:14px 0 20px}.tone-overview-controls>div{display:flex;align-items:center;gap:12px}.tone-overview-controls .relisten{flex:1;min-height:48px}.tone-overview-controls .text-action{min-height:44px;font-size:16px}.tone-overview-controls>p{font-size:16px;line-height:1.5;min-height:24px;color:#234e77}.tone-overview-text{background:#fff;border:1px solid #d2deeb;border-radius:16px;padding:16px;font-size:16px;line-height:1.7}.tone-overview-text h3{font-size:18px;margin:0 0 10px}.tone-overview-text p{margin:10px 0}.tone-overview-text ol{padding-left:24px}.tone-overview-text li{margin:8px 0}.tone-overview-entry{margin:16px 0;background:#edf5ff}.tone-overview-entry b{font-size:18px}.tone-overview-entry small{font-size:14px;line-height:1.5}.tone-repeat-hint{font-size:16px;line-height:1.45;color:#526a85;margin:8px 0}.tone-overview-page button:focus-visible{outline:3px solid #176cf0;outline-offset:2px}
@media(max-width:360px){.tone-overview-page .tone-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tone-overview-page .lesson-sound-nav{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Overview content scrolls independently; actions and site navigation keep their own space. */
.phone.overview-learning #content{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;overflow:hidden;padding-bottom:0}
.phone.overview-learning .bottom{display:none}
.tone-overview-page{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;overflow:hidden;padding-bottom:0}
.tone-overview-scroll{flex:1 1 0%;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:16px}
.tone-overview-page .tone-overview-controls{flex:0 0 auto;margin:0;padding:10px 0;background:#fff;border-top:1px solid #ccdceb}
.tone-overview-controls .cta{min-height:50px;margin:8px 0 0;line-height:1.4;white-space:normal;padding:12px 10px}
.tone-overview-controls .relisten{margin:0;min-height:44px;padding:8px 12px}
.tone-overview-status{font-size:16px;line-height:1.5;min-height:24px;color:#234e77;margin:12px 0}

/* The meaning is the primary content; the explanation switch is secondary. */
.sentence-meaning>p,.phone.learning .reading-copy .sentence-meaning>p{font-size:clamp(1.75rem,var(--reading-size,2rem),2.5rem);font-weight:700;line-height:1.4;margin:4px 0 6px}
.sentence-meaning>.explanation-toggle{font-size:.875rem;line-height:1.35;min-height:44px;padding:6px 10px;margin:2px 0 0;border-radius:8px;box-shadow:none}


/* State and action are explicit, with contrast that does not rely on colour alone. */
.explanation-toggle{gap:10px;text-align:left;border:1.5px solid #7594b5;color:#203e5c;background:#fff;font-weight:650}
.explanation-toggle.on{background:#164f87;border-color:#164f87;color:#fff}
.explanation-state{min-width:0;overflow-wrap:anywhere}
.explanation-action{flex:0 0 auto;font-size:.875rem;font-weight:650;border-left:1px solid currentColor;padding-left:10px;white-space:nowrap}
.tone-overview-controls>div{gap:8px}
.tone-overview-controls .relisten,.tone-overview-controls .text-action{flex:1;min-width:0;min-height:44px;border:1px solid #9bb5ce;border-radius:10px;background:#edf4fc;color:#194f80;padding:8px 10px;font-size:1rem;font-weight:650;line-height:1.35;white-space:normal}
.tone-overview-controls .cta{background:#ffc449;color:#123454;border:1px solid #e5aa2f;font-weight:800}

/* Keep all six pitch diagrams in the available screen area, never in a scrolling list. */
.phone.overview-learning #content{padding-inline:12px}
.tone-overview-page{position:relative}
.tone-overview-study{position:relative;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:4px;flex:1 1 0%;min-height:0;overflow:hidden}
.tone-overview-heading{display:flex;align-items:center;gap:8px;padding:4px 0}
.tone-overview-heading .back{width:38px;height:40px;flex:0 0 38px}
.tone-overview-heading h2{margin:0;font-size:1.2rem;line-height:1.3;color:#123454}
.tone-overview-heading p{margin:2px 0 0;font-size:.875rem;line-height:1.3;color:#526a85}
.tone-overview-page .lesson-sound-nav{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:0}
.tone-overview-page .lesson-sound{min-height:36px;padding:4px 1px;font-size:.875rem;line-height:1.2;border-radius:9px}
.tone-overview-page .tone-overview-toolbar{margin:0;gap:6px;flex-wrap:nowrap}
.tone-overview-toolbar .explanation-toggle{margin:0;min-height:44px;padding:5px 8px;font-size:.875rem;gap:6px}
.tone-overview-toolbar .explanation-action{padding-left:6px}
.tone-overview-toolbar>span{font-size:.875rem;flex:0 0 auto}
.tone-overview-page .tone-chart-grid{min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}
.tone-overview-page .tone-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;overflow:hidden;isolation:isolate;padding:6px 4px;border:1px solid #bdcfe0;border-radius:12px}
.tone-overview-page .tone-card.active{border:1px solid #176cf0;padding:6px 4px;box-shadow:inset 0 0 0 2px #176cf0}
.tone-overview-page .tone-card header{gap:0}
.tone-overview-page .tone-card header>b{font-size:1rem;line-height:1.2}
.tone-overview-page .tone-card header>span{font-size:.875rem;line-height:1.2}
.tone-overview-page .tone-plot-frame{position:relative;min-width:0;min-height:0;overflow:hidden}
.tone-overview-page .tone-plot-frame .tone-plot{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;overflow:hidden}
.tone-overview-page .tone-card-example{flex-wrap:nowrap;gap:4px;line-height:1.2}
.tone-overview-page .tone-card-example>b{font-size:1.65rem;line-height:1.2}
.tone-overview-page .tone-card-example>span{font-size:1.1rem;line-height:1.2}
.tone-overview-status{font-size:.875rem;line-height:1.3;margin:0;height:2.6em;min-height:2.6em;overflow-y:auto}
.tone-overview-help{font-size:.875rem;color:#245a87}
.tone-overview-help>summary{cursor:pointer;min-height:32px;padding:5px 2px;line-height:1.4;text-decoration:underline}
.tone-overview-help>summary>span:last-child{display:none}
.tone-overview-help[open]{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;background:#f7f9fc}
.tone-overview-help[open]>summary{flex:none;min-height:44px;padding:10px 8px;font-weight:700;background:#e5eff9}
.tone-overview-help[open]>summary>span:first-child{display:none}
.tone-overview-help[open]>summary>span:last-child{display:inline}
.tone-overview-help[open]>.tone-overview-text{position:absolute;inset:44px 0 0;min-height:0;overflow-y:auto;margin:0}
.tone-overview-help>summary:focus-visible{outline:3px solid #176cf0;outline-offset:-3px}
.tone-overview-page .tone-overview-controls{padding:8px 0;display:grid;gap:8px}
.tone-overview-controls>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
.tone-overview-controls .relisten,.tone-overview-controls .text-action,.tone-overview-controls .cta{display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;width:100%;min-height:44px;height:auto;padding:10px 8px;line-height:1.3}
@media(max-width:360px){.phone.overview-learning #content{padding-inline:8px}.tone-overview-toolbar .explanation-toggle{gap:4px;padding-inline:5px}.tone-overview-toolbar .explanation-action{padding-left:4px}.tone-overview-toolbar>span{max-width:60px;text-align:right}.tone-overview-page .tone-chart-grid{gap:4px}.tone-overview-page .tone-card{padding:4px 2px}.tone-overview-page .tone-card.active{padding:4px 2px}}
@media(max-height:680px){.tone-overview-study{gap:2px}.tone-overview-heading{padding:2px 0}.tone-overview-heading h2{font-size:1.1rem}.tone-overview-page .tone-card header{flex-direction:row;justify-content:center;flex-wrap:wrap;column-gap:4px}.tone-overview-page .tone-card header>b{font-size:.875rem}.tone-overview-page .tone-card-example>b{font-size:1.35rem}.tone-overview-page .tone-card-example>span{font-size:1rem}.tone-overview-page .tone-overview-controls{padding:6px 0;gap:6px}}

/* Compact explanation controls sit on the right, with the teaching text below. */
.explanation-toggle{font-size:.875rem;font-weight:600;min-height:44px;border-color:#9db8d5;background:#fff;color:#2d4b68;gap:8px;padding:6px 10px}
.explanation-toggle.on{background:#e3effc;border-color:#7aa5d3;color:#164f87}
.explanation-action{font-weight:600;padding-left:8px}
.teaching-copy-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}
.teaching-copy-heading>span{font-size:.875rem;line-height:1.4;font-weight:650;color:#365d84}
.teaching-copy-heading>.explanation-toggle{flex:0 1 auto;margin:0 0 0 auto}
.phone.learning .reading-copy .teaching-copy{padding:10px 12px}
.phone.learning .reading-copy .teaching-copy p{margin-top:9px;line-height:1.6}
.sentence-meaning>.explanation-toggle,.tone-preview>.explanation-toggle{display:flex;width:fit-content;margin:5px 0 5px auto}
.guided-taster .guided-card>.explanation-toggle{display:flex;width:fit-content;margin:5px 0 5px auto}
.tone-overview-toolbar>.explanation-toggle{order:2;margin-left:auto}
.tone-overview-toolbar>span{order:1}

/* Put the guide beside the heading to leave more height for the six diagrams. */
.tone-overview-heading>div{flex:1;min-width:0}
.tone-overview-heading>.tone-overview-help:not([open]){flex:0 0 auto}
.tone-overview-heading>.tone-overview-help>summary{list-style:none;min-height:40px;display:flex;align-items:center;justify-content:center;padding:6px 8px;border:1px solid #bacfe2;border-radius:8px;background:#edf4fc;text-decoration:none}
.tone-overview-help>summary::-webkit-details-marker{display:none}
.tone-overview-heading>.tone-overview-help[open]>summary{min-height:44px;justify-content:flex-end}

.reference-tap-hint{padding:10px 12px;background:#e7f1ff;border:1px solid #b3cdeb;border-radius:10px;color:#174f87;font-size:1rem;font-weight:650;line-height:1.5;margin:10px 0 4px}
.reference-preview-status{min-height:2.8em;font-size:.875rem;line-height:1.4;color:#446580;margin:4px 0 10px}
.reference-grid button.previewing{outline:3px solid #176cf0;outline-offset:-3px;background:#e5f0ff;color:#164f87}
.reference-grid button[data-preview="tap"]{touch-action:manipulation}

/* English learning screens keep the Cantonese target visually dominant. */
html[data-language=en] .phone.learning .sentence-stage .reading-copy .spoken-target,
html[data-language=en] .phone.learning .sentence-stage .reading-copy .spoken-target.medium,
html[data-language=en] .phone.learning .sentence-stage .reading-copy .spoken-target.long{
  font-size:clamp(2.15rem,calc(var(--reading-size)*1.34),2.55rem);
  line-height:1.28;
  margin-bottom:6px;
}
html[data-language=en] .phone.learning .sentence-stage .reading-copy .target-jyut{
  font-size:clamp(1.45rem,calc(var(--reading-size)*.94),1.75rem);
  line-height:1.35;
  margin-bottom:7px;
}
html[data-language=en] .phone.learning .reading-copy .sentence-meaning{
  padding:8px 12px;
  margin:5px 0 7px;
}
html[data-language=en] .phone.learning .reading-copy .sentence-meaning>p{
  font-size:clamp(1.08rem,calc(var(--reading-size)*.7),1.3rem);
  font-weight:600;
  line-height:1.42;
  margin:3px 0 5px;
}
html[data-language=en] .phone.learning.after-learning .usage-focus .reading-copy .spoken-target,
html[data-language=en] .phone.learning.after-learning .usage-focus .reading-copy .spoken-target.medium,
html[data-language=en] .phone.learning.after-learning .usage-focus .reading-copy .spoken-target.long{
  font-size:clamp(2.05rem,calc(var(--reading-size)*1.28),2.45rem);
  line-height:1.3;
}
html[data-language=en] .phone.learning.after-learning .usage-focus .reading-copy .usage-meaning b{
  font-size:clamp(1.05rem,calc(var(--reading-size)*.68),1.25rem);
  line-height:1.42;
  font-weight:600;
}
html[data-language=en] .guided-taster .guided-sentence{
  font-size:clamp(2.05rem,9.2vw,2.7rem);
  line-height:1.48;
}
html[data-language=en] .guided-taster .guided-tip{
  font-size:1rem;
  line-height:1.55;
}
html[data-language=en] .dictionary-entry .phrasebook-meaning{
  font-size:1.2rem;
  line-height:1.45;
}

/* Chinese lesson hierarchy: Cantonese and Jyutping are the learning targets. */
html:not([data-language=en]) .phone.learning .sentence-stage .reading-copy .spoken-target{
  font-size:calc(var(--reading-size)*1.82);
  line-height:1.18;
  font-weight:800;
}
html:not([data-language=en]) .phone.learning .sentence-stage .reading-copy .spoken-target.medium{
  font-size:calc(var(--reading-size)*1.66);
}
html:not([data-language=en]) .phone.learning .sentence-stage .reading-copy .spoken-target.long{
  font-size:calc(var(--reading-size)*1.53);
  line-height:1.22;
}
html:not([data-language=en]) .phone.learning .sentence-stage .reading-copy .target-jyut{
  font-size:calc(var(--reading-size)*1.3);
  line-height:1.3;
  font-weight:800;
}
html:not([data-language=en]) .phone.learning .sentence-stage .reading-copy .sentence-meaning>p{
  font-size:clamp(.95rem,calc(var(--reading-size)*.48),1.2rem);
  line-height:1.4;
  font-weight:600;
}

/* Keep the learning target large by consolidating the controls below it. */
.phone.learning:not(.after-learning) #lesson-surface>.practice-picker{padding:2px 0}
.phone.learning:not(.after-learning) .practice-picker-heading{margin-bottom:2px}
.phone.learning:not(.after-learning) .practice-pick{min-height:35px;padding:2px 1px}
.phone.learning:not(.after-learning) .practice-pick-number{font-size:10px}
.phone.learning:not(.after-learning) .practice-pick>b{font-size:11px;line-height:1.1}
.phone.learning:not(.after-learning) .learning-notes{margin:0}
.phone.learning:not(.after-learning) .inline-score{margin:2px 0;padding:3px 7px}
.phone.learning:not(.after-learning) .self-study-done{padding:1px 0;font-size:13px;line-height:1.2}
.phone.learning:not(.after-learning) .compact-steps{margin:1px 0;padding:2px;gap:2px;border-radius:9px}
.phone.learning:not(.after-learning) .compact-steps button{min-height:27px;padding:2px 1px;gap:3px;font-size:13px;white-space:nowrap}
.phone.learning:not(.after-learning) .compact-steps button span{min-width:18px;width:18px;height:18px;font-size:11px}
html[data-language=en] .phone.learning:not(.after-learning) .compact-steps button{font-size:12px}
.phone.learning:not(.after-learning) .day-completion-card{align-items:center;gap:6px;margin:2px 0 0;padding:4px 7px;border-radius:8px}
.phone.learning:not(.after-learning) .day-completion-card>.completion-check{flex-basis:20px;width:20px;height:20px;font-size:13px}
.phone.learning:not(.after-learning) .day-completion-card>div{display:flex;align-items:baseline;gap:7px;min-width:0;flex-wrap:wrap}
.phone.learning:not(.after-learning) .day-completion-card small,
.phone.learning:not(.after-learning) .day-completion-card p{display:none}
.phone.learning:not(.after-learning) .day-completion-card h3{margin:0;font-size:14px;line-height:1.2}
.phone.learning:not(.after-learning) .day-completion-card b{font-size:12px;line-height:1.2}
.phone.learning:not(.after-learning) .practice-controls{display:grid;grid-template-columns:1fr 1fr;gap:4px 6px;padding-top:1px}
.phone.learning:not(.after-learning) .practice-controls .listen-status-row{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:18px;flex-wrap:wrap}
.phone.learning:not(.after-learning) .practice-controls .listen-status-row .auto-status{flex:0 1 auto;margin:0;min-height:0}
.phone.learning:not(.after-learning) .practice-controls .listen-status-row>.text-action{flex:0 0 auto;min-height:0;margin:0;padding:0 2px;border:0;background:transparent;font-size:12px;line-height:1.3;white-space:nowrap}
.phone.learning:not(.after-learning) .practice-controls .relisten,
.phone.learning:not(.after-learning) .practice-controls .course-autoplay{width:100%;min-height:39px;margin:0;padding:6px 7px;border-radius:10px;font-size:16px}
.phone.learning:not(.after-learning) .practice-controls .record-action-row{grid-column:1/-1}
.phone.learning:not(.after-learning) .practice-controls .record-action-row>.cta{min-height:40px;padding:7px}

/* Mobile keeps the course chrome and actions fixed; only the reading panel scrolls. */
@media(max-width:520px){
  .phone.learning #content{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    padding:0 12px max(5px,env(safe-area-inset-bottom));
  }
  .phone.learning #lesson-surface{
    display:flex;
    flex:1 1 0;
    flex-direction:column;
    min-height:0;
    overflow:hidden;
  }
  .phone.learning.after-learning #content{display:flex;overflow:hidden;padding-bottom:max(5px,env(safe-area-inset-bottom))}
  .phone.learning.after-learning #lesson-surface{min-height:0}
  .phone.learning .lesson-context{display:block;flex:0 0 auto;min-height:0;overflow:visible}
  .phone.learning .focus-reading,
  .phone.learning.after-learning .focus-reading{
    display:flex;
    flex:1 1 0;
    flex-direction:column;
    min-height:120px;
    max-height:none;
    overflow:hidden;
  }
  .phone.learning:not(.after-learning) .reading-content{
    display:flex;
    flex:1 1 0;
    min-height:0;
    max-height:none;
    overflow:hidden;
    padding:5px 2px 3px;
  }
  .phone.learning.after-learning .reading-content{
    display:block;
    flex:1 1 0;
    min-height:0;
    max-height:none;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    padding:8px 2px 5px;
  }
  .phone.learning .reading-copy{
    --reading-size:clamp(23px,6.4vw,28px);
    display:flex;
    flex-direction:column;
    width:100%;
    height:100%;
    min-height:0;
  }
  .phone.learning .learning-target-block{flex:0 0 auto;min-height:0;text-align:center}
  .phone.learning .learning-explanation-switch{display:flex;flex:0 0 auto;justify-content:flex-end;min-height:0;padding:1px 0 3px}
  .phone.learning .learning-explanation-switch .explanation-toggle{width:auto;min-height:38px;margin:0;padding:5px 9px;font-size:13px;line-height:1.2}
  .phone.learning .learning-detail-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:0 2px 4px}
  .phone.learning .reading-copy .spoken-target{line-height:1.22;margin-bottom:6px}
  .phone.learning .reading-copy .target-jyut{line-height:1.35;margin-bottom:7px;overflow-wrap:anywhere}
  .phone.learning .focus-heading{position:relative;flex:0 0 auto;margin:5px 0 3px;gap:8px;line-height:1.35}
  .phone.learning .focus-heading>*{min-width:0;overflow-wrap:anywhere}
  .phone.learning .compact-steps,
  .phone.learning .practice-picker,
  .phone.learning .learning-notes,
  .phone.learning .practice-controls{flex:0 0 auto;min-height:0}
  .phone.learning .lesson-navigation{grid-template-columns:1.1fr 1fr .8fr;gap:4px;padding:5px 0 3px}
  .phone.learning .lesson-navigation button{min-height:36px;padding:5px 3px;font-size:12px;white-space:normal;overflow-wrap:anywhere}
  .phone.learning .lesson-navigation button>span{font-size:18px}
  .phone.learning .lesson-sound-nav{overflow:visible}
  .phone.learning .practice-picker,
  .phone.learning .practice-controls{position:static;clear:both}
  .phone.learning .practice-controls{margin-top:4px;border-top:1px solid var(--line);background:#f7f9fc}
  .phone.learning .tone-stage .learning-target-block{display:flex;flex-direction:column;gap:1px}
  .phone.learning .tone-stage .tone-reading-target{padding:0;gap:14px}
  .phone.learning .tone-stage .tone-preview-fixed{margin:1px 0 0;padding:4px 6px;border-radius:11px}
  .phone.learning .tone-stage .tone-preview-fixed .tone-preview-title strong{font-size:15px}
  .phone.learning .tone-stage .tone-preview-fixed .tone-preview-title>b{font-size:17px}
  .phone.learning .tone-stage .tone-preview-fixed .tone-preview-graph{display:block;margin:0}
  .phone.learning .tone-stage .tone-preview-fixed .tone-plot{display:block;width:100%;height:clamp(88px,15dvh,122px)}
  .phone.learning .tone-stage .learning-detail-scroll{padding-top:2px}
}

/* Mobile reading fix: the complete lesson body scrolls as one surface.
   Targets, Jyutping and Mandarin/English meanings must never be clipped inside
   a separate, hard-to-find explanation scroller. */
@media(max-width:520px){
  .phone.learning:not(.after-learning) .lesson-context .pagehead p,
  .phone.learning:not(.after-learning) .lesson-day-jump,
  .phone.learning:not(.after-learning) .practice-picker-heading>b{
    display:none;
  }
  .phone.learning:not(.after-learning) .practice-picker-heading{
    justify-content:flex-end;
    min-height:0;
    margin:0 0 2px;
  }
  .phone.learning:not(.after-learning) .reading-content{
    display:block;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    padding:5px 2px 8px;
    scrollbar-width:thin;
  }
  .phone.learning .reading-copy{
    --reading-size:clamp(21px,5.8vw,26px);
    display:block;
    height:auto;
    min-height:min-content;
    min-width:0;
  }
  .phone.learning .learning-target-block,
  .phone.learning .learning-explanation-switch,
  .phone.learning .learning-detail-scroll{
    flex:none;
    min-height:min-content;
  }
  .phone.learning .learning-detail-scroll{
    overflow:visible;
    overscroll-behavior:auto;
    touch-action:auto;
    padding:0 2px 4px;
  }
  .phone.learning .reading-copy .spoken-target,
  .phone.learning .reading-copy .target-jyut,
  .phone.learning .reading-copy .sentence-meaning>p,
  .phone.learning .reading-copy .teaching-copy p{
    max-width:100%;
    white-space:normal;
    word-break:normal;
    overflow-wrap:anywhere;
  }
  .phone.learning:not(.after-learning) .reading-copy .spoken-target{
    width:100%;
    white-space:nowrap;
    word-break:keep-all;
    overflow-wrap:normal;
  }
  html[data-language=en] .phone.learning .sentence-stage .reading-copy .spoken-target,
  html:not([data-language=en]) .phone.learning .sentence-stage .reading-copy .spoken-target.long{
    font-size:clamp(2.4rem,calc(var(--reading-size)*1.6),2.8rem);
    line-height:1.28;
  }
}

.learning-target-block,.learning-explanation-switch,.learning-detail-scroll{width:100%}
.learning-explanation-switch{display:flex;justify-content:flex-end}
.learning-explanation-switch .explanation-toggle{margin:4px 0}
.tone-preview-fixed .tone-preview-graph{grid-template-columns:1fr}
.tone-preview-detail{font-size:15px;line-height:1.5;color:#355670;text-align:left}
.tone-preview-detail p{margin:3px 0 7px}
.tone-preview-detail button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;padding:8px 11px;border:0;border-radius:9px;background:#e8f2ff;color:#175394;font:inherit;font-size:15px;font-weight:750}


/* All learning sections are visible before the optional course details. */
.hf-modules{margin:24px 0 0}.hf-modules-heading{margin-bottom:13px}.home-focus .hf-modules-heading h2{font-size:21px;line-height:1.45}.hf-modules-heading p{font-size:14px;line-height:1.5;color:#526d85;margin:4px 0 0}
.hf-module-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:11px}
.home-focus .hf-module{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:7px;padding:17px 16px;border:1px solid #cfdeed;border-radius:15px;background:#f2f7fd;color:#173f68;text-align:left;line-height:1.5}
.hf-module strong{display:block;font-size:22px;line-height:1.4}.hf-module>span:not(.hf-module-kicker):not(.hf-module-top){font-size:14px;line-height:1.65}.hf-module-kicker{font-size:12px;font-weight:700;letter-spacing:.2px;color:#3b658e}.hf-module-access{font-size:12px;line-height:1.4;font-weight:500;color:#4c6782;border:1px solid #c6d7e8;border-radius:6px;padding:3px 6px;margin-top:auto}
.hf-module-top{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;width:100%}.hf-module-top .hf-module-access{margin-top:0}
.home-focus .hf-module-life,.home-focus .hf-module-reading{grid-column:1/-1;padding:18px}.home-focus .hf-module-life{background:#123e64;border-color:#123e64;color:#fff}.hf-module-life .hf-module-kicker{color:#ffdb93}.hf-module-life .hf-module-access{color:#fff;border-color:#ffffff65}.hf-module-life strong,.hf-module-reading strong{font-size:22px}.hf-module-life .hf-module-topics{color:#fff}
.home-focus .hf-module-reading{background:#5b4bc4;border-color:#5b4bc4;color:#fff}.hf-module-reading .hf-module-kicker,.hf-module-reading .hf-module-access{color:#fff}.hf-module-reading .hf-module-access{border-color:#ffffff70}.hf-module-reading strong{display:flex;justify-content:space-between;width:100%}
.hf-module-tools{display:flex;justify-content:space-between;gap:12px;padding-top:10px}.hf-module-tools button{flex:1;border:1px solid #d6e2ed;border-radius:9px;background:#fff;color:#285a87;min-height:42px;font-size:14px;padding:8px}
.hf-course-details{margin-top:24px;border-top:1px solid #dce6ef;border-bottom:1px solid #dce6ef;padding:15px 0}.hf-course-details>summary{font-size:16px;font-weight:650;color:#235684;cursor:pointer;line-height:1.6}.hf-course-details .hf-method{padding-top:21px}.hf-course-details .hf-course{padding-bottom:10px}.home-focus .hf-life{margin-top:0}
@media(max-width:375px){.home-focus .hf-module{padding:14px 12px}.hf-module strong{font-size:17px}.hf-module-life strong,.hf-module-reading strong{font-size:21px}.hf-module-grid{gap:9px}.hf-module-top{gap:6px}.hf-module-access{padding:3px 5px}}
@media(max-width:330px){.hf-module-grid{grid-template-columns:1fr}.hf-module-course{grid-column:1/-1}}

/* Compact overview first; the free taster follows all three sections. */
.home-focus .hf-opening{padding-top:12px}.home-focus .hf-eyebrow{font-size:13px;line-height:1.45;margin:0 0 7px;color:#526d85}
.home-focus .hf-opening h1{display:block;font-size:24px;line-height:1.35;letter-spacing:0;margin:0;font-weight:750}.hf-opening h1>span,.hf-opening h1>em{display:block}.hf-opening h1>em{font-style:normal;color:#155fbd}
.home-focus .hf-modules{margin-top:14px}.home-focus .hf-modules-heading{margin-bottom:8px}.home-focus .hf-modules-heading h2{font-size:15px;font-weight:600;line-height:1.4;color:#4a657d}
.home-focus .hf-module-grid{gap:9px}.home-focus .hf-module{padding:11px 15px;gap:3px;border-radius:14px}.home-focus .hf-module strong{font-size:20px;line-height:1.4}.home-focus .hf-module>span:not(.hf-module-kicker):not(.hf-module-top){font-size:14px;line-height:1.5}
.home-focus .hf-module-top{gap:8px;align-items:baseline}.home-focus .hf-module-access{border:0;padding:0;font-size:12px;line-height:1.4}.home-focus .hf-module-kicker{font-size:12px;line-height:1.4}
.home-focus .hf-module-course{background:#155fbd;border-color:#155fbd;color:#fff}.hf-module-course .hf-module-kicker,.hf-module-course .hf-module-access{color:#fff}
.home-focus .hf-learning-actions{width:100%;margin:13px 0 0;gap:7px}.home-focus .hf-learning-actions>.cta{min-height:48px;padding:11px 12px;font-size:18px}.home-focus .hf-learning-actions .hf-taster-note{font-size:13px;line-height:1.45;margin:0;color:#526d85}
.home-focus .hf-purchase{margin-top:14px;padding:12px 0;flex-wrap:wrap}.home-focus .hf-purchase>button{min-height:44px;padding:9px 13px;border-radius:10px;background:#f3c663;color:#173f67;font-size:15px;font-weight:750;text-align:center;justify-content:center}.home-focus .hf-price-caption{color:#526d85}
.home-focus .hf-course-details{margin-top:22px}
html[data-language=en] .home-focus .hf-opening h1{font-size:21px;line-height:1.35}
@media(max-width:375px){.home-focus .hf-opening h1{font-size:22px}.home-focus .hf-module{padding:10px 13px}.home-focus .hf-module-grid{gap:8px}.home-focus .hf-modules{margin-top:12px}.home-focus .hf-module strong{font-size:20px}}

.home-focus .hf-eyebrow{font-weight:700}.home-focus .hf-eyebrow strong{color:#155fbd;white-space:nowrap}
.home-focus .hf-hero-seven{display:inline-block;font-size:44px;line-height:1;font-weight:800;letter-spacing:-1px;color:#155fbd;margin-right:3px;vertical-align:baseline}
.developer-credit .developer-company-en{flex-basis:100%;overflow-wrap:anywhere;line-height:1.5;margin:2px 0}.developer-credit .developer-person{flex-basis:100%;margin:3px 0;line-height:1.5}
.hf-footer .developer-credit{display:block}.hf-footer .developer-credit>div{display:flex;align-items:baseline;flex-wrap:wrap}.hf-footer .developer-credit .developer-company-en{font-size:12px;color:#526d85}.hf-footer .developer-credit .developer-person{font-size:14px;color:#526d85}.hf-footer .developer-person strong{font-size:15px;color:#244865}
@media(max-width:375px){.home-focus .hf-hero-seven{font-size:40px}}

/* One outer doorway, three clear internal tracks. */
/* The homepage uses one learning colour, with gold reserved for purchasing. */
.home-focus{--home-learning-blue:#174f86}
.home-focus .hf-module-course,.home-focus .hf-module-life,.home-focus .hf-module-reading{background:var(--home-learning-blue);border-color:var(--home-learning-blue);color:#fff}
.home-focus .hf-module strong{color:#fff}
.home-focus .hf-module .hf-module-kicker,.home-focus .hf-module .hf-module-access{color:#d8e8f8}
.home-focus .hf-module>span:not(.hf-module-top){color:#f4f8fc}
.home-focus .hf-eyebrow strong,.home-focus .hf-hero-seven,.home-focus .hf-opening h1>em{color:var(--home-learning-blue)}
.home-focus .hf-learning-actions>.hf-primary{background:#fff;border:1.5px solid var(--home-learning-blue);color:var(--home-learning-blue);box-shadow:none}
.home-focus .hf-learning-actions>.hf-primary:hover,.home-focus .hf-learning-actions>.hf-primary:active{background:#eef4fa}
.home-focus .hf-learning-actions>.ghost{color:#365c7d;border-color:#d4e0eb;background:#fff}
.phone.landing .header-tools .sound-search-prominent,.phone.landing .header-tools .translation-open-prominent{background:#f1f5fa;border:1px solid #dce5ed;color:#245270}

.life-entry{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 20px;margin:16px 0;border:1px solid #b8cee5;border-radius:14px;background:#eef5fd;color:#163f6b;text-align:left;gap:12px;min-height:78px}
.life-entry strong,.life-entry small{display:block}.life-entry strong{font-size:1.15rem;line-height:1.5}.life-entry small{font-size:.875rem;line-height:1.6;font-weight:400}.life-entry>b{font-size:1.8rem}
.hf-life-card .life-entry{background:#fff;color:#173f68;padding:15px 16px;margin-top:20px;border:0;border-radius:12px}
.hf-life-card .life-entry>span{font-size:inherit}.hf-life-card .life-entry small{color:#546e86}
.life-track-cards{display:grid;gap:14px;margin:22px 0}
.life-track-card{display:flex;align-items:center;gap:16px;width:100%;min-width:0;border:1px solid #c8d9e9;border-radius:16px;background:#fff;padding:20px;text-align:left;color:#173f68}
.life-track-card:hover,.life-track-card:focus-visible{border-color:#216abb;background:#f5f9ff}
.life-track-number{align-self:flex-start;font-size:.9rem;font-weight:700;padding-top:4px;color:#477eb4}
.life-track-body{display:flex;flex:1;min-width:0;flex-direction:column;gap:8px}
.life-track-body>strong{font-size:1.125rem;line-height:1.5}.life-track-body>small{font-size:.875rem;line-height:1.5;color:#59718a}
.life-track-progress{height:4px;background:#e5eef8;border-radius:5px;overflow:hidden}.life-track-progress>span{display:block;height:100%;background:#2467ac}
.life-hub-note{font-size:.9rem;color:#64748b;line-height:1.6;text-align:center}
.life-switch-top,.life-reader-nav button{background:transparent;border:0;color:#2363a4;min-height:42px;padding:8px 0;font-size:.9rem;text-align:left}
.life-reader-nav{display:flex;align-items:center;justify-content:space-between;gap:14px}.life-reader-nav button:last-child{flex-shrink:0;text-align:right}
.life-reader-heading .pagehead{margin:0;padding:2px 0 9px}.life-reader-heading h2{font-size:1.1rem;line-height:1.5}.life-reader-heading .pagehead p{margin:2px 0;font-size:.875rem}
.life-directory .pagehead{margin-top:0}.life-directory .usage-overview{display:none}
.life-directory .resume-practice{margin:8px 0 20px}.life-directory .usage-categories{gap:6px}
.life-directory .usage-category-directory{display:grid;grid-template-columns:1fr;gap:9px}
.life-directory .usage-directory-item{padding:14px;border:1px solid #d7e3ef;border-radius:12px;background:#fff;min-height:64px}
.life-directory .usage-directory-item b{font-size:1rem;line-height:1.45}.life-directory .usage-directory-item small{font-size:.875rem;line-height:1.5}
.life-playback-row{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:14px;padding:8px 0 12px}
.life-playback-row .relisten,.life-playback-row .after-autoplay{width:auto;flex:0 1 auto;min-width:0;min-height:44px;margin:0;padding:10px 15px;border-radius:11px;font-size:1rem;line-height:1.3;white-space:normal}
.life-playback-row .relisten{background:#eef4fb;border:1px solid #c8d9e9;color:#215b96}
.life-playback-row .after-autoplay{margin-left:auto;background:#145fab;color:#fff;border:1px solid #145fab}
.life-playback-row .after-autoplay.is-playing{background:#ac2739;color:#fff;border-color:#ac2739}
.life-usage-note{font-size:.9rem;margin-top:8px}.life-usage-note p{line-height:1.6}
.phone.after-learning .practice-controls{display:block;position:static;padding:7px 0 0;background:#fff}
.phone.after-learning .practice-controls .record-action-row{display:block}.phone.after-learning .practice-controls .cta{width:100%;min-height:46px;margin:5px 0 0}
.phone.after-learning .listen-status-row{font-size:.875rem;line-height:1.4;padding:0 4px;min-height:20px}
.phone.after-learning .usage-focus{border:1px solid #dae5ef;background:#f8fbff;border-radius:16px;padding:10px 15px}
.phone.after-learning .usage-focus .spoken-target{font-size:clamp(24px,5.3vw,38px);line-height:1.35;overflow-wrap:anywhere;font-weight:750}
.phone.after-learning .usage-focus .target-jyut{font-size:clamp(18px,3.8vw,25px);line-height:1.45;overflow-wrap:anywhere;color:#286cae}
.phone.after-learning .usage-meaning{padding:12px 0 2px}.phone.after-learning .usage-meaning>b{font-size:1rem;line-height:1.6}
.phone.after-learning .usage-step{font-size:.875rem;color:#66788d;padding-top:5px}
@media(max-width:520px){
 .life-track-card{padding:18px 15px;gap:12px}.life-reader-nav button{font-size:.875rem}
 .phone.after-learning .reading-copy{height:auto;min-height:100%}
 .phone.after-learning .focus-reading{min-height:125px}
 .phone.after-learning .practice-picker{padding:0;margin:0}
 .phone.after-learning .practice-pick{min-height:37px;padding:3px 2px}
 .phone.after-learning .practice-pick>b{font-size:.875rem;line-height:1.3}
 .phone.after-learning .practice-pick-number{font-size:.75rem}
 .phone.after-learning .practice-picker-heading,.phone.after-learning .after-batches{margin:3px 0}
 .phone.after-learning .learning-notes{margin:0}.phone.after-learning .inline-score{margin:3px 0;padding:3px 8px}
 .phone.after-learning .self-study-done{padding:0;font-size:.875rem}
 .life-playback-row{gap:10px;padding:7px 0}.life-playback-row .relisten,.life-playback-row .after-autoplay{padding:8px 12px}
}
