@font-face{font-family:"Patrick Hand";src:url("./assets/vendor/patrick-hand/PatrickHand-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}:root{--topbar-height:72px;--footer-height:62px;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#202b3e;background:#f4f6f8}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.topbar{height:72px;background:#fff;border-bottom:1px solid #e9edf2;display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:11px;font-size:18px;font-weight:800;letter-spacing:.02em}.brand small{display:block;color:#8a95a7;font-size:10px;letter-spacing:.12em;font-weight:500;margin-top:1px}.brand-mark{width:35px;height:35px;background:#122239;color:#fff;border-radius:10px;display:grid;place-items:center;font-size:23px}.top-actions,.workspace-actions{display:flex;align-items:center;gap:10px}.save-state{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.button{border:1px solid transparent;border-radius:8px;padding:10px 15px;font-size:12px;font-weight:700;background:#fff;color:#334155}.button.dark{background:#14243a;color:#fff}.button.subtle{background:#f4f6f9}.button.outline{border-color:#cbd5e1}.button:hover{filter:brightness(.95)}.app-shell{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:calc(100dvh - var(--topbar-height) - var(--footer-height))}.sidebar{background:#fff;border-right:1px solid #e9edf2;padding:24px 25px 40px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;height:calc(100dvh - var(--topbar-height) - var(--footer-height));max-height:calc(100dvh - var(--topbar-height) - var(--footer-height));position:sticky;top:var(--topbar-height)}.side-heading{display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:15px;margin-bottom:20px}.side-heading-icon{color:#99a6b5}.panel-section{border-top:1px solid #edf0f4;padding:20px 0}.section-label{color:#7c899c;font-size:10px;letter-spacing:.15em;font-weight:800;margin-bottom:18px;text-transform:uppercase}.new-tag{background:#e5f4ec;color:#25845d;padding:3px 6px;border-radius:4px;letter-spacing:0;margin-left:5px}label{display:block;font-size:12px;font-weight:700;margin:14px 0 7px}textarea,select{width:100%;border:1px solid #dce3eb;background:#fff;border-radius:8px;padding:10px;color:#253247;outline:none}textarea:focus,select:focus{border-color:#4d8ebd}textarea{resize:vertical;line-height:1.6}.hint{color:#9ba5b2;font-size:11px;line-height:1.7;margin:7px 0}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}.toggle-row strong{font-size:12px}.toggle-row small{display:block;color:#9ba5b2;font-size:10px;margin-top:3px;line-height:1.5}.toggle-row.compact{margin:0 0 10px}.toggle-row.compact label{margin:0}.toggle-row input{appearance:none;flex:none;width:31px;height:18px;background:#cbd5e1;border-radius:20px;position:relative;cursor:pointer}.toggle-row input:before{content:"";position:absolute;background:white;width:14px;height:14px;border-radius:50%;top:2px;left:2px;box-shadow:0 1px 3px #0002;transition:.2s}.toggle-row input:checked{background:#2e9c71}.toggle-row input:checked:before{left:15px}.legend{display:flex;gap:10px;align-items:center;background:#f3f8f5;border-radius:7px;padding:10px 8px;font-size:10px;color:#6d7f75}.legend span{white-space:nowrap}.dot{display:inline-block;border-radius:50%;width:7px;height:7px;margin-right:4px}.start{background:#2b9b69}.end{background:#e06757}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.two-col label{font-size:11px}output{font-weight:500;color:#8d9aab;float:right}input[type=range]{width:100%;accent-color:#273f58;height:4px;cursor:pointer}input[type=color]{width:100%;height:29px;border:1px solid #dbe3eb;border-radius:5px;background:#fff;padding:2px}.workspace{min-width:0;padding:35px 43px 50px}.workspace-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:25px}.eyebrow{font-size:10px;color:#6f8a9a;letter-spacing:.18em;font-weight:800}.workspace h1{font-size:28px;letter-spacing:-.04em;margin:7px 0 5px}.workspace-head p{color:#8e9baa;font-size:12px;margin:0}.preview-wrap{overflow:auto;padding:8px 3px 22px}.paper{width:794px;min-height:1123px;margin:auto;background:#fff;box-shadow:0 12px 48px #17314a16,0 1px 4px #17314a12;padding:68px;position:relative}.paper-header{display:flex;justify-content:space-between;align-items:center;color:#8c98a9;font-size:10px;border-bottom:1px solid #d9e0e7;padding-bottom:13px;margin-bottom:33px}.paper-header span:first-child{color:#26384f;font-size:16px;font-weight:800;letter-spacing:.1em}.practice-group{margin-bottom:var(--row-gap,4mm);break-inside:avoid}.practice-label{font-size:10px;color:#a0aab5;margin:0 0 7px}.practice-line{display:flex;flex-wrap:nowrap}.cell{width:var(--cell-size,14mm);height:var(--cell-size,14mm);flex:none;position:relative;border:1px solid var(--line-color,#d4dce5);margin-left:-1px}.cell:first-child{margin-left:0}.cell:before,.cell:after{content:"";position:absolute;pointer-events:none;z-index:1}.grid-tian:before,.grid-mi:before{top:0;bottom:0;left:50%;border-left:1px dashed var(--line-color,#d4dce5)}.grid-tian:after,.grid-mi:after{left:0;right:0;top:50%;border-top:1px dashed var(--line-color,#d4dce5)}.grid-mi{background:linear-gradient(45deg,transparent calc(50% - .5px),var(--line-color) 50%,transparent calc(50% + .5px)),linear-gradient(-45deg,transparent calc(50% - .5px),var(--line-color) 50%,transparent calc(50% + .5px))}.grid-none{border-color:transparent;border-bottom:1px solid var(--line-color)}.grid-none:before,.grid-none:after{display:none}.glyph,.glyph-svg{position:absolute;inset:0;width:100%;height:100%}.glyph{display:flex;align-items:center;justify-content:center;font-size:calc(var(--cell-size,14mm) * var(--font-scale,.72));line-height:1;transform:translateY(var(--vertical-shift,0%));font-family:var(--hanzi-font,KaiTi,STKaiti,serif);font-weight:var(--hanzi-weight,normal);color:var(--glyph-color,#202d41);z-index:2}.glyph-svg{z-index:2;overflow:visible}.glyph-svg text{font-size:100px;font-weight:800;paint-order:stroke;stroke:#fff;stroke-width:13px}.pinyin{font-size:9px;text-align:center;height:14px;color:#68788b}.cell.pinyin-cell{margin-top:14px}.cell.pinyin-cell .pinyin{position:absolute;bottom:100%;width:100%;left:0}.cell.demo{cursor:pointer}.cell.demo:hover{outline:2px solid #9bc8b2;outline-offset:2px}.cell.trace .glyph{color:var(--trace-color,#c7cbd4)}.cell.blank .glyph{display:none}.paper-footer{position:absolute;bottom:34px;left:68px;right:68px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e4e9ef;padding-top:10px;color:#9ca9b5;font-size:9px}.inspector{background:#fff;border:1px solid #e8edf2;border-radius:11px;padding:22px 26px;margin:19px auto 0;max-width:794px}.inspector-head{display:flex;justify-content:space-between;align-items:center}.inspector h2{font-size:17px;margin:5px 0}.inspector-help{font-size:11px;color:#9ba7b6}.inspector-content{display:flex;align-items:center;gap:27px;margin-top:10px}.stroke-stage{width:174px;height:174px;flex:none;background:#f8fafb;border:1px solid #e6ebef;background-image:linear-gradient(90deg,transparent calc(50% - .5px),#e7ebf0 50%,transparent calc(50% + .5px)),linear-gradient(transparent calc(50% - .5px),#e7ebf0 50%,transparent calc(50% + .5px));border-radius:8px}.stroke-stage svg{width:100%;height:100%}.stroke-detail{flex:1;font-size:12px;color:#617083}.stroke-navigation{display:flex;gap:15px;align-items:center;margin-top:20px}.stroke-navigation strong{white-space:nowrap;color:#26364a}.source-note{text-align:center;font-size:10px;color:#a3acb8;margin:17px auto}.source-note a{color:#768ca0}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;max-height:none}.workspace{padding:26px 14px}.topbar{padding:0 14px}.save-state{display:none}.paper{margin:0}.workspace-head{display:block}.workspace-actions{margin-top:18px}}@media print{@page{size:A4;margin:0}body{background:white}.topbar,.sidebar,.workspace-head,.inspector,.source-note{display:none!important}.app-shell{display:block}.workspace{padding:0}.preview-wrap{padding:0;overflow:visible}.paper{width:210mm;min-height:297mm;box-shadow:none;margin:0;padding:18mm}.paper-footer{left:18mm;right:18mm;bottom:12mm}.practice-group{break-inside:avoid}}
 .stroke-strip{display:flex;gap:3px;margin:0 0 7px}.stroke-mini{width:min(10mm,calc(var(--cell-size,14mm) * .7));height:min(10mm,calc(var(--cell-size,14mm) * .7));position:relative;border:1px solid #e5ebf0}.stroke-mini svg{width:100%;height:100%}.extra-blank{margin:3px 0 8px}
.stroke-mini{width:var(--stroke-order-size,12mm);height:var(--stroke-order-size,12mm);flex:none}
.compact-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.compact-switches .toggle-row{margin:0;gap:4px}
.compact-switches .toggle-row label{font-size:10px;white-space:nowrap}
.paper{height:1123px;min-height:1123px;padding:var(--page-margin,68px);overflow:hidden}
.paper+.paper{margin-top:24px}
.whole-practice-heading{font-size:9px;color:#8492a3;margin:7px 0 5px}

/* 12 mm / 0 mm row-gap worksheets: keep the writing cells at their chosen
   size, and recover vertical space from the repeated teaching annotations. */
.paper.compact-eight{padding-top:min(var(--page-margin),8mm)}
.paper .paper-header{border-bottom:0;padding-bottom:0;margin-bottom:0}
.paper.compact-eight .practice-group{margin-bottom:0;line-height:1.15}
.worksheet > .character-group:not(:last-child){margin-bottom:var(--row-gap,4mm)}
.paper .worksheet{padding-top:var(--row-gap,4mm)}
.toggle-row input:disabled{opacity:.45;cursor:not-allowed}
.toggle-row[hidden],#strokeOrderSizeOption[hidden]{display:none}
.stroke-strip{flex-wrap:wrap;max-width:100%}
.preset-controls{display:flex;gap:5px;margin:-8px 0 16px}.preset-controls button{flex:1;min-width:0;border:1px solid #dce3eb;border-radius:6px;background:#f8fafc;padding:7px 3px;color:#31445a;font-size:10px;cursor:pointer}.preset-controls button:hover{border-color:#78a5c0;background:#eef6fa}
.save-config-button{width:100%;border:1px solid #b9d8c9;border-radius:7px;background:#edf8f1;color:#176748;padding:9px;font-size:12px;font-weight:700}.save-config-button:hover{background:#e2f3e9}.save-config-status{margin:6px 0 16px;color:#8190a0;font-size:10px;line-height:1.5}
.config-bar{min-width:0;background:#fff;border-left:1px solid #e8edf2;padding:20px 16px;align-self:start;position:sticky;top:var(--topbar-height);height:calc(100dvh - var(--topbar-height) - var(--footer-height));max-height:calc(100dvh - var(--topbar-height) - var(--footer-height));overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.config-section+.config-section{border-top:1px solid #e8edf2;padding-top:18px;margin-top:20px}.config-heading{margin-bottom:10px;font-size:13px}.config-bar .preset-controls{display:grid;grid-template-columns:1fr;margin:0;gap:8px}.config-bar .preset-controls button{padding:10px 8px;font-size:12px}.config-bar .reset-config-button{width:100%;margin-top:10px}.config-bar .save-config-status{margin:6px 0 0}
.config-bar .curriculum-picker{border:0;padding:0;margin:0}.curriculum-note{font-size:10px;line-height:1.4;color:#8795a6;margin:0 0 10px}.config-bar .curriculum-controls{display:grid;grid-template-columns:42px minmax(0,1fr);gap:6px;margin:0}.config-bar .curriculum-controls label{align-self:center}.config-bar .curriculum-controls select{width:100%;min-width:0}.config-bar .curriculum-actions{flex-wrap:wrap}.config-bar .curriculum-actions span{flex-basis:100%;margin:0}.config-bar .curriculum-actions .button{flex:1}
.config-bar form label{font-size:11px;margin:0 0 5px}.config-bar form input{width:100%;min-width:0;margin-bottom:8px;padding:8px;font-size:12px}.saved-configs{display:grid;gap:7px;margin-top:12px}.saved-config-row{display:flex;gap:5px;min-width:0}.saved-config-row button{border:1px solid #dce3eb;border-radius:6px;background:#f8fafc;color:#31445a;padding:7px;font-size:11px}.saved-config-apply{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}.saved-config-row .saved-config-remove{flex:none;color:#8a5360}
.advanced-settings{margin-top:14px;border-top:1px solid #e9edf2;padding-top:12px}.advanced-settings summary{cursor:pointer;color:#52647b;font-size:11px;font-weight:700}.advanced-settings :disabled{opacity:.5;cursor:not-allowed}
.preview-summary{max-width:794px;margin:0 auto 5px;color:#718197;font-size:11px;text-align:right}
@media print{.preview-summary{display:none!important}}
.paper.compact-eight .practice-label{display:inline-flex;align-items:center;vertical-align:middle;margin:0 8px 3px 0;min-height:min(10mm,calc(var(--cell-size,14mm) * .7))}
.paper.compact-eight .stroke-strip{display:inline-flex;vertical-align:middle;margin:0 0 3px}
.paper.compact-eight .whole-practice-heading{margin:1px 0 2px;line-height:1.1}
.continued-line{margin-top:3px}
.progressive-step-number{position:absolute;z-index:3;right:2px;top:2px;padding:1px 2px;border-radius:2px;background:#fff;color:#64758a;font-size:8px;line-height:1}
.progressive-cell .glyph-svg,.practice-glyph-cell .glyph-svg{transform:translateY(var(--vertical-shift,0%)) scale(calc(var(--font-scale,.72) * 1.08));transform-origin:center}
.positioned-stroke-cell .glyph-svg{transform:translateY(var(--vertical-shift,0%)) scale(calc(var(--font-scale,.72) * 1.08));transform-origin:center}
.focus-stroke-row{margin:2px 0 4px}
.focus-stroke-controls[hidden]{display:none}
.focus-stroke-title{font-size:11px;font-weight:700;margin:2px 0 6px}
.focus-stroke-hint{font-size:10px;color:#8a97a8;margin:0 0 8px;line-height:1.4}
.focus-char-choices{display:flex;flex-direction:column;gap:6px;max-height:330px;margin:4px -5px 8px 0;padding-right:5px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.focus-char-item{flex:0 0 auto;min-width:0;border:1px solid #e1e7ee;border-radius:8px;background:#fff;overflow:hidden}
.focus-char-item.has-selection{border-color:#83c9aa;background:#f8fcfa}
.focus-char-summary{display:grid;grid-template-columns:36px minmax(0,1fr) 10px;align-items:center;gap:7px;width:100%;padding:6px 8px;border:0;background:transparent;color:#37465b;text-align:left}
.focus-char-summary:hover{background:#f5f8fa}
.focus-char-summary:disabled{cursor:not-allowed;opacity:.55}
.focus-char-glyph{display:grid;place-items:center;width:32px;height:32px;border-radius:6px;background:#f3f6f9;font:19px KaiTi,STKaiti,serif}
.has-selection .focus-char-glyph{background:#e7f6ed;color:#176748}
.focus-char-meta{min-width:0;color:#77879a;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.focus-char-chevron{width:7px;height:7px;border-right:1.5px solid #8291a3;border-bottom:1.5px solid #8291a3;transform:rotate(45deg) translate(-2px,-2px);transition:transform .16s}
.focus-char-summary[aria-expanded="true"] .focus-char-chevron{transform:rotate(225deg) translate(-1px,-1px)}
.focus-char-panel{padding:7px 8px 9px;border-top:1px solid #edf1f4;background:#fbfcfd}
.focus-char-panel[hidden]{display:none}
.focus-char-actions{display:flex;justify-content:flex-end;gap:5px;margin-bottom:6px}
.focus-char-actions button{padding:3px 7px;border:0;border-radius:5px;background:#eef3f6;color:#617387;font-size:9px}
.focus-char-actions button:disabled{opacity:.45;cursor:not-allowed}
.focus-stroke-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(28px,1fr));gap:4px;min-width:0}
.focus-stroke-choice{width:100%;height:27px;padding:0;border:1px solid #d9e1e9;border-radius:5px;background:#fff;color:#596b80;font-size:11px}
.focus-stroke-choice[aria-pressed="true"]{border-color:#329b70;background:#eaf6ef;color:#176748;font-weight:700}
.cell.demo{cursor:default}
.cell.demo:hover{outline:none}
@media print{.paper{height:297mm;min-height:297mm;padding:var(--page-margin,18mm);overflow:hidden}.paper+.paper{margin-top:0}.paper:not(:last-child){break-after:page;page-break-after:always}}
@media print{
  .practice-line .glyph{
    color:var(--trace-color,#c7cbd4)!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
    forced-color-adjust:none;
  }
  .practice-line .progressive-cell path,
  .practice-line .practice-glyph-cell g path,
  .practice-line .positioned-stroke-cell g path{
    fill:var(--trace-color,#c7cbd4)!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
    forced-color-adjust:none;
  }
}
.editor-bar{max-width:794px;margin:0 auto 24px;background:#fff;border:1px solid #e8edf2;border-radius:10px;padding:14px 18px;box-shadow:0 2px 10px #17314a08}
.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.editor-heading label{margin:0;font-size:13px;font-weight:800}
.editor-heading span{font-size:11px;color:#9ba5b2}
.editor-bar textarea{min-height:61px;resize:vertical;background:#fafbfd}
.curriculum-picker{border-bottom:1px solid #e8edf2;padding-bottom:13px;margin-bottom:12px}
.curriculum-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.curriculum-title span,.curriculum-actions span{font-size:10px;color:#8795a6}
.curriculum-controls{display:flex;align-items:center;gap:8px;margin-top:9px}
.curriculum-controls label{margin:0;white-space:nowrap;font-size:10px;color:#68788b}
.curriculum-controls select{height:31px;padding:4px 8px;font-size:11px}
#curriculumTerm{width:88px;flex:none}
#curriculumLesson{min-width:0;flex:1}
.curriculum-characters{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.curriculum-character{width:30px;height:30px;padding:0;border:1px solid #d9e1e9;border-radius:6px;background:#fff;color:#37465b;font-size:17px;font-family:KaiTi,STKaiti,serif}
.curriculum-character[aria-pressed="true"]{border-color:#329b70;background:#eaf6ef;color:#176748}
.curriculum-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:9px}
.curriculum-actions span{margin-right:auto}
.curriculum-actions .button{padding:6px 9px;font-size:10px}
input:disabled,select:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:900px){.editor-heading{align-items:flex-start;flex-direction:column;gap:4px}}
@media print{.editor-bar,.config-bar{display:none!important}}
@media (min-width:901px){
  .app-shell{grid-template-columns:300px minmax(0,1fr) 280px}
  .sidebar{padding:10px 18px 10px}
  .side-heading{margin-bottom:8px;font-size:14px}
  .panel-section{padding:6px 0}
  .section-label{margin-bottom:8px;font-size:9px}
  .sidebar label{font-size:11px;margin:7px 0 4px}
  .sidebar textarea{min-height:53px;padding:7px 9px}
  .sidebar select{height:31px;padding:5px 8px;font-size:11px}
  .sidebar .hint{font-size:10px;line-height:1.35;margin:4px 0 0}
  .sidebar .toggle-row{margin-bottom:7px}
  .sidebar .toggle-row strong{font-size:11px}
  .sidebar .toggle-row small{font-size:9px;margin-top:1px}
  .sidebar .compact-switches .toggle-row{margin:2px 0 4px}
  .sidebar .compact-switches label{margin:0;font-size:10px}
  .sidebar .legend{padding:6px 8px;font-size:9px}
  .sidebar .two-col{gap:10px}
  .sidebar input[type=range]{margin:0;height:14px}
  .sidebar input[type=color]{height:25px}
}
@media(max-width:900px){.config-bar{position:static;height:auto;max-height:none;border-left:0;border-top:1px solid #e8edf2}.config-bar .preset-controls{grid-template-columns:repeat(3,minmax(0,1fr))}}
.topbar .worksheet-type{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
.topbar .worksheet-type label{font-size:11px;color:#68788b;margin:0;white-space:nowrap}
.topbar .worksheet-type select{width:auto;min-width:85px;max-width:130px;font-size:11px;padding:7px 8px}
.topbar #worksheetType[hidden]{display:none}
.type-buttons{display:flex;align-items:center;gap:8px;padding:0;background:transparent}
.type-buttons button{display:flex;align-items:center;gap:10px;border:0;border-radius:12px;background:transparent;color:#647791;font-size:15px;font-weight:700;padding:13px 18px;white-space:nowrap;transition:background-color .18s,color .18s}
.type-buttons button[aria-pressed="true"]{background:#f0f3f7;color:#263a54;box-shadow:none}
.type-buttons button:hover{background:#f5f7fa;color:#344a65}
.type-buttons button:focus-visible{outline:2px solid #338dbe;outline-offset:2px}
.topbar .brand,.topbar .top-actions{flex:none}
@media(max-width:1000px){.topbar{height:auto;min-height:72px;flex-wrap:wrap;gap:10px;padding:10px 14px}.topbar .worksheet-type{order:3;width:100%;justify-content:flex-start}.sidebar,.config-bar{top:var(--topbar-height);height:calc(100dvh - var(--topbar-height) - var(--footer-height));max-height:calc(100dvh - var(--topbar-height) - var(--footer-height))}}
@media(max-width:600px){.topbar .worksheet-type{flex-wrap:wrap}.topbar .worksheet-type label{display:none}.topbar .worksheet-type select{flex:1}.topbar .top-actions .button{padding:8px}.type-buttons{width:100%;gap:3px}.type-buttons button{flex:1;justify-content:center;gap:6px;padding:10px 7px;font-size:12px}}
.curriculum-picker[hidden]{display:none}
.config-bar .curriculum-picker[hidden]+.config-section{border-top:0;padding-top:0;margin-top:0}
.panel-section[hidden]{display:none}
#letterCaseControl[hidden]{display:none}
.letter-mode-controls{display:flex;align-items:end;gap:14px;margin:-2px 0 14px;padding-bottom:13px;border-bottom:1px solid #edf1f5}
.letter-mode-controls>div{display:flex;align-items:center;gap:7px}
.letter-mode-controls label{margin:0;color:#68788b;font-size:11px;white-space:nowrap}
.letter-mode-controls select{width:auto;min-width:130px;padding:7px 9px;font-size:12px}
@media(max-width:600px){.letter-mode-controls{align-items:stretch;flex-direction:column;gap:8px}.letter-mode-controls>div{justify-content:space-between}.letter-mode-controls select{width:70%}}
.letter-page-hero{display:flex;align-items:center;gap:18px;margin:8px 0 13px;color:#27384d}
.letter-page-exemplar{display:grid;place-items:center;width:20mm;height:20mm;border:1px solid var(--line-color);font:var(--hanzi-weight) calc(20mm * var(--font-scale,.72)) var(--hanzi-font);line-height:1}
.letter-page-hero strong{display:block;font-size:14px}.letter-page-hero small{display:block;margin-top:5px;font-size:10px;color:#8a97a8}
.letter-page-row{margin-bottom:var(--row-gap,4mm);break-inside:avoid}
.letter-page-row .practice-label{height:12px;margin:0 0 2px;font-size:9px}
.letter-picker{display:flex;align-items:center;gap:10px;margin:0 0 9px}
.letter-picker label{margin:0;white-space:nowrap;font-size:11px;color:#68788b}
.letter-picker select{width:120px;padding:5px 8px;font-size:12px}
.letter-picker[hidden]{display:none}
.letter-order-guide{margin:0 0 12px}
.letter-order-title{font-size:10px;font-weight:700;color:#607387;margin-bottom:7px}
.letter-order-steps{display:flex;gap:8px}
.letter-order-step{width:27mm;max-width:calc((100% - 32px)/5);height:32mm;border:1px solid #e1e8ef;border-radius:7px;background:#fbfcfd;text-align:center;flex:none}
.letter-order-step>span{display:block;padding-top:4px;font-size:9px;color:#607387}
.letter-order-step svg{width:100%;height:calc(100% - 17px);overflow:visible}
.letter-prior-stroke,.letter-active-stroke{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:4}
.letter-prior-stroke{stroke:#c4ced9}.letter-active-stroke{stroke:#2589be}
.letter-direction-cue{fill:none;stroke:#2589be;stroke-width:2.5;stroke-linecap:round}
.letter-start-dot{fill:#299968;stroke:white;stroke-width:1.5}
.compact-order-guide{display:flex;align-items:center;gap:9px;margin:1px 0 6px;min-height:16mm}
.compact-order-guide .letter-order-title{width:78px;flex:none;margin:0;font-size:9px}
.compact-order-guide .letter-order-steps{gap:4px}
.compact-order-guide .letter-order-step{width:15mm;max-width:none;height:16mm;border-radius:4px}
.compact-order-guide .letter-order-step>span{font-size:8px;padding-top:1px}
.compact-order-guide .letter-order-step svg{height:calc(100% - 12px)}
@media print{.letter-order-guide,.letter-order-guide *{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.cell.grid-english{margin-left:0;border:0;background:
  linear-gradient(to bottom,transparent calc(9.09% - .5px),var(--line-color) 9.09%,transparent calc(9.09% + .5px)),
  linear-gradient(to bottom,transparent calc(36.36% - .5px),var(--line-color) 36.36%,transparent calc(36.36% + .5px)),
  linear-gradient(to bottom,transparent calc(63.64% - .5px),var(--line-color) 63.64%,transparent calc(63.64% + .5px)),
  linear-gradient(to bottom,transparent calc(90.91% - .5px),var(--line-color) 90.91%,transparent calc(90.91% + .5px))}
.cell.grid-english:after{display:block;left:auto;right:0;top:9.09%;bottom:9.09%;border:0;border-right:1px solid var(--line-color)}
.cell.grid-english:first-child:before{display:block;left:0;top:9.09%;bottom:9.09%;border:0;border-left:1px solid var(--line-color)}
.latin-practice-svg{position:absolute;inset:0;width:100%;height:100%;z-index:2;overflow:visible}
.latin-hero-svg{width:100%;height:100%}
.latin-practice-svg text,.latin-hero-svg text{fill:currentColor}
.letter-page-exemplar{padding:2mm}
@media print{.cell.grid-english,.latin-practice-svg,.latin-hero-svg{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.site-guide{max-width:1180px;margin:0 auto;padding:54px 32px 74px}.site-guide-intro{max-width:760px;margin-bottom:24px}.site-guide-intro>span{display:inline-block;margin-bottom:10px;padding:5px 10px;border-radius:20px;background:#e5f4ec;color:#19704e;font-size:11px;font-weight:800}.site-guide h2{margin:0 0 9px;color:#26384f;font-size:24px}.site-guide p{margin:0;color:#68788b;line-height:1.7}.site-guide-features{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:30px}.site-guide-features article{padding:18px;border:1px solid #e0e7ed;border-radius:12px;background:#fff}.site-guide-features b{display:block;margin-bottom:6px;color:#2a3c53}.site-guide-features p{font-size:12px}.site-faq{padding-top:24px;border-top:1px solid #dde5eb}.site-faq h2{font-size:18px}.site-faq details{border-bottom:1px solid #e1e7ec}.site-faq summary{cursor:pointer;padding:14px 0;color:#34495f;font-weight:700}.site-faq details p{padding:0 0 15px;font-size:12px}@media(max-width:700px){.site-guide{padding:36px 18px 125px}.site-guide h2{font-size:20px}.site-guide-features{grid-template-columns:1fr}}
body{padding-bottom:var(--footer-height)}.site-footer{position:fixed;z-index:20;left:0;right:0;bottom:0;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 30px;min-height:62px;padding:12px 32px;background:#fff;border-top:1px solid #e4e9ef;box-shadow:0 -4px 18px #17314a0a;color:#7b8899;font-size:11px;line-height:1.5}
.site-footer>div{display:flex;align-items:center;gap:12px;white-space:nowrap}.site-footer strong{color:#293b52;font-size:12px}.site-footer nav{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px 20px}.site-footer nav button{border:0;padding:2px 0;background:transparent;color:#5f748c;font-size:11px}.site-footer nav button:hover{text-decoration:underline;color:#263a54}.site-footer p{grid-column:1/-1;margin:0;color:#98a3b1}
.support-button{display:flex;align-items:center;gap:5px;border-color:#c9e1d5;background:#f0f8f4;color:#19704e}.support-button span{font-size:16px;line-height:1}.support-button:hover{background:#e5f3eb}
.feedback-button{border-color:#dbe3eb;background:#fff;color:#51667e}.feedback-button:hover{background:#f4f7f9}
.repo-button{display:flex;align-items:center;gap:5px;border-color:#d8e0e8;background:#f7f9fb;color:#34495f;text-decoration:none}.repo-button:hover{background:#edf2f6}.repo-button span{font-size:11px;color:#738398}
.info-dialog{width:min(760px,calc(100vw - 32px));max-height:min(82vh,800px);padding:0;overflow:hidden;border:0;border-radius:16px;background:#fff;box-shadow:0 24px 80px #10243a40;color:#26364a}.info-dialog::backdrop{background:#14243a66;backdrop-filter:blur(3px)}.info-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#fff;border-bottom:1px solid #e7ecf1}.info-dialog-head h2{margin:0;font-size:19px}.info-dialog-head button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:9px;background:#f2f5f7;color:#607087;font-size:22px;line-height:1}.info-dialog-head button:hover{background:#e8edf2;color:#263a54}.info-dialog-head button:focus-visible{outline:2px solid #4d8ebd;outline-offset:2px}.info-dialog-body{max-height:calc(min(82vh,800px) - 71px);padding:24px;overflow:auto;font-size:13px;line-height:1.7}.info-dialog-body h3{margin:0;color:#26364a;font-size:14px}.info-dialog-body p{margin:0}.info-lead{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px;padding:15px 17px;border-radius:10px;background:#f3f7f9;color:#4f6074}.info-badge{flex:none;padding:3px 8px;border-radius:20px;background:#def2e7;color:#176748;font-size:10px;font-weight:800}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.info-card,.dependency-card{border:1px solid #e2e8ee;border-radius:10px;background:#fff;padding:15px}.info-card ul{margin:9px 0 0;padding-left:18px;color:#5f6f82}.info-card li+li{margin-top:4px}.info-card p{margin-top:9px;color:#8491a0;font-size:11px}.info-note{margin-top:14px;padding:13px 15px;border-left:3px solid #6e9db8;border-radius:4px 9px 9px 4px;background:#f7f9fb}.info-note strong{display:block;margin-bottom:3px}.info-note p{color:#647488}.dependency-list{display:grid;gap:9px}.dependency-card{display:grid;grid-template-columns:1fr auto;align-items:start;gap:5px 12px}.dependency-card div span{color:#8290a0;font-size:11px}.dependency-card b{padding:3px 8px;border-radius:20px;background:#edf3f6;color:#567086;font-size:10px}.dependency-card p{grid-column:1/-1;color:#647488}.contribution-steps{list-style:none;counter-reset:steps;margin:0;padding:0;display:grid;gap:9px}.contribution-steps li{counter-increment:steps;display:grid;grid-template-columns:30px 105px 1fr;align-items:center;gap:8px;padding:12px 14px;border:1px solid #e2e8ee;border-radius:9px}.contribution-steps li:before{content:counter(steps);display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e7f4ed;color:#176748;font-weight:800}.contribution-steps span{color:#647488}.license-details{margin-top:14px;border:1px solid #e2e8ee;border-radius:9px;overflow:hidden}.license-details summary{cursor:pointer;padding:12px 15px;background:#fafbfd;color:#52657a;font-weight:700}.license-details[open] summary{border-bottom:1px solid #e2e8ee}.license-text{max-height:360px;margin:0;padding:16px;overflow:auto;background:#f7f9fb;color:#35465a;white-space:pre-wrap;font:11px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace}
.support-hero{display:flex;align-items:center;gap:16px;padding:19px;border-radius:12px;background:linear-gradient(135deg,#edf8f2,#f7fbf9)}.support-heart{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;background:#dcefe5;color:#23805b;font-size:29px}.support-hero h3{font-size:17px}.support-hero p{margin-top:4px;color:#607466}.support-use{margin-top:18px}.support-use>div{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:9px}.support-use span{padding:10px 7px;border:1px solid #dfe8e3;border-radius:8px;background:#fbfdfc;color:#52695c;text-align:center;font-size:11px}.support-channel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;padding:15px 17px;border:1px solid #e0e7ec;border-radius:10px}.support-channel p{margin-top:3px;color:#7a8999}.coming-soon{flex:none;padding:5px 10px;border-radius:20px;background:#edf1f4;color:#718092;font-size:10px;font-weight:700}.support-footnote{margin-top:13px!important;color:#929eaa;font-size:11px;text-align:center}
.support-options{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:12px;margin-top:18px}.support-qr-section,.support-global-section{min-width:0;padding:15px;border:1px solid #dfe8e3;border-radius:12px;background:#fbfdfc}.support-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.support-section-title p{margin-top:2px;color:#7b8b81;font-size:11px}.wechat-label{flex:none;padding:4px 9px;border-radius:20px;background:#e4f5eb;color:#16774e;font-size:10px;font-weight:800}.support-qr{display:block;width:min(100%,230px);height:auto;margin:auto;border-radius:10px}.support-check{margin-top:9px!important;color:#85928b;font-size:10px;text-align:center}.support-global-section{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#fffaf7;border-color:#f0ddd4}.support-globe{display:grid;place-items:center;width:44px;height:44px;margin-bottom:9px;border-radius:50%;background:#ffebe1;color:#df5d2d;font-size:25px}.support-global-section p{max-width:220px;margin:5px 0 15px;color:#7a6b65}.kofi-button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:11px 14px;border-radius:9px;background:#ff5e3a;color:#fff!important;text-decoration:none;font-weight:800}.kofi-button:hover{background:#e94f2c}.support-global-section small{margin-top:7px;color:#9c8d87;font-size:10px}
.feedback-topics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}.feedback-topics span{padding:10px 6px;border:1px solid #dfe7ed;border-radius:8px;background:#f8fafb;color:#52667c;text-align:center;font-size:11px;font-weight:700}.feedback-guide{padding:16px;border:1px solid #e1e7ed;border-radius:10px}.feedback-guide ul{margin:9px 0 0;padding-left:20px;color:#637488}.feedback-guide li+li{margin-top:4px}.feedback-email{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:13px 16px;border-radius:9px;background:#253b55;color:#fff!important;text-decoration:none;font-weight:800}.feedback-email:hover{background:#1b2f46}.feedback-email span{font-size:11px;font-weight:500;opacity:.8}.feedback-privacy{margin-top:10px!important;color:#929eaa;font-size:11px;text-align:center}
.info-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.info-actions .feedback-email,.info-actions .info-action{margin-top:0}.info-action{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:12px 15px;border:1px solid #d9e3ea;border-radius:9px;background:#f8fafb;color:#405a73!important;text-decoration:none;font-weight:800}.info-action:hover{background:#eef3f6}.info-action span{font-size:11px;font-weight:500;color:#75879a}
@media(max-width:700px){.site-footer{display:block;min-height:105px;padding:13px 16px}.site-footer>div{justify-content:space-between}.site-footer nav{justify-content:flex-start;margin:8px 0 0;gap:5px 15px}.info-dialog-body{padding:17px}.info-grid{grid-template-columns:1fr}.contribution-steps li{grid-template-columns:28px 1fr}.contribution-steps span{grid-column:2}.info-lead{display:block}.info-badge{display:inline-block;margin-bottom:8px}.support-use>div{grid-template-columns:1fr 1fr}.support-options{grid-template-columns:1fr}.support-channel{align-items:flex-start}.feedback-topics{grid-template-columns:1fr 1fr}.info-actions{grid-template-columns:1fr}.feedback-email{display:block;text-align:center}.feedback-email span{display:block;margin-top:3px}.top-actions{gap:6px}.feedback-button,.support-button{padding:8px 10px}}
@media print{body{padding-bottom:0}.site-footer,.site-guide,.info-dialog{display:none!important}}
