:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18343a;background:#f5f7f3;font-synthesis:none}*{box-sizing:border-box}html{scroll-behaviour:smooth}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:inherit}a:focus-visible,button:focus-visible,[role="button"]:focus-visible,input:focus-visible{outline:3px solid #e1a63d;outline-offset:3px}[hidden]{display:none!important}.app-shell{max-width:1200px;padding:0 28px;margin:auto}.topbar{height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce4de}.brand{display:inline-flex;align-items:center;gap:12px;font-size:25px;letter-spacing:-1.3px;text-decoration:none;font-weight:420}.brand-bold{font-weight:820}.brand sup{font-size:9px;letter-spacing:.7px;text-transform:uppercase;vertical-align:top;color:#5e8484;margin:0 0 0 6px;font-weight:800}.brand-mark{width:33px;height:35px;position:relative;display:inline-block}.brand-mark i{position:absolute;width:22px;height:26px;border:2px solid #18343a;border-radius:3px;background:#f5f7f3;transform:rotate(-7deg)}.brand-mark i:nth-child(1){left:0;top:1px}.brand-mark i:nth-child(2){left:5px;top:4px}.brand-mark i:nth-child(3){left:10px;top:7px;background:#faad76}.privacy-chip{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;color:#4c6864}.privacy-dot{background:#419b77;width:8px;height:8px;border-radius:50%;box-shadow:0 0 0 3px #e0f4ea}.hero{padding:52px 0 43px;max-width:770px}.eyebrow{font-weight:800;letter-spacing:1.9px;font-size:10px;color:#60817d;display:inline-flex;align-items:center;gap:10px}.eyebrow-line{background:#eea76f;height:2px;width:26px}.hero h1{font-size:clamp(48px,7vw,84px);line-height:.98;letter-spacing:-4px;font-weight:790;margin:17px 0 20px}.hero h1 em{font-style:normal;color:#ee9761}.hero p{font-size:16px;line-height:1.7;color:#5e7270;max-width:590px;margin:0}.workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:20px;align-items:start}.workspace-main{display:flex;flex-direction:column;gap:20px;min-width:0}.panel{background:#fff;border:1px solid #e2e8e3;border-radius:17px;padding:25px;box-shadow:0 8px 35px #203e3906}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 22px}.section-heading>div{display:flex;align-items:center;gap:11px}.section-heading h2{font-size:18px;line-height:1.2;letter-spacing:-.5px;margin:0;font-weight:750}.step{background:#edf5ef;color:#5a8071;font-size:10px;font-weight:900;letter-spacing:.5px;padding:8px 9px;border-radius:7px}.tiny-muted{font-size:12px;color:#91a09c}.dropzone{background:#f9fbf9;border:2px dashed #c6d7cc;border-radius:13px;min-height:252px;padding:25px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;transition:background .2s,border-color .2s}.dropzone.over,.dropzone:hover{background:#f2f8f1;border-color:#74a78e}.upload-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:17px;background:#e8f2e9;color:#507760;margin-bottom:11px}.upload-icon svg{height:35px;width:35px}.dropzone h3{font-size:16px;font-weight:750;margin:0 0 6px;letter-spacing:-.3px}.dropzone p{font-size:13px;color:#7b9289;margin:0 0 17px}.btn{min-height:44px;border:0;border-radius:9px;padding:10px 17px;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:13px;font-weight:760;transition:filter .2s,transform .16s}.btn:active{transform:scale(.98)}.btn-dark{background:#19353a;color:#fff}.btn-dark:hover,.btn-accent:hover{filter:brightness(1.1)}.btn-accent{background:#f1aa73;color:#16323b}.btn-outline{border:1px solid #d2e0d7;background:#fff;color:#234249}.btn-full{width:100%}.upload-footer{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:11px;color:#688277;margin-top:16px}.upload-footer span::first-letter{color:#46956f}.count-bubble{font-size:11px;background:#edf2ee;border-radius:6px;padding:4px 7px;vertical-align:middle;color:#56786c}.text-btn{background:none;border:0;padding:7px 0;font-size:12px;color:#8e6e55;font-weight:750}.empty-state{padding:29px 5px 38px;text-align:center;display:flex;flex-direction:column;align-items:center}.empty-stack{height:70px;width:80px;position:relative;margin:0 0 14px}.empty-stack i{position:absolute;width:44px;height:56px;border:2px solid #c9d9d1;border-radius:6px;background:#f4f8f5;left:17px;top:5px;transform:rotate(-12deg)}.empty-stack i:nth-child(2){left:22px;transform:rotate(0deg)}.empty-stack i:nth-child(3){left:29px;top:10px;transform:rotate(12deg);background:#eef3ee}.empty-state strong{font-size:14px}.empty-state p{color:#8a9c95;font-size:12px}.labels-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.label-card{border:1px solid #e0e8e2;border-radius:12px;overflow:hidden;min-width:0;background:#fff;position:relative}.label-card.duplicate{border-color:#e9cb9e}.label-card.off{opacity:.55}.preview-wrap{min-height:202px;height:208px;background:#eef2ee;display:flex;align-items:center;justify-content:center;padding:10px;position:relative}.label-preview{height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 3px 4px #182d2626);background:#fff}.label-status{position:absolute;top:9px;left:9px;display:inline-block;padding:5px 7px;border-radius:6px;background:#e3f5e9;color:#3d725a;font-size:10px;font-weight:800}.label-status.dup{background:#fff0d9;color:#875c2c}.label-status.needs-review{background:#fff0d9;color:#875c2c;top:33px}.label-meta{padding:13px 13px 6px}.label-meta strong{font-size:13px;display:block;margin-bottom:4px}.label-meta small{font-size:11px;color:#859790;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.label-actions{border-top:1px solid #edf1ed;margin:10px 13px 0;padding:8px 0 9px;display:flex;flex-wrap:wrap;align-items:center;gap:7px}.mini-btn{background:#eef4ef;border:1px solid #e2ece4;padding:7px 9px;border-radius:6px;font-size:11px;font-weight:700;color:#34594e;min-height:33px}.mini-btn:disabled{opacity:.3}.mini-btn.icon{min-width:33px;font-size:16px;padding:5px}.mini-btn.remove{background:#fff5ee;color:#ad775b;margin-left:auto}.include-toggle{display:flex;align-items:center;gap:6px;color:#5b7369;font-weight:650;font-size:11px;padding:3px 0}.include-toggle input{accent-color:#255e4e}.notice{background:#fff6e7;color:#86653e;font-size:12px;line-height:1.5;border:1px solid #f5e0ba;border-radius:8px;padding:10px 13px;margin-bottom:15px}.alert.error{border-radius:8px;background:#fff0ed;padding:12px;margin-top:16px;color:#9d3c38;font-size:12px;line-height:1.6}.progress{display:flex;align-items:center;gap:10px;color:#5b7773;font-size:13px;padding-bottom:14px}.spinner{display:inline-block;width:16px;height:16px;border-radius:50%;border:2px solid #d2e3d8;border-top-color:#4b826a;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.settings-panel{position:sticky;top:16px}.setting-name{display:block;font-size:12px;font-weight:800;margin-bottom:11px}.format-switch{display:grid;grid-template-columns:1fr 1fr;gap:9px}.format-choice{border:1.5px solid #e3e8e3;border-radius:11px;padding:14px 8px 12px;display:flex;align-items:center;flex-direction:column;gap:10px;cursor:pointer;min-height:113px}.format-choice.selected{border-color:#527e68;background:#f3f9f4}.format-choice input,.segmented input{position:absolute;opacity:0;width:1px;height:1px}.format-choice strong,.format-choice small{display:block;text-align:center}.format-choice strong{font-size:13px}.format-choice small{font-size:11px;color:#8ba095;margin-top:2px}.format-art{display:block;border:2px solid #7b9a84;position:relative;background:white}.thermal-art{width:30px;height:40px;border-radius:2px}.thermal-art:before{content:"";position:absolute;left:6px;right:6px;top:10px;height:4px;background:repeating-linear-gradient(90deg,#52755c 0 1px,transparent 1px 3px)}.thermal-art:after{content:"";position:absolute;left:6px;right:6px;top:23px;height:2px;background:#cbdacf}.a4-art{width:34px;height:42px;border-radius:2px}.a4-art:before{content:"";position:absolute;inset:8px 6px;background:linear-gradient(90deg,#cbdacf 47%,white 47% 53%,#cbdacf 53%);mask-image:repeating-linear-gradient(180deg,#000 0 8px,transparent 8px 10px)}.settings-section{margin-top:22px}.segmented{display:flex;border:1px solid #dfe8e0;border-radius:9px;background:#f4f7f4;padding:4px;gap:4px}.segmented label{flex:1;cursor:pointer}.segmented span{border-radius:6px;display:block;text-align:center;padding:9px 0;font-size:13px;font-weight:760}.segmented input:checked+span{background:white;color:#23493b;box-shadow:0 2px 6px #253c291a}.setting-hint{font-size:11px;color:#839b8a;line-height:1.6;margin:9px 0 14px}.settings-divider{height:1px;background:#eef2ef;margin:23px 0}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:9px 0;font-size:12px;cursor:pointer;min-height:32px}.toggle-row strong{font-size:13px;display:block}.toggle-row small{font-size:11px;color:#8ca095;display:block;margin-top:4px}.toggle-row input{position:absolute;opacity:0}.toggle-visual{width:39px;height:23px;background:#d5ded8;border-radius:20px;flex:0 0 auto;position:relative}.toggle-visual:after{content:"";position:absolute;left:3px;top:3px;width:17px;height:17px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .2s}.toggle-row input:checked+.toggle-visual{background:#3c8367}.toggle-row input:checked+.toggle-visual:after{transform:translateX(16px)}.summary{display:flex;justify-content:space-between;align-items:center;color:#789086;font-size:12px;margin:0 0 12px}.summary strong{font-size:16px;color:#18373b}.settings-panel>.btn{margin-top:12px;min-height:51px}.settings-footnote{font-size:11px;line-height:1.6;text-align:center;color:#95a59e;margin:13px 3px 0}.result-panel{margin-top:23px;background:#f1f8ef;border:1px solid #cee4d2;border-radius:11px;padding:14px}.result-heading{display:flex;align-items:center;gap:8px;font-size:13px}.check-mark{background:#4e956f;color:white;border-radius:100%;padding:3px 6px}.result-panel p{font-size:11px;line-height:1.5;color:#688073}.result-actions{display:grid;gap:7px}.result-hint{margin-bottom:0}.how-it-works{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:23px;margin-top:45px;padding:30px 0 50px;border-top:1px solid #dfe8df}.how-lead h2{font-size:29px;letter-spacing:-1px;line-height:1.1;margin:13px 0}.how-step{padding-top:3px}.how-step>span{font-size:12px;color:#eca275;font-weight:800}.how-step strong{display:block;margin-top:13px;font-size:14px}.how-step p{font-size:12px;line-height:1.7;color:#748b83;margin-top:8px}footer{border-top:1px solid #dfe7df;text-align:center;font-size:11px;color:#90a299;padding:24px 0 42px}footer span{padding:0 6px}.modal{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:18px}.modal-overlay{position:absolute;inset:0;background:#0f292bd9}.modal-box{position:relative;background:#fff;border-radius:16px;padding:20px;width:min(100%,560px);max-height:95dvh;overflow:auto;box-shadow:0 20px 60px #0003}.modal-head{display:flex;justify-content:space-between;align-items:start}.modal-head>div{display:flex;gap:11px;align-items:center}.modal-head h2{font-size:18px;margin:0}.icon-btn{background:#f3f6f4;border:0;border-radius:9px;width:36px;height:36px;font-size:25px;line-height:1}.crop-help{font-size:12px;color:#6d8980;line-height:1.55}.crop-stage-wrap{display:flex;align-items:center;justify-content:center;min-height:180px;background:#ebf0ed;border-radius:10px;padding:12px;max-height:61dvh;overflow:auto}.crop-stage{position:relative;width:100%;max-height:56dvh;touch-action:none;user-select:none;box-shadow:0 3px 14px #0002}.crop-stage img{width:100%;height:100%;position:absolute;inset:0;pointer-events:none;background:white}.crop-rect{position:absolute;border:2px solid #f38c4e;background:#f38c4e18;cursor:move;touch-action:none;box-shadow:0 0 0 1500px #102d3050}.handle{position:absolute;width:16px;height:16px;border:3px solid #fff;background:#ef8f53;border-radius:50%;box-shadow:0 1px 4px #0004;touch-action:none}.handle.nw{left:-8px;top:-8px;cursor:nwse-resize}.handle.ne{right:-8px;top:-8px;cursor:nesw-resize}.handle.sw{left:-8px;bottom:-8px;cursor:nesw-resize}.handle.se{right:-8px;bottom:-8px;cursor:nwse-resize}.crop-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px}.crop-actions .btn{flex:1}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#17343b;color:white;padding:13px 18px;border-radius:10px;font-size:12px;max-width:min(95vw,460px);box-shadow:0 9px 28px #0003;opacity:0;pointer-events:none;transition:all .2s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:850px){.workspace{grid-template-columns:minmax(0,1fr)}.settings-panel{position:static}.how-it-works{grid-template-columns:repeat(2,1fr)}.how-lead{grid-column:1/-1}}@media(max-width:560px){.app-shell{padding:0 15px}.topbar{height:76px}.brand{font-size:23px}.brand-mark{transform:scale(.88)}.privacy-chip{font-size:0;gap:0;padding:10px}.privacy-dot{width:9px;height:9px}.hero{padding:41px 8px 30px}.hero h1{font-size:59px;letter-spacing:-3.7px;margin:14px 0}.hero p{font-size:14px;line-height:1.65}.panel{padding:17px;border-radius:14px}.dropzone{min-height:227px}.section-heading{margin-bottom:17px}.labels-grid{gap:9px}.preview-wrap{height:166px;min-height:166px;padding:8px}.label-meta{padding:10px 9px 2px}.label-actions{margin:9px 8px 0;gap:5px}.mini-btn{font-size:10px;padding:6px 7px}.mini-btn.icon{min-width:29px}.label-meta strong{font-size:12px}.label-meta small{font-size:10px}.how-it-works{gap:14px}.how-lead h2{font-size:26px}.how-step p{font-size:11px}}

