.text-handwrite{--text-ink:#1c2636;--text-muted:#5f6a7a;--text-blue:#3155b7;--text-line:#dce2ea;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;min-height:100dvh;color:var(--text-ink);background:#f5f7fa;padding-bottom:110px;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;font-size:16px}.text-handwrite *{box-sizing:border-box}.text-handwrite h1,.text-handwrite h2,.text-handwrite h3,.text-handwrite p{margin:0}.text-handwrite h1{letter-spacing:-.025em;font-size:20px;font-weight:650;line-height:1.4}.text-handwrite h2{margin-bottom:8px;font-size:20px;font-weight:650;line-height:1.45}.text-handwrite h3{margin-bottom:8px;font-size:16px;font-weight:650;line-height:1.5}.text-handwrite p{line-height:1.65}.text-handwrite button,.text-handwrite input,.text-handwrite textarea,.text-handwrite select{font:inherit}.text-handwrite button{border:1px solid var(--text-line);min-height:44px;color:var(--text-ink);cursor:pointer;touch-action:manipulation;background:#fff;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:10px 14px;transition:background .16s,color .16s;display:inline-flex}.text-handwrite button:hover{background:#edf2fa}.text-handwrite button:disabled{opacity:.5;cursor:default}:is(.text-handwrite button:focus-visible,.text-handwrite input:focus-visible,.text-handwrite select:focus-visible,.text-handwrite textarea:focus-visible,.text-handwrite a:focus-visible,.text-handwrite summary:focus-visible){outline-offset:3px;outline:3px solid #3155b780}.text-handwrite ::selection{color:#3155b7;background:#d9e6ff}.text-handwrite input,.text-handwrite textarea{caret-color:var(--text-blue)}.text-handwrite a{color:var(--text-blue);text-underline-offset:4px}.text-handwrite .text-primary{background:var(--text-blue);border-color:var(--text-blue);color:#fff;font-weight:600}.text-handwrite .text-primary:hover{background:#3155b7}.text-handwrite .text-secondary{background:#fff}.text-handwrite .text-subtle{color:var(--text-muted);background:0 0;border-color:#0000}.text-full{width:100%}.text-muted{color:var(--text-muted);font-size:14px}.text-header{border-bottom:1px solid var(--text-line);background:#fff;justify-content:space-between;align-items:center;gap:20px;padding:16px 28px;display:flex}.text-identity{align-items:center;gap:14px;display:flex}.text-identity>a{justify-content:center;align-items:center;min-width:44px;min-height:44px;display:flex}.text-identity h1{margin-right:18px}.text-file-actions{align-items:center;gap:8px;display:flex}.text-file-actions>output{color:var(--text-muted);margin-right:12px;font-size:12px}.text-file-actions button{font-size:14px}.text-wayfinding{gap:20px;max-width:1400px;margin:0 auto;padding:16px 28px;font-size:13px;display:flex}.text-wayfinding>a{align-items:center;min-height:44px;display:inline-flex}.text-file-input{display:none}.text-notice{background:#e8f0ff;border-radius:8px;align-items:flex-start;gap:10px;max-width:1344px;margin:0 auto 16px;padding:12px 16px;font-size:14px;display:flex}.text-notice>span{flex:1}.text-notice>button{background:0 0;border:0;min-width:44px;min-height:44px;padding:5px}.text-workspace{grid-template-columns:400px minmax(0,1fr);align-items:start;gap:28px;max-width:1400px;margin:auto;padding:0 28px;display:grid}.text-controls{border:1px solid var(--text-line);background:#fff;border-radius:12px;min-width:0;overflow:hidden}.text-tabs{border-bottom:1px solid var(--text-line);gap:4px;padding:6px;display:flex}.text-tabs button{color:var(--text-muted);border:0;border-radius:6px;flex:1;font-size:15px}.text-tabs button[aria-pressed=true]{color:#3155b7;background:#eaf0ff;font-weight:650}.text-panel{padding:24px}.text-panel>label:not(.text-range){margin:24px 0 8px;font-size:14px;font-weight:600;display:block}.text-panel textarea{resize:vertical;width:100%;min-height:240px;color:var(--text-ink);background:#fff;border:1px solid #bfc9d8;border-radius:8px;padding:14px;line-height:1.8}.text-panel textarea::placeholder{color:#64748b}.text-panel>button.text-full{margin-top:16px}.text-coverage{color:var(--text-muted);font-variant-numeric:tabular-nums;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:8px;font-size:12px;display:flex}.text-character-list{border-top:1px solid var(--text-line);margin-top:16px;padding:18px 0}.text-character-list>p,.text-batch{word-break:break-all;line-height:1.9}.text-character-list>p{color:var(--text-muted);max-height:120px;font-size:15px;overflow:auto}.text-upload{text-align:left;width:100%;margin-top:20px;border-style:dashed!important;justify-content:flex-start!important;padding:18px!important}.text-upload>span{flex:1;font-weight:600}.text-upload small{color:var(--text-muted);margin-top:6px;font-size:12px;font-weight:400;display:block}.text-reference{object-fit:contain;background:#f5f7fa;border-radius:8px;width:100%;max-height:180px;margin-top:14px;display:block}.text-handwrite :where(.text-workspace,.hw-shell) details{margin-top:22px;font-size:14px}.text-handwrite :where(.text-workspace,.hw-shell) summary{cursor:pointer;min-height:44px;color:var(--text-blue);align-content:center;line-height:1.6;display:list-item}.text-handwrite :where(.text-workspace,.hw-shell) details>p{color:var(--text-muted);margin-top:8px}.text-reference-copy{background:#f4f6f9;border-radius:8px;padding:12px}.text-generation,.text-job{border-top:1px solid var(--text-line);margin-top:20px;padding-top:20px}.text-generation>p{margin-bottom:12px}.text-generation .text-batch{letter-spacing:.03em;font-size:20px}.text-generation .text-muted:last-child{margin:10px 0 0}.text-job>p{word-break:break-all;margin-bottom:12px;font-size:14px}.text-candidates{border-top:1px solid var(--text-line);margin-top:22px;padding-top:22px}.text-candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;margin-top:18px;display:grid}.text-candidate{min-width:0}.text-candidate>strong{margin-bottom:6px;font-size:14px;font-weight:600;display:block}.text-candidate>div{gap:5px;display:flex}.text-candidate button{background:#fff;flex:1;min-width:0;padding:3px;position:relative}.text-candidate button[aria-pressed=true]{border:2px solid var(--text-blue);background:#edf3ff;padding:2px}.text-candidate img{aspect-ratio:1;width:100%;display:block}.text-candidate button>svg{background:var(--text-blue);color:#fff;border-radius:3px;position:absolute;bottom:1px;right:1px}.text-candidates>button{margin-top:16px}.text-library-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-height:280px;margin-top:10px;display:grid;overflow:auto}.text-library-grid button{flex-direction:column;gap:0;min-width:0;padding:4px;display:flex}.text-library-grid img{aspect-ratio:1;width:100%}.text-library-grid span{color:var(--text-muted);font-size:11px}.text-panel select{width:100%;min-height:46px;color:var(--text-ink);background:#fff;border:1px solid #bfc9d8;border-radius:8px;padding:10px}.text-range{grid-template-columns:1fr auto;gap:10px;margin-top:24px;font-size:14px;font-weight:600;display:grid}.text-range span{color:var(--text-muted);font-variant-numeric:tabular-nums}.text-range input{width:100%;accent-color:var(--text-blue);grid-column:1/-1;height:44px;margin:0}.text-panel>p.text-muted:last-child{margin-top:14px}.text-preview{min-width:0;scroll-margin-top:16px}.text-preview-jump{flex-shrink:0;justify-content:center;align-items:center;min-height:44px;font-size:14px;display:inline-flex}.text-preview-toolbar{justify-content:space-between;align-items:center;gap:12px;margin:4px 0 16px;display:flex}.text-preview-toolbar h2{margin:0;font-size:16px}.text-preview-toolbar p{color:var(--text-muted);margin-top:3px;font-size:12px}.text-pagination{font-variant-numeric:tabular-nums;align-items:center;gap:8px;display:flex}.text-pagination button{padding:9px}.text-pagination span{text-align:center;min-width:44px;font-size:14px}.text-paper-view{aspect-ratio:1240/1754;background:#fff;max-width:690px;margin:auto;box-shadow:0 8px 30px #16213b12}.text-paper-view>img{width:100%;height:auto;display:block}.text-paper-view>p{color:var(--text-muted);padding:28px}.text-empty{text-align:center;color:var(--text-muted);padding:18px;font-size:14px}.text-export{z-index:20;border-top:1px solid var(--text-line);padding:14px max(28px,50vw - 672px);padding-bottom:max(14px, env(safe-area-inset-bottom));background:#fff;justify-content:space-between;align-items:center;gap:16px;display:flex;position:fixed;bottom:0;left:0;right:0}.text-export p{color:var(--text-muted);font-size:14px}.text-export>div{gap:10px;display:flex}.text-export button{min-height:48px}.text-spinning{animation:1s linear infinite text-spinner}.text-handwrite textarea,.text-character-list>p,.text-library-grid{scrollbar-color:#b6c2d4 #edf1f6;scrollbar-width:thin}@keyframes text-spinner{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.text-handwrite button{transition:none}.text-spinning{animation:none}}@media (max-width:1000px){.text-workspace{grid-template-columns:350px minmax(0,1fr);gap:20px}.text-header{padding:16px 20px}.text-file-actions>output{display:none}.text-identity h1{margin-right:0}}@media (max-width:760px){.text-handwrite{padding-bottom:134px}.text-header{padding:14px 16px;display:block}.text-identity{flex-wrap:wrap;gap:10px}.text-identity h1{flex:1;font-size:18px}.text-file-actions{justify-content:flex-end;margin-top:12px}.text-file-actions>output{flex:1;margin:0;font-size:11px;display:block}.text-file-actions button{gap:5px;padding:8px 10px;font-size:13px}.text-wayfinding{justify-content:space-between;gap:10px;padding:14px 16px;font-size:12px}.text-workspace{grid-template-columns:minmax(0,1fr);gap:28px;padding:0 16px}.text-notice{margin:0 16px 16px;padding:12px}.text-panel{padding:20px}.text-panel h2{font-size:19px}.text-panel textarea{min-height:190px}.text-candidate-grid{gap:18px 12px}.text-preview-toolbar{margin-top:0}.text-export{padding:10px 16px max(12px, env(safe-area-inset-bottom));display:block}.text-preview-jump{float:right}.text-export>p{text-align:left;align-items:center;min-height:44px;margin-bottom:8px;font-size:12px;display:flex}.text-export>div{grid-template-columns:1fr 1fr;display:grid}.text-export button{min-height:48px;padding:11px 8px;font-size:15px}.text-handwrite .text-primary.text-full{min-height:48px}.text-preview{padding-bottom:10px}}@media (max-width:359px){.text-identity h1{font-size:16px}.text-workspace{padding:0 12px}.text-panel{padding:16px}.text-file-actions>output{font-size:10px}.text-file-actions button{font-size:12px}.text-file-actions button>svg{display:none}}.text-export{flex-wrap:wrap}.text-download-link{word-break:break-all;flex-basis:100%;justify-content:center;align-items:center;min-height:44px;font-size:14px;display:flex}.text-has-download{padding-bottom:180px}@media (max-width:760px){.text-has-download{padding-bottom:190px}}.text-paper-view{scrollbar-color:#b6c2d4 #edf1f6;scrollbar-width:thin;overflow:auto}.text-paper-zoomed{aspect-ratio:auto;height:min(976px,70vh)}.text-paper-zoomed>img{width:200%;max-width:none}.text-auto .text-panel>h2+p{margin-top:8px}.text-auto .text-pagination button{min-width:44px;min-height:44px}.text-auto .text-reference{max-height:120px}.text-auto .text-panel textarea{min-height:220px}.text-auto-settings{grid-template-columns:auto 1fr;align-items:center;gap:12px;margin-top:12px;display:grid}.text-auto-settings label{font-weight:600}.text-auto-privacy{color:var(--text-muted);margin-top:22px;font-size:12px;line-height:1.7}.text-auto-empty{text-align:center;min-height:420px;color:var(--text-muted);flex-direction:column;justify-content:flex-start;align-items:center;gap:14px;padding:72px 24px;display:flex}.text-auto-empty p{color:var(--text-ink);font-size:16px}.text-auto-empty span{max-width:24ch;font-size:14px}.text-auto-export{gap:12px 24px}.text-auto-export>.text-auto-status,.text-auto-export>.text-auto-actions{flex-wrap:nowrap;display:flex}.text-auto-status{flex:1;justify-content:space-between;align-items:center;gap:16px;min-width:0;display:flex}.text-auto-status>output{font-size:14px}.text-auto-actions{gap:8px;display:flex}.text-spin{animation:1s linear infinite text-automatic-spin}@keyframes text-automatic-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.text-spin{animation:none}}@media (max-width:760px){.text-auto .text-panel{padding:20px}.text-auto .text-panel textarea{min-height:180px}.text-auto-status{flex-basis:100%;gap:8px}.text-auto-status>output{font-size:12px}.text-auto-actions{width:100%}.text-auto-actions>button{white-space:nowrap;flex:1;padding:12px 8px;font-size:14px}.text-auto-actions>button:first-child{flex:1.7}.text-auto-actions>button:not(:first-child)>svg{display:none}}.handwriting-wizard{padding-bottom:160px}.hw-header{border-bottom:1px solid var(--text-line);justify-content:space-between;align-items:center;gap:18px;max-width:1120px;margin:auto;padding:22px 28px;display:flex}.hw-header>details{min-width:0;margin:0}.hw-header>details>summary{align-items:center;gap:8px;min-height:44px;list-style:none;display:flex}.hw-header>details>summary>svg{flex-shrink:0}.hw-header>details>summary>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.hw-brand{min-height:44px;color:inherit;flex-shrink:0;align-items:center;gap:10px;min-width:0;text-decoration:none;display:flex}.hw-brand>a{white-space:nowrap;min-width:44px;min-height:44px;color:var(--text-ink);justify-content:center;align-items:center;gap:8px;font-size:17px;font-weight:600;display:flex}.hw-shell{max-width:840px;margin:auto;padding:28px 28px 48px}.hw-intro{justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px;display:flex}.hw-intro h1{margin:0 0 4px;font-size:22px;line-height:1.4}.hw-intro p{color:var(--text-muted);font-size:14px;line-height:1.6}.hw-more{color:var(--text-muted);flex-shrink:0;font-size:13px;position:relative}.hw-more summary{cursor:pointer;justify-content:center;align-items:center;min-height:44px;display:flex}.hw-more[open]>div{z-index:5;border:1px solid var(--text-line);background:#fff;border-radius:8px;gap:10px;width:210px;padding:16px;display:grid;position:absolute;top:44px;right:0}.hw-more output{font-size:12px}.hw-steps{gap:0;margin:0 0 24px;padding:0;list-style:none;display:flex}.hw-steps li{flex:1;min-width:0;position:relative}.hw-steps li:last-child{flex:none}.hw-steps li:not(:last-child):after{content:"";background:var(--text-line);height:1px;position:absolute;top:22px;left:0;right:12px}.hw-steps li[data-state=complete]:after{background:var(--text-blue)}.hw-steps button{z-index:1;width:max-content;max-width:100%;min-height:44px;color:var(--text-muted);background:#f5f7fa;border:0;border-radius:4px;gap:10px;padding:0 14px 0 0;font-size:14px;font-weight:500;position:relative}.hw-steps button[aria-current=step]{color:var(--text-blue);font-weight:600}.hw-steps button:hover:not(:disabled){color:var(--text-blue);text-underline-offset:4px;background:#f5f7fa;text-decoration:underline}.hw-steps li button:disabled{opacity:1}.hw-steps button span{border:1px solid var(--text-line);font-variant-numeric:tabular-nums;background:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:25px;height:25px;font-size:12px;display:flex}.hw-steps button[aria-current=step] span{background:var(--text-blue);border-color:var(--text-blue);color:#fff}.hw-steps li[data-state=complete] button{color:var(--text-ink)}.hw-steps li[data-state=complete] span{border-color:var(--text-blue);color:var(--text-blue)}.hw-stage{background:#fff;border-radius:12px;padding:32px}.hw-stage>h2,.hw-result-heading h2{font-size:24px;line-height:1.35}.hw-description{color:var(--text-muted);font-size:14px;margin-top:10px!important;margin-bottom:24px!important}.hw-upload{flex-direction:column;width:100%;min-height:176px!important;color:var(--text-blue)!important;border-style:dashed!important;border-color:#bfc9d8!important;border-radius:8px!important;gap:10px!important;display:flex!important}.hw-upload strong{font-size:16px;font-weight:600}.hw-upload span{color:var(--text-muted);font-size:12px}.hw-file-upload{min-height:140px!important}.hw-reference{text-align:center;margin-top:20px}.hw-default-choice{flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:22px;display:flex}.handwriting-wizard .hw-default-choice button{min-height:52px;color:var(--text-blue);border:1px solid var(--text-line);background:#f8faff;gap:8px;padding:12px 18px}.handwriting-wizard .hw-default-choice button[aria-pressed=true]{border-color:var(--text-blue);background:#eaf0ff}.hw-default-choice span{color:var(--text-muted);font-size:14px}.hw-reference img{object-fit:contain;max-width:100%;max-height:180px}.hw-style-result{margin-top:24px}.hw-style-result>p{align-items:center;gap:8px;font-weight:600;display:flex}.hw-style-result img{object-fit:contain;max-width:100%;max-height:180px;margin:16px 0;display:block}.hw-style-result>button{font-size:13px}.hw-disclosure{color:var(--text-muted);font-size:12px;line-height:1.65;margin-top:24px!important}.hw-notice{color:#3155b7;overflow-wrap:anywhere;background:#e8f0ff;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;max-height:25dvh;margin-bottom:20px;padding:10px 12px;font-size:14px;line-height:1.5;display:flex;overflow-y:auto}.hw-notice button{background:0 0;border:0;flex-shrink:0;min-width:44px;padding:10px}.hw-stage label{margin:22px 0 10px;font-size:14px;font-weight:600;display:block}.hw-stage label span{color:var(--text-muted);margin-left:8px;font-size:12px;font-weight:400}.hw-stage textarea{resize:vertical;width:100%;min-height:240px;color:var(--text-ink);caret-color:var(--text-blue);background:#fff;border:1px solid #bfc9d8;border-radius:8px;padding:16px;font-size:16px;line-height:1.8}.hw-stage textarea::placeholder{color:var(--text-muted)}.hw-stage textarea:disabled{background:#f5f7fa}.hw-stage .hw-requirements{min-height:130px}.hw-count{text-align:right;color:var(--text-muted);font-variant-numeric:tabular-nums;margin-top:8px;font-size:12px}.hw-error{color:#b3261e;font-size:14px;margin-top:12px!important}.hw-input-choice{margin-bottom:24px;border:0;gap:8px;margin-inline:0;padding:0;display:flex}.hw-input-choice button{flex:1}.hw-input-choice button[aria-pressed=true]{color:var(--text-blue);border-color:var(--text-blue);background:#eaf0ff}.hw-file-summary{align-items:center;gap:16px;min-width:0;margin-top:20px;display:flex}.hw-file-summary img{object-fit:contain;background:#f5f7fa;flex-shrink:0;width:72px;height:90px}.hw-file-summary div{min-width:0}.hw-file-summary strong{overflow-wrap:anywhere;font-size:14px;display:block}.hw-file-summary p{color:var(--text-muted);margin-top:6px;font-size:12px}.hw-plan{border-top:1px solid var(--text-line);margin-top:28px;padding-top:24px}.hw-plan h3{font-size:18px}.hw-plan-summary{white-space:pre-wrap;font-size:14px;margin:12px 0 20px!important}.hw-plan dl{margin:0}.hw-plan dl>div{border-bottom:1px solid var(--text-line);grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:16px;padding:12px 0;font-size:14px;display:grid}.hw-plan dt{color:var(--text-muted)}.hw-plan dd{overflow-wrap:anywhere;white-space:pre-wrap;margin:0}.hw-plan details>summary{min-height:44px;color:var(--text-blue);cursor:pointer;align-items:center;font-size:14px;display:flex}.hw-plan-note{color:var(--text-muted);font-size:12px;margin-top:18px!important}.hw-result-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.hw-result-heading>div{min-width:0}.hw-regenerate{white-space:nowrap;font-size:12px!important}.hw-ready-content{border-top:1px solid var(--text-line);padding-top:20px}.hw-ready-content>p{white-space:pre-wrap;overflow-wrap:anywhere;max-width:70ch;font-size:16px;line-height:1.85}.hw-ready-content>span{color:var(--text-muted);margin-top:20px;font-size:12px;display:block}.hw-preview-toolbar{color:var(--text-muted);justify-content:space-between;align-items:center;gap:12px;margin:6px 0 20px;font-size:13px;display:flex}.hw-preview-toolbar>div{font-variant-numeric:tabular-nums;align-items:center;gap:6px;display:flex}.hw-preview-toolbar button{min-width:44px;min-height:44px;padding:9px}.hw-preview-toolbar>div>span{text-align:center;min-width:44px}.hw-paper{scrollbar-color:#b6c2d4 #edf1f6;scrollbar-width:thin;background:#f5f7fa;padding:16px;overflow:auto}.hw-paper>img{width:100%;height:auto;display:block;box-shadow:0 8px 24px #16213b12}.hw-paper-zoomed{max-height:70vh}.hw-paper-zoomed>img{width:200%;max-width:none}.hw-footer{z-index:10;border-top:1px solid var(--text-line);padding:16px 28px max(16px, env(safe-area-inset-bottom));background:#fff;position:fixed;bottom:0;left:0;right:0}.hw-footer-inner{max-width:784px;margin:auto}.hw-footer-actions{gap:10px;display:flex}.hw-footer-actions button{white-space:nowrap;min-height:48px}.hw-footer-actions .hw-main-action{min-width:200px;margin-left:auto}.hw-footer .hw-main-action.text-primary{background:var(--text-blue);color:#fff;border-color:var(--text-blue)}.hw-footer .hw-main-action.text-primary:hover{background:#3155b7}.hw-progress{color:var(--text-muted);align-items:center;gap:8px;margin-bottom:12px;font-size:12px;line-height:1.5;display:flex}.hw-progress svg{flex-shrink:0}.hw-restart{min-height:44px;margin:8px auto 0;border:0!important;font-size:12px!important;display:flex!important}.hw-download-link{color:var(--text-blue);text-align:center;overflow-wrap:anywhere;min-height:44px;margin-top:12px;font-size:13px;line-height:1.7;display:block}.handwriting-wizard ::selection{color:#3155b7;background:#dbe6ff}@media (max-width:760px){.hw-header{gap:8px;padding:14px 16px}.hw-brand{gap:8px}.hw-brand>a{font-size:16px}.hw-header>details>summary{padding-left:10px;padding-right:10px}.hw-header>details>summary>span{max-width:92px}.hw-shell{padding:18px 16px 40px}.hw-intro{gap:12px;margin-bottom:16px}.hw-intro p{font-size:14px}.hw-more{font-size:12px}.hw-steps{gap:0;margin-bottom:20px}.hw-steps button{gap:6px;min-height:44px;padding:0 8px 0 0;font-size:12px}.hw-steps button span{width:22px;height:22px}.hw-stage{padding:22px 20px}.hw-stage>h2,.hw-result-heading h2{font-size:22px}.hw-description{margin-bottom:20px!important}.hw-upload{min-height:160px!important}.hw-file-upload{min-height:132px!important}.hw-stage textarea{min-height:210px;padding:12px}.hw-stage .hw-requirements{min-height:150px}.hw-footer{padding:14px 16px max(14px, env(safe-area-inset-bottom))}.hw-footer-actions{gap:8px}.hw-footer-actions button{padding:12px 10px;font-size:14px}.hw-footer-actions .hw-main-action{flex:1;min-width:0}.hw-footer-actions>button:not(.hw-main-action)>svg{display:none}.hw-preview-toolbar{flex-direction:column;align-items:flex-start;gap:10px}.hw-preview-toolbar>div{align-self:flex-end}.hw-paper{padding:10px}.hw-result-heading{gap:8px}.hw-regenerate{padding:8px!important}.hw-plan dl>div{grid-template-columns:minmax(75px,1fr) minmax(0,2fr);gap:12px}}@media (prefers-reduced-motion:reduce){.handwriting-wizard .text-spin{animation:none}.handwriting-wizard button{transition:none}}.hw-regions{margin-top:24px}.hw-region-heading h3{font-size:18px;line-height:1.4}.hw-region-heading p,.hw-region-adjust p,.hw-region-selection p{color:var(--text-muted);margin-top:6px;font-size:12px;line-height:1.65}.hw-region-controls{justify-content:space-between;align-items:center;gap:10px;margin:14px 0 10px;display:flex}.hw-region-controls>div{align-items:center;gap:6px;display:flex}.hw-region-controls button{min-width:44px;min-height:44px;padding:10px;font-size:13px}.hw-region-controls span{font-variant-numeric:tabular-nums}.hw-region-scroll{scrollbar-color:#b6c2d4 #edf1f6;scrollbar-width:thin;background:#eef1f6;max-height:65vh;padding:12px;overflow:auto}.hw-region-page{background:#fff;width:100%;position:relative}.hw-region-page>img{-webkit-user-select:none;user-select:none;width:100%;height:100%;display:block}.hw-region-page .hw-region-box{background:#3155b71a;border:1px solid #3155b7;border-radius:0;min-width:0;min-height:0;padding:0;display:block;position:absolute}.hw-region-page .hw-region-box:disabled{opacity:1;cursor:default}.hw-region-page .hw-region-box:hover,.hw-region-page .hw-region-selected{background:#3155b736;border:2px solid #3155b7}.hw-region-box>span{color:#fff;font-variant-numeric:tabular-nums;background:#3155b7;padding:1px 3px;font-size:9px;font-weight:600;line-height:1.2;position:absolute;top:0;left:0}.hw-region-page .hw-region-excluded{background:#64718712;border-style:dashed;border-color:#647187}.hw-region-excluded>span{background:#647187}.hw-region-selection{border-bottom:1px solid var(--text-line);align-items:center;gap:8px;padding:14px 0;display:flex}.hw-region-selection>div{overflow-wrap:anywhere;flex:1;min-width:0}.hw-region-selection strong{font-size:14px}.hw-region-selection button{flex-shrink:0;min-width:44px;min-height:44px;padding:10px;font-size:12px}.hw-region-adjust{align-items:center;gap:14px;margin-top:12px;display:flex}.hw-region-adjust button{flex-shrink:0;min-height:44px;padding:10px;font-size:12px}.hw-region-adjust p{margin:0}.hw-region-drawing{touch-action:none;cursor:crosshair}.hw-region-draft{pointer-events:none;background:#3155b71a;border:2px dashed #3155b7;position:absolute}@media (max-width:760px){.hw-region-scroll{padding:8px}.hw-region-heading h3{font-size:16px}.hw-region-adjust{flex-direction:column;align-items:flex-start;gap:6px}}.hw-typed-layer{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.hw-typed-value{fill:#3155b7}.hw-typed-blank{fill:#5f6a7a}.hw-typed-summary{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;margin:14px 0!important}.handwriting-wizard .hw-plan input,.handwriting-wizard .hw-region-selection textarea{box-sizing:border-box;border:1px solid var(--line,#ccd5e4);width:100%;min-height:44px;font:inherit;color:inherit;background:#fff;border-radius:8px;padding:10px 12px}:is(.handwriting-wizard .hw-plan input:focus-visible,.handwriting-wizard .hw-region-selection textarea:focus-visible){outline-offset:2px;outline:2px solid #3659bd}.handwriting-wizard .hw-plan dd{min-width:0;margin:0}.handwriting-wizard .hw-field-rewrites>div{border-bottom:1px solid #dfe5ee;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;display:flex}.handwriting-wizard .hw-field-rewrites span{overflow-wrap:anywhere}.handwriting-wizard .hw-field-rewrites button{color:#3659bd;background:#fff;border:1px solid #ccd5e4;border-radius:8px;flex-shrink:0;min-height:44px;padding:8px 12px}@media (max-width:600px){.handwriting-wizard .hw-plan dl>div{display:block}.handwriting-wizard .hw-plan dt{margin-bottom:6px}}.handwriting-wizard .hw-pricing-note{max-width:840px;margin:16px auto;padding:0 20px}.hw-style-preview{max-width:100%;overflow-x:auto}.hw-style-result .hw-style-preview img{width:100%;min-width:700px;max-width:none}.video-subtitles{padding-bottom:120px}.video-subtitles button,.video-subtitles select,.video-subtitles textarea,.video-subtitles input{font:inherit}.video-subtitles button,.video-subtitles a{-webkit-tap-highlight-color:transparent}.video-subtitles button{cursor:pointer;border:1px solid var(--text-line);min-height:44px;color:var(--text-ink);background:#fff;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:10px 14px;display:inline-flex}.video-subtitles button:hover:not(:disabled){border-color:var(--text-blue);color:var(--text-blue)}.video-subtitles button:disabled{cursor:not-allowed;opacity:.55}.video-subtitles :is(button,a,textarea,input,select):focus-visible{outline:3px solid var(--text-blue);outline-offset:3px}.video-subtitles ::selection{background:#d9e6ff}.vs-brand{color:var(--text-ink);align-items:center;gap:10px;min-height:44px;font-size:17px;font-weight:600;display:inline-flex}.vs-rate{color:var(--text-blue);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:14px}.vs-panel{border:1px solid var(--text-line);background:#fff;border-radius:12px;padding:28px}.vs-panel h2{margin-bottom:8px;font-size:19px;line-height:1.5}.vs-muted{color:var(--text-muted);font-size:13px;line-height:1.7}.vs-panel>.vs-muted{margin-bottom:16px}.vs-file{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.video-subtitles .vs-upload{background:#f7f9fd;border:1px dashed #9aaaca;flex-direction:column;gap:10px;width:100%;min-height:164px;margin:22px 0;padding:28px 16px;display:flex}.vs-upload svg{color:var(--text-blue)}.vs-upload strong{font-size:16px;font-weight:600}.vs-upload span{color:var(--text-muted);overflow-wrap:anywhere;font-size:13px}.vs-source{background:#17202f;border-radius:8px;width:100%;max-height:390px;margin:20px auto;display:block}.vs-quote{border-block:1px solid var(--text-line);justify-content:space-between;margin:20px 0 10px;padding:16px 0;display:flex}.vs-quote div{align-items:baseline;gap:14px;display:flex}.vs-quote dt{color:var(--text-muted);font-size:13px}.vs-quote dd{font-variant-numeric:tabular-nums;margin:0;font-size:18px;font-weight:600}.vs-language{justify-content:space-between;align-items:center;gap:16px;margin:22px 0 12px;font-size:14px;display:flex}.video-subtitles select{min-height:44px;color:var(--text-ink);background:#fff;border:1px solid #bfc9d8;border-radius:8px;max-width:100%;padding:8px 12px}.vs-notice{color:#754717;background:#fff8ee;border:1px solid #d2a46c;border-radius:8px;margin-bottom:18px;padding:14px 16px;font-size:14px;line-height:1.6}.vs-section-title{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.vs-count{white-space:nowrap;color:var(--text-muted);padding-top:5px;font-size:13px}.vs-player{background:#17202f;border-radius:8px;width:100%;margin:22px 0 16px;position:relative;overflow:hidden;container-type:inline-size}.vs-player video{width:100%;max-height:440px;display:block}.vs-caption{pointer-events:none;white-space:pre-line;text-align:center;color:#fff;text-shadow:1px 1px 1px #17191b,-1px -1px 1px #17191b,1px -1px 1px #17191b,-1px 1px 1px #17191b;font-size:min(26px,3.2cqw);line-height:1.3;position:absolute;bottom:10%;left:5%;right:5%}.vs-caption>span{display:block}.vs-caption-secondary{margin-top:4px;font-size:.78em}.vs-subtitle-settings{margin-block:16px 20px}.vs-subtitle-settings .vs-language{margin-block:12px}.vs-cue-languages{flex:1;min-width:0}.vs-cue-languages textarea{width:100%;display:block}.vs-cue-label{color:var(--text-muted);margin-block:8px 6px;font-size:13px;display:block}.vs-style-box .vs-caption{background:#17191bd9;width:fit-content;max-width:90%;margin:auto;padding:4px 10px}.vs-editor-tools{border-bottom:1px solid var(--text-line);justify-content:space-between;gap:12px;padding-bottom:18px;display:flex}.vs-editor-tools label{align-items:center;gap:10px;font-size:13px;display:flex}.vs-editor-tools button{font-size:13px}.vs-cues{scrollbar-width:thin;scrollbar-color:#b6c2d4 #edf1f6;max-height:540px;overflow:auto}.vs-cue{border-bottom:1px solid var(--text-line);padding:18px 0}.vs-cue[data-active=true]{background:#f3f6ff}.vs-cue-time{font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.video-subtitles .vs-cue-time button{color:var(--text-blue);background:0 0;border:none;margin-right:auto;padding:4px 8px;font-size:13px}.vs-cue-time label{color:var(--text-muted);align-items:center;gap:6px;font-size:12px;display:flex}.vs-cue-time input{border:1px solid var(--text-line);width:80px;min-height:44px;color:var(--text-ink);background:#fff;border-radius:6px;padding:6px 8px;font-size:13px}.vs-cue-text{align-items:flex-start;gap:8px;display:flex}.vs-cue-text textarea{resize:vertical;min-width:0;min-height:64px;color:var(--text-ink);caret-color:var(--text-blue);background:#fff;border:1px solid #bfc9d8;border-radius:8px;flex:1;padding:10px 12px;line-height:1.5}.video-subtitles .vs-cue-text button{padding:10px}.video-subtitles .vs-add{margin-top:18px;font-size:13px}.vs-footer{z-index:20;border-top:1px solid var(--text-line);padding:16px max(28px, calc((100vw - 784px) / 2)) max(16px, env(safe-area-inset-bottom));background:#fff;justify-content:space-between;align-items:center;gap:16px;display:flex;position:fixed;bottom:0;left:0;right:0}.vs-footer>div{align-items:center;gap:12px;min-width:0;display:flex}.vs-footer>div:first-child{color:var(--text-muted);flex-direction:column;align-items:flex-start;gap:4px;font-size:13px}.vs-footer span{color:var(--text-ink)}.video-subtitles .text-primary{background:var(--text-blue);color:#fff;border-color:var(--text-blue)}.video-subtitles .text-primary:hover:not(:disabled){color:#fff;background:#26479f}.video-subtitles .vs-primary{min-width:190px;min-height:48px}.vs-privacy{color:var(--text-muted);font-size:12px;line-height:1.7;margin-top:20px!important}.vs-result-actions{flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0;display:flex}.vs-download{background:var(--text-blue);color:#fff;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:12px 18px;display:inline-flex}.vs-spin{animation:1s linear infinite vs-spin}@keyframes vs-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.vs-spin{animation:none}}@media (max-width:760px){.video-subtitles{padding-bottom:144px}.video-subtitles .hw-header{padding:14px 16px}.video-subtitles .hw-shell{padding:22px 16px 30px}.video-subtitles .hw-intro{gap:10px}.video-subtitles .hw-intro h1{font-size:20px}.video-subtitles .hw-steps button{gap:6px;padding-right:8px;font-size:12px}.vs-rate{font-size:12px}.vs-panel{padding:20px}.vs-panel h2{font-size:18px}.vs-quote div{gap:8px}.vs-quote dd{font-size:16px}.vs-editor-tools{flex-wrap:wrap}.vs-cue-time input{width:68px}.vs-footer{padding:10px 16px max(12px, env(safe-area-inset-bottom));display:block}.vs-footer>div:first-child{flex-direction:row;justify-content:space-between;margin-bottom:8px;font-size:12px}.vs-footer>div:last-child{justify-content:flex-end}.video-subtitles .vs-primary{flex:1;min-width:0;font-size:14px}.vs-brand{gap:8px;font-size:15px}}.video-subtitles .hw-steps button{background:#f5f7fa;border:0;border-radius:4px;padding:0 14px 0 0}.video-subtitles .hw-steps button:hover:not(:disabled){background:#f5f7fa;border:0}.vs-style-yellow .vs-caption{color:#ffd445}.vs-player[data-paused=true] .vs-caption{bottom:58px}@media (max-width:760px){.video-subtitles .hw-steps button{gap:6px;padding-right:8px}}.video-subtitles .vs-download{color:#fff}
