:root{color-scheme:light;--bg:#f6f5ef;--ink:#1d261c;--muted:#596353;--line:#e0e3d8;--green:#385832;--lime:#d8f496;--mono:ui-monospace,SFMono-Regular,Consolas,monospace}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
button,input,select{font:inherit;color:inherit}
button,select,label.toggle{cursor:pointer}
button:disabled{cursor:default}
[hidden]{display:none!important}
:focus-visible{outline:2px solid #648145;outline-offset:3px}
a{color:inherit}
svg:not(.hero-art):not(#barcode){width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
svg.symbols{position:absolute;width:0!important;height:0!important;overflow:hidden}
.mono{font-family:var(--mono);font-weight:600;letter-spacing:.075em}
.shell{width:min(1120px,calc(100% - 96px));margin-inline:auto}
.topbar{border-bottom:1px solid #e4e4d9;background:#faf9f3}
.topbar-inner{height:70px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand{display:inline-flex;gap:11px;align-items:center;text-decoration:none;font-size:17px;font-weight:750;letter-spacing:.03em}
.brand-icon{width:37px;height:37px;border-radius:10px;background:#20291e;color:var(--lime);display:grid;place-items:center}
.brand-icon svg{width:23px!important;height:23px!important}
.edition{font-size:11px;display:flex;align-items:center;gap:9px;color:#59644f}
.edition span{width:6px;height:6px;background:#6d9346;border-radius:50%}
.edition b,footer b{color:#849178}
.hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:48px 0 37px}
.hero-label{display:inline-flex;align-items:center;gap:8px;border:1px solid #d9e0cd;background:#edf1e3;border-radius:5px;color:#405838;padding:5px 9px;font-size:11px}
.hero-label span{width:10px;height:10px;background:repeating-linear-gradient(90deg,#4a673a 0 1px,transparent 1px 2px,#4a673a 2px 4px,transparent 4px 5px)}
h1{font-size:clamp(36px,5vw,60px);letter-spacing:-.055em;line-height:1.16;margin:15px 0 13px;font-weight:800}
h1 span{color:#668346}
.hero p{font-size:16px;color:var(--muted);margin:0}
.hero-art{width:min(25%,282px);margin-right:12px;flex:none}
.corner{stroke:#b8c3a9}.bars{fill:#9baa88;opacity:.66}.scanline{stroke:#729550;stroke-dasharray:4 4}.scanpoint{fill:#6a8f47}
.workbench{display:grid;grid-template-columns:minmax(0,4.4fr) minmax(0,6fr);gap:20px;align-items:stretch}
.panel{background:#fff;border:1px solid #dde1d5;border-radius:16px;min-width:0;box-shadow:0 4px 12px #27351b06}
.panel-heading{height:66px;border-bottom:1px solid #ebede5;display:flex;align-items:center;gap:11px;padding:0 23px}
.step{color:#526549;background:#eff2e8;border-radius:5px;font-size:11px;padding:3px 6px;letter-spacing:.02em}
.panel-heading h2{margin:0;font-size:17px;font-weight:750;letter-spacing:.025em}
.panel-heading>svg{margin-left:auto;color:#637259}
.settings-body,.preview-body{padding:22px 23px}
.field{margin-bottom:18px}
.field label,.toggle-row label:first-child{font-size:14px;font-weight:650}
.select-wrap{position:relative;margin-top:7px}
.select-wrap svg{position:absolute;right:12px;top:13px;color:#66715c;pointer-events:none}
select,input[type=text]{width:100%;height:46px;border:1px solid #dce2d5;background:#f8f9f4;border-radius:8px;padding:0 12px}
select{appearance:none;padding-right:42px}
input[type=text]{font-family:var(--mono);letter-spacing:.02em;margin-top:7px}
input::placeholder{color:#858c7c;font-size:13px}
input[aria-invalid=true]{border-color:#bb5241;background:#fff9f7}
.label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sample{border:0;background:none;color:#446437;font-size:12px;font-weight:700;padding:2px 0}
.sample:hover{text-decoration:underline;text-underline-offset:3px}
.field-help,.error,.preview-note{margin:7px 0 0;font-size:12px;color:var(--muted)}
.error{color:#a13626;font-weight:650}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ebede5;padding-top:15px;margin:0 0 17px}
.toggle{display:block;position:relative;width:40px;height:23px;flex:none}
.toggle input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.toggle span{display:block;width:100%;height:100%;border-radius:20px;background:#d6dcd0;pointer-events:none}
.toggle span::after{content:"";display:block;background:white;width:17px;height:17px;border-radius:50%;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #16271326;transition:transform .15s}
.toggle input:checked+span{background:#41653a}
.toggle input:checked+span::after{transform:translateX(17px)}
.toggle input:focus-visible+span{outline:2px solid #648145;outline-offset:3px}
.primary{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;position:relative;height:48px;border:1px solid #253623;background:#243822;color:#f4ffe8;border-radius:8px;font-weight:700}
.primary:hover{background:#354e30}
.primary svg{color:var(--lime)}
.primary .button-arrow{position:absolute;right:12px}
.preview-body{display:flex;flex-direction:column;gap:12px}
.preview-stage{min-height:234px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:17px;position:relative;overflow:hidden;background:radial-gradient(circle,#9eab923a .75px,transparent 1px) #edf1e7;background-size:12px 12px;border:1px solid #e0e6d8;border-radius:10px;padding:13px 14px}
.stage-top,.stage-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
.format-badge{font-size:10px;border:1px solid #d4ddcd;background:#f6f8f1;border-radius:4px;color:#435a3e;padding:3px 6px}
.stage-status{display:flex;align-items:center;gap:6px;color:#486042;font-size:11px;font-weight:700}
.stage-status i{width:6px;height:6px;border-radius:50%;background:#749950}
.stage-bottom{color:#5e6f57;font-size:10px;min-height:16px}
.paper{display:grid;place-items:center;align-self:center;max-width:100%;min-width:0;padding:9px;background:#fff;border:1px solid #e1e5da;border-radius:6px;box-shadow:0 4px 12px #2236190f}
#barcode{display:block;max-width:100%;height:auto;max-height:143px}
.empty-state{margin:0;text-align:center;font-size:13px;color:var(--muted)}
.export{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.download{height:45px;border:1px solid #dce2d5;background:#f8faf5;color:#2d442a;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:700}
.download:hover:not(:disabled){background:#e9efdf;border-color:#cbd8c3}
.download:disabled{opacity:.5}
.download svg,footer svg{width:17px!important;height:17px!important}
.preview-note{margin:0;text-align:center;min-height:18px}
footer{margin:23px 0 26px;padding:15px 0;border-top:1px solid #e2e4da;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#5a6654;font-size:12px}
footer div{display:flex;align-items:center;gap:7px}footer .mono{font-size:10px}
@media(max-width:830px){.shell{width:calc(100% - 48px)}.workbench{gap:13px}.panel-heading,.settings-body,.preview-body{padding-inline:16px}.hero-art{margin-right:0}}
@media(max-width:650px){.shell{width:calc(100% - 32px)}.topbar-inner{height:60px}.brand{font-size:15px}.brand-icon{width:33px;height:33px}.edition{font-size:9px;gap:5px}.hero{padding:30px 0 24px}.hero h1{font-size:clamp(30px,8.3vw,48px);margin-top:12px}.hero p{font-size:14px}.hero-art{display:none}.workbench{grid-template-columns:1fr;gap:14px}.panel-heading{height:55px}.settings-body,.preview-body{padding-block:16px}.preview-stage{min-height:218px}footer{margin-top:18px;align-items:flex-start;flex-direction:column;gap:8px}}
@media(prefers-reduced-motion:reduce){.toggle span::after{transition:none}}
