@font-face{font-family:LabelLatin;src:url(./vendor/LabelLatin-Regular.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:LabelLatin;src:url(./vendor/LabelLatin-Bold.ttf) format("truetype");font-weight:700;font-display:swap}
:root{color-scheme:light;--ink:#15243b;--muted:#69778b;--line:#e2e7ef;--blue:#315df5;--blue-dark:#2348cd;--paper:#fff;--bg:#f4f6fa;--radius:14px;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-synthesis:none;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.5}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #97b0ff;outline-offset:3px}[hidden]{display:none!important}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,p{margin:0}h2{font-size:1rem;font-weight:650}.topbar{height:80px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(32px,calc((100vw - 1260px)/2));gap:24px}.brand{display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;font-weight:700;font-size:1.25rem;white-space:nowrap}.brand-mark{display:grid;grid-template-columns:9px 9px;gap:4px;padding:10px;border:1px solid #ffffff30;border-radius:10px}.brand-mark i{width:9px;height:9px;background:#fff;border-radius:1px}.brand-mark i:last-child{background:#fb9c43}.brand-tag{font-weight:450;font-size:.8125rem;color:#b7c5dc;margin-left:14px;padding-left:14px;border-left:1px solid #4e5c71}.privacy{display:flex;align-items:center;gap:8px;color:#c8d3e3;font-size:.875rem}.privacy svg{color:#c8d3e3;width:18px;height:18px}.shell{max-width:1324px;margin:auto;padding:36px 32px 22px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font-size:.75rem;letter-spacing:.09em;font-weight:650;color:var(--muted);margin-bottom:5px}h1{font-size:1.875rem;letter-spacing:-.04em;font-weight:730;margin-bottom:7px}.page-title p{color:var(--muted);font-size:.9375rem}.output-badge{color:var(--ink);background:#e9edf5;border:1px solid #dde3ed;padding:8px 12px;border-radius:7px;font-size:.8125rem;font-weight:750;display:flex;align-items:center;gap:9px;white-space:nowrap}.output-badge span{font-weight:450;color:var(--muted);border-left:1px solid #ccd4e0;padding-left:9px}.workspace{display:grid;grid-template-columns:296px minmax(0,1fr);gap:24px;align-items:start}.settings-panel,.main-panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}.settings-panel{overflow:hidden;padding:23px}.panel-heading{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:23px}.step-number{font-size:.75rem;font-weight:700;background:#edf1ff;color:var(--blue);border-radius:5px;padding:3px 6px;font-variant-numeric:tabular-nums}.step-number.muted{color:var(--muted);background:#eff2f6}.field{margin-bottom:22px}.field>label{font-size:.875rem;font-weight:600;margin-bottom:9px;display:flex;justify-content:space-between;gap:8px}.field>label span{font-size:.8125rem;color:var(--muted);font-weight:500}select,input[type=number]{width:100%;border:1px solid #d5dce8;background:white;border-radius:7px;padding:10px 11px;color:var(--ink);font-size:.875rem;min-height:44px}select{padding-right:30px}.field-help{font-size:.8125rem;color:var(--muted);line-height:1.6;margin-top:8px}.grid-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}fieldset{margin:0;padding:0;border:0}legend{font-size:.875rem;font-weight:600;margin-bottom:10px}.dpi-field{margin-bottom:23px}.segmented{display:flex;background:#f3f5f9;border:1px solid var(--line);border-radius:8px;padding:3px;gap:2px}.segmented label{flex:1;text-align:center;position:relative}.segmented input{position:absolute;width:1px;height:1px;opacity:0}.segmented span{display:block;font-size:.8125rem;padding:8px 2px;white-space:nowrap;color:var(--muted);cursor:pointer;border-radius:5px}.segmented input:checked+span{background:white;box-shadow:0 1px 4px #14254115;color:var(--blue);font-weight:650}.segmented input:focus-visible+span{outline:2px solid #97b0ff}input[type=range]{accent-color:var(--blue);width:100%;margin:0}.range-labels{display:flex;justify-content:space-between;font-size:.75rem;color:#8290a3}.check-row{display:flex;align-items:center;gap:9px;margin:14px 0;font-size:.875rem;cursor:pointer}.check-row input{width:16px;height:16px;accent-color:var(--blue);margin:0;flex:none}.settings-footer{border-top:1px solid var(--line);margin-top:25px;padding-top:20px}.settings-footer p{font-size:.75rem;color:var(--muted);text-align:center;margin-top:11px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;min-height:44px;line-height:1.4;border:1px solid transparent;border-radius:7px;font-size:.875rem;font-weight:600;transition:background .15s,box-shadow .15s;white-space:nowrap;text-decoration:none}.primary{background:var(--blue);color:white}.primary:not(:disabled):hover{background:var(--blue-dark);box-shadow:0 3px 9px #315df52a}.secondary{background:white;border-color:#d5dce8;color:var(--ink)}.secondary:hover{background:#f2f5fa}.quiet{color:var(--blue);background:#f0f4ff}.quiet:hover{background:#e4ecff}.text-button{background:transparent;color:var(--muted);padding:3px 10px;min-height:32px}.wide{width:100%}.main-panel{padding:24px;min-height:566px}.upload-area{border:1.5px dashed #bdc9df;border-radius:11px;display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:292px;background:linear-gradient(120deg,#f9faff,#f7f9fd);padding:28px 14px;transition:background .2s,border-color .2s}.upload-area.dragging{background:#eaf0ff;border-color:var(--blue)}.upload-icon{width:58px;height:58px;display:flex;align-items:center;justify-content:center;border:1px solid #dfe6f3;border-radius:13px;background:#fff;margin-bottom:15px;color:var(--blue);box-shadow:0 3px 8px #172e6010}.upload-icon svg{width:34px;height:34px;stroke-width:1.5}.upload-area h2{font-size:1.125rem}.upload-area p{font-size:.875rem;color:var(--muted);margin-top:4px;margin-bottom:19px}.upload-meta{font-size:.75rem;color:#7b889b;margin-top:14px}.empty-state{margin-top:28px}.empty-title{display:flex;gap:9px;align-items:center}.empty-title h2{color:#6d7a8e;font-size:.9375rem}.empty-content{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:30px 12px 7px;color:var(--muted)}.empty-content svg{width:28px;height:28px;color:#9cabc1;margin-bottom:4px}.empty-content p{font-size:.875rem}.empty-content span{font-size:.75rem;color:#8c98aa}.file-summary{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:24px;min-width:0}.file-icon{display:flex;align-items:center;justify-content:center;width:43px;height:49px;background:#edf2ff;border-radius:8px;color:var(--blue);flex:none}.file-details{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.file-details strong{font-size:.9375rem;font-weight:600;overflow-wrap:anywhere}.file-details span{font-size:.8125rem;color:var(--muted)}.file-summary .button{font-size:.8125rem;padding:7px 12px}.progress-area{margin:16px 0 22px}.progress-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.875rem;margin-bottom:9px}.progress-area progress{display:block;width:100%;height:6px;accent-color:var(--blue);border:0;border-radius:8px;overflow:hidden}progress::-webkit-progress-bar{background:#e9eef8}progress::-webkit-progress-value{background:var(--blue)}.progress-area>.button{display:flex;margin:8px 0 0 auto}.notice{padding:12px 15px;font-size:.875rem;border:1px solid #d9e4ff;background:#f2f6ff;color:#354f8c;border-radius:8px;margin-bottom:20px;overflow-wrap:anywhere}.notice.error{background:#fff2f1;color:#a13b35;border-color:#f1d5d1}.notice.warn{background:#fff8ec;color:#856323;border-color:#eee0c3}.results-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px}.results-toolbar h2{font-size:1.25rem}.results-toolbar h2>span:first-child{font-variant-numeric:tabular-nums}.results-toolbar h2>span:last-child{font-size:.75rem;font-weight:500;color:var(--muted);padding:3px 6px;background:#f0f3f8;margin-left:10px;border-radius:4px;white-space:nowrap}.result-tip{font-size:.8125rem;color:var(--muted);margin-top:8px;margin-bottom:21px}.label-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.label-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white;transition:border-color .15s,box-shadow .15s}.label-card:hover{border-color:#bac9ed;box-shadow:0 3px 14px #11274708}.label-image-button{width:100%;border:0;border-bottom:1px solid var(--line);background:#f3f5f9;display:flex;align-items:center;justify-content:center;padding:18px;min-height:190px;height:235px;position:relative}.label-image-button img{display:block;max-width:100%;max-height:100%;object-fit:contain;background:white;box-shadow:0 2px 7px #172d6015}.label-image-button .expand{position:absolute;bottom:8px;right:8px;font-size:.75rem;padding:3px 6px;background:#ffffffed;border:1px solid #dfe5ef;border-radius:4px;color:#65758a;opacity:0;transition:opacity .15s}.label-image-button:hover .expand,.label-image-button:focus-visible .expand{opacity:1}.label-card-body{padding:14px}.label-card-title{display:flex;gap:8px;align-items:center;margin-bottom:5px}.label-index{font-size:.75rem;font-weight:650;padding:2px 5px;border-radius:4px;background:#edf2ff;color:var(--blue);flex:none}.label-card-title strong{font-size:.8125rem;font-weight:600;overflow-wrap:anywhere;min-width:0}.label-card-meta{font-size:.75rem;color:var(--muted);margin-bottom:12px}.label-card-actions{display:flex;gap:8px}.label-card-actions .button{font-size:.8125rem;min-height:36px;padding:7px 11px;flex:1}.label-card-actions svg{width:16px;height:16px}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:.75rem;color:#8a97aa;margin-top:23px}.editor-dialog{border:1px solid #dbe3ef;border-radius:16px;padding:0;width:min(980px,calc(100vw - 40px));max-height:94dvh;box-shadow:0 20px 80px #14223a40;color:var(--ink)}.editor-dialog::backdrop{background:#0f1a30aa;backdrop-filter:blur(3px)}.dialog-header{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:1rem;overflow-wrap:anywhere}.icon-button{font-size:1.625rem;background:#f1f4f9;border:0;border-radius:6px;width:36px;height:36px;color:#617087;flex:none;margin-left:12px}.editor-body{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:0;max-height:calc(94dvh - 166px);overflow:auto}.editor-preview{background:#e9edf5;padding:24px;min-height:280px;overflow:hidden;display:flex;align-items:flex-start;justify-content:center}.page-canvas-wrap{position:relative;width:min(100%,440px);line-height:0;box-shadow:0 4px 20px #1b315025;flex:none}.page-canvas-wrap canvas{width:100%;height:auto;display:block;background:white}.crop-box{position:absolute;box-sizing:border-box;border:2px solid var(--blue);background:#315df510;cursor:move;touch-action:none;line-height:1.3}.crop-label{position:absolute;top:-24px;left:-2px;font-size:.75rem;line-height:22px;background:var(--blue);color:white;padding:0 6px;white-space:nowrap;border-radius:4px 4px 0 0;pointer-events:none}.crop-handle{position:absolute;background:#fff;border:2px solid var(--blue);width:13px;height:13px;padding:0;touch-action:none;border-radius:2px}.crop-handle.nw{left:-7px;top:-7px;cursor:nw-resize}.crop-handle.ne{right:-7px;top:-7px;cursor:ne-resize}.crop-handle.sw{left:-7px;bottom:-7px;cursor:sw-resize}.crop-handle.se{right:-7px;bottom:-7px;cursor:se-resize}.editor-settings{padding:22px;background:white}.editor-settings p{font-size:.875rem;color:var(--muted);line-height:1.7}.editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px 10px;margin:23px 0}.editor-fields label{display:block;font-size:.75rem;color:var(--muted)}.editor-fields input{margin-top:6px}.editor-note{font-size:.75rem!important;margin-top:16px}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 22px;border-top:1px solid var(--line)}.dialog-footer>span{font-size:.8125rem;color:var(--muted)}.noscript{padding:24px;background:#fff1d8;text-align:center}
@media(min-width:1500px){.shell{padding-top:46px}.main-panel{min-height:600px}.upload-area{min-height:325px}.label-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.label-image-button{height:195px}.workspace{grid-template-columns:296px minmax(0,1fr)}}
@media(max-width:860px){.topbar{height:70px;padding:0 22px}.privacy{font-size:.75rem}.brand-tag{display:none}.shell{padding:26px 22px 20px}.workspace{grid-template-columns:255px minmax(0,1fr);gap:16px}.settings-panel{padding:18px}.main-panel{padding:18px}.label-grid{grid-template-columns:1fr}.results-toolbar{flex-wrap:wrap}.results-toolbar .button{width:100%}.page-title h1{font-size:1.65rem}.editor-body{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:640px){.topbar{height:auto;min-height:68px;padding:14px 18px;flex-wrap:wrap;gap:6px}.brand{font-size:1.125rem}.brand-mark{padding:8px}.privacy{font-size:.6875rem;margin-left:auto}.privacy svg{width:15px;height:15px}.shell{padding:25px 16px 20px}.page-title{margin-bottom:20px}.page-title h1{font-size:1.5rem}.page-title p{font-size:.875rem}.output-badge{display:none}.workspace{display:flex;flex-direction:column;gap:16px}.main-panel{order:0;width:100%;min-height:0}.settings-panel{order:1;width:100%}.settings-panel form{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.settings-panel .field:first-child{grid-column:1/-1}.grid-controls{grid-column:1/-1}.dpi-field{grid-column:1/-1}.settings-panel .field:has(#margin){grid-column:1/-1}.settings-footer{grid-column:1/-1;margin-top:12px}.check-row{font-size:.8125rem;align-items:flex-start}.upload-area{min-height:270px}.empty-state{margin-bottom:13px}.label-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.label-image-button{min-height:0;height:165px;padding:10px}.label-card-body{padding:10px}.label-card-title{align-items:flex-start;gap:5px}.label-card-title strong{font-size:.75rem}.label-card-actions{flex-direction:column;gap:5px}.label-card-meta{font-size:.6875rem}.results-toolbar{gap:10px}.results-toolbar .button{width:100%}.file-summary{gap:9px;flex-wrap:wrap}.file-details{width:calc(100% - 52px)}.file-summary .button{margin-left:52px}.page-footer{flex-direction:column;align-items:flex-start;gap:4px;margin-top:18px}.editor-dialog{width:calc(100vw - 20px);max-height:95dvh}.editor-body{display:flex;flex-direction:column;max-height:calc(95dvh - 170px)}.editor-preview{padding:24px 20px}.page-canvas-wrap{max-width:280px}.editor-settings{padding:18px}.editor-fields{margin:15px 0;grid-template-columns:repeat(4,1fr);gap:7px}.editor-fields input{padding:7px;font-size:.8125rem}.dialog-header{padding:15px}.dialog-footer{padding:12px 15px}}
.mask-overlay{position:absolute;background:white;border:1px dashed #f09b37;pointer-events:none}.crop-box.mask{border-color:#e88d23;background:#e88d231c}.crop-box.mask .crop-label{background:#dd8220}.crop-box.mask .crop-handle{border-color:#dd8220}.edit-target-label{display:block;font-size:.875rem;font-weight:600;margin-bottom:8px}.mask-actions{display:flex;gap:8px;margin-bottom:12px}.mask-actions .button{flex:1;padding:8px 6px;font-size:.8125rem}.settings-panel .field:has(#output-size){grid-column:1/-1}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.download-actions{display:flex;gap:8px;flex-wrap:wrap}.results-toolbar{flex-wrap:wrap}.print-tip{font-size:.75rem;color:var(--muted);line-height:1.7;margin:-3px 0 18px}.label-card-actions{display:grid;grid-template-columns:1fr 1fr}.label-card-actions .edit-label{grid-column:1/-1}.label-card-actions .button{min-width:0;padding:7px 6px}@media(max-width:860px){.download-actions{width:100%}.download-actions .button{width:auto;flex:1}}@media(max-width:640px){.label-card-actions{grid-template-columns:1fr}.label-card-actions .edit-label{grid-column:auto}}
.notice-settings{grid-column:1/-1;border-top:1px solid var(--line);padding-top:8px;margin-bottom:22px}.notice-settings .field{margin-bottom:0}.notice-settings .check-row{align-items:flex-start}.notice-settings input:disabled{background:#f3f5f9;color:#8792a3}
.label-card-actions .edit-label{grid-column:auto}.print-preview-page{height:100dvh;display:flex;flex-direction:column;background:#e9edf5}.print-preview-toolbar{background:#fff;padding:18px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.print-preview-toolbar h1{font-size:1.25rem;margin-bottom:4px}.print-preview-toolbar p{color:var(--muted);font-size:.875rem}.print-preview-actions{display:flex;gap:8px;flex-wrap:wrap}.print-preview-status{background:#f8faff;padding:12px 24px;border-bottom:1px solid var(--line);font-size:.875rem}.print-preview-status progress{display:block;width:100%;height:7px;margin:10px 0;accent-color:var(--blue)}.print-preview-help{font-size:.75rem;color:var(--muted);margin-top:6px}.print-preview-document{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.print-preview-document iframe{width:100%;height:100%;border:0;background:white}.print-preview-document>p{color:var(--muted);padding:24px}@media(max-width:640px){.print-preview-toolbar,.print-preview-status{padding:14px 16px}.print-preview-actions{width:100%}.print-preview-actions .button{flex:1;padding:8px 12px}}
