.grade-select{padding:10px 16px 15px}.grade-select label{display:block;font-size:12px;color:#f8fafc;margin-bottom:6px}.grade-select select{width:100%;padding:10px;border:1px solid #d5dfe7;border-radius:12px;background:#fff;color:#526e85;font:inherit;min-height:44px}.grade-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.grade-hero{background:#e9f2db;border:1px solid #dfe8d5;border-radius:26px;padding:32px;display:grid;grid-template-columns:1.3fr 1fr;align-items:center;margin-bottom:28px;gap:24px;overflow:hidden}.grade-hero h1{font-size:34px;line-height:1.45;margin:18px 0}.grade-hero p{line-height:1.9}.grade-hero button{margin:8px 8px 0 0}.grade-garden svg{width:100%;max-width:420px}.grade-hero-learning{min-height:345px;padding:0 0 0 38px;background:linear-gradient(100deg,#edf4da,#e6f1d9 60%,#d9e9ca)}.grade-hero-copy{position:relative;z-index:1;padding:30px 0}.grade-hero-learning h1{font-size:38px;color:#4d865f}.grade-hero-learning p{max-width:380px;color:#607f66}.grade-hero-art{height:100%;align-self:stretch;display:flex;align-items:flex-end;justify-content:flex-end}.grade-hero-art img{display:block;width:100%;max-height:345px;object-fit:contain;object-position:right bottom}.grade-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.grade-hero-actions button{margin:0}
.grade-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:27px 0 15px}.grade-section-title>div{display:flex;align-items:center;gap:12px}.grade-section-title i{width:5px;height:22px;border-radius:6px;background:#f1c86a}.grade-section-title h2{font-size:21px;margin:0;color:#315745}.grade-section-title>span{font-size:12px;color:#889c87}.grade-subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grade-subject-card{border:1px solid #e4e9df;border-radius:23px;background:#fffef8;overflow:hidden;box-shadow:0 7px 23px rgba(54,86,48,.04)}.grade-subject-card.tone-1{background:#fffaf1}.grade-subject-card.tone-2{background:#f7fbfb}.grade-subject-main{display:block;width:100%;padding:25px 24px 15px;text-align:left;min-height:228px;position:relative}.grade-subject-symbol{width:54px;height:54px;border-radius:15px;background:#dcebc5;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:700;color:#54855d}.tone-1 .grade-subject-symbol{background:#ffe6b5;color:#ad7a2b}.tone-2 .grade-subject-symbol{background:#d8edf3;color:#75aabb}.grade-subject-en{position:absolute;right:22px;top:35px;font-size:10px;letter-spacing:1px;color:#9caf9e}.grade-subject-main h3{font-size:22px;margin:13px 0 3px;color:#315745}.grade-subject-main p{font-size:13px;color:#768b79;margin:0 0 15px;line-height:1.6}.grade-subject-progress{display:block;font-size:12px;color:#628469;margin-bottom:7px}.grade-subject-main .track{display:block}.grade-subject-links{padding:0 18px 18px;display:flex;gap:7px;flex-wrap:wrap}.grade-subject-links button{border-radius:20px;background:#eef4e8;color:#3d7052;padding:6px 10px;font-size:12px}.grade-subject-links button:hover{background:#dceccf}
.grade-home-lower{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;margin:5px 0 20px}.grade-home-lower>section{min-width:0}.grade-home-lower .panel{height:calc(100% - 65px);min-height:240px}.grade-daily-panel{padding:14px 20px}.grade-daily-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:13px;padding:14px 0}.grade-daily-row+.grade-daily-row{border-top:1px solid #edf0e7}.grade-daily-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#e7f0d8;color:#5c875e;font-size:20px;font-weight:700}.grade-daily-icon.tone-1{background:#ffedca;color:#bd8b35}.grade-daily-icon.tone-2{background:#e2f0ec;color:#5d9793}.grade-daily-row strong,.grade-daily-row small{display:block}.grade-daily-row strong{font-size:15px;color:#375843}.grade-daily-row small{font-size:12px;color:#879585;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px}.grade-week-panel .week-head{margin-bottom:22px}.grade-week-panel .week-note{margin-top:15px;color:#708772;font-size:12px}.grade-course-links>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.grade-course-links button{border:1px solid #e2eadf;border-radius:17px;background:#fffdf7;text-align:left;padding:17px}.grade-course-links button:hover,.grade-unit-card:hover,.grade-activity-card:hover{border-color:#9dc69e;background:#f4f9ed}.grade-course-links strong,.grade-course-links small{display:block}.grade-course-links strong{font-size:16px;color:#416850}.grade-course-links small{color:#809181;font-size:12px;margin-top:5px}.grade-edition-note{font-size:12px;color:#7a897d;margin:25px 0;line-height:1.8}
.grade-course-header{padding:2px 0 18px}.grade-course-header .text-btn{display:block;margin-bottom:12px}.grade-course-header h1{font-size:35px;line-height:1.3;color:#315745;margin:5px 0}.grade-course-header p{color:#7a8e7d;margin:0}.grade-course-subject{color:#7b9e77;font-size:12px;letter-spacing:1px}.grade-course-page #grade-progress{background:#fffef9;border:1px solid #ebeee5;border-radius:16px;padding:14px 18px}.grade-semester-tabs{margin:26px 0}.grade-unit-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.grade-unit-card{background:#fffef9;border:1px solid #e3eadd;border-radius:20px;padding:22px;text-align:left;min-height:190px;display:flex;flex-direction:column;align-items:stretch;box-shadow:0 6px 18px rgba(45,83,46,.03)}.grade-unit-card-top{display:flex;justify-content:space-between;font-size:12px;color:#8ba38b}.grade-unit-card strong{display:block;color:#2e6146;font-size:21px;margin:14px 0 4px}.grade-unit-card p{margin:0 0 14px;color:#718873;line-height:1.65;font-size:13px;flex:1}.grade-unit-card .track{display:block}.grade-unit-card-foot{color:#4c9063;font-size:12px;font-weight:600;margin-top:13px}
.grade-back{margin:16px 0}.grade-teaching{display:grid;grid-template-columns:1.3fr .85fr;gap:28px;background:#eff5e7;border:1px solid #deebd6;border-radius:26px;padding:32px;margin:24px 0 32px}.grade-teaching-copy h2{font-size:30px;margin:14px 0 8px;color:#315f48}.grade-teaching-copy>p{font-size:17px;color:#53775b;line-height:1.8}.grade-teaching-example{margin:18px 0 22px;padding:20px;background:#fffefa;border-radius:18px;border:1px solid #e5ecdf}.grade-teaching-example small,.grade-try small{display:block;font-size:12px;color:#78a17a;font-weight:700;margin-bottom:8px}.grade-teaching-example strong{font-size:18px;color:#355e45;display:block}.grade-teaching-example ol,.grade-method-card ol{margin:14px 0 0;padding-left:22px;color:#5f7764;line-height:1.9}.grade-teaching-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.grade-teaching-visual{background:#e1ecd6;border-radius:22px;padding:28px 20px;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:310px}.grade-try{background:#fffefb;border-radius:14px;padding:13px 17px;width:100%;margin-top:18px}.grade-try p{color:#51765c;margin:0;line-height:1.65}.grade-visual-ruler{width:95%;transform:rotate(-5deg)}.grade-visual-ruler>div{display:flex;justify-content:space-between;align-items:end;height:86px;background:#fff8d9;border:2px solid #cba963;border-radius:6px;padding:6px 8px 10px}.grade-visual-ruler span{border-left:2px solid #b89965;height:26px;padding-top:36px;font-size:10px;color:#856747}.grade-visual-ruler strong,.grade-visual-groups strong{display:block;text-align:center;color:#527657;margin-top:16px}.grade-visual-groups{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.grade-visual-groups>span{border:2px solid #a6c297;border-radius:18px;padding:10px;display:grid;grid-template-columns:repeat(2,18px);gap:6px}.grade-visual-groups i{width:17px;height:17px;border-radius:50%;background:#f7c972}.grade-visual-groups strong{flex-basis:100%}.grade-visual-clock{height:190px;width:190px;border-radius:50%;background:#fffdf2;border:7px solid #9cc39e;position:relative;box-shadow:0 6px 12px rgba(30,90,60,.1)}.grade-visual-clock span{position:absolute;color:#4f7657;font-weight:700}.grade-visual-clock span:nth-child(1){top:3px;left:48%}.grade-visual-clock span:nth-child(2){top:45%;left:7px}.grade-visual-clock span:nth-child(3){top:45%;right:7px}.grade-visual-clock span:nth-child(4){bottom:3px;left:49%}.grade-visual-clock i,.grade-visual-clock b{position:absolute;left:50%;bottom:50%;transform-origin:bottom}.grade-visual-clock i{width:5px;height:55px;background:#4f7657;transform:rotate(180deg)}.grade-visual-clock b{width:7px;height:42px;background:#e4a659;transform:rotate(255deg)}.grade-visual-shapes{display:flex;gap:10px;font-size:76px;color:#76ad83}.grade-visual-blocks{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.grade-visual-blocks span{width:34px;height:74px;background:#9fbe8d;color:white;font-weight:bold;border-radius:7px;display:flex;align-items:center;justify-content:center}.grade-visual-blocks b{margin:20px 3px}.grade-visual-blocks i{width:19px;height:19px;background:#f7cb75;border-radius:4px;margin-top:27px}.grade-visual-bars{height:150px;width:85%;display:flex;align-items:end;gap:10px}.grade-visual-bars span{flex:1;background:#96bd91;border-radius:8px 8px 0 0;text-align:center;color:white;padding-top:4px;font-size:12px}.grade-visual-characters{display:flex;gap:8px}.grade-visual-characters span{width:72px;height:72px;display:flex;align-items:center;justify-content:center;border:2px dashed #9dbba0;background:#fffdf8;font-size:36px;color:#539267}.grade-visual-story svg{width:100%;max-width:330px}.grade-visual-symbol{font-size:110px;color:#8bbd91}
.grade-activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:30px}.grade-activity-grid.is-characters{grid-template-columns:repeat(5,minmax(0,1fr))}.grade-activity-card{min-height:112px;padding:16px 18px;border-radius:16px;background:#fffef9;border:1px solid #e4eadd;text-align:left;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.grade-activity-card small{font-size:11px;color:#86a188}.grade-activity-card strong{font-size:15px;color:#385c46;line-height:1.5}.grade-activity-card>span:last-child{font-size:12px;color:#4b9b67}.grade-activity-card.is-done{background:#f0f7e9}.grade-char-glyph{font-size:32px;display:block}.is-characters .grade-activity-card strong span:last-child{font-size:12px;display:block;color:#758a77}
.grade-lesson-breadcrumb{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:23px 0 15px;color:#8aa08a;font-size:12px}.grade-lesson-breadcrumb .text-btn{font-size:14px}.grade-lesson-nav{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:22px 0;padding:16px;background:#fffef9;border:1px solid #e5ebe1;border-radius:14px}.grade-lesson-nav button{padding:8px 15px;border-radius:10px;background:#e9f3e4;color:#416f52}.grade-lesson-nav button:disabled{opacity:.4}.grade-lesson-nav span{color:#6e8f73}.grade-question-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:18px}.grade-question-main,.grade-method-card,.grade-reading-paper,.grade-reading-aside,.grade-poem-paper,.grade-poem-understand,.grade-writing-prompt,.grade-writing-work,.grade-character-practice,.grade-character-guide{background:#fffef9;border:1px solid #e6ebe0;border-radius:21px;padding:27px;min-width:0}.grade-question-number{color:#6c9b73;font-size:12px;font-weight:700}.grade-question-main .question{margin-top:12px}.grade-question-main .answers button{text-align:left}.grade-method-card{background:#f4f8ef}.grade-method-card small{color:#71a278}.grade-method-card h3{color:#356349;font-size:20px}.grade-method-card p,.grade-method-card details{color:#64816a;line-height:1.8}.grade-method-card summary{cursor:pointer;color:#2f8052}.grade-passage{border-radius:14px;padding:18px;background:#f1f7ea;margin-bottom:20px}.grade-passage h3{margin:0 0 8px;font-size:16px;color:#357351}.grade-passage p{white-space:pre-line;line-height:1.9;margin:0;color:#45634c}
.grade-reading-layout,.grade-poem-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.7fr);gap:18px}.grade-reading-paper h2,.grade-poem-paper h2{font-size:28px;color:#345c45}.grade-reading{font-size:20px;line-height:2.15;white-space:pre-line;color:#344b3c}.grade-reading-tools{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.grade-story-art{background:#edf4df;border-radius:16px;min-height:155px;display:flex;justify-content:center;align-items:center;overflow:hidden}.grade-story-art svg{width:65%;max-height:175px}.grade-reading-aside h3{font-size:17px;color:#3b6e4c}.grade-vocab>div{border-bottom:1px solid #e8eee4;padding:9px 0;display:flex;justify-content:space-between;gap:14px}.grade-vocab strong{color:#39764d}.grade-vocab span{color:#6b846d}.grade-read-mission{background:#eff6e7;padding:15px;border-radius:14px;margin-top:18px}.grade-read-mission small{color:#388253;font-weight:bold}.grade-read-mission p{margin:5px 0 13px;line-height:1.6}.grade-reading-next{display:flex;gap:13px;align-items:center;flex-wrap:wrap;margin:17px 0}.grade-poem-paper{text-align:center}.grade-poem{margin:20px 0}.grade-poem p{margin:0}.grade-poem-paper .grade-reading-tools{justify-content:center}.grade-poem-art{border-radius:20px;overflow:hidden;background:#eef3e1;min-height:190px;display:flex;justify-content:center}.grade-poem-art img{display:block;width:100%;height:100%;max-height:370px;object-fit:cover}.grade-poem-art svg{width:75%}.grade-poem-understand{margin-top:15px}.grade-poem-understand h3{color:#426e4d}.grade-poem-understand p{line-height:1.85;color:#59725d}
.grade-writing-layout,.grade-character-layout{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.2fr);gap:18px}.grade-writing-prompt h2{color:#365f47;font-size:27px}.grade-writing-prompt>p{font-size:18px;line-height:1.8}.grade-writing-steps>div{border-top:1px solid #e4ebde;padding:12px 0}.grade-writing-steps span{font-size:12px;color:#60a373;margin-right:10px}.grade-writing-steps strong{color:#416c4e}.grade-writing-steps p{margin:7px 0 0 34px;color:#718673;line-height:1.7}.grade-writing-work label:first-child{display:block;font-weight:700;color:#375e44}.grade-writing-work label small{display:block;font-size:11px;color:#899a89;font-weight:400}.grade-writing-work textarea{display:block;width:100%;margin:12px 0;padding:17px;font:inherit;font-size:17px;line-height:1.9;border:1px solid #cbdcc5;border-radius:14px;resize:vertical;min-height:250px}.grade-character-practice{text-align:center}.grade-character-practice .tian{width:min(100%,320px);aspect-ratio:1;height:auto;margin:auto}.grade-character-practice canvas{width:100%;height:100%;position:absolute;inset:0;touch-action:none}.grade-character-practice>p{color:#798c7b}.grade-character-guide h2{font-size:74px;margin:0;color:#3b7853}.grade-word-examples{display:flex;gap:10px;flex-wrap:wrap}.grade-word-examples span{background:#eef6e7;border-radius:12px;padding:8px 14px;color:#3c794e}.grade-character-guide ol{padding-left:23px;line-height:2;color:#5c7761}.grade-character-guide .actions{display:flex;flex-wrap:wrap}
.grade-route{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:20px 0}.grade-route button{padding:16px 8px;min-height:80px;border:1px solid #dce4d3;background:#f6f8f1;border-radius:14px}.grade-route button.active{background:#dceccd;border-color:#9fb689}.grade-route strong,.grade-route small{display:block}.grade-route small{margin-top:8px;color:#5d7657;font-size:12px}.grade-roadmap{margin-top:30px}.grade-roadmap summary{cursor:pointer;font-weight:700;color:#3f714e}.grade-goals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) #sidebar rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) #topbar rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-hero rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-section-title rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-subject-grid rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-home-lower rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-unit-map rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-teaching rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-activity-grid rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-course-header rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-course-links rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-lesson-breadcrumb rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-lesson-nav rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-roadmap rt{display:none}
@media(max-width:1050px){.grade-unit-map{grid-template-columns:repeat(2,minmax(0,1fr))}.grade-activity-grid.is-characters{grid-template-columns:repeat(4,minmax(0,1fr))}.grade-hero-learning h1{font-size:33px}}
@media(max-width:850px){.grade-subject-grid{grid-template-columns:1fr 1fr}.grade-home-lower{grid-template-columns:1fr}.grade-subject-grid .tone-2{grid-column:1/-1}.grade-teaching{grid-template-columns:1fr}.grade-teaching-visual{min-height:230px}.grade-visual-story svg{max-height:200px}.grade-reading-layout,.grade-poem-layout,.grade-question-layout,.grade-writing-layout,.grade-character-layout{grid-template-columns:1fr}.grade-route{grid-template-columns:repeat(3,minmax(0,1fr))}.grade-goals{grid-template-columns:1fr}.grade-course-links>div:last-child{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.grade-hero{display:flex;flex-direction:column;padding:22px}.grade-hero-learning{display:grid;grid-template-columns:1fr auto;padding:22px;min-height:0;gap:8px}.grade-hero-copy{padding:0}.grade-hero-learning h1{font-size:25px;margin:13px 0}.grade-hero-learning p{font-size:13px;line-height:1.7}.grade-hero-actions{display:block}.grade-hero-actions .muted{display:block;margin-top:10px}.grade-hero-art{width:115px;align-self:end;flex-shrink:0}.grade-hero-art img{max-height:170px}.grade-section-title h2{font-size:18px}.grade-section-title>span{display:none}.grade-subject-grid,.grade-unit-map,.grade-activity-grid{grid-template-columns:1fr}.grade-subject-grid .tone-2{grid-column:auto}.grade-subject-main{min-height:0;padding:17px}.grade-subject-links{padding:0 14px 14px}.grade-subject-main h3{font-size:19px}.grade-subject-main p{margin-bottom:10px}.grade-course-links>div:last-child{grid-template-columns:1fr}.grade-daily-panel{padding:10px 14px}.grade-daily-row{grid-template-columns:38px minmax(0,1fr) auto;gap:8px}.grade-daily-row small{max-width:175px}.grade-teaching{padding:20px;gap:16px}.grade-teaching-copy h2{font-size:25px}.grade-teaching-visual{padding:18px;min-height:180px}.grade-teaching-example{padding:14px}.grade-course-header h1{font-size:27px}.grade-unit-card{min-height:150px;padding:18px}.grade-activity-grid.is-characters{grid-template-columns:repeat(2,minmax(0,1fr))}.grade-question-main,.grade-method-card,.grade-reading-paper,.grade-reading-aside,.grade-poem-paper,.grade-poem-understand,.grade-writing-prompt,.grade-writing-work,.grade-character-practice,.grade-character-guide{padding:19px}.grade-reading{font-size:18px;line-height:2}.grade-route{gap:7px}.grade-route button{padding:12px 6px}.grade-lesson-nav{gap:8px}.grade-lesson-nav button{padding:7px 9px;font-size:12px}.grade-lesson-nav span{font-size:11px}.grade-daily-row .mini-btn{font-size:11px;padding:7px 8px}.grade-hero .primary{padding:10px 12px}}

.grade-recite-label{font-weight:700;color:#3b7950;margin-top:16px}.grade-hero-learning{position:relative;grid-template-columns:1fr 1fr}.grade-hero-art{position:absolute;right:0;bottom:0;width:45%;height:100%;overflow:hidden}.grade-hero-art img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:right bottom}
body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) #footer-motto rt,body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .grade-edition-note rt{display:none}
body:is([data-grade="2"],[data-grade="3"],[data-grade="4"],[data-grade="5"],[data-grade="6"]) .app-title{display:none}
body[data-grade="3"] .grade-hero-third{background:linear-gradient(105deg,#edf8f3,#e8f4ed 55%,#d5e6d6)}
body[data-grade="3"] .grade-hero-third .grade-hero-art img{object-position:62% center}
@media(max-width:600px){.grade-hero-learning{grid-template-columns:1fr auto}.grade-hero-copy{max-width:75%}.grade-hero-art{width:42%;height:100%}.grade-hero-art img{max-height:none;object-fit:cover;object-position:right bottom}}
@media(max-width:600px){body[data-grade="3"] .grade-hero-third .grade-hero-copy{max-width:59%}body[data-grade="3"] .grade-hero-third h1{font-size:21px;letter-spacing:0}body[data-grade="3"] .grade-hero-third .grade-hero-art img{object-position:90% center}}

/* Grade four shares course layouts and the poem-lines typography across grades. */
body[data-grade="4"] .grade-hero-fourth{background:linear-gradient(105deg,#eef5ef,#e7f0df 60%,#dbeacb)}
body[data-grade="4"] .grade-hero-fourth .grade-hero-art img{object-position:85% center}
.grade-writing-outline,.grade-writing-review{border:1px solid #dce8d5;border-radius:14px;background:#f0f6e9;padding:16px;margin:18px 0;color:#44674f}
.grade-writing-outline h3,.grade-writing-review h3{font-size:16px}.grade-writing-outline ol,.grade-writing-review ul{padding-left:23px;margin:10px 0 0;line-height:1.9}
.grade-writing-example,.grade-english-meaning{background:#f6f8ee;border-radius:12px;padding:12px 15px;margin:15px 0;color:#55765c;line-height:1.85}.grade-writing-example summary,.grade-english-meaning summary{cursor:pointer;color:#35734f}
.grade-math-model{width:100%;border:1px solid #cedec3;border-radius:18px;background:#fffef7;padding:23px;color:#45634c;text-align:center}.grade-math-model>small{display:block;color:#749268;margin-bottom:17px}.grade-math-model>p{font-size:21px;line-height:1.9;overflow-wrap:anywhere;margin:18px 0 0}.grade-math-model svg{display:block;width:100%;max-height:190px;margin:auto}.grade-math-model svg text{font-size:14px;fill:#49684f}
.grade-place-value{display:flex;justify-content:center;gap:13px}.grade-place-value span{padding:13px;background:#edf4e5;border-radius:12px}.grade-place-value small{display:block}.grade-place-value b{font-size:27px;letter-spacing:4px}
.grade-model-bars>div:last-child{display:flex;align-items:flex-end;justify-content:center;gap:18px;border-bottom:2px solid #96b486;padding-top:10px}.grade-model-bars span{display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:8px}.grade-model-bars b{width:43px;border-radius:7px 7px 0 0;background:#83ae88;color:#fff;padding-top:5px}.grade-model-bars small{font-size:12px;margin-bottom:6px}.grade-model-axis{font-size:12px;color:#739069;text-align:left}
.grade-model-cubes>div{display:flex;justify-content:center;gap:3px;padding:25px 0}.grade-model-cubes i{width:48px;height:48px;background:#e0edca;border:2px solid #80a26a}.grade-model-cubes small{color:#749268}
.grade-model-timeline>span{display:block;background:#91b98f;border-radius:9px;padding:13px;color:white}.grade-model-timeline>div{display:flex;gap:6px;margin:8px 0 12px}.grade-model-timeline>div span{flex:1;padding:8px;background:#f3e5bb;border-radius:8px;font-size:12px}.grade-model-timeline small{font-size:12px}
.grade-model-assume{display:flex;flex-direction:column;gap:12px}.grade-model-assume span{border-radius:12px;background:#edf4e5;padding:12px}.grade-model-assume i{font-style:normal;color:#9b793a;font-size:13px}
@media(max-width:600px){body[data-grade="4"] .grade-hero-fourth .grade-hero-copy{max-width:59%}body[data-grade="4"] .grade-hero-fourth h1{font-size:21px;letter-spacing:0}body[data-grade="4"] .grade-hero-fourth .grade-hero-art img{object-position:86% center}.grade-math-model{padding:17px}.grade-math-model>p{font-size:18px}.grade-place-value b{font-size:24px}.grade-writing-outline,.grade-writing-review{padding:13px}}

/* Compulsory English from grade three: semester maps and progressive activities. */
.english-course-intro{padding:28px 0 24px}.english-course-intro h2{font-size:28px;margin:16px 0 10px}.english-course-intro p{line-height:1.8;max-width:850px}.english-path{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.english-path span{padding:10px 14px;border:1px solid #dfdfd3;border-radius:24px;background:#fffef8;font-size:14px}.english-path b{color:#426751;margin-right:8px}.english-unit-map .grade-unit-card strong{font-family:Arial,sans-serif;font-size:23px;line-height:1.35}.english-supplement{margin-top:28px}.english-supplement summary{cursor:pointer;font-weight:600}.english-unit-hero{display:grid;grid-template-columns:1.5fr 1fr;gap:32px;background:#eff3e9;border-radius:22px;padding:34px;margin:14px 0 32px}.english-unit-hero h2{font-family:Arial,sans-serif;font-size:36px;line-height:1.2;margin:16px 0 8px}.english-unit-hero h3{margin:0 0 14px;font-size:21px}.english-unit-hero p{line-height:1.8}.english-unit-hero .muted{display:block;margin-top:12px}.english-unit-example{background:#fffef8;border-radius:18px;padding:24px;display:flex;flex-direction:column;justify-content:center}.english-unit-example>span{font-family:Georgia,serif;font-size:76px;color:#73906a;line-height:1.1;margin-bottom:24px}.english-unit-example small{color:#617761}.english-stage{margin-bottom:28px}.english-unit-task{margin-top:28px}.english-lesson>h2{font-size:26px;margin:18px 0 26px}.english-word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.english-word-card{border:1px solid #dedfce;background:#fffef9;border-radius:16px;padding:24px}.english-word-card strong{font-family:Arial,sans-serif;font-size:28px;overflow-wrap:anywhere}.english-word-card p{color:#667363}.english-word-card .secondary{font-size:14px}.english-mission{padding:18px 22px;border-radius:12px;background:#f1f3e9;line-height:1.8;margin:22px 0}.english-patterns{display:grid;gap:16px}.english-patterns article{padding:24px;border:1px solid #dedfce;background:#fffef8;border-radius:16px}.english-patterns strong{font:600 26px/1.5 Arial,sans-serif}.english-dialogue{display:flex;flex-direction:column;gap:20px}.english-dialogue-turn{display:flex;gap:14px;max-width:85%}.english-dialogue-turn>span{padding-top:20px;min-width:48px;font:600 15px Arial,sans-serif}.english-dialogue-turn>div{padding:18px 22px;border-radius:18px;background:#edf2e5;border:1px solid #dce4d3}.english-dialogue-turn.turn-1{align-self:flex-end}.english-dialogue-turn.turn-1>div{background:#fcf1dd;border-color:#e9dfc9}.english-dialogue-turn p{font:24px/1.6 Arial,sans-serif;margin:0 0 8px}.english-dialogue-turn small{display:block;font-size:15px;color:#596553;line-height:1.6}.english-dialogue-turn button{margin-top:12px;margin-right:16px}.english-phonics{background:#fffef9;border:1px solid #dfdfd2;border-radius:18px;padding:30px}.english-phonics>strong{font:600 38px Arial,sans-serif;color:#53724f}.english-phonics p{line-height:1.8}.english-phonics>div{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.english-phonics button{font:23px Arial,sans-serif}.english-phonics small{color:#697260;line-height:1.7;display:block}.english-passage{font:25px/1.9 Arial,sans-serif}.english-practice{margin:28px 0;padding:24px;background:#fffef9;border:1px solid #dedfce;border-radius:18px}.english-practice label{display:block;margin-bottom:12px;font-weight:600}.english-practice select{width:100%;padding:12px;border:1px solid #d8dacd;border-radius:9px;background:#fff;font:17px Arial,sans-serif;text-overflow:ellipsis}.english-practice>p{font:23px/1.6 Arial,sans-serif;overflow-wrap:anywhere}.grade-listening{padding:20px;border-radius:15px;background:#edf2e5;margin:20px 0}.grade-listening .secondary{margin-left:12px}.grade-listening p{font-size:14px;color:#61705b;margin-bottom:0}.english-writing textarea{font:20px/1.8 Arial,sans-serif}.english-writing .grade-writing-example p{font:21px/1.8 Arial,sans-serif}.english-writing-tools{margin:15px 0}.english-writing .grade-writing-check{display:flex;gap:10px;line-height:1.7;align-items:flex-start;margin:18px 0}.english-writing .grade-writing-check input{margin-top:7px}.english-lesson [lang=en],.english-writing [lang=en]{overflow-wrap:anywhere}
@media(max-width:800px){.english-unit-hero{grid-template-columns:1fr;padding:24px;gap:20px}.english-unit-example>span{font-size:50px;margin-bottom:12px}.english-word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.english-dialogue-turn{max-width:100%}.english-unit-hero h2{font-size:30px}}
@media(max-width:480px){.english-word-grid{gap:10px}.english-word-card{padding:18px 12px}.english-word-card strong{font-size:23px}.english-word-card .secondary{padding:9px 10px}.english-word-card .text-btn{display:block;margin-top:10px}.english-course-intro h2{font-size:25px}.english-path{gap:6px}.english-path span{padding:8px 10px;font-size:12px}.english-dialogue-turn{gap:8px}.english-dialogue-turn>span{min-width:35px;font-size:12px}.english-dialogue-turn>div{padding:16px}.english-dialogue-turn p,.english-patterns strong,.english-passage{font-size:21px}.english-practice{padding:16px}.grade-listening .secondary{margin:12px 0 0}.english-phonics{padding:22px}.english-unit-hero h2{font-size:27px}}

.english-writing .grade-writing-check input{flex:0 0 auto}.english-writing .grade-writing-check>span{flex:1;min-width:0}

body[data-grade="5"] .grade-hero-fifth{background:linear-gradient(105deg,#f2f5df,#ecf1df 50%,#e0ebd5)}body[data-grade="5"] .grade-hero-fifth .grade-hero-art img{object-position:82% center}
.grade5-model-notes{display:grid;gap:12px;padding:18px;border-radius:14px;background:#fffef8;color:#436547;line-height:1.7}.grade5-model-notes strong{font-size:23px}.grade5-number-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.grade5-number-chips span{padding:12px 16px;border-radius:9px;background:#e4efd9;font-weight:600}.grade5-fraction-bar{display:flex;border:2px solid #5b855b;border-radius:7px;overflow:hidden;min-height:54px;margin:24px 0}.grade5-fraction-bar i{flex:1;border-right:1px solid #5b855b;display:grid;place-items:center;font-style:normal}.grade5-fraction-bar i:last-child{border:0}.grade5-fraction-bar i.filled{background:#bdd7a2}.grade5-model-calc{text-align:center;font-size:21px;line-height:1.9;padding:20px;background:#eff4e7;border-radius:14px}.grade5-marbles{display:flex;justify-content:center;gap:12px;margin:26px 0}.grade5-marbles i{width:42px;height:42px;border-radius:50%;background:#d59076;border:2px solid #ab6f57}.grade5-marbles i:last-child{background:#7caec0;border-color:#4e8194}
@media(max-width:600px){body[data-grade="5"] .grade-hero-fifth .grade-hero-copy{max-width:60%}body[data-grade="5"] .grade-hero-fifth h1{font-size:21px;letter-spacing:0}body[data-grade="5"] .grade-hero-fifth .grade-hero-art img{object-position:91% center}.grade5-model-calc{padding:14px;font-size:18px}}

body[data-grade="6"] .grade-hero-sixth{background:linear-gradient(105deg,#eff6f4,#e8f1ed 52%,#d8e8e4)}body[data-grade="6"] .grade-hero-sixth .grade-hero-art img{object-position:82% center}
.grade6-model-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:14px 0}.grade6-model-chips span{padding:10px 13px;border-radius:9px;background:#e2edda;font-weight:600}.grade6-model-calc{padding:18px;border-radius:14px;background:#eff4e7;text-align:center;font-size:20px;line-height:1.9;overflow-wrap:anywhere}.grade6-fraction-bar{display:flex;border:2px solid #5b855b;border-radius:7px;overflow:hidden;min-height:54px;margin:24px 0}.grade6-fraction-bar i{flex:1;border-right:1px solid #5b855b}.grade6-fraction-bar i:last-child{border:0}.grade6-fraction-bar i.filled{background:#bdd7a2}.grade6-model-table{width:100%;border-collapse:collapse;margin:24px 0;text-align:center}.grade6-model-table td,.grade6-model-table th{padding:12px 5px;border:1px solid #9eb499}.grade6-model-table caption{margin-bottom:12px}.grade6-math-model svg{max-height:240px}.english-alignment-note{padding:10px 14px;border-radius:8px;background:#f4ecda;color:#705f3d}
@media(max-width:600px){body[data-grade="6"] .grade-hero-sixth .grade-hero-copy{max-width:60%}body[data-grade="6"] .grade-hero-sixth h1{font-size:21px;letter-spacing:0}body[data-grade="6"] .grade-hero-sixth .grade-hero-art img{object-position:91% center}.grade6-model-calc{font-size:18px;padding:14px}}

/* Method diagrams must fit the teaching card on small phones. */
.grade-teaching-copy,.grade-teaching-visual{min-width:0}
@media(max-width:400px){
 .grade-place-value{gap:8px}
 .grade-place-value span{min-width:0;flex:1;padding:8px}
 .grade-place-value b{font-size:22px;letter-spacing:1px}
 .grade-model-bars>div:last-child{gap:6px}
 .grade-model-bars span{min-width:0;flex:1}
 .grade-model-bars b{width:100%;max-width:43px}
}
/* Original unit scenes shared by the map, overview and English learning pages. */
.english-unit-thumbnail{display:block;margin:16px 0;border-radius:12px;overflow:hidden;background:#f2eee3}
.english-unit-thumbnail img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.english-unit-art{margin:0;overflow:hidden;border:1px solid #e0ddce;border-radius:16px;background:#faf6eb;min-width:0}
.english-unit-art img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.english-unit-art figcaption{padding:12px 16px;color:#68715b;font-size:13px;line-height:1.6}
.english-unit-example{padding:0 0 22px;overflow:hidden;justify-content:flex-start;min-width:0}
.english-unit-example>.english-unit-art{border:0;border-radius:0}
.english-unit-example>small,.english-unit-example>p{padding:0 22px}
.english-unit-example>small{margin-top:16px}
.english-unit-example>p{margin-bottom:0}
.english-illustrated-content{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:start;gap:24px}
.english-learning-text,.english-learning-art{min-width:0}
.english-learning-art{position:sticky;top:24px}
.english-picture-prompt{font-size:14px;color:#68715b;line-height:1.8;margin:12px 4px}
.english-illustrated-content .english-word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.english-art-writing{margin:0 0 24px}
@media(max-width:1000px){.english-illustrated-content{grid-template-columns:minmax(0,1fr)}.english-learning-art{position:static;grid-row:1;max-width:600px;width:100%;margin:0 auto}.english-illustrated-content .english-word-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.english-illustrated-content .english-word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.english-unit-art figcaption{padding:10px 12px}.english-unit-hero{padding:20px}.english-learning-art{max-width:480px}}

/* Narrow phones keep the introduction readable when pinyin is enabled. */
@media(max-width:480px){
 body[data-grade] .grade-hero-learning{display:flex;flex-direction:column;align-items:stretch;padding:22px;gap:16px}
 body[data-grade] .grade-hero-learning .grade-hero-copy{width:100%;max-width:none;padding:0}
 body[data-grade] .grade-hero-learning h1{font-size:25px;line-height:1.65}
 body[data-grade] .grade-hero-learning .grade-hero-art{position:static;inset:auto;width:100%;height:180px;align-self:stretch;margin:0;border-radius:16px;overflow:hidden}
 body[data-grade] .grade-hero-learning .grade-hero-art img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center 65%}
}
