/* Focus on one character, with an optional horizontal picker. */
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-focus-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-focus-nav button{min-height:34px!important;padding:6px 12px!important;border:1px solid #d6e1d0!important;border-radius:10px!important;background:#fff!important;color:#36533d!important;box-shadow:none!important;font:600 14px/1.4 var(--class-ui-font)!important;white-space:nowrap!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-focus-nav button:disabled{opacity:.35}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-focus-label{display:flex;align-items:center;gap:8px;min-width:80px;justify-content:center}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-focus-label b{font:400 30px/1.2 'School Kai',serif!important;color:#2d5037}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-focus-label small{font:14px/1.4 var(--class-ui-font)!important;color:#70806a}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .lesson-workspace-head{height:auto!important;min-height:34px!important;flex-wrap:wrap!important;gap:10px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) 36px!important;gap:12px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn #visual-stage{grid-column:1!important;grid-row:2!important;height:100%!important;width:100%!important;min-height:0!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn #visual-stage .picture-stage{height:100%!important;min-height:0!important;max-height:100%!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn>.kids-actions{grid-column:1!important;grid-row:3!important;justify-content:center!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn.study-picker-open{grid-template-rows:auto 76px minmax(0,1fr) 36px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn.study-picker-open #visual-stage{grid-row:3!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn.study-picker-open>.kids-actions{grid-row:4!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn .study-character-drawer,html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write .study-character-drawer{display:flex!important;flex-wrap:wrap!important;align-content:flex-start!important;align-items:center!important;gap:6px!important;grid-column:1!important;grid-row:2!important;width:100%!important;height:100%!important;max-height:none!important;overflow:auto!important;padding:4px!important;margin:0!important;border:0!important;border-radius:10px!important;background:#f8fbf4!important;order:1!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-character-drawer .pick-group,html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-character-drawer .write-group{display:contents!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-character-drawer button{flex:none!important;width:44px!important;min-width:44px!important;height:40px!important;min-height:40px!important;padding:3px!important;font:400 29px/1.2 'School Kai',serif!important;border-radius:9px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-character-drawer .pick-big{font:inherit!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn .study-character-drawer[hidden],html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write .study-character-drawer[hidden]{display:none!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;gap:12px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write #flow-stroke-host{grid-column:1!important;grid-row:2!important;height:100%!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write.study-picker-open{grid-template-rows:auto 52px minmax(0,1fr)!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write.study-picker-open #flow-stroke-host{grid-row:3!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write .write-picker:before{display:none!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write .sp-body{max-width:900px!important;align-self:center!important}
/* Crop the picture cue below the standard characters; original card art stays intact. */
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-quiz .quiz-art-only{position:relative!important;display:block!important;aspect-ratio:1064/1005!important;width:auto!important;height:100%!important;max-height:320px!important;max-width:100%!important;overflow:hidden!important;border-radius:14px!important;background:white!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-quiz .quiz-art-window{display:block;position:absolute;inset:0;overflow:hidden}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-quiz .quiz-art-window img.quiz-photo{position:absolute!important;top:-47.06%!important;left:0!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:initial!important;transform:none!important}
/* Two large cards by default; optional two-row layouts for four or six cards. */
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-paged{height:100%!important;min-height:0!important;gap:12px!important;padding:0!important;overflow:hidden!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-top{flex:none!important;min-height:34px!important;gap:14px!important;flex-wrap:wrap!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-pager{flex:1 1 0!important;min-height:0!important;height:auto!important;grid-template-columns:30px minmax(0,1fr) 30px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-grid{height:100%!important;min-height:0!important;grid-template-columns:repeat(var(--warm-cols,2),minmax(0,1fr))!important;grid-template-rows:repeat(var(--warm-rows,1),minmax(0,1fr))!important;gap:10px 20px!important;align-content:stretch!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-card{height:100%!important;min-height:0!important;width:100%!important;aspect-ratio:auto!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-card img{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-card-char{font:400 clamp(60px,14dvh,110px)/1.2 'School Kai',serif!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-size{display:inline-flex;align-items:center;gap:6px;font:14px/1.4 var(--class-ui-font)!important;color:#65775e}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-size select{min-height:32px!important;padding:5px 28px 5px 10px!important;border:1px solid #d8e2d1!important;border-radius:9px!important;background:#fff!important;color:#38513b!important;font:14px/1.4 var(--class-ui-font)!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-dots{flex:none!important;max-width:100%!important;min-height:14px!important;overflow:auto!important;flex-wrap:nowrap!important}
/* Reader shared by the lesson and reading tab. */
.study-reading-host{height:100%;min-height:0;overflow:hidden}
.study-reader{display:flex;flex-direction:column;gap:10px;width:100%;height:100%;min-height:0;font-family:var(--class-ui-font,sans-serif)}
.study-reader-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;flex:none}
.study-reader-head nav,.study-reader-modes{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.study-reader-current{display:none}
.study-reader-head button{min-height:36px;padding:7px 14px;border:1px solid #d6e2cf;border-radius:10px;background:white;color:#35583d;font:600 15px/1.4 var(--class-ui-font,sans-serif);cursor:pointer;box-shadow:none}
.study-reader-head button[aria-pressed=true]{background:#eaf3e1;border-color:#94af80}
.study-reader-body{flex:1 1 0;min-height:0;overflow:hidden;border:1px solid #e2e8dc;border-radius:12px;background:white}
.study-reader-frame{display:block;width:100%;height:100%;min-height:0;border:0}
.study-reader-original{overflow:auto;padding:12px}.study-reader-original img{display:block;width:min(100%,640px);height:auto;margin:0 auto 16px}
.study-reader-more{flex:none;max-height:180px;overflow:auto;font-size:14px;color:#65765e}.study-reader-more summary{cursor:pointer;padding:4px 0}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-text.study-reading-host{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;overflow:hidden!important}
html:root body.learning-page #books.lc-panel:not([hidden]),html:root body.learning-page #home-review.lc-panel:not([hidden]){display:flex!important;flex-direction:column!important;height:var(--study-panel-room,calc(100dvh - 145px))!important;min-height:300px!important;max-height:none!important;padding:12px 16px!important;overflow:hidden!important;box-sizing:border-box!important}
html:root body.learning-page #books #reading-catalog{flex:1 1 0!important;height:100%!important;min-height:0!important;overflow:auto!important;width:100%!important;margin:0!important}
html:root body.learning-page #books #reading-catalog.study-reading-host{overflow:hidden!important}
html:root body.learning-page #home-review :is(#beginner-home,#advanced-home){flex:1 1 0!important;height:100%!important;min-height:0!important;overflow:hidden!important;width:100%!important;margin:0!important}
html:root body.learning-page #home-review>.section-intro{display:none!important}
/* Printable work is a preview with one short set of controls, not a material catalogue. */
.study-home{display:flex;flex-direction:column;gap:12px;height:100%;min-height:0;font-family:var(--class-ui-font,sans-serif)}
.study-home-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:none}.study-home-head h2{font-size:22px;margin:0}.study-home-head>span{color:#718168;font-size:14px}
.study-print-modes{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:none}
.study-print-modes button,.study-print-selection button{font:600 14px/1.4 var(--class-ui-font,sans-serif);color:#36553c;background:#fff;border:1px solid #d5e1cd;border-radius:10px;padding:8px 13px;min-height:36px;cursor:pointer;box-shadow:none}
.study-print-modes button[aria-pressed=true],.study-print-selection button[aria-pressed=true]{background:#e8f1df;border-color:#94ae80}
.study-print-modes .study-print-open{margin-left:auto;background:#365d40;color:white;border-color:#365d40}
.study-print-choices{flex:none;max-height:160px;overflow:auto;font-size:14px;color:#61745b}.study-print-choices summary{cursor:pointer;padding:3px}.study-print-choices[hidden]{display:none}
.study-print-selection{display:flex;flex-wrap:wrap;gap:7px;padding:10px 0}.study-print-selection [data-study-pick]{font:400 27px/1.2 'School Kai',serif;min-width:42px;padding:5px}
.study-print-preview{flex:1 1 0;min-height:0;overflow:hidden;border:1px solid #e0e7db;border-radius:14px;background:#f3f6ee}.study-print-preview>iframe{display:block;width:100%;height:100%;border:0}.study-print-preview>p{padding:24px;text-align:center}
.study-home-notes{flex:none;max-height:180px;overflow:auto;font-size:14px;color:#65765e}.study-home-notes summary{cursor:pointer}.study-home-notes p{font-size:14px}
@media(max-width:760px){
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-focus-nav{gap:5px;justify-content:center;width:100%}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-focus-nav button{padding:5px 8px!important;font-size:12px!important;min-height:30px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .study-focus-label{min-width:66px;gap:5px}.study-focus-label small{font-size:12px}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage .lesson-workspace-head{gap:6px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn{grid-template-rows:auto minmax(100px,1fr) 34px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn.study-picker-open{grid-template-rows:auto 76px minmax(100px,1fr) 34px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-learn #visual-stage .picture-stage{min-height:100px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write{grid-template-rows:auto minmax(130px,1fr)!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write.study-picker-open{grid-template-rows:auto 48px minmax(130px,1fr)!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-write #flow-stroke-host{min-height:130px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-top{gap:7px!important}.warm-lesson-label{display:none!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-pager{grid-template-columns:20px minmax(0,1fr) 20px!important;gap:6px!important}
html:root body.learning-page.single-lesson-page #lesson.lc-panel.classroom-fitted:not([hidden]) #flow-stage.stage-warm .warm-grid{gap:8px!important}
.study-reader-head button{min-height:32px;padding:6px 10px;font-size:13px}.study-reader-head nav{gap:5px}.study-reader-head{gap:8px}
.study-home{gap:10px}.study-home-head>span{display:none}.study-print-modes{gap:6px}.study-print-modes button{padding:6px 9px;font-size:12px;min-height:32px}.study-print-modes .study-print-open{margin-left:0}
}

@font-face{font-family:ClassroomHanKai;src:url('/assets/fonts/kaiti-gb.woff2') format('woff2');font-display:swap;unicode-range:U+2E80-2FFF,U+3000-303F,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FF00-FFEF}
html:root body.learning-page.single-lesson-page{--class-ui-font:var(--site-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif)!important;--class-hanzi-font:ClassroomHanKai,ClassroomPinyin,serif!important}
