:root{color-scheme:light;--paper:#fffefa;--bg:#f6f4ed;--ink:#2c3931;--muted:#83867a;--green:#365a48;--red:#be6557;--border:#e5e6dc;--serif:"Noto Serif CJK SC","Songti SC","STSong","SimSun",serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}html{min-width:320px}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button,input,textarea,a{outline-offset:4px}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--green)}a{color:inherit;text-decoration:none}button{color:inherit}svg{display:block}.app-shell{max-width:1352px;margin:0 auto;padding:0 52px}.site-header{height:104px;border-bottom:1px solid #dedfd5;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:13px;align-items:center}.brand-mark{width:42px;height:42px;display:grid;place-items:center;position:relative;background:var(--red);color:#fffaf2;border-radius:3px;transform:rotate(-3deg)}.brand-mark:before,.brand-mark:after{content:"";position:absolute;opacity:.36}.brand-mark:before{left:50%;top:4px;bottom:4px;border-left:1px dashed #ffefe3}.brand-mark:after{top:50%;left:4px;right:4px;border-top:1px dashed #ffefe3}.brand-mark span{font:29px/1 var(--serif);z-index:1}.brand-name{font-size:21px;font-weight:650;letter-spacing:2px}.brand-name small{display:block;font-size:10px;letter-spacing:2.5px;font-weight:400;color:var(--muted);margin-top:5px}.header-note{display:flex;align-items:center;gap:8px;font-size:12px;color:#808678}.live-dot{width:6px;height:6px;background:#829776;border-radius:50%}.intro{display:flex;justify-content:space-between;align-items:center;padding:43px 0 36px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2.5px;color:#8c907e;margin:0 0 15px}.intro h1{font-family:var(--serif);font-size:39px;line-height:1.45;font-weight:500;letter-spacing:1.5px;margin:0}.intro h1 span{color:var(--green)}.intro-description{font-size:13px;line-height:1.8;letter-spacing:.3px;color:#7c8174;margin:12px 0 0}.intro-stamp{border:1px solid #c58170;border-radius:2px;display:flex;flex-direction:row-reverse;gap:6px;align-items:center;padding:6px 8px;color:#b77764;transform:rotate(7deg);margin-right:15px}.intro-stamp span{font:16px/1.55 var(--serif);writing-mode:vertical-rl;letter-spacing:3px}.workspace{display:grid;grid-template-columns:346px minmax(0,1fr);align-items:start;gap:36px}.settings-panel{border:1px solid var(--border);border-radius:14px;background:rgba(255,255,252,.88);box-shadow:0 3px 8px #383d2603;overflow:hidden}.setting-section{padding:27px 26px 24px}.setting-section+.setting-section{border-top:1px solid #eeeae1}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:22px}.section-number{font:italic 15px Georgia,serif;color:#a7aa97}.section-heading h2,.preview-heading h2{margin:0;font-size:15px;font-weight:650;letter-spacing:.6px}.type-tabs{display:flex;padding:4px;background:#efefe7;border-radius:8px;gap:3px;margin-bottom:23px}.type-tab{height:47px;flex:1;border:0;border-radius:5px;background:transparent;display:flex;align-items:center;justify-content:center;gap:7px;color:#8d9083;font-size:12px;transition:background .15s,color .15s,box-shadow .15s}.type-tab:hover{color:var(--green)}.type-tab.is-active{color:var(--green);background:#fffffc;box-shadow:0 2px 5px #3b432212}.type-symbol{font:20px var(--serif)}.type-symbol.latin{font:21px Georgia,serif}.field-label-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:12px}.field-label-row>span{color:#a1a494;font-size:10px}.field-label-row label,.field-group legend{font-size:12px;font-weight:500;color:#555f4e}input[type=text],textarea{width:100%;border:1px solid #e0e3d7;border-radius:6px;background:#fffefb;color:#404c3d;transition:border-color .15s,box-shadow .15s}input[type=text]:hover,textarea:hover{border-color:#bbc4b6}input[type=text]:focus,textarea:focus{outline:0;border-color:#829b83;box-shadow:0 0 0 3px #365a4809}input[type=text]{height:39px;padding:0 12px;font-size:12px}input::placeholder,textarea::placeholder{color:#a5a896}.content-label{margin-top:20px;margin-bottom:8px}.text-button{border:0;padding:3px 0;background:none;display:flex;gap:5px;align-items:center;color:#808a75;font-size:11px}.text-button:hover{color:var(--green)}.text-button svg{width:12px;height:12px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}textarea{resize:vertical;height:104px;min-height:104px;max-height:320px;line-height:1.8;padding:10px 12px;font-family:var(--serif);font-size:20px;letter-spacing:2px}textarea[data-type=pinyin],textarea[data-type=numbers]{font-family:Georgia,var(--serif);letter-spacing:1px}.content-meta{margin-top:8px;display:flex;justify-content:space-between;gap:6px;color:#929682;font-size:10px;line-height:1.5}#item-count{white-space:nowrap;font-variant-numeric:tabular-nums}.layout-section{padding-top:25px;padding-bottom:23px}.layout-section .section-heading{margin-bottom:22px}.field-group{padding:0;margin:0;border:0;min-width:0}.field-group legend{padding:0;margin-bottom:11px}.size-options{display:flex;gap:8px}.size-options label{position:relative;flex:1}.size-options input,.color-option input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:2}.size-options label>span{height:57px;border:1px solid #e3e5da;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;transition:.15s}.size-options strong{font-size:13px;font-weight:500}.size-options small{font-size:10px;color:#929682;letter-spacing:.3px}.size-options input:checked+span{background:#eef2e9;border-color:#779079;color:var(--green)}.size-options input:checked+span small{color:#6f8066}.size-options input:focus-visible+span{outline:2px solid var(--green);outline-offset:3px}.trace-field{margin-top:24px}.trace-field .field-label-row{margin-bottom:8px}.trace-field output{background:#eef1e7;border-radius:4px;color:#597051;padding:3px 6px;font-size:10px;min-width:33px;text-align:center}input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:18px;cursor:pointer;background:transparent;margin:0;accent-color:var(--green)}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:10px;background:linear-gradient(to right,#66805d 0 var(--range-progress,60%),#e8eadf var(--range-progress,60%) 100%)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;background:#fff;border:3px solid #64805b;border-radius:50%;margin-top:-5px;box-shadow:0 1px 2px #44563115}input[type=range]::-moz-range-track{height:4px;background:#e8eadf;border-radius:10px}input[type=range]::-moz-range-progress{height:4px;background:#66805d;border-radius:10px}input[type=range]::-moz-range-thumb{width:8px;height:8px;border:3px solid #64805b;border-radius:50%;background:#fff}.range-labels{display:flex;justify-content:space-between;color:#a0a490;font-size:10px;margin-top:3px}.toggle-field{display:flex;align-items:center;justify-content:space-between;margin-top:24px;cursor:pointer}.toggle-field>span:first-child{display:flex;flex-direction:column;gap:6px}.toggle-field strong{font-size:12px;font-weight:500;color:#555f4e}.toggle-field small{font-size:10px;color:#939783}.switch{position:relative;width:32px;height:19px;flex:0 0 32px}.switch input{position:absolute;inset:0;opacity:0;z-index:2;width:100%;height:100%;margin:0;cursor:pointer}.switch-track{display:block;width:100%;height:100%;border-radius:20px;background:#dfe3d8;transition:background .2s}.switch-track:after{content:"";position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:white;box-shadow:0 1px 3px #3b432218;transition:transform .2s}.switch input:checked+.switch-track{background:#678361}.switch input:checked+.switch-track:after{transform:translateX(13px)}.switch input:focus-visible+.switch-track{outline:2px solid var(--green);outline-offset:3px}.color-field{margin-top:24px}.color-options{display:flex;gap:21px}.color-option{display:flex;position:relative;align-items:center;gap:7px;font-size:11px;color:#838876;cursor:pointer}.color-dot{display:grid;place-items:center;width:21px;height:21px;border:3px solid #fff;border-radius:50%;outline:1px solid transparent}.color-dot.terracotta{background:#be6557}.color-dot.sage{background:#5e806f}.color-dot.graphite{background:#555555}.color-dot svg{width:13px;height:13px;fill:none;stroke:white;stroke-width:1.6;opacity:0}.color-option input:checked+.color-dot{outline-color:#c4c9b9}.color-option input:checked+.color-dot svg{opacity:1}.color-option input:checked~span:last-child{color:#435840}.color-option input:focus-visible+.color-dot{outline:2px solid var(--green);outline-offset:3px}.download-area{border-top:1px solid #eeeae1;padding:22px 26px 19px;background:#fafbf5}.download-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:47px;border:1px solid var(--green);border-radius:7px;background:var(--green);color:#fffefa;font-size:13px;font-weight:550;letter-spacing:.4px;transition:background .15s,transform .15s}.download-button:hover:not(:disabled){background:#284937;transform:translateY(-1px)}.download-button:active:not(:disabled){transform:translateY(0)}.download-button:disabled{opacity:.55}.download-button>svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.button-arrow{font-size:17px;margin-left:5px;font-weight:400;color:#c4d2bd}.download-note{text-align:center;font-size:10px;color:#9b9f8b;margin:12px 0 0;line-height:1.7}.download-status:empty{display:none}.download-status{font-size:11px;line-height:1.7;color:#71816a;margin:10px 0 0;text-align:center}.download-status.is-error{color:#ac594b}.preview-section{min-width:0}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;height:42px;margin-bottom:12px}.preview-heading{display:flex;align-items:center;gap:8px}.preview-icon svg{width:18px;height:18px;stroke:#84917d;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}.preview-heading h2{font-size:13px;letter-spacing:.5px}.paper-badge{border:1px solid #d8ddcf;border-radius:3px;font-size:9px;color:#8a927c;padding:2px 5px;margin-left:2px;letter-spacing:.8px}.preview-state{display:flex;align-items:center;gap:6px;color:#939884;font-size:10px}.state-dot{width:5px;height:5px;background:#8d9e7a;border-radius:50%}.preview-state.is-error{color:#af6656}.preview-state.is-error .state-dot{background:#be6557}.preview-stage{position:relative;background:#e9ebe2;border:1px solid #e1e4d7;border-radius:12px;padding:31px 40px 36px;min-height:480px;overflow:hidden;background-image:radial-gradient(#b8bfaa45 .7px,transparent .7px);background-size:7px 7px}.paper-wrap{position:relative;width:100%;max-width:545px;margin:0 auto}.paper{aspect-ratio:210/297;background:#fff;box-shadow:0 2px 3px #39412709,0 12px 26px #37422512;overflow:hidden;width:100%;position:relative}.paper>svg{display:block;width:100%;height:100%}.paper svg{max-width:100%}.paper-placeholder{position:absolute;inset:7% 7.5%;opacity:.5}.placeholder-title{width:27%;height:3%;background:#d6d9cf;margin:1% auto 6%;border-radius:3px}.placeholder-rule{height:1px;background:#d5d9ce;width:100%;margin-bottom:9%}.placeholder-grids{height:11%;margin-top:7%;border:1px solid #d9cbc3;background-image:linear-gradient(90deg,transparent calc(100% - 1px),#d9cbc3 1px),linear-gradient(0deg,transparent calc(50% - .5px),#e8dfda calc(50% - .5px),#e8dfda calc(50% + .5px),transparent calc(50% + .5px));background-size:12.5% 100%,100% 100%}.preview-overlay{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;background:#fffefbcc;backdrop-filter:blur(2px);font-size:12px;color:#7f8b74;transition:opacity .2s}.preview-overlay[hidden]{display:none}.spinner{width:22px;height:22px;border:2px solid #dee4d5;border-top-color:#69865d;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.preview-error{position:absolute;inset:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;background:#f4f4ecd9;backdrop-filter:blur(4px)}.preview-error[hidden]{display:none}.error-symbol{width:35px;height:35px;display:grid;place-items:center;border:1px solid #cfa394;border-radius:50%;font:20px Georgia,serif;color:#b77560}.preview-error h3{font-size:15px;font-weight:500;margin:17px 0 0}.preview-error p{max-width:340px;font-size:12px;line-height:1.8;color:#828973;margin:11px 0 18px}.retry-button{border:1px solid #aebca3;border-radius:5px;padding:8px 18px;color:#5a7350;background:#fcfff6;font-size:12px}.preview-footer{display:flex;align-items:center;justify-content:space-between;padding:15px 2px 0;font-size:11px;color:#929880;gap:10px}.pagination{display:flex;align-items:center;gap:13px;font-size:11px;color:#69775c;font-variant-numeric:tabular-nums}.pagination button{padding:0;display:grid;place-items:center;width:27px;height:27px;border:1px solid #dce1d2;border-radius:5px;background:#fdfef7;color:#6a7d5e}.pagination button:disabled{opacity:.38}.pagination button:hover:not(:disabled){border-color:#809574;background:#f0f4e9}.pagination svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}#page-position{min-width:36px;text-align:center}.preview-tip{font-size:10px;color:#9a9f8a;display:flex;justify-content:center;align-items:center;gap:6px;margin:21px 0 0;line-height:1.8}.preview-tip svg{width:14px;height:14px;stroke:#a2aa94;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.site-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #dedfd5;margin-top:43px;padding:23px 0 29px;color:#9da18e}.site-footer>span{font:italic 14px var(--serif);letter-spacing:1px;white-space:nowrap}.site-footer p{font-size:10px;line-height:1.9;margin:0;text-align:right}.footer-divider{margin:0 10px;color:#c5c9b8}.mobile-break{display:none}@media(min-width:1400px){.app-shell{padding:0 64px}.workspace{grid-template-columns:352px minmax(0,1fr);gap:44px}.preview-stage{padding:33px 49px 38px}}@media(max-width:1080px){.app-shell{padding:0 32px}.workspace{grid-template-columns:312px minmax(0,1fr);gap:25px}.setting-section{padding-left:22px;padding-right:22px}.download-area{padding-left:22px;padding-right:22px}.preview-stage{padding:25px 23px 30px}.preview-tip{font-size:9px}.color-options{gap:17px}.site-footer p{max-width:440px}.footer-divider{margin:0 5px}}@media(max-width:800px){.app-shell{padding:0 24px}.site-header{height:89px}.intro{padding:31px 0 29px}.intro h1{font-size:33px}.intro-description{font-size:12px}.workspace{grid-template-columns:276px minmax(0,1fr);gap:18px}.setting-section{padding:22px 18px}.download-area{padding:20px 18px 17px}.type-tab{gap:5px;font-size:11px}.preview-stage{padding:20px 14px;min-height:340px}.preview-toolbar{flex-wrap:wrap;gap:7px;height:auto;min-height:42px}.preview-state{font-size:9px}.preview-tip{align-items:flex-start}.preview-tip svg{margin-top:2px}.preview-footer{align-items:flex-start;flex-direction:column;gap:9px}.pagination{align-self:flex-end}.color-options{gap:14px}.site-footer{margin-top:30px}.site-footer p{max-width:335px}.mobile-break{display:block}.footer-divider{display:none}}@media(max-width:660px){.app-shell{padding:0 20px}.site-header{height:82px}.brand-mark{width:36px;height:36px}.brand-mark span{font-size:25px}.brand-name{font-size:18px;letter-spacing:1.5px}.brand-name small{font-size:8px;letter-spacing:1.7px}.header-note{font-size:0;gap:0}.live-dot{width:7px;height:7px;margin-right:4px}.intro{padding:29px 0 25px}.eyebrow{font-size:8px;letter-spacing:1.8px;margin-bottom:12px}.intro h1{font-size:31px;letter-spacing:.8px}.intro-description{font-size:11px;line-height:1.9;max-width:290px;margin-top:10px}.intro-stamp{margin-right:0;padding:5px 6px;gap:3px}.intro-stamp span{font-size:13px;letter-spacing:2px}.workspace{display:flex;flex-direction:column;gap:23px}.settings-panel,.preview-section{width:100%}.settings-panel{border-radius:11px}.setting-section{padding:23px 22px}.section-heading{margin-bottom:19px}.type-tabs{margin-bottom:21px}.type-tab{height:44px;gap:9px;font-size:13px}.type-symbol{font-size:22px}.type-symbol.latin{font-size:23px}input[type=text]{font-size:14px;height:42px}textarea{min-height:99px;max-height:250px}.content-meta{font-size:11px}.field-label-row label,.field-group legend,.toggle-field strong{font-size:13px}.layout-section .section-heading{margin-bottom:20px}.trace-field{margin-top:22px}.toggle-field{margin-top:22px}.toggle-field small{font-size:11px}.color-field{margin-top:22px}.color-options{gap:30px}.color-option{font-size:12px}.download-area{padding:21px 22px 19px}.download-button{height:49px;font-size:14px}.download-note{font-size:10px}.preview-toolbar{flex-wrap:nowrap;height:34px;min-height:34px;margin-bottom:12px}.preview-heading h2{font-size:14px}.preview-state{font-size:10px}.preview-stage{padding:24px 23px 29px;min-height:0}.preview-footer{flex-direction:row;align-items:center;padding-top:13px}.pagination{align-self:auto}.preview-tip{font-size:10px;margin-top:18px;justify-content:flex-start}.site-footer{flex-direction:column;gap:12px;margin-top:28px;padding-top:23px;padding-bottom:25px;text-align:center}.site-footer p{text-align:center;font-size:9px;max-width:none}.site-footer>span{font-size:13px}}@media(max-width:370px){.app-shell{padding:0 15px}.intro h1{font-size:27px}.intro-stamp{display:none}.setting-section{padding-left:18px;padding-right:18px}.download-area{padding-left:18px;padding-right:18px}.preview-stage{padding:20px 15px}.content-meta{font-size:10px}.color-options{gap:23px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

#stroke-options{margin-bottom:22px}.stroke-toggle{margin-top:0}.stroke-help,.stroke-credits{font-size:10px;line-height:1.75;color:#838876}.stroke-help{margin:10px 0}.stroke-credits summary{cursor:pointer;color:#62775c}.stroke-credits p{margin:8px 0}.stroke-credits a{text-decoration:underline;text-underline-offset:2px}.preview-warning{font-size:12px;line-height:1.75;background:#fff4de;border:1px solid #e4cc99;border-radius:6px;padding:10px 13px;color:#7d6030}.preview-warning[hidden],#stroke-options[hidden]{display:none}

.pinyin-options{margin:12px 0;padding:12px;background:#f2f4ec;border:1px solid #dfe5d6;border-radius:6px}.pinyin-options[hidden],#pinyin-reset[hidden]{display:none}.pinyin-options label{display:block;font-size:11px;color:#62775c;margin:0 0 6px}.pinyin-options select{min-width:0;width:100%;font:12px var(--sans);color:var(--ink);background:#fffefb;border:1px solid #cdd7c6;border-radius:5px;min-height:36px;padding:5px 7px;outline-offset:3px}.pinyin-options select:focus-visible{outline:2px solid var(--green)}#pinyin-category{margin-bottom:11px}.pinyin-group-row{display:flex;gap:7px}.pinyin-group-row button{flex:none;width:34px;border:1px solid #cdd7c6;background:#fffefb;border-radius:5px}.pinyin-group-row select{flex:1}#pinyin-progress{font-size:11px;color:#365a48;line-height:1.65;margin:10px 0 5px}#pinyin-note,.pinyin-coverage{font-size:10px;line-height:1.75;color:#6f7967;margin:5px 0}.pinyin-coverage{margin-top:9px}.pinyin-coverage summary{cursor:pointer}.pinyin-coverage p{margin:7px 0}.pinyin-coverage a{text-decoration:underline;text-underline-offset:2px}

/* Four categories and an accessible, compact vector-pattern picker. */
.type-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.type-tab{min-width:0;padding-left:4px;padding-right:4px}
[hidden]{display:none!important}.pen-options{margin-top:16px}.pen-intro{font-size:11px;line-height:1.8;color:#737c6c;margin:8px 0}.pen-options select{width:100%;min-height:38px;border:1px solid #cdd7c6;border-radius:5px;background:#fffefb;color:var(--ink);font:12px var(--sans);padding:6px}.pen-navigation{display:flex;justify-content:space-between;gap:8px;margin:10px 0}.pen-navigation button{background:#f2f4ec;border:1px solid #dfe5d6;border-radius:5px;padding:7px 10px;font-size:11px;min-height:34px}.pen-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:292px;overflow-y:auto;padding:3px 4px 3px 2px;scrollbar-width:thin}.pen-card{min-width:0;min-height:68px;border:1px solid #e0e3d9;background:#fffefb;border-radius:6px;padding:6px;color:#65806e}.pen-card svg{width:100%;height:36px}.pen-card span{display:block;font-size:10px;margin-top:4px;color:#53614f}.pen-card[aria-pressed="true"]{border-color:#5e806f;background:#eaf0e6;box-shadow:inset 0 0 0 1px #5e806f}.pen-card:focus-visible,.pen-options select:focus-visible{outline:2px solid var(--green);outline-offset:1px}#pen-progress{font-size:12px;line-height:1.7;color:#365a48;margin:12px 0 4px}@media(max-width:420px){.type-tab{font-size:11px}.type-symbol{font-size:20px}.pen-gallery{max-height:250px}}

/* Local preference: keep the switch visible at narrow widths. */
/* The locale group stays right-aligned and wraps as one unit with the header. */
.site-header{height:auto;min-height:104px;padding:18px 0;gap:16px 24px;flex-wrap:wrap}
.brand{flex-shrink:0}
.header-tools{display:flex;flex-direction:column;align-items:flex-end;gap:9px;margin-left:auto;max-width:100%}
.locale-switch{display:inline-flex;gap:3px;padding:4px;border:1px solid #dce1d2;border-radius:10px;background:#eceee4}
.locale-option{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-width:44px;min-height:34px;padding:7px 12px;border:0;border-radius:6px;background:transparent;color:#68745f;font-size:12px;font-weight:500;line-height:20px;white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s;touch-action:manipulation}
.locale-option:hover{background:#f6f7ef;color:var(--green)}
.locale-option[aria-current="page"]{background:#fffefb;color:var(--green);font-weight:650;box-shadow:0 1px 4px #364c281a}
.locale-option:focus-visible{position:relative;z-index:1;outline:2px solid var(--green);outline-offset:2px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.site-header{min-height:89px}}
@media(max-width:660px){.site-header{padding:16px 0;gap:12px 16px}.header-tools .header-note{display:none}.locale-option{min-height:44px;padding:10px 12px}}
.type-tab{flex-direction:column;gap:2px;height:54px;font-size:11px}.intro h1>[data-i18n]{color:inherit}html[lang="zh-HK"],html[lang="zh-TW"]{--serif:"Noto Serif CJK TC","Songti TC","PMingLiU",serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang TC","Microsoft JhengHei",sans-serif}@media(max-width:660px){.type-tab{font-size:11px}}

/* Keep copyright visible and full source/license notices in the native disclosure. */
.site-footer{flex-wrap:wrap;color:#687064;row-gap:8px}
.site-footer>p{font-size:.75rem}
.site-footer .stroke-credits{flex:0 0 100%;width:100%;min-width:0;font-size:.8125rem;font-weight:400;line-height:1.75;color:inherit;text-align:left;overflow-wrap:anywhere}
.site-footer .stroke-credits summary{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;width:fit-content;max-width:100%;min-height:44px;padding:8px 0;list-style:none;color:inherit;font:inherit;cursor:pointer;touch-action:manipulation}
.stroke-credits summary::-webkit-details-marker{display:none}
.credits-toggle{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0}
.credits-chevron{flex:0 0 6px;width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.stroke-credits[open] .credits-chevron{transform:translateY(1px) rotate(225deg)}
.site-footer .stroke-credits p{font:inherit;max-width:none;text-align:left;margin:4px 0 8px}
.site-footer .stroke-credits a{display:inline-block;max-width:100%;min-height:24px;padding:2px 0;text-decoration:underline;text-underline-offset:2px}
.stroke-credits summary:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:2px}

/* Default physical pages, including system-font fallback through native print. */
#worksheet-print-root{display:none}
@page{size:210mm 297mm;margin:0}
@media print{
  html,body{margin:0!important;padding:0!important;background:white!important;width:210mm!important}
  body>*:not(#worksheet-print-root){display:none!important}
  #worksheet-print-root{display:block!important;width:210mm!important;margin:0!important;padding:0!important}
  .worksheet-print-page{display:block!important;width:210mm!important;height:297mm!important;margin:0!important;padding:0!important;break-after:page;page-break-after:always;overflow:hidden}
  .worksheet-print-page:last-of-type{break-after:auto;page-break-after:auto}
  .worksheet-print-page>svg{display:block!important;width:210mm!important;height:297mm!important;max-width:none!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* Crawlable guidance follows the existing generator without changing its workspace. */
.worksheet-guide{max-width:980px;margin:44px auto 0;padding:28px 0;border-top:1px solid var(--border);line-height:1.9}.worksheet-guide h2{font-size:21px;margin:24px 0 12px}.worksheet-guide h3{font-size:16px;margin:20px 0 8px}.worksheet-guide p{max-width:76ch;color:var(--muted);margin:8px 0}.worksheet-guide a{text-decoration:underline;text-underline-offset:3px}.worksheet-links{display:flex;flex-wrap:wrap;gap:12px 22px}.worksheet-links a{padding:6px 0}.breadcrumbs{font-size:12px;margin-bottom:20px}.intro h1{overflow-wrap:anywhere;font-size:clamp(27px,3.4vw,42px)}

/* English labels need natural wrapping without changing the Chinese layouts. */
html[lang="en"] .brand-name{letter-spacing:0;font-size:20px}
html[lang="en"] .brand-name small{letter-spacing:.4px}
html[lang="en"] .intro>div:first-child{min-width:0}
html[lang="en"] .intro h1{letter-spacing:0;line-height:1.25}
html[lang="en"] .intro-stamp{flex-direction:column;flex-shrink:0}
html[lang="en"] .intro-stamp span{writing-mode:horizontal-tb;letter-spacing:0;font-size:13px}
html[lang="en"] .type-tab{height:auto;min-height:62px;line-height:1.25;text-align:center}
html[lang="en"] .content-meta{flex-wrap:wrap}
html[lang="en"] .preview-toolbar{height:auto;min-height:42px;flex-wrap:wrap;gap:8px}
@media(max-width:660px){html[lang="en"] .intro-stamp{display:none}html[lang="en"] .brand{min-width:0;flex-shrink:1}html[lang="en"] .brand-mark{flex-shrink:0}html[lang="en"] .field-label-row{flex-wrap:wrap;gap:6px}html[lang="en"] .preview-footer{flex-wrap:wrap;gap:10px}}

.paper-size-field{min-width:0;margin-bottom:24px}.paper-size-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.paper-size-options label{position:relative;min-width:0;cursor:pointer}.paper-size-options input{position:absolute;width:1px;height:1px;margin:0;opacity:0}.paper-size-options label>span{display:flex;min-height:58px;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 4px;border:1px solid #e0e3d7;border-radius:6px;background:#fffefb;color:#404c3d;text-align:center}.paper-size-options strong{font-size:14px}.paper-size-options small{font-size:11px;line-height:1.4;white-space:nowrap}.paper-size-options input:checked+span{border-color:var(--green);background:#edf2e9;color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.paper-size-options input:focus-visible+span{outline:2px solid var(--green);outline-offset:3px}.paper-size-options label:hover>span{border-color:var(--green)}
@media (forced-colors:active){.paper-size-options input:checked+span{border:2px solid Highlight}.paper-size-options input:focus-visible+span{outline-color:Highlight}}

.site-footer .footer-help{flex:0 0 100%;width:100%;min-width:0;margin:0;text-align:left;font-size:.8125rem;line-height:1.75;overflow-wrap:anywhere}
.footer-help summary{cursor:pointer;min-height:44px;padding:8px 0;touch-action:manipulation}
.site-footer .footer-help p{font:inherit;text-align:left;margin:6px 0 12px}
.footer-help summary:focus-visible{outline:2px solid var(--green);outline-offset:4px}
