*{box-sizing:border-box}body{margin:0;background:#f3f5f8;color:#1b2b40;font-family:Inter,"Segoe UI","Microsoft JhengHei",sans-serif;font-size:14px}header{height:78px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid #e6eaf0}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#183c6c;font-size:20px;font-weight:750}.mark{display:grid;place-items:center;background:#183c6c;color:white;width:34px;height:36px;border-radius:10px}.brand-sub{border-left:1px solid #d9e0e8;margin-left:7px;padding-left:16px;font-size:13px;font-weight:500;color:#778499}.private{color:#648577;font-size:12px}main{max-width:1440px;margin:auto;padding:40px 5% 24px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{letter-spacing:2px;font-size:11px;font-weight:700;color:#8292a8}h1{font-size:32px;letter-spacing:-1px;margin:12px 0}p{color:#78879a;line-height:1.7}.intro p:last-child{margin-bottom:0}.sample-pill{padding:10px 16px;background:#e7edf5;border:1px solid #d8e2ef;border-radius:30px;color:#567293;font-size:12px;font-weight:650}.workspace{display:grid;grid-template-columns:360px minmax(0,1fr);gap:24px;align-items:start}aside{background:white;border:1px solid #e1e6ef;border-radius:15px;overflow:hidden}.panel-title{display:flex;align-items:center;gap:10px;padding:22px;border-bottom:1px solid #edf0f5}.panel-title>span{font-size:11px;color:#99a5b6}h2{font-size:15px;margin:0;font-weight:650}.text-button{margin-left:auto;border:0;background:none;color:#345f9a;cursor:pointer;font-size:12px}section{padding:18px 22px;border-bottom:1px solid #edf0f5}h3{font-size:12px;letter-spacing:.4px;margin:0 0 14px;color:#536781}.template-card{display:flex;gap:14px;padding:12px;border:1px solid #d6e3f4;background:#f7faff;border-radius:9px;align-items:center}.template-card img{width:42px;border:1px solid #e1e5ec;box-shadow:0 2px 6px #24344812}.template-card strong{font-size:12px}.template-card p{font-size:11px;margin:3px 0}.tag{font-size:10px;color:#6d879f}.row{display:flex;gap:10px}.row>label{flex:1;min-width:0}.row>label.grow{flex:2}label{display:block;font-size:11px;color:#6b7a8e;margin-bottom:12px}input,select,textarea{width:100%;margin-top:6px;border:1px solid #dce3eb;border-radius:6px;background:#fff;padding:10px;color:#26384e;font:12px "Segoe UI","Microsoft JhengHei",sans-serif;outline:none}input:focus,select:focus,textarea:focus{border-color:#6e99c8;box-shadow:0 0 0 3px #eaf2fb}textarea{resize:vertical}.hint{font-size:10px;margin:0;color:#8a97a7}.muted{float:right;color:#9ba8b9}.total{display:flex;justify-content:space-between;align-items:center;background:#f2f6fb;margin:2px 0 10px;padding:12px;border-radius:7px;color:#4c678b}.total strong{font-size:20px;color:#193c6c}.aside-foot{font-size:10px;padding:3px 22px 12px}.preview-panel{background:#e8edf3;border:1px solid #dfe5ed;border-radius:15px;overflow:hidden;position:sticky;top:16px}.preview-toolbar{background:white;display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #e6ebf1}.preview-heading{display:flex;align-items:center;gap:9px}.live-dot{background:#739c88;width:7px;height:7px;border-radius:50%}.page-tabs{display:flex;padding:3px;background:#f0f3f7;border-radius:7px}.page-tabs button{border:0;background:none;font-size:11px;color:#8190a3;padding:7px 12px;cursor:pointer;border-radius:5px}.page-tabs button[aria-pressed=true]{background:white;box-shadow:0 1px 4px #283d5814;color:#284f7b}.preview-meta{display:flex;justify-content:space-between;padding:18px 32px 0;font-size:10px;color:#8997a9;letter-spacing:.5px}.paper-space{padding:20px 32px 28px;min-height:400px;display:flex;flex-direction:column;align-items:center}canvas{display:block;width:100%;max-width:560px;height:auto;background:white;box-shadow:0 8px 30px #2b416620}#status{font-size:11px;text-align:center;margin:12px 0 0;color:#617793}.export-bar{background:white;display:flex;align-items:center;justify-content:space-between;padding:20px 24px;gap:15px}.export-bar strong{font-size:12px}.export-bar p{font-size:10px;margin:4px 0 0}.export-buttons{display:flex;gap:8px}button.primary,button.secondary{padding:11px 13px;border-radius:7px;font-size:11px;cursor:pointer;font-weight:600}.primary{color:white;background:#193e71;border:1px solid #193e71}.primary span{margin-left:10px}.secondary{background:white;border:1px solid #d9e1ec;color:#526681}button:disabled{opacity:.45;cursor:wait}button:hover:not(:disabled){filter:brightness(.96)}.notice{font-size:10px;text-align:center;margin:0;padding:11px;background:#f9fafc;color:#929db0}footer{max-width:1440px;margin:auto;padding:0 5% 25px;display:flex;justify-content:space-between;font-size:10px;color:#99a5b3}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1500px){.workspace{grid-template-columns:390px minmax(0,1fr)}}@media(max-width:1000px){.workspace{grid-template-columns:310px minmax(0,1fr);gap:16px}.paper-space{padding:18px}.export-bar{flex-direction:column;align-items:flex-start}.brand-sub{display:none}.preview-panel{position:static}}@media(max-width:720px){header{height:64px}.private{font-size:9px}.brand{font-size:17px}main{padding-top:24px}.intro{align-items:flex-start;gap:12px}h1{font-size:25px}.intro p{font-size:12px}.sample-pill{font-size:9px;padding:7px 9px;white-space:nowrap}.workspace{display:flex;flex-direction:column}aside,.preview-panel{width:100%}.export-bar{align-items:stretch}.export-buttons>*{flex:1}.preview-toolbar{padding:16px}.preview-meta{padding:16px 18px 0}footer{gap:20px}.eyebrow{font-size:9px;letter-spacing:1.5px}}

.qr-controls{display:flex;align-items:center;gap:12px;margin-bottom:10px}#qr-thumb{width:64px;height:64px;object-fit:contain;border:1px solid #dce3eb;background:white;padding:4px}.qr-controls .text-button{margin-left:0}input[type=file]{font-size:11px;padding:9px}input[type=file]::file-selector-button{border:0;border-radius:4px;padding:6px 9px;background:#eaf0f8;color:#254b7b;margin-right:8px}[hidden]{display:none!important}

.extra-section{border-bottom:1px solid #edf0f5}.extra-section summary{padding:18px 22px;cursor:pointer;font-size:12px;color:#536781;font-weight:650}.details-body{padding:0 22px 18px}input[readonly]{background:#f2f6fb;color:#516a8a}.asset-clear{margin:0 0 12px!important}
@media(min-width:1001px){.paper-space{max-height:calc(100vh - 240px);min-height:250px;overflow-y:auto;justify-content:flex-start}.paper-space canvas{flex-shrink:0}}

@font-face{font-family:StubOCR;src:url("fonts/ShareTechMono-Regular.ttf") format("truetype");font-display:swap}input[name="stubText"]{font-family:StubOCR,Consolas,monospace}

@font-face{font-family:DemoOCR;src:url("fonts/DemoOCR.ttf") format("truetype");font-display:swap}
input[readonly],textarea[readonly]{background:#f3f6f9;color:#52647a}#target-fields{padding:14px;border:1px solid #c5d9d0;border-radius:10px;background:#f7fbf8;margin:12px 0}

.preview-zoom{display:flex;align-items:center;gap:8px;font-size:12px;margin:0}.preview-zoom select{width:auto;margin:0;padding:4px 8px;font-size:12px}.paper-space{overflow:auto}

@font-face{font-family:ReceiptGrid;src:url("fonts/ReceiptGrid.ttf") format("truetype");font-display:swap}

#qr-auto-preview{display:block;width:168px;height:168px;image-rendering:pixelated;margin:12px 0;border:1px solid #dde5ee;border-radius:4px}#qr-auto-preview[hidden]{display:none}
