:root{font-family:system-ui,-apple-system,sans-serif;color:#20231c;background:#f4f5ef;font-synthesis:none;line-height:1.6;--line:#dedfd6;--muted:#777b70;--yellow:#ffcf00}*{box-sizing:border-box}body{margin:0}main{max-width:1000px;margin:auto;padding:40px 24px 210px}header,.row{display:flex;gap:16px;align-items:center}header,.between{justify-content:space-between}h1{font-size:32px;line-height:1.4;margin:0;font-weight:750}h2{font-size:20px;margin:0 0 12px;line-height:1.5}.subtitle{margin:4px 0 0;color:var(--muted);font-size:17px}.badge{background:var(--yellow);padding:9px 20px;border-radius:6px;font-size:22px;font-weight:750;white-space:nowrap;text-align:center}.badge small{display:block;font-size:10px;font-weight:500}small{font-size:12px;color:var(--muted)}aside{color:#656b5e;padding:12px 0;margin:16px 0 4px;font-size:13px}nav{display:flex;gap:24px;padding:12px 0 20px;font-size:14px;color:var(--muted)}nav span.active{color:#20231c;font-weight:700;border-bottom:3px solid var(--yellow)}section{background:#fff;padding:28px;border:1px solid var(--line);border-radius:20px;margin-bottom:22px}p{color:var(--muted)}button,.upload{font:inherit;font-weight:650;cursor:pointer;border:1px solid #20231c;background:#20231c;color:#fff;padding:12px 20px;border-radius:12px;display:inline-block;min-height:48px}button:disabled{background:#b7b9b1;border-color:#b7b9b1;color:#fff;cursor:not-allowed}.secondary{background:#fff;color:#20231c;border-color:var(--line)}input:not([type=radio]):not([type=checkbox]):not([type=file]){display:block;font:inherit;width:100%;min-width:0;flex:1;border:1px solid var(--line);border-radius:12px;padding:14px;background:#f4f5ef}input[readonly]{color:#61665b}label{display:block;margin:8px 0}input[type=checkbox],input[type=radio]{width:20px;height:20px;vertical-align:middle;margin:0 7px 0 0;accent-color:#252b20}input[type=file]{display:block;max-width:220px;font-size:12px;margin-top:6px}.results{display:grid;gap:12px;margin-top:20px}.result{text-align:left;background:#f7f8f3;color:inherit;border-color:var(--line)}.result span{display:block;font-size:13px;font-weight:400}.existing{padding:15px;background:#f5f6f0;border:1px dashed var(--line);margin:14px 0}.capture-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.capture-grid h2{color:#6d7165;font-size:17px}.capture-slot{height:245px;background:#f4f5ef;border:2px dashed var(--line);border-radius:16px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;position:relative;overflow:hidden;color:#767b6e;font-size:20px;cursor:pointer;margin:0 0 8px}.capture-slot svg{width:44px;height:44px}.capture-slot input{position:absolute;inset:0;width:100%;height:100%;max-width:none;opacity:0;cursor:pointer;margin:0}.capture-slot:focus-within{outline:3px solid #a38500;outline-offset:3px}.capture-slot.busy{opacity:.5}.capture-slot img{height:100%;object-fit:contain}.photo-options{background:#f4f5ef;border-radius:14px;padding:12px 18px;margin:26px 0}.photo-options label{color:#787e72;font-size:15px}.metadata label{font-weight:650;margin:18px 0 10px}.metadata input{margin-top:8px}.upload{margin:24px 0 12px;position:relative;overflow:hidden}.upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;max-width:none;cursor:pointer;margin:0}.upload:focus-within{outline:3px solid #a38500;outline-offset:3px}.gallery-heading{margin-top:22px}.gallery-heading h2 span{font-size:13px;color:var(--muted);font-weight:400;margin-left:10px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:12px 0 22px}.photo-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;min-width:0}.photo-card img{height:260px;object-fit:contain;display:block;background:#f4f5ef}.photo-details{padding:14px}.barcode-tag{display:inline-block;background:var(--yellow);padding:1px 8px;border-radius:3px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-weight:650}.photo-card strong{display:block;overflow-wrap:anywhere;font-size:13px;margin-top:8px}.photo-card small{display:block}.photo-card label{font-size:13px}.photo-card button{font-size:12px;padding:6px 10px;min-height:40px}.photo-card .row{gap:8px}.empty{padding:22px 0;border-top:1px solid var(--line);font-size:14px}img{width:100%;height:200px;object-fit:contain;background:#f5f6f1}figure{margin:0}.capture-actions{flex-wrap:wrap}.capture-actions>small{width:100%}.export-bar{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);padding:16px 24px max(16px,env(safe-area-inset-bottom));z-index:5}.export-inner{max-width:952px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:4px 20px}.export-inner label{margin:3px 0;color:var(--muted);font-size:14px}.export-inner button{background:#20231c;color:#fff;border-color:#20231c;opacity:.5}.export-inner small{grid-column:1/-1;font-size:11px;margin-top:6px}.notice{white-space:pre-line;color:#93421b}button:focus-visible,input:focus-visible{outline:3px solid #a38500;outline-offset:3px}@media(max-width:600px){main{padding:24px 16px 200px}section{padding:18px;border-radius:16px}header{align-items:center;gap:10px}h1{font-size:24px}.subtitle{font-size:13px}.badge{font-size:18px;padding:8px 13px}nav{font-size:12px;gap:20px}h2{font-size:18px}.row{flex-wrap:wrap}form .row{flex-wrap:nowrap;gap:8px}form button{padding:12px}.capture-grid{gap:12px}.capture-grid h2{font-size:13px}.capture-slot{height:auto;aspect-ratio:1;border-radius:12px;font-size:16px}.capture-slot svg{width:34px;height:34px}.capture-grid small{font-size:10px;line-height:1.5;display:block}.photo-options{padding:10px 12px;margin-top:20px}.photo-options .row{gap:0 16px}.photo-options label{font-size:13px}.grid{gap:12px}.photo-card img{height:180px}.photo-details{padding:10px}.barcode-tag{font-size:13px}.photo-card .row{flex-direction:column;align-items:stretch}.capture-actions>button{width:100%}.export-bar{padding:12px 16px max(12px,env(safe-area-inset-bottom))}.export-inner{grid-template-columns:1fr 1.2fr;gap:4px 10px}.export-inner label{font-size:12px}.export-inner input{width:17px;height:17px}.export-inner button{font-size:15px;padding:12px 10px;border-radius:14px}}@media(prefers-reduced-motion:no-preference){button,.capture-slot{transition:background-color .15s,border-color .15s}.capture-slot:hover{border-color:#a9ae9f}}@media(max-width:360px){h1{font-size:21px}.subtitle{font-size:11px}.badge{padding:6px 10px}.capture-grid h2{font-size:12px}}.selected-product{padding:18px 24px}.selected-product h2{font-size:17px;margin:0}.selected-product p{font-size:14px;margin:8px 0}.selected-product .existing{font-size:12px;padding:10px;margin:10px 0}.selected-product>small{display:block;font-size:11px}.selected-product button{font-size:13px;padding:8px 14px;min-height:40px}@media(max-width:600px){.selected-product{padding:14px 18px}.selected-product h2{font-size:15px}.selected-product .row{flex-wrap:nowrap;gap:10px}.selected-product button{white-space:nowrap}.selected-product p{font-size:12px}.selected-product .existing{font-size:11px;line-height:1.6}}.channel-tag{display:inline-block;font-size:12px;font-weight:700;padding:4px 10px;border-radius:5px;background:#e6e9e1;color:#34432d}.channel-tag.retail{background:#e3eee0;color:#2b5728}.channel-tag.wholesale{background:#e1eaf6;color:#294a70}.result .channel-tag{display:inline-block;margin-bottom:8px;font-weight:700}.lookup-summary{padding:16px;background:#f7f6e8;border-left:4px solid var(--yellow);margin:20px 0 0}.lookup-summary .row{margin:10px 0;gap:10px}.lookup-summary strong{font-size:15px}.destination{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.destination small{display:block}.sample-hint{display:block;margin:12px 0;line-height:1.8}.scan-button{margin-top:14px}.scanner{margin:18px 0 0;padding:16px}.scanner video{width:100%;max-height:320px;background:#20231c;border-radius:10px}.scanner p{font-size:13px}
