.mp-dock,.mp-site-toggle{display:none}.mp-tools-dialog:not([open]){display:none}
.mp-tools-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-width:none;max-height:82dvh;margin:auto auto max(14px,env(safe-area-inset-bottom));border:1px solid #cedde5;border-radius:18px;padding:16px;background:#fff;color:#213f52;box-shadow:0 14px 60px #132d3d38;overflow:auto;font:15px/1.45 system-ui,sans-serif}.mp-tools-dialog::backdrop{background:#102a3c70}.mp-tools-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}.mp-tools-dialog h2{font:700 19px/1.4 system-ui;margin:0}.mp-tools-dialog h3{font:650 14px/1.4 system-ui;margin:18px 0 9px}.mp-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mp-tools-dialog button{min-height:44px;white-space:normal;border:1px solid #d9e3e9;border-radius:10px;background:#f7fafc;color:#244b64;padding:8px;font:500 14px/1.35 system-ui;overflow-wrap:anywhere}.mp-tools-dialog button[aria-pressed=true]{background:#e8f2eb;border-color:#8eaf96}.mp-tools-dialog button:disabled{opacity:.45}.mp-tools-dialog audio{display:block;width:100%;margin-top:6px}.mp-tools-dialog button:focus-visible,.mp-dock :focus-visible{outline:3px solid #6a9fc0;outline-offset:2px}
@media(max-width:700px) and (orientation:portrait){
html:root body.school-compact-learning.school-single-toolbar .lesson-workspace.school-compact-lesson{padding:7px!important;gap:7px!important;min-width:0!important}
html:root body.school-compact-learning.school-single-toolbar.school-single-toolbar .school-compact-lesson .school-lesson-topbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:7px!important;height:auto!important;min-height:0!important;overflow:visible!important;flex:none!important;padding:0!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .school-lesson-titlebar{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-width:0!important;height:36px!important;gap:8px!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .school-lesson-title{display:block!important;order:1!important;flex:1 1 0!important;min-width:0!important;max-width:none!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .school-lesson-title h1{font-size:17px!important;line-height:1.35!important;text-align:right!important;margin:0!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .lesson-context-nav{display:flex!important;order:0!important;flex:none!important;width:auto!important;gap:5px!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .lesson-context-nav>div:first-child{display:flex!important;gap:5px!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .lesson-context-nav>div:last-child{display:none!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .lesson-context-nav :is(a,button){font-size:0!important;min-height:36px!important;padding:8px!important;white-space:nowrap!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .lesson-context-nav [data-mp-label]::after{content:attr(data-mp-label);font:600 12px/1.3 system-ui}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .school-lesson-learning-nav{display:block!important;width:100%!important;min-width:0!important;overflow:visible!important;flex:none!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .lesson-workspace-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;min-width:0!important;max-width:none!important;gap:5px!important;overflow:visible!important;white-space:normal!important;flex:none!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .lesson-workspace-nav:has(>button:nth-child(7)){grid-template-columns:repeat(4,minmax(0,1fr))!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .lesson-workspace-nav>button{box-sizing:border-box;min-width:0!important;max-width:100%!important;min-height:39px!important;height:auto!important;grid-column:auto!important;grid-row:auto!important;padding:7px 4px!important;font:600 12px/1.3 system-ui!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
html:root body.school-compact-learning.school-single-toolbar .school-compact-lesson .school-tab-count{font-size:10px!important;margin-left:3px!important}
html:root body.school-compact-learning.school-single-toolbar .school-lesson-learning-nav>.school-sync-reading,html:root body.school-compact-learning.school-single-toolbar .school-lesson-learning-nav>.school-board-entry{display:none!important}
html body .lesson-workspace>.school-bottom-tools{display:none!important}
html body .lesson-workspace>.mp-dock{display:flex!important;flex-direction:column;gap:6px;flex:none;min-width:0;width:100%;border-top:1px solid #e4ebef;padding:7px 0 max(0px,env(safe-area-inset-bottom));background:#fff}
.mp-page-row{display:grid;grid-template-columns:36px minmax(55px,1fr) 44px 36px minmax(50px,.65fr);gap:5px;align-items:center}.mp-page-row output{text-align:center;font:12px/1.3 system-ui;color:#657887;white-space:nowrap}.mp-page-row[data-pages=false],.mp-dock[data-pages=false] .mp-page-row{grid-template-columns:1fr}.mp-dock[data-pages=false] :is([data-mp=prev],[data-mp=next],output){display:none}
.mp-lesson-row{display:grid;grid-template-columns:minmax(65px,1fr) auto minmax(65px,1fr);gap:6px;align-items:stretch;min-width:0}.mp-lesson-row>a:last-child{grid-column:3}.mp-shortcuts{display:flex;gap:5px;min-width:0;grid-column:2;grid-row:1}.mp-shortcuts:empty{display:none}
.mp-dock :is(button,a){box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;min-height:39px;margin:0;padding:7px 6px;border:1px solid #d5e2e9;border-radius:9px;color:#254a62;background:#f7fafb;text-decoration:none;font:550 12px/1.25 system-ui;text-align:center;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}.mp-dock button[aria-pressed=true]{background:#e9f3ec;border-color:#91ae99}.mp-dock [data-mp=read]{background:#eaf2fa;border-color:#9bb7cd}.mp-dock [data-mp=tools]{background:#f8f2df;border-color:#d9cba3}.mp-dock [data-mp=prev],.mp-dock [data-mp=next]{font-size:25px;line-height:1}.mp-dock button:disabled{opacity:.35}.mp-dock [hidden]{display:none!important}
html body .school-side-reader>.school-side-page{display:none!important}
html body .school-side-reader :is(.ps-stage,.g1p-stage,.pb-stage){padding:9px 10px!important;scrollbar-gutter:auto!important;overflow-x:hidden!important}
html body .school-side-reader .garden-content{margin-inline:0!important;padding-inline:9px!important;scrollbar-gutter:auto!important}
html body .ps-reader .ps-scene{width:100%!important;max-width:none!important;gap:9px!important;margin-inline:0!important;min-height:100%;justify-content:safe center!important}
html body .ps-reader .ps-scene img{max-height:clamp(110px,20dvh,175px)!important;max-width:100%!important;object-fit:contain}
html body .ps-reader .ps-text{width:100%!important;max-width:none!important;font-size:calc(var(--ps-font-size,32px) - 4px)!important;line-height:1.7!important}
html body .ps-reader .ps-paragraph{padding:3px 1px!important;line-height:1.7!important;margin:3px 0!important}
html body .g1-picture .g1p-figures{flex:0 0 auto!important;height:auto!important;min-height:90px!important;max-height:23dvh!important}
html body .g1-picture .g1p-figures img{height:auto!important;max-height:23dvh!important;object-fit:contain}
html body .g1-picture .g1p-scene{height:auto!important;flex:0 0 auto!important;max-height:23dvh!important}
html body .g1-picture .g1p-stage{min-height:0!important;overflow-y:auto!important}
html body .g1-picture .g1p-lines{max-width:100%!important}
html body .ls-header{position:relative!important;top:auto!important}.ls-header-inner{min-height:60px!important}
/* Portrait directories: comfortable full-width cards instead of squeezed rows. */
body.school-book-directory main{padding:12px!important;width:100%!important;max-width:none!important}
body.school-book-directory .school-book-toolbar{flex-wrap:wrap!important;min-width:0!important}
body.school-book-directory .school-unit-tabs{flex-wrap:wrap!important;overflow:visible!important}
/* Home and download cards share predictable phone gutters. */
body .lr-teacher-discovery{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;margin-block:18px!important}
body .lr-resource-entry{padding:12px!important;gap:14px!important;grid-template-columns:minmax(100px,.9fr) minmax(0,1fr)!important}
body .lr-resource-entry h2{font-size:20px!important}
}

@media(max-width:700px) and (orientation:portrait){
html:root body .mc-site-header .mc-site-header-inner{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;align-items:center!important;gap:10px!important;padding:9px 14px!important;min-height:62px!important}
html:root body .mc-site-brand{grid-column:1;grid-row:1;max-width:100%;min-width:0}.mc-site-header .mc-site-logo{width:38px!important;height:38px!important}.mc-site-header .mc-site-brand-text strong{font-size:17px!important}.mc-site-header .mc-site-brand-text>span{font-size:11px!important}
html:root body .mc-site-header .mp-site-toggle{grid-column:2;grid-row:1;display:flex!important;justify-content:center;align-items:center;width:40px;height:40px;min-height:40px;border:1px solid #dbe5df;border-radius:9px;background:#fff;color:#244932;font:22px/1 system-ui}
html:root body .mc-site-header .mc-site-nav,html:root body .mc-site-header .mc-site-languages{display:none!important}
html:root body .mc-site-header.mp-open .mc-site-languages{display:flex!important;grid-column:1/-1;grid-row:2;justify-content:center;gap:12px;width:100%;padding:7px!important}
html:root body .mc-site-header.mp-open .mc-site-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;grid-row:3;width:100%;gap:6px;padding:6px 0!important}
html:root body .mc-site-header.mp-open .mc-site-nav>a{min-height:40px;display:flex;align-items:center;justify-content:center;white-space:normal;padding:8px!important;font-size:13px!important}
html:root body .hub-hero{padding-block:14px!important;min-height:0!important;margin-block:0!important}html:root body .hub-hero h1{font-size:28px!important;margin:0!important;line-height:1.3!important}
html:root body .page-section:has(.class-grid){padding-block:16px!important}html:root body .page-section:has(.class-grid)>h2{font-size:21px!important;margin:0 0 12px!important}
html:root body .class-grid{gap:10px!important}.class-entry-media{min-width:0}
html:root body .class-grid .class-entry{display:grid!important;grid-template-columns:minmax(0,1fr) 76px!important;gap:10px!important;padding:14px!important;min-height:0!important;align-items:center!important}
html:root body .class-grid .class-entry h3{font-size:20px!important;margin:0 0 5px!important;line-height:1.4!important}.class-grid .class-age{font-size:11px!important}
html:root body .class-grid .class-entry .course-time{font-size:12px!important;margin:0 0 6px!important}
html:root body .class-grid .class-entry .class-entry-media{width:76px!important;height:94px!important;min-height:0!important;padding:0!important}
html:root body .class-grid .class-entry-media img{width:100%!important;height:100%!important;max-height:94px!important;object-fit:contain!important}
html:root body .class-grid .class-entry .button{font-size:12px!important;min-height:36px!important;padding:8px 12px!important;margin-top:7px!important}
.mp-class-details{font:12px/1.6 system-ui;color:#536959}.mp-class-details>summary{cursor:pointer;min-height:28px;display:list-item}.mp-class-details p{font:13px/1.6 system-ui!important;margin:7px 0!important}
html:root body .hub-jumps{gap:5px!important;padding:8px 12px!important;position:static!important;flex-wrap:wrap!important}.hub-jumps a{font-size:12px!important;padding:7px 10px!important;min-height:36px}
html:root body .hub-main{padding-inline:14px!important}.lr-books{gap:10px!important}.lr-book{min-width:0!important}.lr-book h3{font-size:19px!important}.lr-practice,.lr-downloads a{min-height:38px!important;padding-block:7px!important}
}

@media(min-width:701px),(orientation:landscape){.mp-class-details>summary{display:none}}
@media(max-width:700px) and (orientation:portrait){
html:root body.school-book-directory .class-main{padding:10px 12px!important}
html:root body.school-book-directory .breadcrumb{margin:4px 0 12px!important;font-size:12px!important}
html:root body.school-book-directory .review-heading{margin:0 0 14px!important;padding:0!important;gap:10px!important}
html:root body.school-book-directory .review-heading h1{font-size:27px!important;line-height:1.3!important;margin:0!important}
html:root body.school-book-directory .school-book-primary-tables a{font:600 13px/1.3 system-ui!important;min-height:37px!important;padding:8px 12px!important}
html:root body.school-book-directory .school-book-selection{display:flex!important;flex-direction:column!important;gap:9px!important;padding:10px!important;margin:12px 0 17px!important}
html:root body.school-book-directory .school-book-selection nav{display:block!important;padding:0!important;width:100%!important;min-width:0!important}
html:root body.school-book-directory .school-selection-label{display:none!important}
html:root body.school-book-directory .school-book-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;width:100%!important}
html:root body.school-book-directory .school-book-options>a{display:flex;align-items:center;justify-content:center;min-width:0!important;min-height:38px!important;padding:7px 4px!important;font:550 12px/1.35 system-ui!important;text-align:center;white-space:normal!important;overflow-wrap:anywhere}
html:root body.school-book-directory .school-unit-options{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;width:100%!important;gap:4px!important}
html:root body.school-book-directory .school-unit-options>button{min-width:0!important;min-height:38px!important;width:100%!important;padding:5px 0!important;font:600 15px/1.3 system-ui!important}
html:root body.school-book-directory .unit-directory>h2{font-size:22px!important;margin:10px 0 13px!important;line-height:1.3!important}
html:root body.school-book-directory .unit-directory .review-links{gap:9px!important}
html:root body.school-book-directory .unit-index a.lesson-directory-card{gap:12px!important;padding:11px!important;min-height:92px!important;align-items:center!important}
html:root body.school-book-directory main .unit-index img.lesson-thumbnail{width:78px!important;height:64px!important;flex:0 0 78px!important;padding:0!important;object-fit:contain!important}
html:root body.school-book-directory .lesson-directory-copy{flex:1 1 0!important;min-width:0!important}
html:root body.school-book-directory .lesson-directory-copy strong{font-size:22px!important;line-height:1.4!important;overflow-wrap:break-word!important;white-space:normal!important}
html:root body.school-book-directory .school-page-badge{width:32px!important;height:32px!important;min-width:32px!important;font:500 12px/1 system-ui!important}
}

@media(max-width:700px) and (orientation:portrait){html:root body.school-compact-learning.school-single-toolbar .school-tab-count{display:inline-block!important;min-width:1.4em!important;width:auto!important;flex:0 0 auto!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}}

@media(max-width:700px) and (orientation:portrait){::view-transition-old(root),::view-transition-new(root){animation:none!important;mix-blend-mode:normal!important}}
