:root{color:#202621;background:#f5f3ee;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--paper: #fbfaf7;--surface: #ffffff;--surface-soft: #f0eee8;--ink: #202621;--muted: #6d746e;--line: #dedfd9;--accent: #2b6d46;--accent-dark: #205838;--accent-soft: #dcebdd;--danger: #b4473f;--shadow: 0 24px 70px rgba(42, 49, 44, .1)}*{box-sizing:border-box}html{min-width:320px;min-height:100%;background:var(--paper)}body{min-width:320px;min-height:100vh;margin:0;background:radial-gradient(circle at 9% 12%,rgba(166,198,166,.2),transparent 28rem),radial-gradient(circle at 92% 38%,rgba(216,206,171,.2),transparent 26rem),var(--paper)}button,input,select,textarea{color:inherit;font:inherit}button{border:0;text-decoration:none}button:not(:disabled){cursor:pointer}[hidden]{display:none!important}.page-shell{display:flex;width:min(1180px,calc(100% - 40px));min-height:100vh;margin:0 auto;flex-direction:column}.site-header{display:flex;height:76px;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(76,85,78,.12)}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);font-size:17px;font-weight:760;letter-spacing:-.02em;text-decoration:none}.brand-mark{display:grid;width:36px;height:36px;place-items:center;background:var(--ink);border-radius:11px;color:#f7fff8;box-shadow:0 8px 22px #2026212e}.brand-mark svg{width:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.header-actions,.local-pill,.trust-row,.trust-row>span,.progress-copy,.label-row,.preview-toolbar{display:flex;align-items:center}.header-actions{gap:10px}.local-pill{gap:7px;padding:7px 11px;background:#ffffffa3;border:1px solid var(--line);border-radius:999px;color:#4f5951;font-size:12px;font-weight:650}.status-dot{width:7px;height:7px;background:#4e9b67;border-radius:50%;box-shadow:0 0 0 3px #4e9b6724}.locale-btn{min-width:42px;min-height:38px;padding:0 10px;background:transparent;border:1px solid transparent;border-radius:9px;color:var(--muted);font-size:12px;font-weight:750;transition:background .16s ease,border-color .16s ease}.github-link{display:inline-flex;min-height:38px;padding:0 13px;align-items:center;gap:8px;background:var(--ink);border:1px solid var(--ink);border-radius:999px;box-shadow:0 7px 18px #20262124;color:#fff;font-size:12px;font-weight:750;text-decoration:none;transition:background .16s ease,box-shadow .16s ease,transform .16s ease}.github-link svg{width:16px;height:16px;fill:currentColor}.github-link .star-mark{width:14px;height:14px;color:#f5c85b}.github-link:hover{background:#313a33;box-shadow:0 10px 24px #20262133;transform:translateY(-1px)}.locale-btn:hover{background:#fff;border-color:var(--line)}main{flex:1}.hero{max-width:900px;margin:72px auto 42px;text-align:center;animation:rise-in .48s ease-out both}.eyebrow,.section-kicker{margin:0;color:var(--accent);font-size:12px;font-weight:780;letter-spacing:.14em;text-transform:uppercase}.hero h1{margin:15px 0 16px;color:#1d241f;font-size:clamp(38px,5.2vw,60px);font-weight:780;letter-spacing:-.055em;line-height:1.08}.hero-copy{max-width:820px;margin:0 auto;color:var(--muted);font-size:clamp(16px,2vw,19px);line-height:1.7;text-wrap:balance}.upload-section{width:min(820px,100%);margin:0 auto 72px;animation:rise-in .48s 80ms ease-out both}.drop-zone{display:flex;width:100%;min-height:260px;padding:36px;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(#fff,#fff) padding-box,repeating-linear-gradient(90deg,#b9c4ba 0 8px,transparent 8px 15px) border-box;border:1px solid transparent;border-radius:22px;box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}.drop-zone:hover,.drop-zone.is-dragging{transform:translateY(-2px);box-shadow:0 30px 80px #2a312c26}.drop-zone.is-loading{transform:none;cursor:wait}.drop-zone.is-loading>:not(.upload-loader){display:none}.upload-loader{display:flex;align-items:center;flex-direction:column}.upload-loader strong{margin-top:16px;font-size:17px}.upload-loader small{margin-top:7px;color:var(--muted);font-size:12px}.upload-spinner{width:46px;height:46px;border:3px solid #d8e5da;border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}.drop-zone.is-dragging{background:linear-gradient(#f3faf4,#f3faf4) padding-box,repeating-linear-gradient(90deg,var(--accent) 0 8px,transparent 8px 15px) border-box}.upload-icon{display:grid;width:64px;height:64px;margin-bottom:20px;place-items:center;background:var(--accent-soft);border-radius:20px;color:var(--accent-dark)}.upload-icon svg,.trust-row svg,.icon-button svg,.primary-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.upload-icon svg{width:30px;stroke-width:1.8}.drop-title{font-size:20px;font-weight:750;letter-spacing:-.025em}.drop-hint{margin-top:8px;color:var(--muted);font-size:13px}.trust-row{justify-content:center;gap:26px;margin-top:19px;color:var(--muted);font-size:12px}.trust-row>span{gap:6px}.trust-row svg{width:16px;stroke-width:1.7}.workspace{display:grid;grid-template-columns:minmax(310px,380px) minmax(0,1fr);gap:24px;margin:48px 0 70px;animation:rise-in .36s ease-out both}.settings-panel,.preview-panel{background:#ffffffdb;border:1px solid rgba(101,111,103,.16);border-radius:18px;box-shadow:0 18px 50px #2a312c12}.settings-panel{padding:22px}.file-card{display:flex;min-width:0;min-height:68px;padding:11px;align-items:center;gap:11px;background:var(--surface-soft);border-radius:13px}.file-badge{display:grid;width:42px;height:46px;flex:0 0 auto;place-items:center;background:#e8d8d3;border-radius:9px;color:#8f463e;font-size:10px;font-weight:820;letter-spacing:.04em}.file-info{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}.file-info strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.file-info span{color:var(--muted);font-size:11px}.icon-button{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;background:transparent;border-radius:9px;color:var(--muted)}.icon-button:hover{background:#fff;color:var(--ink)}.icon-button svg{width:18px;stroke-width:1.7}.panel-heading{display:flex;margin:28px 0 24px;align-items:end;justify-content:space-between}.section-kicker{font-size:10px}.panel-heading h2,.preview-toolbar h2{margin:5px 0 0;font-size:19px;letter-spacing:-.025em}.text-button{min-height:36px;padding:5px 8px;background:transparent;border-radius:7px;color:var(--accent);font-size:12px;font-weight:700}.text-button:hover{background:var(--accent-soft)}.field-group{min-width:0;margin-bottom:18px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-group label{display:block;margin-bottom:8px;color:#4b544d;font-size:12px;font-weight:680}.field-group textarea,.field-group select{width:100%;height:44px;padding:0 12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;outline:none;font-size:13px;transition:border-color .16s ease,box-shadow .16s ease}.field-group textarea{min-height:86px;padding-top:11px;padding-bottom:11px;resize:vertical;line-height:1.5}.field-hint{display:block;margin-top:6px;color:var(--muted);font-size:10px}.color-control{display:flex;height:44px;padding:5px 10px 5px 6px;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.color-control input[type=color]{width:34px;height:32px;padding:2px;background:transparent;border:0;border-radius:7px}.color-control output{color:var(--muted);font-size:11px;font-weight:700}.field-group select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#768078 50%),linear-gradient(135deg,#768078 50%,transparent 50%);background-position:calc(100% - 15px) 18px,calc(100% - 11px) 18px;background-repeat:no-repeat;background-size:4px 4px,4px 4px}.field-group textarea:focus,.field-group select:focus{border-color:#76a084;box-shadow:0 0 0 3px #2b6d461a}.label-row{justify-content:space-between}.label-row output{color:var(--accent);font-size:11px;font-weight:720}.range-field input[type=range]{width:100%;height:4px;margin:7px 0;appearance:none;background:#dfe2dc;border-radius:999px;outline:none}.compact-range{align-self:end}.position-row{margin-top:2px;padding:15px 13px 2px;background:#f5f4ef;border:1px solid #e4e4de;border-radius:11px}.range-field input[type=range]::-webkit-slider-thumb{width:18px;height:18px;appearance:none;background:var(--surface);border:2px solid var(--accent);border-radius:50%;box-shadow:0 2px 5px #2026212e}.export-box{margin-top:8px;padding-top:20px;border-top:1px solid var(--line)}.primary-button{display:flex;width:100%;min-height:50px;padding:11px 18px;align-items:center;justify-content:center;gap:9px;background:var(--accent);border-radius:11px;box-shadow:0 10px 24px #2b6d4633;color:#fff;font-size:14px;font-weight:760;transition:background .16s ease,transform .16s ease,box-shadow .16s ease}.primary-button:hover:not(:disabled){background:var(--accent-dark);box-shadow:0 13px 30px #2b6d4642;transform:translateY(-1px)}.primary-button:disabled{cursor:wait;opacity:.65}.primary-button svg{width:19px;stroke-width:1.8}.export-box>p{margin:9px 0 0;color:var(--muted);font-size:10px;text-align:center}.progress-wrap{margin-bottom:14px}.progress-copy{margin-bottom:7px;justify-content:space-between;color:var(--muted);font-size:10px}.progress-track{height:5px;overflow:hidden;background:#e1e4df;border-radius:999px}.progress-track span{display:block;width:0;height:100%;background:var(--accent);border-radius:inherit;transition:width .18s ease}.preview-panel{min-width:0;padding:22px}.preview-toolbar{margin-bottom:18px;justify-content:space-between}.preview-actions,.zoom-controls{display:flex;align-items:center}.preview-actions{gap:14px}.zoom-controls{overflow:hidden;background:#f4f4f0;border:1px solid var(--line);border-radius:9px}.zoom-controls button{width:34px;height:34px;padding:0;background:transparent;color:var(--ink);font-size:18px;line-height:1}.zoom-controls button:hover:not(:disabled){background:#fff}.zoom-controls button:disabled{color:#adb2ad;cursor:default}.zoom-controls output{min-width:48px;color:var(--muted);font-size:10px;font-weight:720;text-align:center}.preview-status{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.preview-status>span:first-child{width:6px;height:6px;background:#55a16a;border-radius:50%}.preview-stage{position:relative;height:570px;overflow:auto;background:linear-gradient(45deg,#e8e9e5 25%,transparent 25%),linear-gradient(-45deg,#e8e9e5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8e9e5 75%),linear-gradient(-45deg,transparent 75%,#e8e9e5 75%),#f0f1ee;background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px;border:1px solid #e0e2dd;border-radius:12px;cursor:grab}.preview-stage.is-panning{cursor:grabbing}.preview-document{display:flex;width:max-content;min-width:100%;min-height:100%;padding:24px;align-items:center;justify-content:center}.preview-page{position:relative;flex:0 0 auto;overflow:hidden;background:#fff;box-shadow:0 14px 35px #2127222e;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}#preview-canvas{display:block;width:100%;height:100%;pointer-events:none}.preview-text-anchor{position:absolute;z-index:1;width:0;height:0;transform-origin:left bottom;pointer-events:none}.preview-text{position:absolute;left:0;bottom:0;font-weight:650;line-height:1.35;white-space:pre;cursor:grab;pointer-events:auto;touch-action:none}.preview-text.is-positioning{cursor:grabbing}.preview-loader{position:absolute;z-index:2;display:flex;inset:0;align-items:center;justify-content:center;gap:10px;background:#f0f1eee0;color:var(--muted);font-size:12px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.preview-loader>span:first-child{width:18px;height:18px;border:2px solid #bdc8bf;border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}.preview-note{margin:12px 0 0;color:var(--muted);font-size:10px;text-align:center}footer{padding:25px 0;border-top:1px solid rgba(76,85,78,.12);color:#858c86;font-size:11px;text-align:center}.toast{position:fixed;z-index:10;right:24px;bottom:24px;max-width:min(360px,calc(100% - 48px));padding:12px 16px;background:#222a24;border-radius:10px;box-shadow:0 16px 40px #181e1938;color:#fff;font-size:12px;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease}.toast.is-visible{opacity:1;transform:translateY(0)}.toast.is-error{background:var(--danger)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid rgba(43,109,70,.24);outline-offset:2px}@keyframes rise-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){.workspace{grid-template-columns:1fr}.preview-panel{order:-1}.preview-stage{height:470px}}@media(max-width:600px){.page-shell{width:min(100% - 24px,1180px)}.site-header{height:66px}.local-pill{display:none}.github-link{min-height:44px}.hero{margin:48px auto 30px}.hero h1{font-size:39px}.drop-zone{min-height:230px;padding:28px 20px}.trust-row{align-items:flex-start;flex-direction:column;gap:10px;padding-left:16px}.workspace{margin-top:28px}.settings-panel,.preview-panel{padding:16px;border-radius:15px}.preview-stage{height:390px}.preview-document{padding:14px}.preview-actions{align-items:flex-end;flex-direction:column;gap:7px}}@media(max-width:420px){.github-link{width:44px;padding:0;justify-content:center}.github-link span,.github-link .star-mark{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
