.visual-lesson .quiz-options:not(.is-pinyin) button,.visual-lesson .quiz-char,.visual-lesson .write-picker button,.visual-lesson .flash b,.visual-lesson .pick-group span,.hz-mini b,.hz-tile b,#hz-title{font-family:"Kaiti SC",STKaiti,KaiTi,"楷体",serif!important;font-weight:400}
.visual-lesson #flow-stage.stage-warm{display:block;overflow:auto}.warm-section{margin:0 0 20px}.warm-section .flash-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(85px,1fr));gap:10px}.warm-section .flash{width:100%;height:100px;min-height:100px}.warm-section .flash b{font-size:48px}
.visual-lesson #flow-stage.stage-write{display:grid;grid-template-columns:minmax(0,1fr) 190px;align-content:start;gap:12px;position:relative}.stage-write>.flow-title{display:none}.stage-write #flow-stroke-host{grid-column:1;grid-row:1}.visual-lesson .stage-write .write-picker{grid-column:2;grid-row:1;align-content:start;align-items:start;display:flex;flex-wrap:wrap;padding-top:64px;overflow:auto;max-height:430px}.visual-lesson .stage-write .write-group{flex-wrap:wrap}.visual-lesson .stage-write .write-picker button{width:46px;min-width:46px;height:46px;font-size:32px}
.stage-write .sp{display:block}.stage-write .sp-bar{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:12px;margin:0 0 16px}.stage-write .sp-bar:before{content:var(--mc-ui-a2726ee3c9,"写一写");font-size:22px;font-weight:700;align-self:center}.stage-write .sp-modes{flex-direction:row;flex-wrap:wrap;gap:6px}.stage-write .sp-body{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:start}.stage-write .sp-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.sp-right .sp-rail{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;max-height:360px;overflow:auto}.sp-rail li span{font-size:16px}.sp-feedback{min-height:1.5em}.sp-pause{background:#315b3c;color:white}.stage-write .sp-score:empty{display:none}
@media(max-width:900px){.visual-lesson #flow-stage.stage-write{grid-template-columns:1fr}.stage-write #flow-stroke-host{grid-column:1;grid-row:2}.visual-lesson .stage-write .write-picker{grid-column:1;grid-row:1;padding:0;max-height:125px}.stage-write .sp-body{grid-template-columns:auto minmax(0,1fr)}}
@media(max-width:560px){.stage-write .sp-body{grid-template-columns:1fr;justify-items:center}.sp-right{width:100%}.sp-right .sp-rail{max-height:260px}.warm-section .flash-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.visual-lesson #flow-stage.stage-write{padding:8px}.stage-write .sp-bar{gap:8px;margin-bottom:8px;align-items:center}.sp-bar .sp-tools{margin:0!important;display:flex;gap:6px;flex-wrap:wrap}.stage-write .sp-feedback{margin:4px 0;line-height:1.4}.stage-write .write-picker{padding-top:50px!important}
@media(min-width:901px) and (max-height:800px){.stage-write .sp-right .sp-rail{max-height:210px}.visual-lesson .stage-write .write-picker{max-height:250px}.stage-write .sp-bar button{padding:6px 8px;font-size:13px}.stage-write .sp-bar:before{font-size:20px}}
@media(min-width:701px) and (max-height:800px){.visual-lesson>h2{margin:4px 0!important;line-height:1.2}.visual-lesson .flow-steps{margin:6px 0!important;padding:4px}.visual-lesson .stage-write .write-picker{padding-top:48px!important;max-height:280px}.stage-write .sp-bar{margin-bottom:4px}}
.stage-write #flow-stroke-host{margin:0}.visual-lesson .stage-write .write-picker{max-height:260px}.hz-open:not(:has(img)){min-height:150px;justify-content:center}.hz-open:not(:has(img)) b{font-size:64px}
@media(max-width:900px){.visual-lesson #flow-stage.stage-write{display:block}.visual-lesson .stage-write .write-picker{height:auto;min-height:60px;max-height:150px;padding:0!important;margin-bottom:12px;overflow:auto}.stage-write .sp-bar:before{display:none}.stage-write .sp-bar button{font-size:13px;padding:7px 9px}.stage-write .sp-modes{flex-wrap:nowrap;gap:4px}.stage-write .sp-colors,.stage-write .sp-tools{gap:4px}}
@media(min-width:901px) and (max-height:800px){.warm-section .flash-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px}.warm-section .flash{height:80px;min-height:80px}.warm-section{margin-bottom:12px}.warm-section .flow-title{margin:0 0 8px}}
@media(min-width:901px){.visual-lesson .stage-write .write-picker{padding-top:0!important;max-height:270px}.stage-write .write-picker:before{content:var(--mc-ui-41b2f11578,"本课汉字");width:100%;font-size:14px;font-weight:600;text-align:center;color:#53705b}}
.visual-lesson .stage-warm .warm-section .flash{width:100%;max-width:none;height:100px;min-height:100px}.visual-lesson .stage-warm .warm-section .flash-grid{width:100%;grid-template-columns:repeat(auto-fill,minmax(85px,1fr))}
@media(min-width:901px) and (max-height:800px){.visual-lesson .stage-warm .warm-section .flash{height:80px;min-height:80px}.visual-lesson .stage-warm .warm-section .flash-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr))}}
@media(max-width:560px){.visual-lesson .stage-warm .warm-section .flash-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Review starts with the glyph itself; sound is available on demand. */
.review-char-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:12px}
.visual-lesson .review-char{font-family:"Kaiti SC",STKaiti,KaiTi,"楷体",serif!important;font-size:58px;font-weight:400;line-height:1.2;min-height:104px;width:100%;border:1px solid #d7e2d5;border-radius:16px;background:#fff;color:#294b32;cursor:pointer}
.review-char:hover,.review-char:focus-visible{background:#eff6eb;border-color:#7b9b70;outline:3px solid #dce8d6;outline-offset:2px}
.review-char:active{background:#e1eedc}
.audio-status{color:#685940;font-size:14px;line-height:1.5;margin:8px 0}
.audio-status:empty{display:none}
.quiz-prompt .quiz-say{display:block;margin:10px auto}
.visual-lesson .combo-part,.visual-lesson .combo-result b,.activity-card b{font-family:"Kaiti SC",STKaiti,KaiTi,"楷体",serif!important;font-weight:400}
.visual-lesson .combo-result{display:grid;place-items:center;min-width:80px}
.visual-lesson .combo-result b{font-size:64px}
@media(min-width:901px) and (max-height:800px){.review-char-grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px}.visual-lesson .review-char{min-height:80px;font-size:52px}}
@media(max-width:560px){.review-char-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.visual-lesson .review-char{font-size:50px;min-height:88px}}
/* Keep the cue, replay control and all four answers visible together. */
.visual-lesson .stage-quiz .flow-title{margin:0 0 8px}
.stage-quiz .quiz-prompt{margin:0 0 12px;gap:6px}
.stage-quiz .quiz-prompt:has(.quiz-photo){grid-template-columns:minmax(0,220px) auto;justify-content:center;column-gap:24px}
.stage-quiz .quiz-photo{grid-row:1 / span 2;width:220px;height:130px;aspect-ratio:auto;object-fit:contain;border-radius:14px}
.stage-quiz .quiz-prompt:has(.quiz-photo) .quiz-say{align-self:end;margin:0}
.stage-quiz .quiz-prompt:has(.quiz-photo) p{align-self:start}
.stage-quiz .quiz-options{max-width:640px;gap:10px}
.stage-quiz .quiz-options button{aspect-ratio:auto;min-height:78px;font-size:54px}
.stage-quiz .quiz-char{font-size:76px;line-height:1.1}
.stage-quiz .flow-feedback:empty{display:none}
@media(max-width:560px){.stage-quiz .quiz-prompt:has(.quiz-photo){grid-template-columns:1fr;gap:8px}.stage-quiz .quiz-photo{grid-row:auto;height:110px;width:100%}.stage-quiz .quiz-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.stage-quiz .quiz-options button{min-height:65px;font-size:42px;border-radius:12px}.stage-quiz .quiz-prompt p{font-size:16px}.stage-quiz .quiz-say{padding:8px 12px}}
/* Use one bundled Kai face wherever children recognise or write a glyph. */
:is(#practice-title,.practice-tile,#practice-options button,.part-options button,.build-result,.char-button b,.number-steps b,.pick-big,.lc-chars,.lc-combo,.print-card b,.fold-card b,.practice-print-grid span,.dialog-char b,.live-character,.plain-writer,.sp-options button,.sf-char){font-family:"Kaiti SC",STKaiti,KaiTi,"楷体",serif!important;font-weight:400!important}
.picture-audio{display:block;width:100%;height:100%;padding:0!important;margin:0;border:0;background:transparent;cursor:pointer;color:#294b32}
.picture-audio:focus-visible{outline:3px solid #75976b;outline-offset:-4px}
.picture-audio img{display:block;width:100%;height:100%;object-fit:contain}
.picture-audio:has(.live-character:not([hidden])){display:flex;align-items:center;justify-content:center;gap:20px;background:#f5f8f1;padding:12px!important;box-sizing:border-box}
.picture-audio:has(.live-character:not([hidden])) img{width:50%;height:100%;object-fit:contain}
.live-character{font-size:clamp(64px,9vw,112px);line-height:1.2}
.visual-prompt{flex-wrap:wrap}.visual-prompt .outline{font-size:13px;padding:7px 12px;white-space:nowrap}
.visual-lesson .pick-group .pick-big{font-size:36px;line-height:1.25}
.visual-lesson .pick-group button{min-height:64px;min-width:42px}
.lesson-resource-links{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.lesson-resource-links a,.hz-jj-head>a,.lesson-label a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 12px;border:1px solid #b9ceba;border-radius:9px;background:#eff5eb;color:#315b3c!important;text-decoration:none;font-size:14px;font-weight:600;box-sizing:border-box}
.lesson-resource-links a:hover,.hz-jj-head>a:hover,.lesson-label a:hover{background:#deebd8}
.lesson-resource-links a:focus-visible,.hz-jj-head>a:focus-visible{outline:3px solid #91ac87;outline-offset:2px}
.hz-open{width:100%;height:100%;min-height:180px;align-content:center;box-sizing:border-box}
.hz-open img{height:92px;aspect-ratio:auto;object-fit:cover}
.hz-open:not(:has(img)){min-height:180px}
.hz-open b,.hz-open:not(:has(img)) b{font-size:56px;line-height:1.25}
.hz-mini{min-width:0}.hz-mini b{line-height:1.3}
.hz-head{gap:12px;align-items:center}.hz-head #hz-say{white-space:nowrap}
#hz-dialog .hz-panel .picture-stage{height:clamp(180px,calc(100dvh - 430px),400px);aspect-ratio:auto}
#hz-dialog .hz-head{margin-top:8px}
#hz-dialog .hz-panel{margin-top:10px}
#hz-dialog .hz-head .dialog-char b{font-size:54px}
/* Boards may scroll; cards never collapse below a readable glyph height. */
#activities .section-intro{flex-wrap:wrap}
#games-scope-label{font-size:14px;overflow-wrap:anywhere;margin:0;line-height:1.6}
.pair-cue-modes,.bingo-size{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.pair-cue-modes{margin:10px 0}
.pair-heading{display:flex;align-items:center;justify-content:center;gap:12px 24px;flex-wrap:wrap}
.pair-heading h3{margin:6px 0;font-size:21px}
.pair-cue-modes button[aria-pressed=true]{background:#315b3c;color:#fff;border-color:#315b3c}
#activity-stage .activity-grid-play{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));max-width:760px;gap:10px;margin:14px auto}
#activity-stage .activity-card{position:relative;min-width:0;min-height:76px;height:clamp(76px,11dvh,110px);padding:6px;box-sizing:border-box;align-content:center;gap:2px;font-size:36px;line-height:1.15}
#activity-stage .activity-card b{font-family:"Kaiti SC",STKaiti,KaiTi,"楷体",serif!important;display:block;font-size:clamp(30px,5vw,54px);font-weight:400;line-height:1.15;max-width:100%}
#activity-stage .activity-card img{width:100%;height:100%;max-height:92px;min-height:0;object-fit:contain}
#activity-stage .activity-card:has(img){display:block}
#activity-stage .activity-card small{font:12px/1.3 var(--sans)}
#activity-stage .card-audio-mark{position:absolute;bottom:4px;right:4px;font-size:17px;padding:2px 4px;background:#fffffff0;border-radius:6px}
#activity-stage .card-match-mark,#activity-stage .bingo-grid .matched>span{position:absolute;top:3px;right:5px;font:600 16px/1.2 sans-serif;color:#315b3c}
#activity-stage .sound-cue{font-size:30px;line-height:1.1}
#activity-stage .game-round-count{font-size:13px;color:#637568}
#activity-stage .craft-card{height:auto;min-height:150px}
#activity-stage .craft-card img{height:85px}
#practice-board{grid-template-columns:repeat(var(--cols),minmax(0,1fr));width:100%;max-width:620px;gap:10px}
.practice-tile{min-width:0;min-height:60px;padding:4px;line-height:1.2;font-size:clamp(28px,5vw,54px);box-sizing:border-box}
#practice-options{gap:8px;margin-top:12px}
#practice-options button{min-width:50px;min-height:54px;padding:4px 10px;line-height:1.2}
.build-result{font-size:clamp(28px,5vw,46px);padding:16px 8px;overflow-wrap:anywhere}
.part-options{margin:16px 0;gap:8px}
.part-options button{min-width:54px;min-height:58px;padding:6px;line-height:1.2}
@media(max-width:600px){#activity-stage .activity-grid-play{gap:6px}#activity-stage .activity-card{min-height:68px;height:78px;padding:4px}#activity-stage .activity-card b{font-size:36px}#activity-stage .activity-card img{max-height:68px}#activity-stage .card-audio-mark{font-size:13px}#activity-stage .sound-cue{font-size:25px}#practice-board{gap:6px}.practice-tile{font-size:30px;min-height:50px;padding:2px}.hz-open,.hz-open:not(:has(img)){min-height:150px}.hz-open img{height:70px}.hz-open b,.hz-open:not(:has(img)) b{font-size:42px}.lesson-resource-links{margin-left:0}.lesson-resource-links a{font-size:13px}.hz-panel .picture-stage{max-width:100%}.live-character{font-size:72px}.picture-audio:has(.live-character:not([hidden])){gap:10px}}

#activity-stage .game-round-count{margin:4px 0}
.visual-lesson .stage-learn .visual-character-picker{align-content:start}
.visual-lesson .stage-learn .picture-stage{width:100%;aspect-ratio:auto;height:250px}
@media(max-width:600px){
 #hz-dialog .hz-panel .picture-stage{height:200px}
 #hz-close{white-space:nowrap}
}
@media(min-width:701px) and (max-height:800px){
 .visual-lesson #flow-stage.stage-learn{padding:8px}
 .visual-lesson .stage-learn .picture-stage{height:135px}
 .visual-lesson .stage-learn .step-controls{margin:6px 0}
 .visual-lesson .stage-learn :is(.step-controls,.kids-actions,.visual-prompt) button{min-height:32px;padding:5px 10px;font-size:12px}
 .visual-lesson .stage-learn .live-character{font-size:90px}
}
/* Teaching view: reveal first, pronunciation only on an explicit speaker. */
.audio-icon{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:9px!important;border-radius:50%!important;flex:none;line-height:1}
.audio-icon svg{display:block;flex:none;width:24px;height:24px}
.recognition-picture{width:100%;height:100%;display:flex;align-items:center;justify-content:center;gap:24px;padding:12px;box-sizing:border-box}
.recognition-picture img{width:100%;height:100%;object-fit:contain}
.recognition-picture:has(.live-character) img{width:55%}
.hz-class-tabs{display:flex!important;gap:12px!important}
.hz-class-tabs [data-class]{min-height:0!important;padding:12px 24px!important;flex:1}
.hz-class-tabs strong{font-size:20px!important}
.hz-filters:is(#hz-filters,#hz-jj-filters){display:flex!important;gap:10px!important;flex-wrap:nowrap!important;overflow-x:auto;width:100%;padding:6px 0}
.hz-filters .lesson-circle{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;display:inline-flex;align-items:center;justify-content:center;border-radius:50%!important;border:1px solid #c4d2bd!important;font:24px/1 "Kaiti SC",STKaiti,KaiTi,"楷体",serif!important}
.hz-filters .lesson-circle[data-filter=all],.hz-filters .lesson-circle[data-jj-filter=all]{font:13px/1 var(--sans)!important}
.hz-open img{height:auto;aspect-ratio:16/9;width:100%;object-fit:contain}
.hz-open{min-height:0!important;padding:8px!important}
.hz-open b{font-size:42px!important}
.visual-lesson .stage-learn .pick-group button{width:100%!important;min-width:0!important;min-height:68px;margin:0}
.visual-lesson .stage-learn .pick-group{display:contents}
.visual-lesson .stage-learn .visual-character-picker.grouped{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:10px;padding:0}
.visual-lesson .stage-learn .pick-big{font-size:42px;line-height:1.2}
.visual-lesson #flow-stage.stage-write{height:auto!important;min-height:360px;max-height:none!important;overflow:visible!important;grid-template-columns:minmax(0,1fr) 116px;gap:24px;padding:12px}
.visual-lesson .stage-write .write-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:min-content;align-content:start;gap:7px!important;width:100%;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important}
.visual-lesson .stage-write .write-picker:before{grid-column:1/-1;margin:0 0 8px}
.visual-lesson .stage-write .write-group{display:contents}
.visual-lesson .stage-write .write-picker button{width:100%!important;min-width:0!important;height:46px!important;font-size:32px!important;padding:2px!important;margin:0}
.stage-write .sp-body{grid-template-columns:auto minmax(0,1fr);gap:24px}
.stage-write .sp-right{min-width:0;padding:0 12px}
.stage-write .sp-right .sp-rail{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));max-height:none!important;overflow:visible!important;align-content:start;gap:12px;margin:0;padding:0}
.stage-write .sp-right .sp-rail[hidden]{display:none}
.stage-write .sp-rail li{width:100%;min-width:0;box-sizing:border-box}
.stage-write .sp-rail li svg{width:100%;height:auto;max-height:110px}
.stage-write .sp-bar{width:100%;margin-bottom:20px!important}
.finder-q{display:flex;align-items:center;justify-content:center;gap:18px;margin:10px 0}
.finder-target-stroke{width:100px;height:70px;background:#fff;border:1px solid #cbd7c5;border-radius:12px;padding:10px;box-sizing:border-box;color:#315b3c}
.finder-stroke-icon{width:36px;height:30px;display:block;color:inherit}
.finder-chips button{min-width:52px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:5px}
@media(min-width:901px){.visual-lesson #flow-stage.stage-learn{height:auto!important;max-height:none!important;min-height:290px;overflow:visible!important;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:start}.visual-lesson .stage-learn>.visual-character-picker{grid-row:1 / span 2}.visual-lesson .stage-learn .picture-stage{height:180px;max-height:none}}
@media(max-width:900px){.visual-lesson #flow-stage.stage-write{display:flex!important;flex-direction:column}.visual-lesson .stage-write .write-picker{display:flex!important;flex-wrap:wrap!important;gap:6px!important}.visual-lesson .stage-write .write-picker:before{width:100%}.visual-lesson .stage-write .write-picker button{width:44px!important}.stage-write .sp-body{gap:12px}.stage-write .sp-right{padding:0}}
@media(max-width:560px){.visual-lesson .stage-learn .visual-character-picker.grouped{grid-template-columns:repeat(4,minmax(0,1fr))}.visual-lesson .stage-learn .pick-big{font-size:36px}.stage-write .sp-body{grid-template-columns:1fr}.hz-filters:is(#hz-filters,#hz-jj-filters){gap:6px!important}.hz-filters .lesson-circle{width:36px!important;height:36px!important;min-width:36px!important;font-size:21px!important}.hz-class-tabs [data-class]{padding:10px!important}}
html .hanzi-page :is(#hz-filters,#hz-jj-filters) button.lesson-circle{border-radius:50%!important}
html .hanzi-page .hz-toolbar:has(#hz-filters),html .hanzi-page .hz-toolbar:has(#hz-jj-filters){padding:12px 18px!important}
html body .audio-icon{border-radius:50%!important}
@media(min-width:901px){.stage-write .sp-right .sp-rail{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}.visual-lesson .stage-write .write-picker button{height:clamp(32px,calc((100dvh - 400px) / (var(--character-count) / 2)),46px)!important;font-size:clamp(25px,3vw,32px)!important}}
/* Let the page grow for long advanced lessons; never clip the character column. */
html body .visual-lesson:has(.stage-write){height:auto!important;max-height:none!important;overflow:visible!important}
html body .visual-lesson:has(.stage-write) #flow{height:auto!important;flex:none!important;min-height:0!important}
html body .visual-lesson #flow-stage.stage-write{flex:none!important;min-height:360px!important;height:auto!important}
html body .visual-lesson .stage-write .write-picker button{height:42px!important;font-size:30px!important;line-height:1!important}
html body .visual-lesson:has(.stage-learn){height:auto!important;max-height:none!important;overflow:visible!important}
html body .visual-lesson:has(.stage-learn) #flow{height:auto!important;flex:none!important}
html body .visual-lesson #flow-stage.stage-learn{flex:none!important}
@media(min-width:901px){.visual-lesson .review-char-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.visual-lesson .review-char{min-height:64px;font-size:48px}.warm-section{margin-bottom:14px}}
@media(min-width:901px){html body .visual-lesson .stage-write .write-picker{gap:var(--picker-gap,7px)!important}html body .visual-lesson .stage-write .write-picker button{height:var(--picker-row,46px)!important;font-size:var(--picker-font,32px)!important}}
html body.learning-page button.audio-icon{border-radius:50%!important}
