.pb-drawing-tools,.pb-writing-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:8px 0}
.pb-drawing-tools button,.pb-writing-actions button,.pb-preschool-practice button{border:1px solid #d3e2ed;border-radius:10px;background:white;color:#264f6a;font:inherit;padding:9px 13px;cursor:pointer;min-height:42px}
.pb-drawing-tools [aria-pressed=true]{background:#e9f4fe;border-color:#7faed0}
.pb-drawing-surface{position:relative;width:100%;margin:auto;line-height:0}
.pb-drawing-surface>img{width:100%;height:auto;display:block;max-height:470px;object-fit:contain}
.pb-drawing-surface canvas,.pb-writing-cell canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
.pb-wheel{display:block;max-height:440px;width:100%;background:white}
.pb-writing{width:100%;text-align:center;padding:8px 0 16px}
.pb-writing h3{font:32px/1.3 PreschoolKai,serif;margin:2px 0 5px;color:#224a66}
.pb-writing-demo{display:flex;align-items:center;justify-content:center;gap:26px}
.pb-single-stroke{width:160px;height:160px}
.pb-single-stroke svg{width:100%;height:100%}
.pb-writing-caption{font:72px/1 PreschoolKai,serif;color:#264c68}
.pb-writing-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:14px}
.pb-writing-cell{position:relative;aspect-ratio:1;background:#fff}
.pb-writing-cell svg{width:100%;height:100%;display:block}
.pb-whole-character svg{height:240px;width:240px;display:block;margin:16px auto}
.pb-stroke-flow{stroke-dasharray:2000;stroke-dashoffset:2000;animation:pb-flow 1.5s linear forwards}
.pb-character-step{opacity:0;animation:pb-appear .1s linear forwards}
@keyframes pb-flow{to{stroke-dashoffset:0}}@keyframes pb-appear{to{opacity:1}}
.pb-preschool-practice{position:relative;background:#fff;color:#214662;padding:16px;border-radius:18px;min-height:480px;font-family:Arial,'Microsoft YaHei',sans-serif}
.pb-practice-modes{display:flex;justify-content:center;gap:12px;margin:0 0 18px}
.pb-practice-modes button{font:600 28px/1.1 PreschoolKai,serif;min-width:70px;color:#3478aa;border:2px solid #d0e4f4}
.pb-practice-modes button:nth-child(2){color:#42845e;border-color:#d5eadb}.pb-practice-modes button:nth-child(3){color:#9d6541;border-color:#f0dfcf}
.pb-practice-modes button[aria-pressed=true]{background:#edf7ff}.pb-practice-modes button:nth-child(2)[aria-pressed=true]{background:#eef8ef}.pb-practice-modes button:nth-child(3)[aria-pressed=true]{background:#fff5eb}
.pb-practice-task{position:relative;padding:0 18px}
.pb-task-head{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;color:#6b8497}
.pb-task-head button{font-size:18px;border:0;background:transparent;padding:6px 0;color:#284c66}
.pb-question{display:flex;align-items:center;justify-content:center;min-height:225px;margin:6px 0 12px}
.pb-question>img{width:100%;max-height:280px;object-fit:contain;display:block}
.pb-question .pb-audio-word{font:60px/1.5 PreschoolKai,serif;letter-spacing:.1em}
.pb-hear-prompt{font-size:30px!important;background:#eaf5fe!important;padding:24px 40px!important;border:2px solid #bad9ed!important}
.pb-answer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pb-answer-grid>button{font:30px/1.4 PreschoolKai,serif;min-height:70px;background:#fff;border:2px solid #d3e3ed}
.pb-image-options>button{height:205px;padding:6px}
.pb-image-options img{width:100%;height:100%;object-fit:contain}
.pb-voice-option{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #d7e5ed;border-radius:14px}
.pb-voice-option button:first-child{font-size:23px;padding:20px 8px;background:#f0f8fe}
.pb-voice-option button:last-child{font-size:18px;background:#fff}
.pb-answer-correct{background:#e5f6e9!important;border-color:#6cad7e!important}
.pb-answer-wrong{background:#fff0ed!important;border-color:#d88978!important}
.pb-answer-feedback{min-height:26px;text-align:center;font-size:19px;color:#3c7f55;margin:13px 0 2px}
.pb-practice-progress{position:absolute;right:-9px;top:20%;height:62%;width:6px;border-radius:5px;background:#e8f0f5;overflow:hidden}
.pb-practice-progress span{display:block;width:100%;background:#6ea9ce}
.pb-match-board{position:relative;display:flex;justify-content:space-between;gap:25%;margin:10px auto 0;max-width:760px}
.pb-match-board>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}
.pb-match-left,.pb-match-right{display:grid;grid-template-rows:repeat(4,110px);gap:10px;width:38%;z-index:3}
.pb-match-left button{padding:4px}.pb-match-left img{width:100%;height:96px;object-fit:contain}
.pb-match-right button{font:27px/1.3 PreschoolKai,serif}
.pb-match-selected{background:#e9f5ff!important;border-color:#72a9ce!important;box-shadow:0 0 0 2px #c9e4f7}
.pb-match-board button:disabled{opacity:1;cursor:default}
.pb-question-count{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;align-content:center;justify-items:center;width:100%;height:100%;max-width:350px}
.pb-question-count img{width:100%;height:70px;object-fit:contain}
.pb-practice-result{padding:60px 12px;text-align:center}.pb-practice-result h3{font-size:28px}.pb-practice-result p{font-size:20px}
.pb-reader[data-kind=trace] .pb-stage,.pb-reader[data-kind=coloring] .pb-stage,.pb-reader[data-kind=writing] .pb-stage{cursor:default}
.pb-activity-area{width:100%}.pb-activity-area .pb-drawing-tools button{font-size:14px}
.pb-numerals{display:flex;justify-content:center;gap:28px;flex-wrap:wrap;color:#3278aa;font:600 clamp(26px,4.6cqw,44px)/1.4 Arial,sans-serif;letter-spacing:.1em;margin:1px 0 5px}
.pb-animal-figure{position:relative;width:100%;height:auto;display:block}
.pb-animal-figure img{width:100%;height:100%;object-fit:contain;display:block}
.pb-animal-digit{position:absolute;top:18%;left:50%;transform:translate(-50%,-50%);font:600 clamp(24px,4.4cqw,42px)/1 Arial,sans-serif;color:#254f6a;pointer-events:none}
.pb-lineup-digits{width:100%;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:0;font-size:24px;text-align:center}
.pb-count-picture{width:85%;height:320px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;align-content:center;justify-items:center}
.pb-count-picture img{width:100%;height:95px;object-fit:contain}
.pb-count-oval{display:block;width:64px;height:43px;background:#f7b764;border:2px solid #bd7f3c;border-radius:50%;transform:rotate(-22deg);margin:18px}
@media(max-width:760px){.pb-writing-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pb-single-stroke{width:125px;height:125px}.pb-writing-actions button{font-size:13px;padding:8px}.pb-writing h3{font-size:28px}.pb-preschool-practice{padding:10px;min-height:420px}.pb-practice-task{padding:0 8px}.pb-question{min-height:190px}.pb-question>img{max-height:230px}.pb-answer-grid{gap:7px}.pb-answer-grid>button{font-size:25px;min-height:60px;padding:8px 4px}.pb-image-options>button{height:160px}.pb-voice-option{padding:5px;gap:6px}.pb-voice-option button:first-child{font-size:19px;padding:16px 4px}.pb-voice-option button:last-child{font-size:15px;padding:8px 3px}.pb-task-head button{font-size:17px}.pb-match-left,.pb-match-right{grid-template-rows:repeat(4,90px);gap:8px}.pb-match-left img{height:76px}.pb-match-right button{font-size:24px;padding:7px 4px}.pb-match-board{gap:23%}.pb-question-count img{height:48px}.pb-animal-figure{height:225px}.pb-animal-digit{top:12%;font-size:30px}.pb-count-picture{height:260px;width:100%;gap:1px}.pb-count-picture img{height:80px}.pb-drawing-tools button{font-size:13px!important;padding:7px!important}.pb-practice-modes{gap:10px;margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.pb-stroke-flow{animation-duration:.01s}.pb-character-step{animation-duration:.01s}}
@media(max-width:760px){.pb-animal-figure{height:auto}.pb-animal-digit{top:18%;font-size:clamp(20px,5cqw,32px)}}
.pb-reader .pb-sections{flex-wrap:wrap;gap:5px}.pb-reader .pb-sections button{font-size:14px;padding:7px 9px}.pb-reader .pb-toolbar{align-items:flex-start;gap:8px}.pb-reader .pb-tools{flex-shrink:0}.pb-reader .pb-stage{scroll-margin-top:100px}
@media(max-width:760px){.pb-reader .pb-sections{width:100%;flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.pb-reader .pb-sections button{flex-shrink:0}.pb-reader .pb-tools{margin-left:auto}}
@media(max-width:580px){.pb-reader[data-kind=numbers] .pb-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pb-reader[data-kind=numbers] .pb-count-art{height:185px}.pb-reader[data-kind=numbers] .pb-count-art img{max-height:48px}.pb-reader[data-kind=numbers] .pb-word{font-size:29px}}
.pb-drawing-surface{max-width:760px}.pb-drawing-surface>img{max-height:none;height:auto;object-fit:initial}
.pb-reader .pb-stage:has(.pb-drawing-surface){min-height:0}.pb-animal-digit{background:#fff;padding:1px 6px}
@media(max-width:580px){.pb-reader[data-kind=animal-numbers] .pb-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pb-reader[data-kind=animal-numbers] .pb-animal-digit{font-size:24px}}
@media(min-width:761px){.pb-match-left,.pb-match-right{grid-template-rows:repeat(4,90px)}.pb-match-left img{height:76px}}
.pb-word-learning{--pb-word-stage-height:clamp(430px,62svh,600px);border:1px solid #dce8ef;border-radius:16px;padding:10px;background:white;color:#214662;font-family:Arial,sans-serif}.pb-word-learning button{border:1px solid #d3e2ed;border-radius:10px;background:white;color:#264f6a;padding:9px 11px;font:inherit;cursor:pointer;min-height:40px}.pb-word-modes{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;min-height:50px;align-content:center}.pb-word-modes [aria-pressed=true]{background:#e9f4ff;border-color:#82b3d5}.pb-word-stage{height:var(--pb-word-stage-height);box-sizing:border-box;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;justify-content:safe center;touch-action:pan-y}.pb-word-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:center}.pb-word-preview>button{border:0;display:flex;align-items:center;flex-direction:column;gap:22px;min-width:0}.pb-word-preview img{height:220px;width:100%;object-fit:contain;user-select:none}.pb-word-caption{font:36px/1.6 PreschoolKai,serif;white-space:nowrap}.pb-word-flash{grid-template-columns:1fr}.pb-word-flash img{height:260px}.pb-flip-prompt{font-size:20px}.pb-word-learning ruby,.pb-preschool-practice ruby{ruby-align:center}.pb-word-learning rt,.pb-preschool-practice rt{font:normal .4em/1.2 Arial,sans-serif;visibility:hidden;letter-spacing:0;color:#526f85}.pb-word-learning.pb-show-pinyin rt,.pb-preschool-practice.pb-show-pinyin rt{visibility:visible}.pb-word-bottom{height:60px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e7eef3;font-size:14px}.pb-word-match{position:relative;display:flex;justify-content:space-between;gap:18%;width:100%;max-width:700px;margin:auto}.pb-word-match>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.pb-word-match>div{width:41%;display:grid;gap:10px}.pb-word-match button{height:92px;font:30px/1.4 PreschoolKai,serif;position:relative}.pb-word-match img{width:100%;height:100%;object-fit:contain;user-select:none}.pb-word-feedback{height:30px;flex-shrink:0;font-size:18px;text-align:center;margin:10px 0 0;color:#38774d}.pb-word-learning button:disabled{opacity:1;cursor:default}.pb-word-bottom button:disabled{opacity:.35}.pb-word-caption[hidden],.pb-flip-prompt[hidden]{display:none}.pb-word-learning button:focus-visible{outline:3px solid #83b7dd;outline-offset:2px}
@media(max-width:580px){.pb-word-caption{font-size:31px}.pb-word-preview img{height:190px}.pb-word-match button{font-size:27px;height:88px}.pb-word-modes button{padding:7px 8px;font-size:14px}}
body:has(.pb-word-learning) .sh-dock,body:has(.pb-preschool-practice) .sh-dock{display:none!important}.pb-practice-modes [data-pb-game-pinyin]{font:14px/1.3 Arial,sans-serif;min-width:0}.pb-practice-modes [data-pb-game-pinyin][aria-pressed=true]{background:#e9f4ff}
.pb-classroom-dialog{box-sizing:border-box;width:min(800px,94vw);max-height:90svh;padding:0;border:1px solid #d1e2ed;border-radius:18px;color:#23475f;background:white;font:16px/1.65 Arial,sans-serif;overflow:auto}.pb-classroom-dialog::backdrop{background:#193b5566}.pb-classroom-dialog>header{position:sticky;top:0;background:white;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 20px;border-bottom:1px solid #e5edf3;z-index:2}.pb-classroom-dialog h2{font-size:21px;margin:0}.pb-classroom-dialog>section{padding:12px 20px 24px}.pb-classroom-dialog h3{font-size:21px;margin:8px 0 12px}.pb-classroom-dialog h4{font-size:19px;margin:0 0 10px}.pb-classroom-dialog small{font-size:13px;font-weight:400;margin-left:8px;color:#607e92}.pb-classroom-dialog button,.pb-classroom-dialog a{font:14px/1.4 Arial,sans-serif;color:#244f6c;border:1px solid #cbdfea;border-radius:9px;background:white;padding:8px 11px;cursor:pointer;text-decoration:none;display:inline-block}.pb-classroom-video,.pb-classroom-activity{padding:14px 0;border-top:1px solid #e4edf3}.pb-classroom-video p{margin:8px 0}.pb-video-slot{position:relative;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;margin-bottom:10px;background:#f6fafc}.pb-video-slot img{height:100%;width:100%;object-fit:contain}.pb-video-slot>button{position:absolute;bottom:15px;background:white}.pb-video-slot iframe{width:100%;height:100%;border:0}.pb-video-slot .pb-video-reset{bottom:0;right:0;font-size:12px}.pb-classroom-phrase{font:30px/1.7 PreschoolKai,serif;text-align:center;margin:15px 0}.pb-classroom-phrase ruby{ruby-align:center}.pb-classroom-phrase rt{font:normal .4em/1.1 Arial,sans-serif;color:#526f85}.pb-classroom-activity ol{padding-left:24px;list-style-type:decimal}.pb-classroom-activity li{padding-left:3px;margin:6px 0}.pb-classroom-materials{background:#f0f7fc;border-radius:12px;padding:12px}.pb-video-author{white-space:nowrap}
@media(max-width:580px){.pb-classroom-dialog h2{font-size:18px}.pb-classroom-dialog>section{padding-inline:14px}.pb-classroom-dialog>header{padding:10px 14px}}
.pb-classroom-hide-pinyin rt{visibility:hidden}.pb-classroom-dialog [data-classroom-pinyin]{margin-left:auto}.pb-classroom-dialog [data-classroom-pinyin][aria-pressed=true]{background:#e9f4ff}
.pb-reader .pb-tools{min-width:0;max-width:100%;flex:1 1 auto;justify-content:flex-end}
.pb-word-learning,.pb-word-learning *{overflow-anchor:none}
