/* Learning journey and child-facing discovery spaces */
.discovery-nav{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.discovery-nav button,.feature-tabs button,.story-controls button,.story-words button,.book-question button{border:1px solid #dedbcf;border-radius:16px;background:#fffdf7;color:#676d58;padding:12px 18px;font:inherit;cursor:pointer}.discovery-nav .active,.feature-tabs [aria-pressed=true],.selected{background:#e6edda!important;border-color:#91a471!important}.daily-trail{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#eef0e4;border-radius:20px;padding:15px 22px;margin:18px 0 30px}.daily-trail strong,.daily-trail span{display:block}.daily-trail span{font-size:13px;color:#818675;margin-top:5px}#features-panel{scroll-margin-top:20px}.feature-heading{display:flex;gap:24px;align-items:center;margin:24px 0 32px}.feature-heading>span{font-size:58px}.feature-heading h2{font-size:30px;margin:8px 0 12px}.feature-heading p{color:#858975;line-height:1.7}.feature-heading .eyebrow{font-size:11px;letter-spacing:2px}.daily-path{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.daily-task{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#fffdf7;border:1px solid #e2dfd2;border-radius:25px;padding:24px;font:inherit;color:inherit;cursor:pointer}.daily-task.done{background:#edf1df}.task-bubble{display:grid;place-items:center;width:60px;height:60px;border-radius:20px;background:#f2eee4;font-size:32px;margin-bottom:24px}.daily-task small,.daily-task p{color:#999985;font-size:13px}.daily-task h3{font-size:18px;line-height:1.5}.feature-note{background:#f0eee7;color:#848672;border-radius:16px;padding:20px;line-height:1.8;font-size:14px;margin:25px 0}.feature-card{background:#fffdf7;border:1px solid #e3dfd1;border-radius:26px;padding:28px;line-height:1.8}.feature-card p{color:#868a77}.feature-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 22px}.review-overview{display:flex;gap:30px;align-items:center;border-bottom:1px solid #ddd8cb;padding:20px 0;font-size:20px}.review-chips{display:flex;flex-wrap:wrap;gap:14px;margin:24px 0}.review-chips span{padding:15px 22px;border-radius:16px;background:#eaf0df}.quiz-card{max-width:780px;margin:auto;text-align:center;padding:36px;background:#fffdf8;border:1px solid #e5dfd0;border-radius:30px}.quiz-picture{font-size:100px;line-height:1.5}.quiz-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:28px 0}.quiz-options button{padding:24px 12px;border:2px solid #e5e0d2;border-radius:22px;background:#faf8ef;font:inherit;color:#7c826b;cursor:pointer}.quiz-options button span{display:block;font-size:65px}.quiz-options button small{display:block;margin-top:10px}.quiz-options .wrong{border-color:#dbb4a3}.phonics-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:24px}.phonics-tiles{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:24px 0}.phonics-tiles button{width:80px;min-height:85px;background:#f0ecf8;border:1px solid #d9d1e8;border-radius:20px;font-size:35px;color:#87739f;cursor:pointer}.phonics-tiles small{display:block;font-size:16px}.blend-picture{font-size:80px;display:block;text-align:center}.blend-slots{font-size:35px;letter-spacing:8px;color:#8a9774;text-align:center}.book-cover{font:inherit;cursor:pointer;min-width:0}.story-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.story-page{max-width:850px;text-align:center;margin:auto;padding:32px;border-radius:30px;background:#fffdf7;border:1px solid #e4e0d1}.story-art{background:linear-gradient(#e4edda,#f8ecd0);border-radius:22px;font-size:110px;padding:25px}.story-art>span{font-size:80px;margin-left:30px}.story-sentence{font-size:34px;font-weight:700;line-height:1.6;border-radius:12px}.story-sentence.reading{background:#f2ebd4;color:#897640}.story-words{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:24px 0}.book-dubbing{border-top:1px solid #ece7d8;margin-top:28px;padding-top:25px}.book-dubbing audio{display:block;width:100%;margin:12px auto}.story-controls{display:flex;justify-content:space-between;gap:12px;margin-top:25px}.book-question{border-top:1px solid #e8e1d3;margin-top:24px;padding-top:16px}.book-question button{margin:5px}.mimi-room{position:relative;min-height:330px;overflow:hidden;background:linear-gradient(#e6ead9 72%,#ded1b6 72%);border:5px solid #ddd0b5;border-radius:30px}.room-window{position:absolute;right:12%;top:25px;font-size:37px;background:#eef6f1;border:10px solid #f8efd4;border-radius:60px 60px 0 0;text-align:center;min-width:95px}.room-bear{position:absolute;left:16%;bottom:58px;font-size:110px}.room-furniture{position:absolute;left:40%;right:5%;bottom:48px;display:flex;flex-wrap:wrap;gap:12px;align-items:end}.room-furniture span{font-size:54px}.mimi-room>p{position:absolute;bottom:8px;width:100%;text-align:center;font-size:10px;letter-spacing:3px;color:#9e9177}.decoration-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}.decoration-grid button{text-align:center;cursor:pointer;font:inherit;color:inherit}.decoration-grid button>span{font-size:50px;display:block}.decoration-grid strong,.decoration-grid small{display:block}.decoration-grid small{font-size:12px;color:#92927f}.locked{opacity:.55;filter:grayscale(.8)}.evidence-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;margin:25px 0}.evidence-grid>div{border-radius:20px;background:#eeeede;text-align:center;padding:20px 8px}.evidence-grid strong{display:block;font-size:30px;color:#819269}.evidence-grid span{font-size:12px;color:#808670}.parent-practice blockquote{font-size:24px;background:#eff0e3;padding:18px;border-radius:12px;margin:18px 0}.chinese-setting{display:block;padding:15px 0}.challenge-toolbar{padding:18px 22px;border:1px solid #dfd9e8;border-radius:20px;background:#f5f1fa;margin:0 0 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.challenge-toolbar small{display:block;margin-top:6px;color:#9986aa}.challenge-toolbar .feature-tabs{margin:0}.challenge-toolbar .feature-tabs button{font-size:13px;padding:10px 13px}.speech-effect{position:absolute;inset:auto 16px 20px;z-index:6;border-radius:20px;background:rgba(255,253,244,.96);padding:16px;display:none;align-items:center;justify-content:center;gap:20px;pointer-events:none}.speech-effect span{font-size:50px}.speech-effect strong{font-size:15px;max-width:270px}.speech-effect.delivered{display:flex;animation:gift-delivery .9s ease-out}.chinese-peek{display:none;position:fixed;right:16px;bottom:88px;z-index:20;padding:12px 18px;border:1px solid #ccc2dd;border-radius:18px;background:#f5f0fc;color:#88739e;box-shadow:0 3px 12px #0001}.chinese-folded .chinese-peek{display:block}.chinese-folded:not(.peek-chinese) :is(.translation,.foundation-translation,#bubble-chinese,.phrase-card>p,.dialogue-partner p,.foundation-unit small,.quiz-options small){visibility:hidden}.chinese-folded:not(.peek-chinese) #foundation-chinese{visibility:visible;font-size:0}.chinese-folded:not(.peek-chinese) #foundation-chinese::after{content:'♫ 听中文释义';font-size:16px}body[data-child-mode=little] .word-ipa{display:none}body[data-child-mode=little] .foundation-picture.words{font-size:140px}body[data-child-mode=little] .foundation-unit>span:first-child{font-size:60px}body[data-child-mode=little] button{min-height:48px}body[data-child-mode=little] .foundation-unit{min-height:150px}#lesson-workspace[data-challenge="2"][data-revealed=false] :is(.phrase-card>strong,.dialogue-choices),#lesson-workspace[data-challenge="3"][data-revealed=false] :is(.phrase-card>strong,.phrase-card>p,.dialogue-choices,#prompt-subtitle,.mission-list p){visibility:hidden}#lesson-workspace[data-challenge="2"][data-lesson-step="1"][data-revealed=false] #bubble-english,#lesson-workspace[data-challenge="3"][data-lesson-step="1"][data-revealed=false] :is(#bubble-english,#bubble-chinese){visibility:hidden}#lesson-workspace[data-challenge="2"][data-revealed=false] .phrase-card::before,#lesson-workspace[data-challenge="3"][data-revealed=false] .phrase-card::before{content:'先自己想一想 · 需要帮助可点「需要示范」';display:block;color:#9a87ab;font-size:15px;margin-bottom:8px}button:disabled{cursor:default}#features-panel button:focus-visible,.discovery-nav button:focus-visible{outline:3px solid #9d88b3;outline-offset:3px}#features-panel [hidden]{display:none!important}@keyframes gift-delivery{from{opacity:0;transform:translate(90px,-45px) scale(.5)}to{opacity:1;transform:translate(0) scale(1)}}
@media(max-width:1000px){.daily-path{grid-template-columns:1fr 1fr}.decoration-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.challenge-toolbar{align-items:flex-start;flex-direction:column}.evidence-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.discovery-nav{gap:7px}.discovery-nav button{padding:10px 12px;font-size:12px;border-radius:13px}.daily-trail{padding:15px;gap:8px}.daily-trail .text-button{font-size:12px;white-space:normal}.daily-trail span{font-size:11px}.feature-heading{gap:16px}.feature-heading>span{font-size:40px}.feature-heading h2{font-size:24px}.feature-heading p{font-size:13px}.daily-task{padding:18px;border-radius:20px}.daily-task h3{font-size:15px}.daily-task small,.daily-task p{font-size:11px}.task-bubble{width:46px;height:46px;font-size:25px;margin-bottom:12px}.phonics-grid{grid-template-columns:1fr}.feature-card{padding:20px}.quiz-card{padding:22px 14px}.quiz-options{gap:8px}.quiz-options button{padding:18px 8px}.quiz-options button span{font-size:42px}.quiz-card h2 .word-ipa{display:block}.feature-tabs button{padding:10px;font-size:13px}.review-overview{font-size:15px;gap:12px}.story-top{flex-wrap:wrap;font-size:12px}.story-page{padding:18px}.story-art{font-size:85px;padding:15px}.story-art>span{font-size:60px;margin-left:15px}.story-sentence{font-size:25px}.decoration-grid{grid-template-columns:1fr 1fr;gap:12px}.decoration-grid .feature-card{padding:15px 10px}.room-furniture{left:45%;gap:5px}.room-furniture span{font-size:38px}.room-bear{font-size:90px;left:10%}.evidence-grid{gap:8px}.evidence-grid>div{padding:15px 5px}.evidence-grid span{font-size:11px}.challenge-toolbar{padding:15px}.challenge-toolbar .feature-tabs{gap:5px}.challenge-toolbar .feature-tabs button{padding:10px;font-size:12px}.speech-effect{padding:10px;gap:10px}.speech-effect span{font-size:35px}.speech-effect strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.speech-effect.delivered{animation:none}}
.speech-effect span svg{width:75px;height:75px}
/* Literal vocabulary drawings and page turns stay beside the illustration. */
.word-art{display:inline-block;width:1em;height:1em;vertical-align:middle;flex-shrink:0}
.foundation-picture .word-art{width:160px;height:160px}.foundation-unit>span>.word-art{width:56px;height:56px}.quiz-picture>.word-art{width:120px;height:120px}.quiz-options button span>.word-art{width:70px;height:70px}.story-words .word-art{width:28px;height:28px}.review-chips .word-art{width:30px;height:30px}
body[data-child-mode=little] .foundation-picture .word-art{width:180px;height:180px}
.story-reader{display:grid;grid-template-columns:64px minmax(0,850px) 64px;justify-content:center;gap:14px;align-items:start}.story-reader .story-page{width:100%;min-width:0;margin:0}.story-page-turn{position:sticky;top:40vh;align-self:start;margin-top:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:64px;min-height:100px;border:1px solid #d9dbc8;border-radius:24px;background:#e9eedf;color:#7f956b;box-shadow:0 5px 0 #dce2d0}.story-page-turn b{font-size:48px;line-height:1;font-weight:400}.story-page-turn span{font-size:12px}.story-page-turn:disabled{box-shadow:none;background:#f2f1e9;color:#b4b6a5}.story-page{overflow-wrap:break-word}.book-levels{margin-bottom:24px}
@media(max-width:560px){.story-reader{grid-template-columns:44px minmax(0,1fr) 44px;gap:5px;margin-inline:-8px}.story-reader .story-page{padding:15px 10px;border-radius:23px}.story-page-turn{width:44px;min-height:83px;margin-top:90px;top:36vh;border-radius:17px}.story-page-turn b{font-size:38px}.story-page-turn span{font-size:10px}.story-reader .story-art{font-size:65px;padding:18px 5px}.story-reader .story-art>span{font-size:48px;margin-left:8px}.story-reader .story-sentence{font-size:23px}.story-reader .continue-button{min-width:0;width:100%;padding-inline:8px}.story-reader .record-button{max-width:100%;font-size:12px;padding:14px 10px}.story-reader .story-words button{padding:9px;font-size:12px}.story-reader .book-question button{font-size:12px;padding:9px 10px}.story-reader .translation{font-size:14px}}
/* Focused home, comfortable reading, and parent tools. */
.speed-control{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap;color:#7b816e}.speed-control select,.family-tools select{border:1px solid #d6d9c5;border-radius:10px;background:#fffdf6;padding:9px 6px;min-height:40px;font:inherit;color:#617452}.family-tools label{display:block}.family-tools,.offline-tools{margin-bottom:24px}.family-form,.family-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.family-tools input:not([type=file]){border:1px solid #d6d9c5;border-radius:12px;padding:12px;max-width:100%;min-width:0;font:inherit}.family-tools button,.file-button,.offline-list button{border:1px solid #d6d9c5;border-radius:12px;padding:12px;background:#eff1e6;font-size:14px;min-height:44px}.file-button{cursor:pointer;position:relative;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.family-tools small,.offline-tools small{display:block;color:#858777;line-height:1.8}.offline-list>div{display:flex;align-items:center;gap:8px;border-top:1px solid #eeebde;padding:14px 0;flex-wrap:wrap}.offline-list>div>span{flex:1;min-width:160px}.offline-list button{font-size:12px;padding:10px}.phonics-answers{display:flex;gap:12px;margin-top:18px}.phonics-answers button{border:1px solid #d6cde6;background:#f2edf8;padding:15px 24px;border-radius:15px;font-size:25px}.phonics-answers .selected{background:#e1ead3}.sound-challenge{border-top:1px solid #ebe5da;margin-top:24px;padding-top:10px}.sound-challenge h4{font-size:18px}.sound-challenge h4 span{font-size:14px;color:#9385a8;margin-left:15px}.adventure-hero{max-width:780px;margin:auto;text-align:center;padding:35px 30px 30px;border:1px solid #dce1ca;border-radius:36px;background:linear-gradient(145deg,#eaf0df,#fff9e9)}.adventure-art{font-size:85px}.adventure-art span{display:inline-block;margin-left:20px}.adventure-hero h2{font-size:36px;margin:15px 0}.adventure-hero>p:not(.eyebrow){color:#898d78}.adventure-hero .continue-button{display:block;margin:24px auto 8px;max-width:100%;font-size:21px}.adventure-hero .text-button{font-size:14px}.trail-dots{display:flex;gap:10px;justify-content:center;margin:20px}.trail-dots span{width:28px;height:28px;background:#dedfce;color:#fff;border-radius:50%;line-height:28px}.trail-dots .done{background:#89a16b}.landing-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:25px auto;max-width:780px}.landing-links button{border:1px solid #dddccc;border-radius:17px;padding:15px;color:#7f8c6b;background:#fffdf7;min-height:48px}.theme-path{display:grid;gap:18px;max-width:700px;margin:25px auto}.home-landing:not(.explore-open) :is(.learning-modes,.discovery-nav,.mobile-nav){display:none}.home-landing :is(.greeting,.daily-trail){display:none}.home-landing #features-panel{margin-top:35px}.home-landing .page{padding-bottom:30px}.reading-immersive :is(.greeting,.learning-modes,.discovery-nav,.daily-trail,.mobile-nav,.page-footer,.desktop-nav,.header-divider,#parent-button,.avatar){display:none}.reading-immersive .site-header{height:72px}.reading-immersive .page{padding-top:24px}.reading-immersive #features-panel{margin-top:0}.reading-immersive .story-top{margin-bottom:24px}.reading-immersive .chinese-peek{display:none}.reading-immersive .story-page{min-height:70vh}.story-top{gap:12px}.story-top strong{flex:1;text-align:center}.story-top #reader-chinese{font-size:12px}.daily-path{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
@media(max-width:560px){.header-actions{gap:6px}.speed-control{font-size:10px}.speed-control select{min-height:36px;padding:7px 3px}.site-header{gap:8px}.header-actions .header-divider,.header-actions .avatar{display:none}.header-actions #parent-button{font-size:10px}.brand small{display:none}.adventure-hero{padding:30px 15px;border-radius:27px}.adventure-art{font-size:70px}.adventure-hero h2{font-size:28px}.adventure-hero .continue-button{font-size:18px}.adventure-hero>p:not(.eyebrow){font-size:13px}.landing-links{gap:8px}.landing-links button{font-size:12px;padding:12px}.home-landing #features-panel{margin-top:22px}.reading-immersive .page{padding:18px 12px 35px}.reading-immersive .story-top{font-size:11px;gap:7px}.reading-immersive .story-top strong{min-width:90px}.reading-immersive .story-top #reader-chinese{font-size:10px;padding:8px 0;min-height:40px}.reading-immersive .story-reader{margin-inline:0}.family-tools,.offline-tools{padding:17px}.family-tools select{max-width:100%}.family-tools input:not([type=file]){width:100%}.offline-list>div>span{min-width:100%;font-size:15px}.daily-path{grid-template-columns:1fr}.phonics-answers button{padding:12px 22px}}
@media(max-width:360px){.site-header{padding-inline:12px;gap:6px}.brand{font-size:13px;gap:7px}.brand-mark{width:30px;height:30px}.brand-mark svg{width:28px;height:28px}.header-actions{gap:4px}.header-actions #parent-button{font-size:9px}.speed-control{gap:3px}}
.offline-disclosure summary{cursor:pointer;min-height:44px;padding:12px 0;color:#7b9067}.family-tools #restore-preview{background:#f3efdf;border-radius:14px;padding:15px}.family-tools #restore-preview button{margin:5px}
/* Shared, styled dropdowns: the popup never uses an OS-native option menu. */
.select-control{position:relative;display:inline-flex;min-width:0;vertical-align:middle}.select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0;pointer-events:none;overflow:hidden}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid #d3d9c3;border-radius:15px;background:#fffdf6;color:#6f865d;font-size:14px;box-shadow:0 2px 0 #e6e8da}.select-trigger[aria-expanded=true]{border-color:#91a776;background:#f0f4e7;box-shadow:0 0 0 3px #e8eedc}.select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.select-arrow{width:8px;height:8px;flex-shrink:0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s}.select-trigger[aria-expanded=true] .select-arrow{transform:rotate(225deg) translate(-2px,-1px)}.select-options{position:fixed;z-index:1000;padding:7px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #d6ddc7;border-radius:17px;background:#fffdf7;box-shadow:0 10px 30px #5d68442b}.select-option{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;text-align:left;border-radius:11px;font-size:14px;color:#6f7d5e}.select-option>span:first-child{overflow-wrap:anywhere;min-width:0}.select-option[aria-selected=true]{background:#e8efdb;color:#627b4e;font-weight:600}.select-option.focused{outline:2px solid #b4c69b;outline-offset:-2px}.select-check{font-size:16px;min-width:15px}.speed-control .select-trigger{min-height:40px;padding:9px 11px;font-size:12px;gap:12px}.family-tools .select-trigger{background:#fffdf7;border-radius:15px;padding:11px 14px;font-size:14px}.family-tools>label{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.parent-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-width:700px;border:1px solid #e1dfd0;background:#efeee3;padding:6px;border-radius:21px;margin:0 0 26px}.parent-tabs button{min-height:48px;padding:12px;border-radius:15px;color:#92937e;font-size:15px}.parent-tabs button[aria-selected=true]{background:#fffdf8;color:#73885f;box-shadow:0 3px 8px #756f4a14;font-weight:600}#features-panel [role=tabpanel]{outline-offset:6px}.semantic-art{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;min-width:0}.semantic-art .concept-group{display:inline-flex;align-items:center;justify-content:center;max-width:100%;margin:0}.semantic-art .concept-picture{display:inline-flex;align-items:center;justify-content:center;font-size:100px;line-height:1.2}.semantic-art .word-art{width:1em;height:1em}.adventure-art.semantic-art{margin-bottom:20px}.adventure-art .concept-picture{font-size:100px}.theme-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.theme-cover{border:1px solid #e2dece;border-radius:27px;padding:24px;background:#fffdf7;text-align:left;min-width:0}.theme-cover-art{min-height:110px;border-radius:20px;background:linear-gradient(140deg,#e8eedd,#f7ecd3);padding:15px 8px;gap:8px}.theme-cover-art .concept-picture{font-size:64px}.theme-cover h3{font-size:21px;margin-bottom:10px}.theme-cover p{font-size:13px;color:#8f947d;overflow-wrap:anywhere}.theme-cover small{font-size:12px;color:#8d9c78}.theme-detail-art{background:#edf0df;border-radius:27px;padding:22px;max-width:700px;margin:20px auto}.theme-detail-art .concept-picture{font-size:85px}.book-cover-art{justify-content:flex-start;min-height:56px;gap:8px}.book-cover-art .concept-picture{font-size:46px}.book-cover .semantic-art>span{font-size:inherit}.story-art.semantic-art{min-height:220px;padding:30px 16px;gap:16px}.story-art.semantic-art>.concept-group{font-size:inherit;margin:0}.story-art .concept-picture{font-size:105px}.story-art [data-count="3"] .concept-picture{font-size:75px}.story-art[data-layout=behind]{position:relative;isolation:isolate}.story-art[data-layout=behind] .concept-group:first-child{z-index:2;transform:translateX(20px)}.story-art[data-layout=behind] .concept-group:nth-child(2){position:absolute;z-index:1;left:53%;top:25%;transform:scale(.7)}.swipe-hint{text-align:center;font-size:12px;color:#aaa18d;margin:-5px 0 16px}.parent-tabs button:focus-visible,.select-trigger:focus-visible{outline:3px solid #b1bea0;outline-offset:3px}
@media(max-width:1000px){.theme-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.speed-control .select-trigger{min-height:38px;padding:8px 9px;font-size:11px;gap:9px}.parent-tabs{gap:3px;padding:4px;border-radius:17px;margin-bottom:20px}.parent-tabs button{font-size:12px;padding:10px 5px;min-height:44px;border-radius:12px}.select-options{border-radius:15px}.select-option{font-size:14px}.family-tools .select-value{max-width:185px}.adventure-art .concept-picture{font-size:83px}.semantic-art{gap:12px}.theme-shelf{gap:12px}.theme-cover{padding:14px;border-radius:20px}.theme-cover-art{min-height:90px;padding:14px 5px;gap:1px}.theme-cover-art .concept-picture{font-size:44px}.theme-cover h3{font-size:16px;margin-top:15px}.theme-cover p{font-size:11px}.theme-cover small{font-size:10px}.book-cover-art{min-height:42px}.book-cover-art .concept-picture{font-size:35px}.story-art.semantic-art{padding:22px 5px;min-height:150px;gap:8px}.story-art .concept-picture{font-size:66px}.story-art [data-count="3"] .concept-picture{font-size:48px}.swipe-hint{font-size:10px;margin:0 0 12px}.reading-immersive .story-reader .story-art>span{font-size:inherit;margin:0}.reading-immersive .story-reader .story-art{font-size:inherit}.reading-immersive .story-top{margin-bottom:12px}}
@media(max-width:360px){.theme-cover-art .concept-picture{font-size:36px}.theme-cover{padding:11px}.speed-control .select-trigger{padding:8px;font-size:10px;gap:7px}.adventure-art .concept-picture{font-size:74px}.story-art .concept-picture{font-size:55px}.story-art [data-count="3"] .concept-picture{font-size:39px}}
/* Three child destinations; parent tools use their own isolated surface. */
body :is(.greeting,.learning-modes,.discovery-nav,.daily-trail,.parent-tip,.header-divider,.avatar){display:none!important}
body .desktop-nav{gap:35px}.child-area .header-actions .speed-control{display:none}.parent-area :is(.desktop-nav,.mobile-nav,#parent-button,.chinese-peek){display:none!important}
.parent-area #features-panel{max-width:1000px;margin:0 auto}.parent-area .page{padding-top:30px}.parent-area .feature-heading{margin-top:16px}.return-child{display:inline-flex;align-items:center;min-height:44px;border:1px solid #d9ddcb;border-radius:15px;padding:10px 16px;color:#71865e;background:#f2f4e9;white-space:nowrap}.parent-playback-setting{border-block:1px solid #e8e5d8;padding:5px 0 22px;margin:15px 0 25px}.parent-playback-setting .speed-control{font-size:15px;gap:18px}.parent-playback-setting .select-trigger{min-height:44px;font-size:14px}.parent-area .site-header .brand{pointer-events:none}.child-area .mobile-nav button[aria-current=page]{color:#71875e;background:#eef2e5;border-radius:16px}.child-area .desktop-nav button[aria-current=page]{color:#71875e}.home-landing .mobile-nav{display:flex!important}.home-landing .page{padding-bottom:100px}.child-area .page{padding-top:28px}.child-area .page-footer{margin-bottom:55px}.parent-area .page-footer{margin-bottom:0}
.explore-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.explore-card{text-align:left;padding:28px;border:1px solid #e1dece;border-radius:26px;background:#fffdf7;color:#494f42}.explore-card>span{font-size:46px}.explore-card h3{font-size:22px;margin:20px 0 10px}.explore-card p{color:#8a907c;line-height:1.7;font-size:14px;margin-bottom:0}.parent-gate{width:min(460px,calc(100vw - 32px));padding:36px;border:1px solid #e3dfd0;border-radius:30px;background:#fffdf7;color:#424b3d;text-align:center;box-shadow:0 20px 80px #3a42232b}.parent-gate::backdrop{background:#3b443f66;backdrop-filter:blur(5px)}.gate-icon{font-size:44px}.parent-gate h2{font-size:26px;margin:15px 0}.parent-gate p{color:#939681;line-height:1.7}.parent-gate label{display:block;font-size:30px;font-weight:650;color:#788e64;margin:24px 0 16px}.parent-gate input{width:100%;min-height:54px;text-align:center;border:1px solid #cbd7bb;border-radius:15px;background:#f8faef;font:inherit;font-size:20px;color:#4e6442}.parent-gate #parent-gate-error{min-height:24px;font-size:13px;color:#ae745c;margin:10px 0}.parent-gate .continue-button{width:100%;min-height:48px}.parent-gate .text-button{display:block;margin:16px auto 0;min-height:44px}body:has(#parent-gate[open]){overflow:hidden}
@media(min-width:761px){.home-landing .mobile-nav{display:none!important}}
@media(max-width:760px){.parent-area .site-header{gap:12px}.parent-area .brand{font-size:15px}.return-child{font-size:12px;padding:10px}.explore-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.explore-card{padding:20px 15px;border-radius:21px}.explore-card>span{font-size:35px}.explore-card h3{font-size:18px;margin-top:15px}.explore-card p{font-size:12px}.parent-area .page{padding-top:20px}.parent-gate{padding:28px 24px}.child-area .mobile-nav{padding-bottom:env(safe-area-inset-bottom);min-height:66px}.child-area .mobile-nav button{min-height:54px}.child-area .page{padding-bottom:110px}}

@media(max-width:760px){.child-area .header-actions #parent-button{font-size:12px;min-height:44px;padding:8px}.parent-area .feature-heading h2{font-size:27px}}

/* App-style bottom tabs, shared geometry for children and parents at every width. */
body.child-area .mobile-nav,body.parent-area .parent-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:80;width:100%;max-width:none;min-height:76px;margin:0;border:0;border-top:1px solid #e5e5d8;border-radius:0;background:#fffef9f5;backdrop-filter:blur(16px);box-shadow:0 -5px 24px #52604308;gap:12px;padding:7px max(14px,calc((100vw - 720px)/2)) calc(7px + env(safe-area-inset-bottom,0px));}
body.child-area .mobile-nav button,body.parent-area .parent-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:60px;padding:6px 8px;border:0;border-radius:18px;background:transparent;color:#92967f;font-size:12px;font-weight:500;box-shadow:none;line-height:1.3;}
body.child-area .mobile-nav button>span,body.parent-area .parent-tabs .tab-icon{display:block;font-size:23px;line-height:1.1;}
body.child-area .mobile-nav button[aria-current=page],body.parent-area .parent-tabs button[aria-selected=true]{background:#edf3e3;color:#6b8355;font-weight:650;box-shadow:none;}
body.child-area .page,body.parent-area .page{padding-bottom:calc(105px + env(safe-area-inset-bottom,0px));}body.child-area .page-footer,body.parent-area .page-footer{margin-bottom:0;}
body.child-area.reading-immersive .mobile-nav{display:none!important}body.child-area.reading-immersive .page{padding-bottom:35px;}
@media(max-width:360px){body.child-area .mobile-nav,body.parent-area .parent-tabs{gap:6px;padding-inline:10px}body.parent-area .parent-tabs button{font-size:11px;}}

/* One upper-left back affordance for all nested pages. */
.page-back{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:1px solid #dce2d0;border-radius:15px;background:#f0f4e8;color:#758a60}.page-back svg{width:22px;height:22px}.has-page-back .site-header{gap:16px}.has-page-back .brand{margin-right:auto}.has-page-back :is(#theme-back,#books-back,#back-catalog){display:none!important}.reading-immersive.has-page-back .site-header .page-back{display:inline-flex}.has-page-back .site-header .page-back[hidden]{display:none!important}
@media(max-width:560px){.has-page-back .site-header{gap:9px;padding-inline:15px}.has-page-back .brand{font-size:14px;gap:6px;min-width:0}.has-page-back .brand-mark{width:30px;height:32px}.has-page-back .brand-mark svg{width:27px;height:27px}.has-page-back .header-actions{gap:4px}.has-page-back .page-back{width:40px;height:44px;border-radius:13px}.has-page-back .header-actions #parent-button{font-size:11px;padding-inline:5px}}

/* Foundation owns word study and phonics; each word links to its own sound map. */
.foundation-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.phonics-foundation-nav [aria-current=page]{background:#e9efdf;border-color:#91a471}.phonics-tools{display:flex;align-items:end;flex-wrap:wrap;gap:18px;margin:22px 0}.phonics-tools label{display:flex;flex-direction:column;gap:8px;min-width:0;color:#858b76;font-size:13px}.phonics-tools input{width:240px;max-width:100%;min-height:46px;border:1px solid #d9deca;border-radius:14px;padding:10px 14px;background:#fffdf7;color:#4d5643;font:inherit}.phonics-tools>span{font-size:13px;color:#8d947f;padding-bottom:13px}.phonics-library-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}.phonics-library{position:sticky;top:18px;border:1px solid #e1dece;border-radius:24px;padding:16px;background:#fffdf7;min-width:0}.phonics-library>p{font-size:13px;color:#8a9379}#phonics-word-list{max-height:620px;overflow:auto;display:grid;gap:9px}#phonics-word-list>button{display:grid;grid-template-columns:42px minmax(0,1fr);text-align:left;border:1px solid #e1e3d7;border-radius:15px;background:#faf9f2;padding:12px;gap:4px 10px;color:#555f49;font:inherit;min-height:64px;cursor:pointer}#phonics-word-list>button[aria-pressed=true]{background:#e9efdc;border-color:#94a476}#phonics-word-list>button>span{grid-row:span 3;align-self:center;font-size:29px}#phonics-word-list>button small{font-size:12px;color:#8f987d}#phonics-word-list .word-art{width:38px;height:38px}#phonics-word-list strong{overflow-wrap:anywhere}#phonics-workshop{min-width:0;scroll-margin-top:18px}#phonics-workshop>.feature-card{margin:20px 0;padding:25px}.phonics-word-hero{text-align:center;background:#f1f2e7;border-radius:28px;padding:26px}.phonics-word-hero h2{font-size:30px;overflow-wrap:anywhere}.phonics-word-hero .word-ipa{display:block;font-size:20px;margin-top:9px}.phonics-word-hero .blend-picture .word-art{width:100px;height:100px}.phonics-parts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:24px 0}.phonics-parts button{background:#efedf8;border:1px solid #d8d0e7;border-radius:18px;min-width:64px;min-height:84px;padding:12px;font:inherit;color:#7d6998;cursor:pointer}.phonics-parts strong{font-size:28px;display:block}.phonics-parts small{display:block;font-size:14px;margin-top:8px}.phonics-parts .phonics-special{background:#fbf1d9;border-color:#e6d4a9;color:#8e774c}.phonics-boundary{align-self:center;color:#aaa895}.phonics-word-note{background:#f7eedb;padding:14px;border-radius:14px}.phonics-slots{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:22px 0}.phonics-slots span{min-width:38px;min-height:42px;padding:6px;border-bottom:2px solid #a2b18d;text-align:center;font-size:24px;color:#788f60}#phonics-result{color:#728c54;font-weight:600}.phonics-spelling .phonics-tiles button{width:auto;min-width:58px;padding:12px;font-size:26px;min-height:64px}.home-action-panel{margin:24px 0;background:#edf2e3;padding:22px;border-radius:20px}.home-action-panel p{line-height:1.8}.home-summary{color:#849273}.decoration-grid .locked{cursor:pointer;opacity:.8}.decoration-grid .locked:hover{border-color:#a5b58c}.offline-empty{text-align:center;max-width:650px;margin:auto}.offline-empty>span{font-size:70px}.offline-empty p{line-height:1.9}
@media(max-width:900px){.phonics-library-layout{grid-template-columns:minmax(0,1fr)}.phonics-library{position:static}#phonics-word-list{display:grid;grid-auto-flow:column;grid-auto-columns:145px;overflow:auto;max-height:none;padding-bottom:8px}#phonics-word-list>button{display:flex;flex-direction:column;align-items:center;text-align:center}.phonics-word-hero h2{font-size:26px}}
@media(max-width:560px){.foundation-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.phonics-tools{gap:12px}.phonics-tools label{width:100%}.phonics-tools .select-control,.phonics-tools input{width:100%}.phonics-tools .select-trigger{width:100%}.phonics-tools>span{padding:0}.phonics-word-hero{padding:22px 12px}#phonics-workshop>.feature-card{padding:20px 14px}.phonics-parts{gap:7px}.phonics-parts button{min-width:55px;padding:9px}.phonics-parts strong{font-size:25px}.phonics-parts small{font-size:12px}.phonics-slots{gap:5px}.phonics-slots span{font-size:20px;min-width:30px}.phonics-word-hero .foundation-audio-actions{flex-wrap:wrap}.phonics-foundation-nav button{min-height:48px}}

/* Shared checkbox states retain native label, keyboard and form behavior. */
input[type="checkbox"]{appearance:none;-webkit-appearance:none;display:inline-block;vertical-align:middle;flex:0 0 22px;width:22px;height:22px;min-width:22px;margin:0;border:2px solid #b1bca1;border-radius:7px;background-color:#fffef9;background-position:center;background-repeat:no-repeat;background-size:16px 16px;cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s;accent-color:#849a69}
input[type="checkbox"]:checked{border-color:#849a69;background-color:#849a69;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
input[type="checkbox"]:indeterminate{border-color:#849a69;background-color:#849a69;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E")}
input[type="checkbox"]:focus-visible{outline:3px solid #a28bb8;outline-offset:4px;box-shadow:0 0 0 6px #eee9f5}
input[type="checkbox"]:disabled{opacity:.45;cursor:not-allowed}
.chinese-setting{display:flex;align-items:center;gap:12px;min-height:52px;margin:16px 0;padding:13px 16px;border:1px solid #e0e5d4;border-radius:16px;background:#f5f7ee;color:#626f53;font-size:15px;line-height:1.7;cursor:pointer}
@media(hover:hover){input[type="checkbox"]:not(:disabled):hover{border-color:#718854;box-shadow:0 0 0 3px #e9eedf}.chinese-setting:hover{border-color:#b3c39b;background:#f0f4e6}}
@media(prefers-reduced-motion:reduce){input[type="checkbox"]{transition:none}}
@media(forced-colors:active){input[type="checkbox"]{appearance:auto;-webkit-appearance:auto;background-image:none;border-color:ButtonText}input[type="checkbox"]:focus-visible{outline-color:Highlight;box-shadow:none}.chinese-setting{border-color:ButtonText}}

/* Reserve the measured header height so fixed navigation never covers content. */
:root{--app-header-size:96px}
html{scroll-padding-top:var(--app-header-height,110px)}
body{padding-top:var(--app-header-size)}
.site-header{position:fixed;inset:0 0 auto;z-index:90;background:#fffdf8f5;backdrop-filter:blur(12px)}
@media(max-width:1100px){:root{--app-header-size:83px}}
@media(max-width:560px){:root{--app-header-size:74px}}
body.reading-immersive{--app-header-size:72px}
.parent-sentence-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0}
.parent-sentence-actions .continue-button{margin:0}
.parent-sentence-actions .text-button{min-height:44px;border:1px solid #d9deca;border-radius:14px;padding:12px 18px;font-size:14px;background:#f5f6ed;color:#788d61}

/* Books and exploration share the same card and responsive grid styles. */
.explore-card{min-width:0;cursor:pointer;transition:border-color .15s,background .15s}.explore-card h3,.explore-card p{overflow-wrap:anywhere}.explore-card:hover{border-color:#a5b58e;background:#fafbf3}.explore-card:focus-visible{outline:3px solid #91a471;outline-offset:3px}

/* Learning routes, search, review and reporting share the existing visual language. */
.learning-library{margin:0 0 24px}.library-search-label{display:block;color:#7b836b}.library-search-label input,.daily-planner select{display:block;width:100%;max-width:100%;margin:10px 0 16px;padding:13px 15px;border:1px solid #d8deca;border-radius:14px;background:#fffef8;color:#495c3f;font:inherit;min-height:46px}.library-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.library-result{border:1px solid #e0dfd0;border-radius:18px;padding:14px;min-width:0}.library-result>button:first-child{display:flex;flex-direction:column;text-align:left;gap:8px;width:100%;color:inherit}.library-result>button:first-child>span{font-size:36px}.library-result small{color:#838975;overflow-wrap:anywhere;line-height:1.6}.library-result strong{overflow-wrap:anywhere}.library-result .word-art{width:1em;height:1em}.favorite-content{min-height:44px;font-size:13px}.mixed-choices{display:grid;gap:12px;margin:22px 0}.mixed-choices button,.course-stages button{border:1px solid #ded6e9;background:#f6f2fa;padding:16px;border-radius:16px;color:#77618c;min-width:0;overflow-wrap:anywhere}.weekly-report{margin:24px 0}.weekly-summary{display:flex;flex-wrap:wrap;gap:12px;margin:15px 0}.weekly-summary span{padding:10px 15px;background:#eef2e6;border-radius:12px}.weekly-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.weekly-days>div{text-align:center;background:#f4f2e9;border-radius:12px;padding:12px 4px;display:flex;flex-direction:column;gap:5px}.weekly-days strong{font-size:24px;color:#84996e}.weekly-days span,.report-note{font-size:12px;color:#92947e}.course-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.course-stages [aria-pressed=true]{background:#e9efdf;border-color:#92a775;color:#667e50}.phonics-course{margin:20px 0}.phonics-course p{margin-top:16px}.daily-planner{border-top:1px solid #e3dfd1;margin-top:24px;padding-top:18px}.daily-planner label{margin:14px 0}.storage-tools{margin:20px 0}.story-sentence[role=button]{cursor:pointer}.story-sentence:focus-visible{outline:3px solid #98aa83;outline-offset:4px}.reader-modes{justify-content:center}.reader-modes [aria-pressed=true]{background:#e7eedc;border-color:#94a97c}.simulation-scopes{justify-content:center}
@media(max-width:760px){.library-results{grid-template-columns:repeat(2,minmax(0,1fr))}.course-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.weekly-days{gap:4px}.weekly-days small,.weekly-days span{font-size:9px}.weekly-days strong{font-size:19px}.library-result{padding:12px}.learning-library{padding:18px}}
@media(max-width:360px){.library-results{grid-template-columns:minmax(0,1fr)}.course-stages button{font-size:12px;padding:12px 8px}.weekly-days small{font-size:8px}.weekly-days span{font-size:8px}}

/* A small content shortcut on Today; the full catalog lives on a nested page. */
.today-library{margin-top:28px;min-width:0;text-align:left}
.today-library h3{margin:0 0 18px;font-size:23px}
.today-search-entry{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:14px 18px;border:1px solid #d6dec7;border-radius:18px;background:#fffef9;color:#8a907f;text-align:left;font-size:16px}
.today-search-entry>span:first-child{font-size:28px;line-height:1;color:#82966d}
.today-search-entry b{margin-left:auto;font-size:24px;font-weight:400}
.today-recent-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}
.today-recent-heading h4{margin:0;font-size:17px}
.today-recent-rail{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:8px 2px 14px;scrollbar-width:thin;scrollbar-color:#c7d3b5 transparent}
.today-recent-rail>[role=listitem]{flex:0 0 205px;scroll-snap-align:start}
.today-recent-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;height:100%;min-height:185px;padding:18px;border:1px solid #e2e3d5;border-radius:20px;background:#fffef8;text-align:left;color:#41483b}
.today-recent-card>span{font-size:36px;line-height:1.3}
.today-recent-card small{font-size:12px;color:#82966d}
.today-recent-card strong{font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.today-recent-card p{font-size:13px;line-height:1.5;margin:0;color:#929681;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.today-favorites{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;margin-top:18px;padding:14px 16px;border:1px solid #e1dccd;border-radius:18px;background:#f8f5ed;color:#7b7965;text-align:left}
.today-favorites>span:first-child{font-size:23px;color:#a99465}.today-favorites>span:nth-last-child(2){margin-left:auto;font-size:14px}.today-favorites b{font-size:24px;font-weight:400}
.today-search-entry:focus-visible,.today-recent-card:focus-visible,.today-favorites:focus-visible{outline:3px solid #aabf92;outline-offset:3px}
@media(max-width:560px){.today-library h3{font-size:20px}.today-recent-rail>[role=listitem]{flex-basis:160px}.today-recent-card{padding:15px;min-height:175px}.today-search-entry{font-size:14px;padding-inline:13px}}

/* Reading bands share the Explore card grid and retain a clear section hierarchy. */
.book-levels{gap:9px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:none;touch-action:pan-y;overscroll-behavior-x:contain;padding:3px 2px}.book-levels::-webkit-scrollbar{display:none}.book-levels button{font-size:14px;min-height:44px;flex:0 0 auto;white-space:nowrap}.reading-level-section{touch-action:pan-y}
.reading-level-note{color:#8c917d;line-height:1.8;font-size:14px;margin:14px 0 28px}
.reading-level-section{margin:0 0 42px}
.reading-level-heading{display:flex;align-items:center;gap:16px;padding:20px 24px;background:#edf2e4;border:1px solid #dde5ce;border-radius:23px;margin-bottom:20px}
.reading-level-heading>span{font-size:34px;flex-shrink:0}.reading-level-heading h3{margin:0;font-size:23px;color:#59684a;line-height:1.5}.reading-level-heading h3 small{font-size:13px;font-weight:400;margin-left:15px;white-space:nowrap}.reading-level-heading p{margin:5px 0 4px;color:#7c876d;line-height:1.6;font-size:14px}.reading-level-heading>div>small{color:#8f987f;font-size:12px}
.book-cover .book-grade{align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:3px 10px;border-radius:9px;background:#edf2e4;color:#7a8f62;font-size:12px;font-weight:700}
.book-cover .book-reading-status{display:block;font-size:13px;color:#86996f;margin-top:10px;line-height:1.6}
@media(max-width:560px){.book-levels button{font-size:12px;padding:9px 11px}.reading-level-heading{padding:16px;gap:10px;border-radius:19px}.reading-level-heading h3{font-size:19px}.reading-level-heading p{font-size:13px}.reading-level-heading>span{font-size:27px}.reading-level-section{margin-bottom:30px}}

/* Keep the content type picker inside a single responsive search field. */
.library-search-bar{display:flex;align-items:center;min-width:0;margin:10px 0 16px;border:1px solid #d8deca;border-radius:14px;background:#fffef8}
.library-search-bar:focus-within{border-color:#91a471;box-shadow:0 0 0 3px #91a47122}
.library-search-bar input{flex:1;min-width:0;width:0;border:0;background:transparent;padding:13px 15px;font:inherit;color:#495c3f;min-height:48px;border-radius:14px 0 0 14px;outline:none}
.library-search-bar .select-control{flex:0 0 auto;max-width:45%;border-left:1px solid #d8deca;margin:7px 6px 7px 0}
.library-search-bar .select-trigger{border:0;background:transparent;box-shadow:none;border-radius:0 10px 10px 0;min-height:36px;padding:6px 12px;gap:10px}
@media(max-width:560px){.library-search-bar input{padding:12px 10px;font-size:14px}.library-search-bar .select-trigger{font-size:14px;padding:6px 9px;gap:7px}}

/* Shared sage bookmark control; reader places it beside the title. */
.favorite-content{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;color:#687d50;border:1px solid #d5dfc8;border-radius:14px;background:#f3f6ed;white-space:nowrap;cursor:pointer}
.favorite-content:hover{background:#e8eedf}.favorite-content[aria-pressed=true]{color:#526c3b;background:#e6edda;border-color:#91a471}
.favorite-icon{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.favorite-content[aria-pressed=true] .favorite-icon{fill:currentColor}.favorite-content:focus-visible{outline:3px solid #a5b98b;outline-offset:3px}
.story-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px}
.story-top strong{min-width:0;text-align:center;overflow-wrap:anywhere}.story-top .favorite-content{justify-self:start}
@media(max-width:600px){.story-top,.reading-immersive .story-top{column-gap:7px;font-size:11px}.story-top .favorite-content{padding:7px;font-size:11px;gap:4px}.story-top .favorite-icon{width:16px;height:16px}.reading-immersive .story-top strong{min-width:0}}

/* Explicit, parent-only destructive profile action. */
.danger-button{min-height:44px;padding:10px 18px;border:1px solid #d5a49a;border-radius:14px;background:#fff5ef;color:#9c5148;font:inherit;cursor:pointer}.danger-button:hover{background:#f9e6df}.danger-button:focus-visible{outline:3px solid #b88779;outline-offset:3px}.profile-storage-note{font-size:14px;color:#7c836f;line-height:1.8}.delete-profile-dialog{max-height:calc(100dvh - 32px);overflow:auto}.delete-profile-dialog .danger-button{width:100%;margin-top:14px}.delete-profile-dialog [role=alert]{color:#9c5148;font-size:14px}body:has(.delete-profile-dialog[open]){overflow:hidden}

.delete-profile-dialog #cancel-delete-child{background:#879d70;color:#fff;border-color:#879d70}.delete-profile-dialog #confirm-delete-child{background:#fff0eb;color:#964d43;border-color:#d6aaa0}

/* Parent voice and speed preferences share the same touch-friendly picker. */
.parent-playback-setting .voice-control{margin-top:0}
.parent-playback-setting .voice-note + .speed-control{margin-top:16px}
.parent-playback-setting .voice-note{font-size:13px;line-height:1.7;color:#858974;white-space:normal;overflow-wrap:anywhere;margin:14px 0 0}
.select-option:disabled{opacity:.55;cursor:not-allowed}

/* Parent overview pages stay short; low-frequency tasks have dedicated pages. */
.parent-dashboard{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:start}
.parent-menu{display:grid;gap:10px;margin:18px 0}
.parent-menu button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:76px;padding:18px 20px;border:1px solid #dfe3d1;border-radius:19px;background:#fffef8;text-align:left;color:#4e5e44}
.parent-menu button strong,.parent-menu button small{display:block;overflow-wrap:anywhere}
.parent-menu button small{margin-top:6px;font-size:13px;line-height:1.6;color:#8a927c}
.parent-menu button b{font-size:25px;color:#93a17e;font-weight:400}
.parent-menu button:hover{background:#f1f5e8;border-color:#a7b98d}
.parent-child-card{margin-bottom:18px}.parent-child-card>label{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.parent-more{border-top:1px solid #e5e6d8;margin-top:22px;padding-top:16px;color:#7e896e;font-size:14px;line-height:1.8}
.parent-more summary{cursor:pointer;min-height:44px;display:list-item;align-content:center}
.parent-more p{font-size:14px;line-height:1.8}.parent-danger{color:#9d6c55}
.parent-danger button{margin:12px 0}.parent-danger #clear-confirm{padding:16px;background:#fbf0e8;border-radius:14px}
.parent-settings-menu{margin:0}.parent-settings-menu .parent-menu{margin:0}
.parent-report .weekly-report{margin:0}.parent-report .evidence-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.parent-area [data-parent-detail]{min-width:0}.parent-area .daily-planner{margin:0;padding:28px;border:1px solid #e3dfd1}
.parent-area .storage-tools{margin:0}.parent-area .family-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto}
.parent-area .family-form .parent-danger{grid-column:1/-1;margin-top:8px}
.parent-area .family-form .parent-danger p{margin:8px 0}.parent-area .family-form .parent-danger button{width:auto}
.offline-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:18px 0}
.offline-filters>label:first-child{flex:1;min-width:180px;color:#7d876e;font-size:14px}
.offline-filters input[type=search]{display:block;width:100%;min-height:46px;margin-top:8px;border:1px solid #d6ddc7;border-radius:14px;padding:12px 15px;background:#fffef9;font:inherit;color:#4d6040}
#offline-downloaded-names{font-size:13px;line-height:1.8;max-height:5.4em;overflow:auto;overflow-wrap:anywhere}
@media(max-width:760px){.parent-dashboard{grid-template-columns:minmax(0,1fr);gap:16px}.parent-area .feature-card{padding:20px}.parent-area .daily-planner{padding:20px}.parent-menu button{padding:15px 16px;min-height:72px}.parent-menu button small{font-size:12px}.parent-area .family-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.parent-area .family-form input{grid-column:1/-1}.parent-report .evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.parent-area .feature-heading{gap:15px}.parent-area .feature-heading>span{font-size:42px}.offline-filters .chinese-setting{padding:5px 0}}
.parent-area .family-tools,.parent-area .offline-tools{padding:0}
.parent-area .parent-child-card{margin-bottom:0}
#family-status:empty{display:none}
@media(max-width:560px){.parent-area .site-header{padding-inline:12px;gap:8px}.parent-area .header-actions{min-width:0;gap:4px}.parent-area .return-child{font-size:11px;padding:8px;min-width:0}.parent-area.has-page-back .brand{font-size:12px;letter-spacing:0;gap:5px}.parent-area.has-page-back .brand-mark{width:25px;height:28px}.parent-area.has-page-back .brand-mark svg{width:24px;height:24px}.parent-area.has-page-back .icon-button{width:28px;flex-shrink:0}}

.category-swipe-surface{touch-action:pan-y}
