/* Stable learning frames for preschool and Grade 1 upper, including every tab. */
body.school-stable-learning{--school-learning-height:clamp(540px,calc(100svh - 115px),780px)}
.school-stable-learning .lesson-workspace-content{height:var(--school-learning-height)!important;min-height:0!important;max-height:none!important;box-sizing:border-box;display:flex;flex-direction:column;overflow:auto;overflow-anchor:none;padding:0!important}
.school-stable-learning .lesson-workspace-content *{overflow-anchor:none;box-sizing:border-box}
.school-stable-learning .lesson-workspace-content>.lesson-region-heading{flex:none}
.school-stable-learning .lesson-workspace-content>.pb-reader,.school-stable-learning .lesson-workspace-content>.pb-word-learning,.school-stable-learning .lesson-workspace-content>.pb-preschool-practice,.school-stable-learning .lesson-workspace-content>.lesson-inline-practice-host,.school-stable-learning .lesson-workspace-content>.school-hanzi-practice,.school-stable-learning .lesson-workspace-content>.reader{flex:1 1 0;min-height:0!important;height:100%!important;margin:0!important;max-height:none!important}
.school-stable-learning .lesson-workspace-content>.pb-reader,.school-stable-learning .pb-word-learning,.school-stable-learning .pb-preschool-practice{display:flex;flex-direction:column;overflow:hidden}
.school-stable-learning .pb-reader .pb-toolbar,.school-stable-learning .pb-reader .pb-bottom,.school-stable-learning .pb-word-modes,.school-stable-learning .pb-word-bottom,.school-stable-learning .pb-practice-modes{flex:none}
.school-stable-learning .lesson-workspace-content .pb-reader .pb-stage,.school-stable-learning .pb-word-stage,.school-stable-learning .pb-practice-task{flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto;overflow-x:hidden}
.school-stable-learning .lesson-workspace-content>.school-hanzi-practice{justify-content:flex-start;overflow:auto;padding:14px 10px}
.school-stable-learning .lesson-workspace-content>.reader{overflow:auto}
.school-stable-learning .lesson-inline-practice-host{overflow:hidden}
.school-stable-learning .lesson-inline-practice{height:100%!important;min-height:0!important;max-height:none!important;display:flex;flex-direction:column;margin:0!important;padding:10px!important;overflow:hidden}
.school-stable-learning .lesson-inline-practice-layout{flex:1;min-height:0;height:100%;overflow:hidden}
.school-stable-learning .lesson-inline-practice-main{display:flex;flex-direction:column;height:100%!important;min-height:0!important;overflow:hidden}
.school-stable-learning .lesson-inline-practice-tools{flex:none}
.school-stable-learning .lesson-inline-activity{flex:1;min-height:0!important;height:auto!important;overflow:auto!important}
.school-stable-learning .lesson-inline-question{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(100px,1fr) auto 6px 50px 40px;gap:8px;align-content:stretch;overflow:auto}
.school-stable-learning .lesson-inline-question.lesson-practice-question{grid-template-rows:auto minmax(100px,1fr) auto 90px}
.school-stable-learning .lesson-inline-question .lesson-inline-prompt{min-height:0!important;align-self:center;margin:0!important}
.school-stable-learning .lesson-inline-feedback{height:50px!important;min-height:50px!important;max-height:50px!important;overflow:auto;margin:0!important;padding-top:6px}
.school-stable-learning .lesson-practice-answer-footer{height:90px!important;min-height:90px!important}
.school-stable-learning .lesson-inline-flash{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(170px,1fr) 6px 44px 50px;gap:9px;overflow:auto}
.school-stable-learning .lesson-inline-flash-card{height:100%;min-height:0!important;margin:0 auto!important;align-self:center}
.school-stable-learning .lesson-inline-flash-actions{margin:0!important}
.school-stable-learning .lesson-inline-pair-practice{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) 50px;gap:12px;overflow:auto}
.school-stable-learning .lesson-inline-pair-practice>.lesson-inline-line-board,.school-stable-learning .lesson-inline-pair-practice>.lesson-inline-match-board{min-height:0;overflow:auto;margin:0!important;align-content:start}
.school-stable-learning .lesson-inline-stroke-practice{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.school-stable-learning .lesson-inline-stroke-host{flex:1;min-height:0;overflow:auto}
.school-stable-learning .lesson-inline-result{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.school-stable-learning .pb-answer-feedback{height:48px;min-height:48px;max-height:48px;overflow:auto}
.school-stable-learning .g1-picture,.school-stable-learning .g1-picture *{overflow-anchor:none}
.school-stable-learning .g1p-bottom{height:94px;min-height:94px;max-height:94px;box-sizing:border-box;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:40px 36px;gap:4px 8px}
.school-stable-learning .g1p-bottom>[data-g1-prev]{grid-column:1;grid-row:1}.school-stable-learning .g1p-bottom>[data-g1-next]{grid-column:3;grid-row:1}.school-stable-learning .g1p-bottom>output{grid-column:2;grid-row:1;text-align:center;align-self:center}.school-stable-learning .g1p-player{grid-column:1/-1;grid-row:2;justify-content:center;min-width:0}.school-stable-learning .g1p-player [role=status]{max-width:120px;overflow:auto;max-height:32px}
.school-stable-learning .lesson-workspace-content>.pb-preschool-practice .pb-task-head{min-height:36px}
@media(max-width:760px){.school-stable-learning .lesson-inline-practice{padding:8px!important}.school-stable-learning .lesson-inline-practice-main{padding:8px!important}.school-stable-learning .lesson-inline-question{gap:6px}.school-stable-learning .lesson-inline-flash{gap:6px}}
/* Keep every recognition mode available without tall menu buttons. */
body.school-stable-learning .lesson-workspace .lesson-inline-practice-tools{height:auto!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:row!important;align-items:center;flex-wrap:wrap!important;gap:6px;padding:0!important;margin:0 0 10px!important}
body.school-stable-learning .lesson-workspace .lesson-child-games{height:auto!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:5px;width:100%;padding:0!important;margin:0!important}
body.school-stable-learning .lesson-workspace .lesson-child-games>button{flex:1 1 29%!important;min-width:0!important;width:auto!important;height:40px!important;min-height:36px!important;max-height:44px!important;padding:5px 7px!important;border-radius:9px!important;font-size:13px!important;line-height:1.25!important;box-shadow:none!important;display:flex!important;align-items:center;justify-content:center;gap:4px}
body.school-stable-learning .lesson-workspace .lesson-child-games>button>span{font-size:inherit!important;line-height:inherit!important;margin:0!important}
body.school-stable-learning .lesson-workspace .lesson-child-games>button>span[aria-hidden]{font-size:14px!important}
.school-stable-learning .lesson-workspace-content>.reader:not(.g1-picture){overflow:auto}
body.school-stable-learning .sh-dock,body.school-stable-learning .sh-helper-edge{display:none!important}
/* Reserve the same image, choices and feedback slots for every preschool question. */
.school-stable-learning .pb-question{height:280px;min-height:280px;max-height:280px;flex:none}.school-stable-learning .pb-question>img{height:100%;max-height:100%;object-fit:contain}.school-stable-learning .pb-answer-grid{height:205px;min-height:205px;max-height:205px;overflow:auto;align-items:stretch}
@media(max-width:760px){.school-stable-learning .pb-question{height:230px;min-height:230px;max-height:230px}.school-stable-learning .pb-answer-grid{height:160px;min-height:160px;max-height:160px}}
.school-stable-learning .lesson-workspace-content>.pb-word-host{flex:1 1 0;height:100%;min-height:0;overflow:hidden;padding:0!important}.school-stable-learning .pb-word-host>.pb-word-learning{height:100%;min-height:0;max-height:none;margin:0!important}
@media(min-width:761px){body.school-stable-learning .lesson-workspace .lesson-child-games{flex-wrap:nowrap!important}body.school-stable-learning .lesson-workspace .lesson-child-games>button{flex:1 1 0!important;height:44px!important;max-height:44px!important}}
/* Canonical pinyin and story routes fill the space below the real site header. */
body.school-stable-learning.g1p-course-page .g1p-course-main{position:fixed!important;top:calc(var(--school-header-height,65px) + 9px)!important;bottom:8px!important;left:0;right:0;height:auto!important;max-width:1250px!important;margin:0 auto!important;padding:0 20px!important;box-sizing:border-box}
body.school-stable-learning.g1p-course-page .g1p-course-shell{height:100%!important;min-height:0!important}
@media(max-width:760px){body.school-stable-learning.g1p-course-page .g1p-course-main{padding:0 10px!important}}
