:root{font:17px/1.65 Arial;color:#203d35;background:#f7f8f2;--green:#24644f;--ink:#203d35;--muted:#66776e;--line:#dfe7db;--paper:#fff;--cream:#fcf4df;--shadow:0 8px 30px #23433108}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #d8961f;outline-offset:4px}button{border:1px solid var(--line);border-radius:13px;padding:11px 18px;background:white;transition:background .15s,transform .15s}button:hover:enabled{background:#f0f6ed}button:active:enabled{transform:translateY(1px)}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:38px;line-height:1.22;letter-spacing:-1px;margin-bottom:18px}h2{font-size:24px;line-height:1.4;margin-bottom:16px}h3{font-size:20px;line-height:1.4}p{margin-bottom:14px}small{font-size:13px}img{max-width:100%}.muted{color:var(--muted);font-size:14px}.lead{font-size:19px;color:#596d62}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px;text-transform:uppercase;color:#6a806f;margin-bottom:12px}.primary{background:var(--green);color:white;border-color:var(--green);box-shadow:0 3px 0 #163f32;font-weight:700}.primary:hover:enabled{background:#1e5543}.primary.large{padding:15px 24px;font-size:17px}.secondary{background:#f6f2e2;border-color:#e7dfc6}.text-button{background:none;border:0;color:#60766a;padding:10px 8px}.audio-button{background:#f0f5ed;border-color:#dce7d5;color:#355e46;font-size:14px;white-space:nowrap}.site-header{padding:19px max(24px,calc((100vw - 1160px)/2));display:flex;justify-content:space-between;gap:22px;align-items:center;background:#fff;border-bottom:1px solid var(--line)}.brand{border:0;padding:0;display:flex;gap:11px;align-items:center;text-align:left;background:none;white-space:nowrap;font-size:22px;font-weight:700;line-height:1.25}.brand:hover:enabled{background:none}.brand small{display:block;font-weight:400;color:#7b8b77;font-size:11px;letter-spacing:.3px;margin-top:5px}.brand-mark{display:grid;place-items:center;width:45px;height:45px;border-radius:15px;background:#f0b95e;color:#fff7df;font-size:36px}.header-actions{display:flex;align-items:center;gap:9px}.header-button,.parent-button{font-size:13px;padding:10px 12px;min-height:42px;background:#fff}.parent-button{background:#f3f5ef}.profile-picker{font-size:10px;color:#6f7c72;margin:0 10px 0 0}.profile-picker select{display:block;max-width:190px;border:0;background:#fff;padding:0;font-size:14px;font-weight:bold;color:var(--ink)}.preview-strip{display:flex;justify-content:center;gap:18px;align-items:center;padding:5px 20px;background:#edf2e6;color:#64735c;font-size:11px;min-height:29px}#audio-status{font-size:11px}main{max-width:1160px;margin:34px auto 60px;padding:0 22px;min-height:65vh}#notice:not(:empty){padding:12px 17px;border-radius:12px;background:#fff1cc;color:#785d25;margin:0 0 18px;font-size:14px}footer{text-align:center;color:#9aa692;font-size:12px;padding:24px;border-top:1px solid #e5eade}.learning-hero{position:relative;display:grid;grid-template-columns:1fr 210px;gap:24px;align-items:center;min-height:254px;padding:37px 46px;background:#e7efdf;border:1px solid #dce7d2;border-radius:28px;margin-bottom:26px;overflow:hidden}.learning-hero:after{content:'';position:absolute;right:20px;bottom:-95px;width:285px;height:285px;border:1px solid #fff8;border-radius:50%;pointer-events:none}.learning-hero h1{font-size:39px;max-width:660px}.learning-hero p:not(.eyebrow){max-width:560px;color:#597057;margin:0;font-size:16px}.hero-mascot{width:200px;height:200px;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 13px 13px #5c673319)}.abstract-flower{display:grid;place-items:center;font-size:150px;color:#cadbbd;line-height:1}.resume-card{display:flex;gap:20px;align-items:center;padding:22px 26px;border:1px solid #e8dac0;background:#fff8e9;border-radius:20px;margin-bottom:34px}.resume-card>div{flex:1}.resume-card h2{font-size:19px;margin-bottom:5px}.resume-card p{margin-bottom:0;font-size:13px;color:#7e795f}.resume-card .eyebrow{color:#9d813b;font-size:10px;margin-bottom:6px}.resume-icon{display:grid;place-items:center;background:#f4e7bf;border-radius:13px;min-width:45px;height:45px;font-size:25px;color:#a08637}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:26px 0 17px}.section-heading h2{margin:0}.soft-badge{background:#eaf0e4;border:1px solid #dbe3d4;border-radius:30px;font-size:12px;padding:6px 12px;color:#66735f}.subject-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-bottom:26px}.subject-tab{display:grid;grid-template-columns:46px 1fr;grid-template-rows:auto auto;gap:1px 14px;padding:17px 20px;border-radius:18px;text-align:left;border:1px solid #e1e7dc;background:#fff}.subject-tab strong{font-size:17px}.subject-tab small{color:#778171}.subject-icon{grid-row:1/3;background:#f7e6b8;color:#a18332;border-radius:12px;display:grid;place-items:center;font-size:23px;font-weight:700;height:46px}.language .subject-icon{background:#ece5f6;color:#7a639d}.computing .subject-icon{background:#e0edf2;color:#4b7c91}.subject-tab.selected{border:2px solid #688463;padding:16px 19px;background:#f3f7ed;box-shadow:var(--shadow)}.lesson-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:19px}.lesson-card{background:white;border:1px solid #e1e7dc;border-radius:20px;padding:23px;display:flex;flex-direction:column;box-shadow:var(--shadow);min-width:0}.lesson-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.lesson-card-top .muted{font-size:11px}.lesson-number{display:grid;place-items:center;border:1px solid #e7e5d6;background:#f8f6ed;color:#8a9278;width:35px;height:35px;border-radius:11px;font-size:12px}.lesson-card .eyebrow{font-size:9px;letter-spacing:1px;min-height:29px;margin-bottom:8px}.lesson-card h3{font-size:20px;min-height:56px;margin-bottom:12px}.lesson-card>p:not(.eyebrow):not(.muted){color:#768071;font-size:14px;flex:1}.lesson-card .muted{font-size:12px}.lesson-open{margin-top:19px;background:#f2f5ec;color:#42613f;border-color:#dfe7d6;font-weight:700;text-align:left}.lesson-card progress{height:6px;margin-bottom:10px}.coverage-note{font-size:12px;color:#84917d;margin:25px 0;text-align:center}progress{appearance:none;width:100%;height:8px;border:0;border-radius:10px;overflow:hidden;background:#edf1e8}progress::-webkit-progress-bar{background:#edf1e8}progress::-webkit-progress-value{background:#a1b984;border-radius:10px}progress::-moz-progress-bar{background:#a1b984;border-radius:10px}.lesson-intro{max-width:850px;margin:24px 0 30px}.lesson-intro h1{font-size:33px}.phases{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0 27px}.phases span{background:#edf2e6;padding:12px 18px;border-radius:12px;font-size:14px;color:#637b55}.guide-panel{border:1px solid #dee6d7;border-radius:24px;background:white;padding:32px 38px}.guide-panel .section-heading{margin-top:0}.guide-steps{padding-left:25px}.guide-steps li{padding:8px 0 8px 9px}.guide-steps li::marker{font-weight:700;color:#81a365}.worked-example{background:#faf4e4;border:1px solid #eee4c6;border-radius:17px;padding:24px 27px;margin:24px 0}.worked-example .eyebrow{color:#9b8247}.worked-example p:last-child{margin:0;color:#706f58}.tip{padding:15px 20px;background:#f1f5ec;border-radius:12px;color:#657b58;font-size:14px}.launch-card{display:flex;align-items:center;gap:22px;padding:28px 0}.launch-card>div{flex:1}.launch-card h2{font-size:22px;margin:0 0 6px}.launch-card p{font-size:14px;color:#77836f;margin:0}.small-mascot{height:64px;width:64px;object-fit:contain;flex-shrink:0}.question-shell{max-width:910px;margin:0 auto;background:white;border:1px solid var(--line);border-radius:27px;padding:28px 40px 32px;box-shadow:var(--shadow)}.question-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.question-count{font-size:13px;color:#849274;font-weight:700}.question-heading{display:flex;gap:17px;align-items:center;margin:25px 0}.question-heading>div{flex:1}.question-heading .eyebrow{font-size:10px;line-height:1.6;margin:0 0 6px}.question-heading .muted{margin:0}.question-prompt{font-size:25px;line-height:1.55;letter-spacing:-.3px;white-space:pre-line;margin:25px 0 28px}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.answer-choice{display:flex;align-items:stretch;gap:4px;border:1px solid #dce5d4;border-radius:15px;overflow:hidden;min-width:0;background:#fcfdf9}.answer-button{display:flex;align-items:center;gap:13px;text-align:left;border:0;background:transparent;border-radius:0;padding:17px 13px;flex:1;font-size:19px;min-width:0;overflow-wrap:anywhere}.answer-letter{display:grid;place-items:center;min-width:30px;height:30px;border-radius:9px;background:#edf2e4;color:#829270;font-size:12px}.option-audio{font-size:17px;width:42px;padding:8px;color:#7b9170;background:transparent;border:0;flex-shrink:0}.answer-button.tried{background:#fff2e8}.answer-button:disabled{opacity:.7}.question-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:26px;border-top:1px solid #edf1e7;padding-top:21px;font-size:13px}.question-actions button{font-size:13px}.learning-feedback{padding:22px 24px;border-radius:17px;margin:24px 0;background:#eff5e7;border:1px solid #dae7cb}.learning-feedback h2{font-size:20px;margin-bottom:9px}.learning-feedback p{font-size:16px;margin:8px 0}.learning-feedback.guidance{background:#fff6e8;border-color:#eddfc5}.learning-feedback.success{background:#eaf3e4}.question-visual{display:grid;grid-template-columns:repeat(5,28px);gap:13px;justify-content:center;padding:22px;border:1px solid #eee7d1;border-radius:15px;background:#fcf8ed;margin:20px auto;max-width:340px}.count-dot{height:27px;width:27px;background:#c5914d;border:3px solid #ac7434;border-radius:50%}.number-line{display:flex;max-width:none;justify-content:space-evenly;border-bottom:3px solid #b7c6a4}.number-line span{font-size:24px;font-weight:bold}.open-answer{grid-template-columns:1fr}.open-answer textarea{resize:vertical;line-height:1.7}.open-answer .primary{justify-self:start}.session-summary{max-width:850px;margin:auto;border:1px solid var(--line);border-radius:27px;padding:40px;text-align:center;background:#fff}.summary-mascot{width:125px;height:125px;object-fit:contain;margin-bottom:15px}.summary-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:25px 0 32px}.summary-stats>div{padding:22px 12px;background:#f2f6ec;border-radius:14px}.summary-stats strong{display:block;font-size:29px}.summary-stats span{display:block;font-size:12px;color:#7d886f}.session-summary button{margin:6px}.entry-card{display:grid;grid-template-columns:1fr 260px;padding:55px;gap:35px;align-items:center;background:#e8efdf;border:1px solid #dce6d1;border-radius:30px}.entry-card h1{font-size:46px}.entry-card img{width:240px;height:260px;object-fit:contain}.entry-card .muted{margin-top:23px;font-size:12px}.parent-mode{display:grid;grid-template-columns:245px 1fr;gap:25px}.parent-nav{display:grid;gap:6px}.parent-nav button{text-align:left;font-size:14px;background:transparent;border:0}.parent-nav [aria-current=page]{background:#e5eddc;color:#33532e;font-weight:700}#parent-tools{padding:19px;border:1px solid var(--line);border-radius:20px;align-self:start;background:#fbfcf7}#profile-section{margin-top:22px;border-top:1px solid var(--line);padding-top:22px}#profile-section h2{font-size:18px}.parent-content{background:#fff;border:1px solid var(--line);border-radius:22px;padding:27px;min-width:0}.parent-content h1{font-size:28px}.parent-content h2{font-size:20px;margin-top:25px}.parent-content .lead{font-size:16px}.parent-content>button{margin:8px 7px 8px 0}.parent-warning{padding:14px;background:#fff5df;color:#85764c;border-radius:10px;font-size:13px}label{display:block;font-size:14px;margin:15px 0 7px}input,select,textarea{font-family:Arial;width:100%;padding:10px 12px;border:1px solid #d4decd;border-radius:10px;background:white;color:var(--ink)}.check{display:flex;align-items:center;gap:7px}.check input,input[type=checkbox]{width:auto}form .primary{margin-top:15px;width:100%}.character-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.character-card{display:flex;flex-direction:column;align-items:center;padding:13px 7px;gap:10px;border-radius:14px;min-width:0}.character-card img{width:74px;height:78px;object-fit:contain}.character-card strong{font-size:11px;text-align:center}.character-card.chosen{background:#edf4e5;border-color:#86a773;outline:1px solid #86a773}.filters{display:grid;grid-template-columns:1fr 1fr;gap:0 15px;margin-bottom:23px}.filters label{min-width:0}details{border:1px solid var(--line);padding:16px;border-radius:12px;margin:15px 0}summary{cursor:pointer;font-weight:700;font-size:14px}details p{font-size:14px;margin-top:15px;overflow-wrap:anywhere}.plan-card{border-top:1px solid var(--line);padding:20px 0}.plan-card p{font-size:14px}.plan-card button{font-size:13px}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:11px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.mature{--green:#315a68;--ink:#293d49;--muted:#6c7d84;--line:#dce3e5;background:#f3f5f5;color:var(--ink)}.mature .learning-hero{background:#e4ecee;border-color:#d7e2e5}.mature .learning-hero h1{font-size:36px}.mature .learning-hero p:not(.eyebrow){color:#607780}.mature .lesson-card,.mature .question-shell,.mature .guide-panel{border-radius:16px}.mature .brand-mark{background:#88a6ab}.mature .answer-button{font-size:17px}.mature .question-prompt{font-size:23px}
@media(max-width:980px){.site-header{padding:16px 22px;gap:16px;flex-wrap:wrap}.header-actions{margin-left:auto}.lesson-grid{grid-template-columns:repeat(2,1fr)}.learning-hero{grid-template-columns:1fr 150px;padding:30px}.hero-mascot{width:150px;height:170px}.learning-hero h1{font-size:33px}.parent-mode{grid-template-columns:215px 1fr}.character-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){:root{font-size:16px}.site-header{padding:14px 16px;gap:13px}.brand{font-size:20px}.header-actions{width:100%;margin:0;gap:6px;flex-wrap:wrap}.profile-picker{flex:1;margin:0}.profile-picker select{max-width:155px}.header-button,.parent-button{font-size:11px;padding:8px 9px;min-height:40px}.preview-strip{justify-content:flex-start;flex-wrap:wrap;gap:2px;font-size:10px;padding:5px 16px}main{margin-top:20px;padding:0 14px}.learning-hero{grid-template-columns:1fr 86px;gap:4px;padding:25px 21px;min-height:230px;border-radius:22px}.learning-hero h1,.mature .learning-hero h1{font-size:28px;letter-spacing:-.8px}.learning-hero p:not(.eyebrow){font-size:13px}.hero-mascot{width:94px;height:140px;align-self:end}.eyebrow{font-size:9px;letter-spacing:1px}.abstract-flower{font-size:85px}.resume-card{padding:18px;gap:12px;flex-wrap:wrap}.resume-card>div{min-width:180px}.resume-card .primary{width:100%}.section-heading h2{font-size:20px}.soft-badge{font-size:10px}.subject-tabs{grid-template-columns:repeat(2,1fr);gap:9px}.subject-tab{grid-template-columns:1fr;padding:15px 13px;gap:5px}.subject-tab.selected{padding:14px 12px}.subject-icon{grid-row:auto;width:38px;height:38px;margin-bottom:3px;font-size:19px}.subject-tab strong{font-size:16px}.subject-tab small{font-size:10px}.lesson-grid{grid-template-columns:1fr;gap:13px}.lesson-card{padding:20px}.lesson-card h3{min-height:0;font-size:21px}.lesson-card .eyebrow{min-height:0}.lesson-card-top{margin-bottom:14px}.lesson-card>p:not(.eyebrow):not(.muted){font-size:15px}.lesson-open{margin-top:13px}.lesson-intro h1{font-size:27px}.phases{gap:6px}.phases span{font-size:10px;padding:10px 8px;text-align:center}.guide-panel{padding:22px 19px;border-radius:19px}.guide-panel .section-heading{align-items:flex-start;flex-wrap:wrap}.worked-example{padding:18px}.launch-card{flex-wrap:wrap;gap:13px}.launch-card>div{min-width:170px}.launch-card>.primary{width:100%}.question-shell{padding:18px 19px;border-radius:20px}.question-heading{gap:10px;flex-wrap:wrap}.question-heading .small-mascot{width:44px;height:44px}.question-heading .eyebrow{font-size:9px}.question-heading .audio-button{margin-left:auto}.question-prompt,.mature .question-prompt{font-size:21px;line-height:1.6}.answer-grid{grid-template-columns:1fr;gap:11px}.answer-button{padding:15px;font-size:21px}.option-audio{width:48px}.question-actions{gap:6px}.question-actions button{font-size:12px}.learning-feedback{padding:18px}.learning-feedback h2{font-size:18px}.question-shell>.primary.large{width:100%}.session-summary{padding:27px 20px}.session-summary h1{font-size:28px}.summary-stats{grid-template-columns:1fr 1fr}.entry-card{padding:25px;grid-template-columns:1fr;gap:10px}.entry-card h1{font-size:36px}.entry-card img{grid-row:1;width:120px;height:130px;justify-self:center}.parent-mode{grid-template-columns:1fr;gap:17px}.parent-nav{grid-template-columns:1fr 1fr}.parent-nav button{font-size:12px}.parent-content{padding:21px 18px}.parent-content h1{font-size:26px}.character-grid{grid-template-columns:repeat(3,1fr)}.filters{grid-template-columns:1fr}input,select,textarea{font-size:16px}.guide-steps{padding-left:19px}.guide-steps li{padding-left:4px}.question-visual{gap:10px;padding:18px}.parent-content .lead{font-size:15px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.chapter-group{margin:1.6rem 0 2.4rem}.chapter-title{font-size:1.15rem;color:var(--ink);margin:0 0 1rem}.curriculum-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem;background:white;border:1px solid #dde4db;border-radius:16px;margin:.7rem 0}.curriculum-row h4{font-size:1.15rem;margin:0}.curriculum-row p{margin:.5rem 0}.explorer-panel{background:#f0f6ff;border:1px solid #b9d0ed;padding:1.4rem;border-radius:20px;margin:1.5rem 0}.explorer-controls{display:flex;gap:.6rem;flex-wrap:wrap}.explorer-controls [aria-pressed=true]{background:#1d557f;color:white}.fraction-bar{display:flex;width:100%;max-width:540px;min-height:76px;border:3px solid #1d557f;margin:1.4rem 0;border-radius:8px;overflow:hidden;background:white}.fraction-bar>*{flex:1;min-width:0;border:0;border-right:2px solid #1d557f;border-radius:0;background:white}.fraction-bar>:last-child{border-right:0}.fraction-bar .filled{background:#3187bb}.fraction-bar button:hover{background:#aacce0}.fraction-bar button.filled:hover{background:#3187bb}@media(max-width:650px){.curriculum-row{align-items:stretch;flex-direction:column}}

/* Direct family entry and per-child companion selection. */
.family-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:22px;margin:26px 0 38px}.family-card{background:white;border:1px solid var(--line);border-radius:22px;padding:24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}.family-card img{width:135px;height:145px;object-fit:contain}.family-card h2,.family-card p{margin:0}.family-card button{width:100%}.family-symbol{font-size:90px;color:var(--green)}.grade-entry{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.grade-card{display:flex;flex-direction:column;text-align:left;gap:8px;padding:24px;background:#edf6f0}.grade-card strong{font-size:28px}.grade-card span{font-size:15px}.learner-personalize{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.companion-dialog{width:min(850px,calc(100% - 28px));max-height:88vh;overflow:auto;border:1px solid var(--line);border-radius:22px;padding:26px;color:var(--ink);background:#f8faf6}.companion-dialog::backdrop{background:#142f29aa}.companion-dialog .character-grid{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.character-card.chosen{outline:3px solid var(--green);background:#e3f2e5}.character-card img{object-fit:contain}.word-tiles{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.word-tile{font-size:30px;min-width:85px;font-weight:600;color:#24644f}.count-lab{display:flex;flex-wrap:wrap;gap:12px;padding:20px;border-radius:15px;background:white}.count-lab button{min-width:52px;font-size:23px}.count-lab .counted{background:#24644f;color:white}.letter-board{width:100%;max-width:550px;height:220px;border:2px dashed #7f9e87;border-radius:15px;touch-action:none;background:#fff}.phonics-display{font-size:64px;line-height:1.5;text-align:center;letter-spacing:10px}.guide-steps li{margin-bottom:12px}.question-visual .shape{font-size:80px;line-height:1.4}.question-visual .spatial-row{display:flex;gap:30px;align-items:center;justify-content:center}.question-visual .spatial-column{display:flex;flex-direction:column;align-items:center;gap:12px}.question-visual .symbol-box{background:#e9f3ea;border:1px solid #87a68e;border-radius:8px;padding:10px 20px;font-size:32px}.question-visual .group-panel{padding:12px;border:1px solid var(--line);border-radius:12px}.question-visual .group-panel strong{font-size:16px}.question-visual .group-dots{display:flex;flex-wrap:wrap;max-width:230px;gap:9px}.question-visual .group-dots i{display:block;width:20px;height:20px;background:#397553;border-radius:50%}.question-passage{white-space:pre-line;padding:20px;background:#f2f7ee;border-left:4px solid var(--green);font-size:22px;line-height:1.9}.lesson-search{width:100%;max-width:600px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;margin:14px 0 25px}h1,h2,h3,button,input,select,textarea{font-family:Arial}.eyebrow{font-size:12px;line-height:1.6}@media(max-width:700px){.grade-entry{grid-template-columns:1fr 1fr}.family-grid{grid-template-columns:1fr}.companion-dialog{padding:18px}.word-tile{font-size:26px}.header-actions{flex-wrap:wrap}.profile-picker{width:100%}.grade-card{padding:18px}.question-passage{font-size:20px}}

.companion-animated{animation:companion-float 3.6s ease-in-out infinite;transform-origin:50% 90%}
@keyframes companion-float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(2deg)}}
.feedback-mascot{width:90px;height:100px;object-fit:contain;float:left;margin:0 18px 8px 0}
.learning-feedback:after{content:"";display:block;clear:both}
.companion-dock{position:fixed;right:12px;bottom:14px;z-index:12;display:grid;justify-items:center;width:100px;pointer-events:none}
.dock-mascot{width:70px;height:85px;object-fit:contain;filter:drop-shadow(0 4px 5px #0002)}
.motion-toggle{pointer-events:auto;font-size:10px;padding:5px 7px;background:#fffffff2}
.motion-paused .companion-animated{animation-play-state:paused}
#content{padding-bottom:115px}
@media(max-width:650px){.companion-dock{width:72px;right:5px;bottom:5px}.dock-mascot{width:48px;height:56px}.motion-toggle{font-size:9px;max-width:72px}.feedback-mascot{width:65px;height:75px}}
@media(prefers-reduced-motion:reduce){.companion-animated{animation:none!important}}

.entry-card:has(.preview-mail){grid-template-columns:1fr 1fr;align-items:start}.preview-mail{background:white;border:1px dashed #659180;padding:24px;border-radius:18px}.activation-preview{font-size:24px;font-weight:bold;letter-spacing:3px}.preview-explanation{font-size:13px;color:#526558;margin-top:20px}.onboarding-form{max-width:540px}.onboarding-mascot{width:120px;height:130px;object-fit:contain}.onboarding-characters{margin-bottom:25px}.onboarding-characters .character-card img{width:100px;height:110px}
@media(max-width:650px){.entry-card:has(.preview-mail){grid-template-columns:1fr}.activation-preview{font-size:20px;letter-spacing:1px}}

.companion-dock{position:sticky;top:0;right:auto;bottom:auto;width:auto;min-height:58px;margin:0 0 12px;display:flex;justify-content:flex-end;align-items:center;gap:9px;background:#f7f9f1f5;border-radius:12px;padding:4px 10px;pointer-events:auto}
.companion-dock .dock-mascot{width:42px;height:48px}.companion-dock .motion-toggle{max-width:none;font-size:11px;min-height:32px}

/* Larger study companion, with room for the text on phones. */
.companion-dock .dock-mascot{width:90px;height:104px;flex-shrink:0}
.feedback-mascot{width:144px;height:160px;margin:0 20px 12px 0}
@media(max-width:650px){.companion-dock .dock-mascot{width:72px;height:84px}.feedback-mascot{width:104px;height:120px;margin:0 14px 10px 0}}

/* Enlarge only the compact companions; keep hero and feedback sizes. */
.question-heading{display:grid;grid-template-columns:minmax(0,1fr) auto 128px;gap:18px;align-items:center}
.question-heading>div{min-width:0}
.question-heading .small-mascot{width:128px;height:128px;justify-self:end}
.companion-dock .dock-mascot{width:112px;height:128px}
@media(max-width:650px){
 .question-heading{grid-template-columns:minmax(0,1fr) 88px;gap:10px 14px}
 .question-heading>div{grid-column:1;grid-row:1}
 .question-heading .audio-button{grid-column:1;grid-row:2;margin-left:0;justify-self:start}
 .question-heading .small-mascot{grid-column:2;grid-row:1 / 3;width:88px;height:88px}
 .companion-dock .dock-mascot{width:90px;height:104px}
}

.exercise-navigation{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0}
.exercise-navigation>button{min-height:48px;min-width:120px}
@media(max-width:650px){.exercise-navigation{gap:10px}.exercise-navigation>button{min-width:0;padding:12px;font-size:15px;max-width:55%}}

.semester-heading{padding:22px 26px;margin:28px 0 22px;background:#edf3e7;border:1px solid var(--line);border-radius:18px}
.semester-heading h2{margin-bottom:8px;font-size:28px}.semester-heading p:last-child{margin-bottom:0}
.textbook-reference{margin:22px 0;padding:20px;border:1px solid #dbe4d7;border-radius:16px;background:#f5f8f0}.textbook-reference a{display:inline-block;margin-top:8px;text-decoration:none}
.textbook-reference .text-button{margin-left:16px}.textbook-viewer{margin-top:16px}.textbook-page{display:block;width:100%;height:auto;border-radius:6px;background:white}.textbook-page[hidden]{display:none}
.audio-player-panel{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:1000;width:min(520px,calc(100% - 24px));box-sizing:border-box;padding:14px;background:#fff;border:2px solid #24644f;border-radius:18px;box-shadow:0 8px 36px #163e4230;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.audio-player-panel p{width:100%;margin:0;font-size:14px}.audio-player-panel audio{width:100%;height:42px}.audio-player-panel button{min-height:44px}.audio-player-panel .secondary{margin-left:auto}
.audio-player-panel[hidden],.audio-player-launcher[hidden]{display:none!important}
.audio-player-header{display:flex;align-items:center;gap:6px;width:100%;flex-wrap:nowrap}
.audio-player-header p{width:auto;flex:1;white-space:nowrap;font:14px Arial}
.audio-player-header button{margin:0!important;min-height:36px;padding:7px 10px;white-space:nowrap;font:13px Arial}
.audio-player-launcher{position:fixed;right:16px;bottom:12px;z-index:1000;border:1px solid #24644f;border-radius:24px;background:white;color:#24644f;padding:10px 16px;box-shadow:0 3px 12px #163e4220;font:14px Arial}
@media(max-width:380px){.audio-player-panel{padding:9px}.audio-player-header{gap:4px}.audio-player-header p{font-size:12px}.audio-player-header button{font-size:12px;padding:6px}}
.feedback-result-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.feedback-result-row p{margin:0}.feedback-result-row .audio-button{margin-left:auto;flex-shrink:0}
.audio-player-panel{position:static;transform:none;width:100%;max-width:520px;box-shadow:none;margin:8px 0;padding:10px;background:transparent;border:1px solid #cedbd2}
.audio-player-launcher{position:static;display:block;margin:8px 0 0 auto;box-shadow:none;background:transparent;font-size:13px;padding:7px 12px}
.audio-dock{width:100%;clear:both}
@media(max-width:480px){.feedback-result-row{gap:8px}.feedback-result-row .audio-button{font-size:12px;padding:8px}}
.answer-choice .option-audio{align-self:center;flex:0 0 38px;width:38px;height:38px;min-height:38px;margin:0 14px 0 0;padding:0;border:1px solid #dce7d5;border-radius:12px;background:#edf3e5;color:#597744;display:grid;place-items:center;font:18px Arial}
.answer-choice .option-audio.is-loading{background:#fff1cc;border-color:#c99c40;cursor:progress}
.answer-choice .option-audio.is-playing{background:#24644f;color:white;border-color:#24644f;box-shadow:0 0 0 3px #24644f20}
.exercise-navigation>button,.exercise-navigation>.primary.large{height:48px;min-height:48px;width:140px;min-width:0;max-width:48%;padding:10px 14px;font:14px Arial;box-shadow:none;margin:0;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.exercise-navigation{align-items:center}
.learning-feedback{display:flow-root}
.feedback-character{position:relative;display:block;float:left;width:128px;height:112px;margin:2px 18px 12px 0;overflow:visible}
.feedback-character .feedback-character-image{position:absolute;max-width:none;width:100%;height:100%;object-fit:contain;filter:none;animation:none!important}
@media(max-width:650px){.feedback-character{width:104px;height:91px;margin:2px 12px 10px 0}}
.reset-history-dialog{max-width:520px;width:calc(100% - 32px);border:1px solid #dfe7db;border-radius:20px;padding:24px}.reset-history-dialog::backdrop{background:#203d3570}.reset-history-dialog input{display:block;width:100%;margin:10px 0 20px}

/* Give each illustration its own layout; fixed dot columns cannot hold labels. */
.question-visual{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;min-width:0;max-width:100%;gap:16px}
.question-visual.visual-dots{display:grid;grid-template-columns:repeat(5,27px);gap:13px;width:fit-content}
.question-visual.visual-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;width:100%;max-width:540px;gap:18px}
.question-visual .group-panel{min-width:0;padding:14px;display:flex;flex-direction:column;gap:14px}
.question-visual .group-panel strong{display:block;line-height:1.4;white-space:nowrap;text-align:center}
.question-visual .group-dots{justify-content:center;max-width:none;gap:10px}
.question-visual .group-dots i{flex:0 0 20px;width:20px;height:20px}
.question-visual.visual-shape svg{max-width:100%;height:auto}
.question-visual .spatial-row{flex-wrap:wrap;gap:16px;min-width:0}
.question-visual.number-line{gap:14px;justify-content:space-evenly}
@media(max-width:480px){.question-visual.visual-groups{padding:12px;gap:14px}.question-visual .group-panel{padding:12px 8px}.question-visual .symbol-box{padding:8px 12px;font-size:26px}}
@media(max-width:360px){.question-visual.visual-groups{grid-template-columns:minmax(0,1fr)}}
/* Keep the learner picker separate from header controls at every screen size. */
.site-header{display:flex;flex-wrap:wrap;align-items:center;gap:20px 28px}
.site-header .brand{flex:0 0 auto;max-width:100%;white-space:normal;text-align:left}
.site-header .brand-mark{flex-shrink:0}
.site-header .header-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:1 1 620px;min-width:0;max-width:850px;margin-left:auto;width:auto}
.site-header .profile-picker{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex:none;width:100%;min-width:0;margin:0;font-size:13px;line-height:1.4}
.site-header .profile-picker select{flex:1;min-width:0;width:100%;max-width:none;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#f7f9f3;font-size:16px;min-height:44px}
.site-header .header-actions>button{min-width:0;min-height:44px;margin:0;padding:10px 12px;font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
@media(max-width:1100px){.site-header .header-actions{flex-basis:100%;max-width:none;margin:0}}
@media(max-width:600px){.site-header{gap:18px;padding:16px}.site-header .header-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.site-header .profile-picker{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-bottom:4px}.site-header .header-actions>button{font-size:13px}.site-header #family-home{grid-column:1/-1}}
/* Original page illustrations remain legible and never exceed their column. */
.source-illustration{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fcf8ed;min-width:0}
.source-illustration figcaption{font-size:14px;font-weight:700;margin-bottom:10px}
.source-illustration summary{cursor:pointer;font-size:14px;margin-bottom:12px}
.source-illustration img{display:block;width:100%;max-width:680px;height:auto;margin:0 auto}
.source-introduction li{margin-bottom:10px}
@media(max-width:600px){.source-illustration{padding:10px}.source-illustration figcaption{font-size:13px}}

/* Preserve reviewed poem stanzas and worksheet subquestions. */
.source-question-prompt{white-space:pre-line;overflow-wrap:break-word}

.digital-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:18px 0}.digital-group{border:1px solid #cbdccc;border-radius:12px;padding:12px;background:#fff}.digital-group div{font-size:26px;line-height:1.6;overflow-wrap:anywhere}.digital-field{display:grid;gap:6px;margin:10px 0}.digital-field input,.digital-field select,.digital-field textarea{min-height:44px;width:100%;box-sizing:border-box;padding:10px;border:1px solid #abbcae;border-radius:8px}.digital-field span{white-space:pre-wrap}

.digital-field textarea{resize:vertical;min-width:0;}.digital-illustrations{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.digital-illustrations figure{margin:0;text-align:center;max-width:180px}.digital-illustrations img{width:100%;height:160px;object-fit:contain}.digital-field-image{max-width:190px;max-height:150px;object-fit:contain;width:auto;height:auto}
.digital-illustrations.single{display:block}.digital-illustrations.single figure{max-width:530px;width:100%}.digital-illustrations.single img{height:auto;max-height:600px;object-fit:contain}

.dot-board{display:grid;grid-template-columns:repeat(3,48px);gap:8px;margin:12px 0}.dot-board button{width:48px;height:48px;padding:0;font-size:32px;line-height:1;border:1px solid var(--line);background:#e0f1ff;color:#172f3a}.dot-board button[aria-pressed=true]{background:#c7e5fa}
.stick-board{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:100%}.stick-group{border:1px solid var(--line);border-radius:12px;padding:8px;display:flex;flex-wrap:wrap;align-content:flex-start;gap:6px;min-height:110px}.stick-group button{width:44px;height:48px;padding:0;font-size:36px;background:#fff0db;color:#b63b32}

/* Age palettes: source illustrations and learner data stay unchanged. */
body{--page:#FCE4EC;--card:#FCE4EC;--heading:#1F3A5F;--ink:#34506B;--green:#1F3A5F;--muted:#34506B;--line:#F8BBD0;--primary:#FF8A65;--primary-hover:#FF7043;--secondary:#FFFFFF;--secondary-ink:#1F3A5F;--success:#A8D8B9;--shadow:0 8px 30px rgba(31,58,95,.06);background:var(--page);color:var(--ink)}
body.age-senior{background:var(--page);color:var(--ink);--page:#EDF6F9;--card:#FFFFFF;--heading:#1D7874;--ink:#34506B;--green:#1D7874;--muted:#34506B;--line:#BEE3DB;--primary:#1F7E73;--primary-hover:#196B62;--secondary:#83C5BE;--secondary-ink:#1D4E5F;--success:#BEE3DB;--shadow:0 8px 30px rgba(42,157,143,.08)}
body .site-header,body .preview-strip,body .learning-hero,body .parent-content,body .entry-card form,body #parent-tools{background:var(--page);background-image:none;border-color:var(--line)}
body :is(.resume-card,.lesson-card,.guide-panel,.worked-example,.tip,.launch-card,.question-shell,.session-summary,.summary-stats>div,.entry-card,.parent-warning,.character-card,.family-card,.grade-card,.source-illustration,.digital-group,.explorer-panel,.curriculum-row,.companion-dialog,.audio-settings,.chapter-group,.onboarding-card,.lesson-route-card,.parent-content>section){background:var(--card);background-image:none;border-color:var(--line);border-radius:16px;box-shadow:var(--shadow)}
body :is(h1,h2,h3,h4),body .brand,body .eyebrow{color:var(--heading)}
body :is(p,label,small,li,summary,caption,th,td),body .muted,body .lead,body .coverage-note,body .question-count,body .profile-picker,body .learning-hero p:not(.eyebrow),body footer{color:var(--ink)}
body input,body select,body textarea{background:#FFFFFF;color:var(--ink);border-color:var(--line)}
body button,body :is(.secondary,.audio-button,.header-button,.parent-button,.parent-nav button,.answer-button,.option-audio,.text-button,.subject-tab,.grade-card,.character-card){background:var(--secondary);color:var(--secondary-ink);border-color:var(--line);border-radius:14px;font-weight:700;text-shadow:none;-webkit-text-stroke:0;background-image:none}
body :is(.primary,.lesson-open,.subject-tab.selected,.parent-nav [aria-current=page]){background:var(--primary);color:#FFFFFF;border-color:var(--primary);box-shadow:0 3px 0 var(--primary-hover)}
body :is(.primary,.lesson-open,.subject-tab.selected,.parent-nav [aria-current=page]) :is(strong,span,small,p){color:inherit}
body :is(.primary,.lesson-open,.subject-tab.selected,.parent-nav [aria-current=page]):hover:enabled{background:var(--primary-hover);color:#FFFFFF}
body button:hover:enabled:not(.primary):not(.lesson-open):not(.subject-tab.selected):not([aria-current=page]){background:var(--secondary);color:var(--secondary-ink);border-color:var(--heading)}
body button:active:enabled{box-shadow:inset 0 0 0 2px var(--heading)}
body :is(button,input,select,textarea,summary):focus-visible{outline:3px solid var(--heading);outline-offset:3px}
body button:disabled{opacity:1;box-shadow:none;cursor:default}
body .character-card.chosen,body .answer-button.selected,body .answer-button[aria-pressed=true]{background:var(--secondary);color:var(--secondary-ink);border-color:var(--heading);outline:2px solid var(--heading)}
body .learning-feedback,body .learning-feedback.guidance{background:var(--card);border-color:var(--line);color:var(--ink)}
body .learning-feedback.success,body .learning-feedback.success button,body button.success{background:var(--success);color:var(--ink);border-color:var(--line)}
body :is(.subject-icon,.brand-mark,.lesson-number,.soft-badge,.resume-icon){background:var(--secondary);color:var(--secondary-ink);border-color:var(--line)}
/* Preserve Arial regular/bold consistently on all screens. */
html,body,body *,body *::before,body *::after{font-family:Arial!important;font-kerning:normal}h1,h2,h3,h4,.eyebrow,.brand small{letter-spacing:normal}

/* Junior primary pressed state; preserve the existing radius. */
body:not(.age-senior) :is(.primary,.lesson-open,.subject-tab.selected,.parent-nav [aria-current=page]):active:enabled{background:#F4511E;color:#FFFFFF}
/* Junior text colors override older component rules without changing senior colors. */
body:not(.age-senior) :is(p,label,small,li,summary,caption,th,td){color:var(--ink)!important}
body:not(.age-senior) .eyebrow{color:var(--heading)!important}
body:not(.age-senior) :is(.primary,.lesson-open,.subject-tab.selected,.parent-nav [aria-current=page]) :is(p,span,small,strong){color:inherit!important}

/* Orange brand flower in all age palettes. */
.site-header .brand .brand-mark{color:#FF8A65}