/* Folder upload: additive to the original v0.3 file picker. */
.upload-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:3px}
.upload-actions .btn{min-width:135px}
.dropzone .folder-help{font-size:11px;line-height:1.55;margin:12px 0 0;color:#688277;max-width:360px}
.import-feedback{margin:12px 0 0;font-size:12px;color:#436e5b;line-height:1.5}
@media(max-width:370px){.upload-actions .btn{min-width:120px;padding:10px 11px}}

/* v0.3.2: phones use the reliable multi-file picker, desktops keep folders. */
.phone-upload-copy{display:none}
html.phone-device .folder-only{display:none!important}
html.phone-device .desktop-upload-copy{display:none!important}
html.phone-device .phone-upload-copy{display:block!important}
/* Responsive fallback for small mobile browser viewports, regardless of UA. */
@media(max-width:650px){
  .folder-only,.desktop-upload-copy{display:none!important}
  .phone-upload-copy{display:block!important}
  .upload-actions #chooseBtn{min-width:160px}
}

/* v0.3.3: make the drop area unmistakable on desktop and phones. */
.dropzone{cursor:pointer;outline-offset:4px}
.dropzone.over{background:#e8f5e9;border-color:#338662;box-shadow:0 0 0 5px #33866218;transform:translateY(-1px)}
.dropzone.over .upload-icon{color:#236849}
@media(hover:none) and (pointer:coarse){.dropzone{cursor:default}}
