@font-face{font-family:ZhongwenKai;src:url('/assets/zhongwen-ink/zhongwen-kai-v2.woff2') format('woff2');font-display:swap}@font-face{font-family:ZhongwenPinyin;src:url('/assets/fonts/noto-sans-pinyin.woff2') format('woff2');font-display:swap}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{--body-font:32px;display:flex;flex-direction:column;height:100dvh;color:#111;background:#fff;font-family:system-ui,'Noto Sans SC',sans-serif}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #be812f;outline-offset:2px}button:disabled,a[aria-disabled=true]{opacity:.35;cursor:default}a[aria-disabled=true]{pointer-events:none}[hidden]{display:none!important}
.zw-top,.zw-bottom{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 12px;background:#f9fbfc;color:#234962;white-space:nowrap;overflow-x:auto;scrollbar-width:thin;min-height:58px}.zw-top{border-bottom:1px solid #dbe5eb}.zw-bottom{border-top:1px solid #dbe5eb;min-height:62px}.zw-top>*{flex-shrink:0}.zw-top h1{font-size:18px;margin:0 8px}.zw-top nav{display:flex;align-items:center;gap:5px}.zw-top button,.zw-top a,.zw-bottom button,.zw-bottom a{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#fff;border:1px solid #ccdbe5;border-radius:8px;min-height:40px;padding:8px 11px;font-size:14px;flex-shrink:0}.zw-top nav button{font-weight:650}.zw-top nav button[aria-pressed=true]{background:#e4eff7;border-color:#8fb6d3;color:#163f60}.zw-bottom button[aria-pressed=true]{background:#eaf2f7;border-color:#a3bfd1}.zw-bottom svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.zw-bottom .previous-lesson{color:#205f9a;background:#e8f2fc;border-color:#adc8e3;font-weight:650}.zw-bottom .next-lesson{color:#246344;background:#e7f4eb;border-color:#a9cdb5;font-weight:650}#progress{font-size:13px;min-width:66px;text-align:center;flex-shrink:0}
#workspace{position:relative;flex:1;min-height:0;overflow:hidden;display:flex}#screen{flex:1;min-width:0;overflow:auto;overscroll-behavior:contain;padding:20px 56px;display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:18px}#screen:focus{outline:none}.page-arrow{position:absolute;top:calc(50% - 29px);z-index:5;background:#f7fafce8;border:1px solid #cbdbe5;border-radius:9px;color:#345a72;font-size:34px;width:36px;height:58px;padding:0}.page-arrow.left{left:7px}.page-arrow.right{right:7px}.screen-title{font-size:19px;color:#456779;margin:0;text-align:center;font-weight:550;flex-shrink:0}.scene-layout{display:flex;align-items:center;justify-content:center;gap:clamp(24px,5vw,88px);width:100%;max-width:1500px;flex:1;min-height:0}.visual{width:48%;max-height:100%;min-height:200px;display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:1}.visual img{display:block;width:100%;max-height:min(62vh,620px);height:auto;object-fit:contain}.text-block{flex:1;min-width:0;max-width:100%}.lines{font-family:ZhongwenKai,serif;font-size:var(--body-font);line-height:1.9;text-align:left;flex:1;min-width:0;max-width:100%;font-weight:400}.line{margin:0;white-space:normal;overflow-wrap:normal;word-break:normal;cursor:pointer}.line-group{display:inline}.line ruby{display:inline-flex;flex-direction:column-reverse;align-items:center;justify-content:flex-start;vertical-align:bottom;line-height:1.25;min-width:var(--syllable-width,1.12em);margin:.10em .055em .15em}.line rt{font-family:ZhongwenPinyin,Arial,sans-serif;display:block;font-size:.45em;font-weight:600;line-height:1.3;white-space:nowrap;letter-spacing:0;margin-bottom:.13em;color:var(--tone-color,#637486)}.hanzi{display:block;padding:0 .025em;color:#111;min-width:1em;text-align:center;border-radius:3px}.punctuation{display:inline-block;line-height:1.35;vertical-align:bottom;min-width:.55em;margin-bottom:.13em}.spoken{background:#fffbe2}.cursor{border-left:1px solid #956c31}[data-tone=true] .hanzi{color:var(--tone-color,#637486)}[data-pinyin=false] rt{visibility:hidden;height:0;margin:0}[data-pinyin=false] .line ruby{margin-top:.18em}[data-pinyin=false] ruby.reveal rt{visibility:visible;height:auto;margin-bottom:.13em}[data-pictures=false] .visual{display:none}[data-pictures=false] .scene-layout{flex:0 0 auto;justify-content:center}[data-pictures=false] .lines{flex:0 1 auto;max-width:1000px}
.term-layout .visual{width:55%;height:100%;max-width:760px}.term-layout .visual>img{max-height:min(65vh,620px)}.term-copy{text-align:center;min-width:200px;display:flex;flex-direction:column;align-items:center;gap:22px}.term-copy .lines{font-size:calc(var(--body-font)*2.8);text-align:center;flex:0 0 auto}.term-copy .term-note{font-family:ZhongwenKai,serif;font-size:calc(var(--body-font)*.9);color:#506572}.word-copy .lines{font-size:calc(var(--body-font)*1.7)}.character-sheet{width:100%;max-width:1100px;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:16px}.character-tile{border:1px solid #d9e4eb;background:#fff;border-radius:12px;min-width:112px;min-height:140px;display:flex;align-items:center;justify-content:center;cursor:pointer}.character-tile .lines{font-size:calc(var(--body-font)*1.8);text-align:center;flex:initial}.writing-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,6vw,100px);max-width:1000px;width:100%;align-items:center}.writing-model,.writing-trace{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-width:0}.writing-model .lines{font-size:calc(var(--body-font)*1.5);flex:initial}.writer-box{position:relative;width:min(100%,340px);aspect-ratio:1;background:#fff}.writer-box.grid{border:2px solid #8da6b8;background-image:linear-gradient(to right,transparent calc(50% - .5px),#cbd9e3 50%,transparent calc(50% + .5px)),linear-gradient(to bottom,transparent calc(50% - .5px),#cbd9e3 50%,transparent calc(50% + .5px))}.writer-box>div{width:100%;height:100%}.writing-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;grid-column:1/-1}.writing-actions button{min-height:44px;padding:10px 18px;border:1px solid #b6ccdc;border-radius:9px;background:#f3f8fb;color:#2a5a7c}.writing-status{grid-column:1/-1;text-align:center;color:#4d6e82;font-size:14px;margin:0}.count-objects{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;width:min(100%,560px);align-content:center}.count-objects img{width:100%;height:76px;object-fit:contain}.count-objects.hundred{grid-template-columns:repeat(10,minmax(0,1fr));gap:2px}.count-objects.hundred img{height:36px}.color-swatch{width:min(70%,330px);aspect-ratio:1;border:2px solid #b6c7ce;border-radius:28px;box-shadow:0 8px 24px #28445410}.comparison{display:flex;align-items:end;justify-content:space-evenly;gap:24px;width:100%;height:300px}.comparison figure{margin:0;flex:1;display:flex;flex-direction:column;align-items:center;gap:16px}.comparison img{object-fit:contain;width:140px;height:170px}.comparison figcaption{font-family:ZhongwenKai,serif;font-size:30px}.comparison .chosen{border-bottom:4px solid #87ad98}.comparison .small img{width:80px;height:100px}.comparison .apples{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;min-height:170px;align-items:center}.comparison .apples img{width:60px;height:70px}.position-frame{position:relative;width:300px;height:250px;border:3px solid #a2bacb;border-radius:15px;margin:55px 0}.position-frame img{position:absolute;width:76px!important;height:76px!important;max-height:none;object-fit:contain}.direction-label{position:absolute;font-family:ZhongwenKai,serif;font-size:clamp(24px,3vw,40px);background:#fffffff2;padding:3px 10px;border-radius:8px;color:#294e65;box-shadow:0 1px 5px #23445515}.direction-label.east{top:0;left:50%;transform:translateX(-50%)}.direction-label.west{bottom:0;left:50%;transform:translateX(-50%)}.direction-label.north{left:0;top:40%}.direction-label.south{right:0;top:40%}.direction-label.emphasis{color:#154e7a;background:#edf6ff;border:1px solid #a9c8df}.relation-walk{width:100%;height:300px;display:flex;align-items:center;justify-content:space-between;gap:15px}.relation-walk img{width:130px!important;height:230px!important;object-fit:contain}.relation-walk .me{font-family:ZhongwenKai,serif;font-size:40px;border:2px solid #99b5c7;border-radius:50%;width:80px;height:80px;display:grid;place-items:center}.relation-walk .arrow{font-size:62px;color:#356c8c}.door{border:8px solid #bea27a;border-bottom:0;width:150px;height:230px;display:grid;place-items:center;background:#f8f2e7}.door img{height:190px!important;width:100px!important}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;width:100%}.month-card{border:1px solid #cfdae0;border-radius:12px;text-align:center;overflow:hidden;background:#fff}.month-card header{background:#e9f1f6;padding:7px;font-size:19px;color:#2d5269}.month-card strong{display:block;font-family:ZhongwenKai,serif;font-size:38px;padding:15px}.month-card small{display:block;color:#597285;font-size:14px;padding-bottom:12px}.image-hidden .month-grid{display:none}#message{position:fixed;bottom:72px;left:50%;transform:translateX(-50%);margin:0;background:#fff;border:1px solid #c5d8e5;border-radius:10px;padding:12px 18px;z-index:20;font-size:14px;color:#355d77}
@media(max-width:1200px){.zw-top,.zw-bottom{justify-content:flex-start}.scene-layout{gap:30px}.lines{line-height:1.8}.visual{width:44%}#screen{padding:18px 46px}.term-layout .visual{width:50%}.term-copy{min-width:170px}}
@media(max-width:650px){body{--body-font:30px}.zw-top,.zw-bottom{min-height:58px;gap:6px;padding:6px 8px}.zw-top{justify-content:flex-start}.zw-top h1{font-size:16px;margin:0 5px}.zw-top button,.zw-top a,.zw-bottom button,.zw-bottom a{font-size:13px;min-height:44px;padding:8px 9px}.zw-bottom{padding-bottom:max(6px,env(safe-area-inset-bottom))}#screen{padding:10px 34px;gap:10px}.page-arrow{width:27px;height:48px;font-size:29px}.page-arrow.left{left:2px}.page-arrow.right{right:2px}.scene-layout{flex-direction:column;gap:12px;flex:0 0 auto;min-height:auto}.visual{width:100%;min-height:0;max-height:none}.visual img{max-height:29vh;width:100%;object-fit:contain}.lines{flex:0 0 auto;line-height:1.7;width:100%;text-align:center}.line ruby{margin-inline:.025em}.term-layout{flex:1;justify-content:center;gap:14px}.term-layout .visual{width:100%;height:auto;max-height:36vh}.term-layout .visual>img{max-height:35vh}.term-copy{gap:6px;min-width:0}.term-copy .lines{font-size:calc(var(--body-font)*2.15)}.term-copy .term-note{font-size:24px}.word-copy .lines{font-size:calc(var(--body-font)*1.4)}.screen-title{font-size:17px}.writing-layout{gap:10px;grid-template-columns:1fr 1fr;width:100%;max-width:500px}.writer-box{width:100%}.writing-actions{gap:7px}.writing-actions button{padding:8px 12px;font-size:14px}.writing-model .lines{font-size:36px}.writing-status{font-size:13px}.count-objects{max-width:330px;gap:3px}.count-objects img{height:48px}.count-objects.hundred img{height:24px}.position-frame{width:230px;height:150px;margin:40px 0}.position-frame img{width:60px!important;height:60px!important}.comparison{height:190px;gap:12px}.comparison img{width:95px;height:120px}.comparison .small img{width:55px;height:75px}.comparison .apples{min-height:100px;gap:2px}.comparison .apples img{width:40px;height:45px}.comparison figcaption{font-size:25px}.relation-walk{height:200px;gap:5px}.relation-walk img{width:85px!important;height:170px!important}.relation-walk .me{width:55px;height:55px;font-size:30px}.relation-walk .arrow{font-size:38px}.door{width:110px;height:180px}.door img{height:150px!important;width:80px!important}.direction-label{font-size:23px;padding:2px 6px}.month-grid{gap:8px}.month-card header{font-size:15px}.month-card strong{font-size:30px;padding:8px}.month-card small{font-size:12px}.color-swatch{width:180px;border-radius:18px}[data-pictures=false] .scene-layout{width:100%}}

.count-objects.few img{height:180px}[data-pinyin=false] .line ruby{min-width:1.12em}@media(max-width:650px){.count-objects.few img{height:120px}}

.zw-top,.zw-bottom{justify-content:safe center}

/* Stable shared reading canvas; image loading and navigation never animate. */
@view-transition{navigation:none}
*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
body{background:#f7f8f6;color:#151b1d}.zw-top,.zw-bottom{background:#fff}.zw-top h1{font-weight:650;color:#173b56}
#workspace{padding:18px 0}#screen{width:calc(100% - 100px);max-width:1320px;margin:auto;min-height:100%;background:#fff;border:1px solid #e3e8e4;border-radius:8px;padding:24px 34px;box-shadow:0 3px 18px #21382b06}
.scene-layout{gap:36px;max-width:1200px}.visual,.term-layout .visual{height:min(61vh,540px);min-height:0;width:46%;flex:0 0 46%;max-height:none}.visual img,.term-layout .visual>img{width:100%;height:100%;max-height:100%;object-fit:contain;aspect-ratio:4/3}
.term-copy .lines{font-size:calc(var(--body-font)*2.3)}.lines{line-height:1.8}.screen-title{color:#294d5e}.text-block:only-child{max-width:1000px;margin:auto;flex:0 1 auto}.text-block:only-child .lines{text-align:center}#audio-kind{font-size:12px;color:#61746b}
@media(max-width:650px){#workspace{padding:8px 0}#screen{width:calc(100% - 64px);padding:12px 12px;border-radius:6px}.scene-layout{gap:12px;width:100%}.visual,.term-layout .visual{width:100%;flex:0 0 auto;height:25vh}.visual img,.term-layout .visual>img{height:100%;max-height:100%}.term-copy .lines{font-size:calc(var(--body-font)*2)}.lines{line-height:1.65}.text-block{width:100%}.page-arrow{top:calc(50% - 24px)}.zw-top,.zw-bottom{justify-content:safe center}.zw-bottom{min-height:58px}#audio-kind{font-size:11px}}

.line-group{display:inline;white-space:nowrap}
/* Second-language reading: each word has one continuous pinyin label. */
.line ruby.word-unit{min-width:var(--word-width);margin:.1em .16em .18em;line-height:1.3;vertical-align:bottom}.word-hanzi{display:flex;align-items:center;justify-content:center;white-space:nowrap;gap:0}.word-hanzi .hanzi{display:inline-block;min-width:1em;padding:0 .015em}.line rt{color:#687779;font-weight:500;font-size:.45em;letter-spacing:0;line-height:1.35;margin-bottom:.15em}.py-syllable{display:inline;letter-spacing:0;white-space:nowrap}[data-tone=true] .py-syllable{color:var(--tone-color)}[data-pinyin=false] .line ruby.word-unit{min-width:0;margin-inline:.045em}.punctuation{min-width:.35em;margin-left:-.1em}.lines{text-align:left;line-height:1.9}.line+.line{margin-top:.3em}.term-copy .lines{text-align:center}.scene-layout{gap:clamp(20px,4vw,54px);flex:0 0 auto;max-width:1060px}.term-layout{max-width:800px;justify-content:center;gap:clamp(24px,5vw,64px)}.term-layout .visual{flex:0 1 46%;width:46%;height:min(44vh,350px)}.term-layout .count-objects.few img{height:150px}.term-copy{flex:0 1 auto;min-width:180px;gap:10px}.term-copy .lines{font-size:calc(var(--body-font)*1.9)}.term-copy .term-note{font-size:calc(var(--body-font)*.75)}.text-block:only-child .lines{text-align:left}.parent-gloss{font-family:system-ui,sans-serif;font-size:16px;line-height:1.6;font-weight:400;color:#5d7078;margin:12px 0 0;max-width:700px;overflow-wrap:anywhere}.term-copy .parent-gloss{text-align:center;font-size:18px;max-width:340px}
.parent-tools{display:flex;align-items:center;gap:7px;flex-shrink:0;margin-left:12px}.language-choice{display:flex;align-items:center;border:1px solid #d6e0e7;border-radius:9px;padding:2px;gap:2px}.zw-top .language-choice button{border:0;background:transparent;padding:7px 8px;min-height:36px;min-width:38px;font-size:12px;border-radius:6px}.zw-top .language-choice button[aria-pressed=true]{background:#e4eff7;color:#173f60;font-weight:700}.zw-top #parent-help-open{font-size:13px}#parent-help{max-width:600px;max-height:85dvh;border:1px solid #ccdbe5;border-radius:14px;padding:24px;color:#173752;background:#fff;line-height:1.7;overflow:auto}#parent-help::backdrop{background:#17375266}.help-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.help-heading h2{margin:0;font-size:22px}.help-heading button{min-height:44px;border:1px solid #ccdbe5;border-radius:8px;padding:8px 14px;background:#f8fbfd;font-size:14px}.meaning-option{display:flex;align-items:center;gap:10px;min-height:44px}.meaning-option input{width:20px;height:20px}#parent-help ol{padding-left:1.5em}#parent-help li{padding-left:4px;margin:12px 0}
/* Keep each writing action next to its own live grid, inside the learning area. */
.writing-layout{max-width:880px;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 38px;align-items:start;margin:auto;flex:0 0 auto}.writing-model,.writing-trace{gap:10px}.writing-caption{font:600 16px/1.4 system-ui,sans-serif;margin:0;color:#456779;text-align:center}.writing-pinyin{font:600 22px/1.3 ZhongwenPinyin,Arial,sans-serif;color:#647779;min-height:29px;text-align:center}.writing-trace>.writing-pinyin{visibility:hidden}.writing-layout .writer-box{width:min(100%,300px,40vh);aspect-ratio:1;flex:none}.writer-box.grid{border:1.5px solid #95acb9;background-color:#fff;background-image:linear-gradient(to right,transparent calc(50% - .5px),#d7e1e5 50%,transparent calc(50% + .5px)),linear-gradient(to bottom,transparent calc(50% - .5px),#d7e1e5 50%,transparent calc(50% + .5px))}.writer-box>div{position:absolute;inset:0;width:100%;height:100%}.writer-box svg{display:block;touch-action:none}.writing-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;min-height:44px;grid-column:auto}.writing-actions button{font-size:14px;min-height:44px;padding:8px 14px}.writing-actions #watch-strokes{background:#eaf3fc;border-color:#b3cde1}.writing-actions #try-writing{background:#eaf5ee;border-color:#b3d3be}.writing-footer{grid-column:1/-1;text-align:center}.writing-footer .parent-gloss{margin:0 auto 8px;text-align:center}.writing-status{font-size:14px;min-height:24px;line-height:1.6}
@media(max-width:650px){.parent-tools{margin-left:7px}.language-choice{gap:0}.zw-top .language-choice button{min-width:36px;min-height:40px;padding:6px;font-size:12px}.scene-layout{gap:16px}.term-layout{max-width:440px;flex:0 0 auto}.term-layout .visual{width:100%;flex:0 0 auto;height:24vh}.term-layout .count-objects.few img{height:110px}.term-copy{min-width:0;max-width:100%;gap:6px}.term-copy .lines{font-size:calc(var(--body-font)*1.8)}.lines{text-align:left;line-height:1.85}.line ruby.word-unit{margin-inline:.12em}.parent-gloss{font-size:14px}.term-copy .parent-gloss{font-size:16px}.writing-layout{gap:16px 12px;max-width:450px}.writing-model,.writing-trace{gap:8px}.writing-caption{font-size:13px;min-height:36px;display:grid;place-items:center}.writing-pinyin{font-size:19px;min-height:25px}.writing-layout .writer-box{width:min(100%,34vh)}.writing-actions{gap:6px}.writing-actions button{font-size:12px;padding:7px 9px}.writing-status{font-size:13px}#parent-help{padding:18px;width:calc(100% - 28px)}.help-heading h2{font-size:20px}}
@media(max-height:560px) and (min-width:651px){.writing-layout{gap:8px 24px}.writing-layout .writer-box{width:min(100%,30vh)}.writing-model,.writing-trace{gap:4px}.writing-pinyin{font-size:17px;min-height:22px}.writing-caption{font-size:14px}.writing-actions button{padding:5px 12px}.writing-footer{min-height:0}}
/* The language selector stays visible while the lesson navigation scrolls. */
.zw-top{overflow:hidden;justify-content:center}.lesson-navigation{display:flex;align-items:center;justify-content:safe center;gap:8px;min-width:0;flex:0 1 auto;overflow-x:auto;scrollbar-width:thin}.lesson-navigation>*{flex-shrink:0}.parent-tools{margin-left:4px}.language-choice{flex-shrink:0}.zw-top #parent-help-open{max-width:110px;white-space:normal;line-height:1.2}.writing-model .writer-box,.writing-trace .writer-box{touch-action:none}
@media(max-width:650px){.lesson-navigation{flex:1;justify-content:flex-start;gap:6px}.parent-tools{gap:4px;margin-left:0}.zw-top #parent-help-open{font-size:0;min-width:36px;width:36px;padding:6px}.zw-top #parent-help-open:after{content:'?';font:bold 18px/1 system-ui}.zw-top .language-choice button{min-width:31px;padding:5px}.language-choice{padding:1px}.zw-top{gap:5px}.lesson-navigation h1{font-size:15px}}
#workspace{justify-content:center}#screen{flex:0 1 auto;width:calc(100% - 100px);height:100%;min-height:0;margin:0 auto}
@media(max-width:650px){#screen{width:calc(100% - 62px)}.writing-actions button{flex:0 1 auto}.writing-layout{width:100%}.writing-layout .writer-box{width:100%}}

/* Larger reading defaults for young second-language learners; per-lesson A+/A- still wins. */
body{--body-font:40px}.writing-pinyin{font-size:26px;min-height:34px}.line rt{font-weight:650}.line .py-syllable{font-weight:650}[data-tone=true] .hanzi{color:var(--tone-color);font-weight:500}[data-tone=true] .py-syllable,[data-tone=true] .writing-pinyin{color:var(--tone-color)}
.term-copy .lines{font-size:calc(var(--body-font)*1.9)}.word-copy .lines{font-size:calc(var(--body-font)*1.5)}
@media(max-width:650px){body{--body-font:36px}.writing-pinyin{font-size:23px;min-height:30px}.term-copy .lines{font-size:calc(var(--body-font)*1.7)}.word-copy .lines{font-size:calc(var(--body-font)*1.35)}}

#screen[aria-busy=true]{cursor:progress}.writing-context-image,.writing-context-spacer{width:90px;height:54px;object-fit:contain;flex-shrink:0}.writing-context-image{display:block}.word-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;max-width:1080px;margin:auto}.word-preview-card{min-width:0;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px;border:1px solid #e0e9ef;border-radius:12px;background:#fff}.word-preview-card>img{width:100%;height:120px;object-fit:contain}.word-preview-card .lines{text-align:center;width:auto;flex:0 0 auto}.word-preview-card .parent-gloss{text-align:center;margin:0}.word-preview-card .line{cursor:pointer}.calendar-months{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.calendar-month{border:1px solid #c8dbe8;border-radius:10px;padding:8px;background:#fff;min-width:0}.calendar-month h3{display:flex;align-items:center;justify-content:space-between;font:600 16px/1.3 system-ui;margin:0 0 7px;color:#254b68}.calendar-month h3 span{font-family:ZhongwenKai,serif;font-size:22px}.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.calendar-day{min-width:0;text-align:center;border:1px solid #c8dbed;border-radius:3px;background:#eaf4ff;color:#25577c;font:500 11px/1.7 system-ui}.small-month .calendar-day{background:#eff7eb;color:#38624a;border-color:#cfe0c9}.calendar-day.missing-day{color:#c6ced3!important;border-style:dashed;background:#fff!important}.calendar-day.leap-day{color:#879eaf!important}.calendar-day.extra-day{background:#fff1cf;border-color:#c29132;color:#8c5b0d;font-weight:750}.calendar-month>strong{display:block;text-align:center;font-size:14px;margin-top:7px}.calendar-month.is-current{outline:3px solid #e3be49;background:#fffef4}.month-layout{align-items:center;gap:24px;max-width:1200px}.month-layout .visual{flex:0 0 52%;width:52%;height:auto}.month-layout .lines{font-size:calc(var(--body-font)*.9)}.writing-layout .writer-box{width:min(100%,280px,35vh)}
@media(max-width:650px){.writing-context-image,.writing-context-spacer{height:40px;width:70px}.word-preview-grid{gap:8px}.word-preview-card{min-height:140px;padding:9px;gap:7px}.word-preview-card>img{height:80px}.word-preview-card .lines{font-size:calc(var(--body-font)*.9)}.calendar-months{gap:6px}.calendar-month{padding:6px}.calendar-month h3{font-size:13px}.calendar-month h3 span{font-size:18px}.calendar-days{gap:2px}.calendar-day{font-size:9px}.calendar-month>strong{font-size:11px;margin-top:5px}.month-layout .visual{width:100%;flex:0 0 auto;height:auto}.month-layout .lines{font-size:calc(var(--body-font)*.85)}.month-layout{gap:12px}.writing-layout .writer-box{width:100%}}
