:root{color:#211e1a;background:#f4f1ea;font-family:Plus Jakarta Sans,Noto Sans HK,Noto Sans CJK TC,PingFang TC,Microsoft JhengHei,Arial,sans-serif}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;background:#f4f1ea}button,input,textarea{font:inherit}button{cursor:pointer}h1,h2,p{margin:0}.appShell{flex-direction:column;height:100vh;display:flex;overflow:hidden}.topbar{z-index:5;background:#fff;border-bottom:1px solid #eae3d5;justify-content:space-between;align-items:center;gap:16px;padding:13px 24px;display:flex}.brandLockup{align-items:center;gap:13px;min-width:0;display:flex}.brandMark{color:#fff;background:#c0452e;border-radius:11px;flex:none;place-items:center;width:38px;height:38px;font-family:Noto Sans HK,sans-serif;font-size:21px;font-weight:900;display:grid;box-shadow:0 4px 12px #c0452e47}.brandTitle{white-space:nowrap;align-items:baseline;gap:8px;display:flex}.brandTitle span{color:#211e1a;font-family:Noto Sans HK,sans-serif;font-size:19px;font-weight:900}.brandTitle strong{color:#9a9180;letter-spacing:.06em;font-size:13px}.brandLockup p{color:#9a9180;margin-top:1px;font-size:12px;font-weight:600}.topbarActions{flex:none;align-items:center;gap:10px;display:flex}.menuWrap{position:relative}.hamburgerButton{color:#524c40;background:#fff;border:1px solid #e3dbcb;border-radius:11px;align-content:center;justify-items:center;gap:4px;width:42px;height:42px;display:grid}.hamburgerButton:hover,.hamburgerButton[aria-expanded=true]{background:#faf7f0;border-color:#d6ccb8}.hamburgerButton span{background:currentColor;border-radius:999px;width:17px;height:2px;display:block}.utilityMenu{z-index:20;background:#fff;border:1px solid #e7e0d2;border-radius:12px;gap:6px;width:min(280px,100vw - 32px);padding:10px;display:grid;position:absolute;top:calc(100% + 10px);right:0;box-shadow:0 18px 44px #281e0c29}.utilityMenu:before{content:"";background:#fff;border-top:1px solid #e7e0d2;border-left:1px solid #e7e0d2;width:10px;height:10px;position:absolute;top:-6px;right:14px;transform:rotate(45deg)}.utilityMenu>button,.utilityMenu>a{color:#3b362e;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;min-height:38px;padding:8px 10px;font-size:14px;font-weight:700;text-decoration:none;display:flex}.utilityMenu>button:hover,.utilityMenu>a:hover{color:#c0452e;background:#f6f1e7}.menuSection{border-bottom:1px solid #f0eadd;justify-content:space-between;align-items:center;gap:12px;padding:6px 8px 10px;display:flex}.menuSection>span{color:#7a7263;letter-spacing:.04em;text-transform:uppercase;font-size:12px;font-weight:800}.languageSwitch{background:#fbfaf6;border:1px solid #e3dbcb;border-radius:9px;grid-template-columns:1fr 1fr;display:grid;overflow:hidden}.languageSwitch button{color:#7a7263;background:0 0;border:0;min-width:44px;padding:7px 10px;font-size:12px;font-weight:900}.languageSwitch button[aria-pressed=true]{color:#fff;background:#c0452e}.primaryButton,.secondaryButton{border-radius:11px;min-height:42px;padding:0 17px;font-size:14px;font-weight:800}.primaryButton{color:#fff;background:#c0452e;border:0;box-shadow:0 4px 12px #c0452e42}.primaryButton:hover{background:#a6391f}.secondaryButton{color:#524c40;background:#fff;border:1px solid #e3dbcb}.secondaryButton:hover{background:#faf7f0;border-color:#d6ccb8}.workspace{flex:1;min-height:0;display:flex;overflow:hidden}.controls{background:#fbfaf6;border-right:1px solid #eae3d5;flex-direction:column;flex:0 0 382px;gap:16px;padding:20px;display:flex;overflow-y:auto}.controlPanel{background:#fff;border:1px solid #ece6d9;border-radius:8px;flex-direction:column;gap:13px;padding:17px;display:flex;box-shadow:0 1px 2px #281e0a08}.stepLabel{color:#a8a08e;letter-spacing:.08em;text-transform:uppercase;font-size:11px;font-weight:800}label{color:#6b6457;gap:6px;font-size:12px;font-weight:700;display:grid}input,textarea{color:#211e1a;background:#fff;border:1px solid #e3dbcb;border-radius:8px;outline:0;width:100%}input:focus,textarea:focus{border-color:#c0452e}input{min-height:42px;padding:9px 12px}textarea{resize:vertical;min-height:128px;padding:13px;font-family:Noto Sans HK,sans-serif;font-size:20px;line-height:1.7}textarea::placeholder,input::placeholder{color:#b7af9e}.helperText,.dataNote{color:#8a8273;font-size:13px;line-height:1.5}.dataNote{color:#b3ab99;margin:2px 4px 8px;font-size:11px}.starterRow{flex-wrap:wrap;gap:6px;display:flex}.chipButton{color:#7a7263;background:#f6f1e7;border:1px solid #ebe3d2;border-radius:999px;padding:6px 11px;font-family:Noto Sans HK,sans-serif;font-size:12px;font-weight:700}.chipButton:hover{color:#c0452e;background:#fbeeea;border-color:#e7c6bc}.countPill{color:#c0452e;background:#fbeeea;border-radius:999px;align-self:flex-start;padding:5px 11px;font-size:12px;font-weight:800}.stepper,.toggleRow{border-top:1px solid #f0eadd;justify-content:space-between;align-items:center;gap:12px;padding-top:13px;display:flex}.stepper:first-of-type{border-top:0;padding-top:0}.stepper>div:first-child{flex-direction:column;gap:2px;display:flex}.stepper strong,.toggleRow>span{color:#3b362e;font-size:14px;font-weight:700}.stepper span{color:#9a9180;font-size:12px}.stepper>div:last-child{align-items:center;gap:4px;display:flex}.stepper button{color:#6b6457;background:#fff;border:1px solid #e3dbcb;border-radius:8px;place-items:center;width:32px;height:32px;font-size:18px;font-weight:700;display:grid}.stepper button:hover{background:#faf7f0}.stepper>div:last-child span{color:#211e1a;text-align:center;min-width:26px;font-size:15px;font-weight:800}.toggle{background:#dad3c5;border:0;border-radius:999px;flex:none;width:46px;height:27px;padding:0;position:relative}.toggle[aria-pressed=true]{background:#c0452e}.toggle span{background:#fff;border-radius:50%;width:21px;height:21px;transition:left .16s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #00000040}.toggle[aria-pressed=true] span{left:22px}.savedList{gap:8px;display:grid}.savedItem{background:#fcfbf7;border:1px solid #eee8db;border-radius:8px;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:10px;padding:10px 12px;display:grid}.savedItem button{color:inherit;background:0 0;border:0}.savedItem>button:first-child{text-align:left;flex-direction:column;gap:2px;min-width:0;padding:0;display:flex}.savedItem strong{color:#2e2a24;text-overflow:ellipsis;white-space:nowrap;font-family:Noto Sans HK,sans-serif;font-size:14px;overflow:hidden}.savedItem span{color:#9a9180;font-size:12px}.deleteButton{border-radius:8px;place-items:center;width:30px;height:30px;font-size:20px;line-height:1;display:grid;color:#b6ae9d!important;background:#fff!important;border:1px solid #e3dbcb!important}.previewPane{background:#f4f1ea;flex:1;min-width:0;padding:26px 30px 60px;overflow-y:auto}.previewHint{color:#a29a88;justify-content:space-between;align-items:center;max-width:840px;margin:0 auto 16px;font-size:13px;font-weight:700;display:flex}.previewHint strong{color:#bdb5a2;letter-spacing:.1em;border:1px solid #e5ddcc;border-radius:7px;padding:4px 9px;font-size:12px}.sheet{background:#fff;border:1px solid #ede7da;border-radius:8px;max-width:840px;margin:0 auto;padding:38px 42px 46px;box-shadow:0 22px 50px #281e0c1f}.sheetHeader{border-bottom:2px solid #c0452e;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:16px;display:flex}.sheetHeader h1{color:#211e1a;font-family:Noto Sans HK,sans-serif;font-size:27px;font-weight:900;line-height:1.15}.sheetHeader>div{flex-direction:column;gap:9px;display:flex}.sheetHeader>div:last-child{flex:none;align-items:flex-end}.sheetHeader>div:last-child>strong{color:#c0452e;font-family:Noto Sans HK,sans-serif;font-size:15px;font-weight:900}.sheetHeader p{color:#4b463d;align-items:baseline;gap:8px;font-size:14px;display:flex}.sheetHeader p strong{font-family:Noto Sans HK,sans-serif;font-weight:700}.sheetHeader p span{color:#211e1a;border-bottom:1.5px solid #d9d1c0;min-width:120px;padding:0 4px;font-family:Noto Sans HK,sans-serif;font-weight:700;display:inline-block}.sheetHeader>div:first-child p span{min-width:160px}.worksheetRows{flex-direction:column;display:flex}.worksheetRow{break-inside:avoid;page-break-inside:avoid;border-bottom:1px solid #f1ebde;flex-direction:column;gap:11px;padding:17px 0;display:flex}.rowMeta{align-items:center;gap:12px;display:flex}.playButton{color:#c0452e;background:#fbeeea;border:1px solid #f0d5cd;border-radius:999px;flex:none;align-items:center;gap:6px;padding:5px 11px 5px 8px;font-size:12px;font-weight:800;display:flex}.playButton:hover{background:#f7ded6}.jyutping{color:#2f6e8e;font-size:15px;font-weight:700}.rowNumber{color:#c3bba8;white-space:nowrap;font-size:12px;font-weight:700}.gridCells{gap:12px;display:grid}.practiceCell{--guide-color:#efc9bd;--guide-thickness:1px;--guide-half:.5px;aspect-ratio:1;background:#fff;border:2px solid #d8b8ad;border-radius:14px;place-items:center;display:grid;position:relative;overflow:hidden}.guideLine{border-color:var(--guide-color);pointer-events:none;border-style:dashed;border-width:0;display:block;position:absolute}.guideLineVertical{top:9%;bottom:9%;left:calc(50% - var(--guide-half));border-left-width:var(--guide-thickness);width:0}.guideLineHorizontal{top:calc(50% - var(--guide-half));border-top-width:var(--guide-thickness);height:0;left:9%;right:9%}.hanzi{z-index:1;font-family:Kaiti TC,KaiTi,STKaiti,Noto Serif CJK TC,serif;font-size:clamp(36px,5.3vw,68px);line-height:1}.hanzi.solid{color:#211e1a}.hanzi.trace{color:#d4cdbf}.strokeGuide{align-items:flex-start;gap:10px;padding-top:2px;display:flex}.strokeGuide>span{color:#b3ab99;letter-spacing:.04em;white-space:nowrap;flex:none;font-family:Noto Sans HK,sans-serif;font-size:11px;font-weight:800}.strokeSequence{flex-wrap:wrap;gap:5px;min-width:0;display:flex}.strokeStepWrap{color:#a8a08e;flex-direction:column;align-items:center;gap:2px;font-size:10px;font-weight:800;display:flex}.strokeStep{background:#fff;border:1px solid #e6decf;border-radius:6px;width:29px;height:29px;display:block;overflow:hidden}.strokeSequenceFallback{color:#211e1a;font-family:Kaiti TC,KaiTi,STKaiti,Noto Serif CJK TC,serif;font-size:26px;line-height:1}.strokeSequenceLoading{background:linear-gradient(90deg,#f0eadd,#fff,#f0eadd);border-radius:4px;width:140px;height:16px}.emptyState{text-align:center;flex-direction:column;align-items:center;gap:14px;padding:60px 20px;display:flex}.emptyState div{color:#d8b5aa;background:#f6f1e7;border-radius:18px;place-items:center;width:72px;height:72px;font-family:Noto Sans HK,sans-serif;font-size:34px;font-weight:900;display:grid}.emptyState strong{color:#6b6457;font-family:Noto Sans HK,sans-serif;font-size:17px}.emptyState p{color:#a8a08e;max-width:320px;font-size:14px;line-height:1.55}.footer{border-top:1px solid #e7e0d2;justify-content:center;align-items:center;max-width:840px;margin:24px auto 0;padding:16px 4px 0;display:flex}.footerBrand{align-items:center;gap:12px;display:flex}.footerBrand img,.legalHeader img{object-fit:cover;background:#fff;border:1px solid #eae3d5;border-radius:8px}.footerBrand div{flex-direction:column;gap:2px;display:flex}.footerBrand strong{color:#2e86c8;letter-spacing:.05em;font-size:13px;font-weight:800}.footerBrand span{color:#a8a08e;font-size:12px;font-weight:600}.modalBackdrop{z-index:50;background:#211e1a80;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.animationModal,.legalModal,.contactModal{background:#fff;box-shadow:0 30px 80px #140f0566}.animationModal{border-radius:20px;flex-direction:column;align-items:center;gap:18px;width:min(420px,100%);padding:26px;display:flex}.modalHeader,.legalHeader{justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}.modalHeader>div{flex-direction:column;gap:2px;display:flex}.modalHeader span{color:#a8a08e;font-family:Noto Sans HK,sans-serif;font-size:13px;font-weight:800}.modalHeader strong{color:#2f6e8e;font-size:20px;font-weight:800}.iconButton{color:#6b6457;background:#fbfaf6;border:1px solid #eae3d5;border-radius:8px;place-items:center;width:36px;height:36px;font-size:24px;line-height:1;display:grid}.iconButton:hover{background:#f2ecdf}.animationGrid{--guide-color:#efc9bd;--guide-thickness:1px;--guide-half:.5px;background:#fff;border:2px solid #d8b8ad;border-radius:16px;width:260px;height:260px;position:relative;overflow:hidden}.animationTarget{position:absolute;inset:0}.legalModal,.contactModal{border-radius:20px;width:min(560px,100%);max-height:82vh;overflow-y:auto}.legalHeader{background:#fff;border-bottom:1px solid #f0eadd;padding:22px 24px 14px;position:sticky;top:0}.legalHeader>div{align-items:center;gap:11px;display:flex}.legalHeader strong{color:#211e1a;font-family:Noto Sans HK,sans-serif;font-size:17px;font-weight:800}.legalBody{flex-direction:column;gap:13px;padding:18px 24px 26px;display:flex}.legalBody p{color:#544e43;font-family:Noto Sans HK,sans-serif;font-size:14px;line-height:1.7}.legalBody small{color:#a8a08e;margin-top:6px;font-size:12px}.contactBody{gap:10px;padding:18px 24px 26px;display:grid}.contactBody a{color:#211e1a;background:#fcfbf7;border:1px solid #eee8db;border-radius:10px;flex-direction:column;gap:3px;padding:14px 16px;text-decoration:none;display:flex}.contactBody a:hover{background:#fbeeea;border-color:#e7c6bc}.contactBody span{color:#9a9180;letter-spacing:.04em;text-transform:uppercase;font-size:12px;font-weight:800}.contactBody strong{color:#2f6e8e;font-size:16px}.srOnly{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (max-width:1100px){.appShell{height:auto;min-height:100vh;overflow:visible}.workspace{flex-direction:column;overflow:visible}.controls{border-bottom:1px solid #eae3d5;border-right:0;flex:none}.previewPane{overflow:visible}}@media (max-width:720px){.topbar{flex-direction:column;align-items:flex-start}.topbarActions,.primaryButton,.secondaryButton{width:100%}.topbarActions{grid-template-columns:1fr 1fr auto;display:grid}.menuWrap{justify-self:end}.previewPane{padding:18px 14px 40px}.sheet{padding:24px 16px 30px}.sheetHeader{flex-direction:column}.sheetHeader>div:last-child{align-items:flex-start}.gridCells{gap:4px}.hanzi{font-size:34px}}@page{size:A4;margin:11mm}@media print{:root,body{background:#fff!important}[data-noprint]{display:none!important}.appShell,.workspace,.previewPane{background:#fff!important;height:auto!important;padding:0!important;display:block!important;overflow:visible!important}.sheet{width:auto!important;max-width:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important}.sheetHeader{padding-bottom:12px}.worksheetRow{gap:8px;padding:10px 0}.gridCells{gap:4px}.practiceCell{border-radius:0}.hanzi{font-size:50px}.strokeStep{width:24px;height:24px}.strokeStepWrap{font-size:9px}}
