:root{--ink:#16181d;--ink-2:#3d424d;--muted:#737884;--line:#e8e8ea;--line-strong:#d6d7db;--bg:#fafaf9;--card:#fff;--soft:#f3f3f2;--warn:#a15c07;--warn-bg:#fff8eb;--warn-line:#f6dfb4;--bad:#c0262d;--bad-bg:#fef3f2;--bad-line:#f9d0cd;--good:#167a43;--good-bg:#eefaf2;--info:#3b5bdb;--info-bg:#f0f3ff;--radius:14px;--radius-sm:10px;--shadow:0 1px 2px #1012180a,0 1px 1px #10121805;--shadow-lift:0 8px 24px #10121814;--topbar:60px;--tabbar:64px;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:15px;line-height:1.5}*{box-sizing:border-box}body{min-height:100vh;margin:0}h1{letter-spacing:-.02em;margin:0;font-size:1.6rem;font-weight:700;line-height:1.2}h2{letter-spacing:-.01em;margin:0;font-size:1rem;font-weight:650}p{margin:0}a{color:inherit}img{display:block;max-width:100%}code{white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.8rem}.muted{color:var(--muted)}.small{font-size:.85rem}.center{text-align:center}.grow{overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.error{color:var(--bad);font-size:.9rem}.ok{color:var(--good);font-weight:600}.row{display:flex;align-items: center;gap:.5rem}.row.spread{justify-content:space-between}.row.end{justify-content:flex-end}.wrap-row{flex-wrap:wrap;row-gap:.75rem}.stack{display:flex;flex-direction:column;gap:1rem}.two-col{display:grid;gap:1rem}@media (min-width:560px){.two-col{grid-template-columns:1fr 1fr}}button,.button{display:inline-flex;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--card);color:var(--ink);font:inherit;white-space:nowrap;text-decoration:none;cursor:pointer;justify-content:center;align-items: center;gap:.4rem;height:40px;padding:0 1rem;transition:background .15s,border-color .15s,box-shadow .15s,opacity .15s;font-size:.9rem;font-weight:600}button:hover,.button:hover{background:var(--soft)}.button:focus-within{outline:2px solid var(--ink);outline-offset:2px}button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}a:focus-visible{outline:2px solid var(--ink);outline-offset:2px}button.primary,.button.primary{background:var(--ink);border-color:var(--ink);color:#fff}button.primary:hover,.button.primary:hover{background:#2b2f38}button.ghost,.button.ghost{color:var(--ink-2);background:0 0;border-color:#0000}button.ghost:hover,.button.ghost:hover{background:var(--soft)}button.small{border-radius:8px;height:32px;padding:0 .7rem;font-size:.82rem}button:disabled,.button.disabled{opacity:.4;cursor:default;pointer-events:none}.wide-button{width:100%;height:44px}label{display:flex;color:var(--ink-2);flex-direction:column;gap:.35rem;font-size:.85rem;font-weight:600}label.button{color:var(--ink);flex-direction:row}label.button.primary{color:#fff}label.check{color:var(--ink);cursor:pointer;flex-direction:row;align-items: center;gap:.5rem;font-weight:500}input,select,textarea{font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--line-strong);border-radius:var(--radius-sm);width:100%;padding:.55rem .75rem;transition:border-color .15s,box-shadow .15s;font-size:.95rem;font-weight:400}input,select{height:42px}textarea{resize:vertical;line-height:1.55}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px #16181d14}input[type=checkbox]{accent-color:var(--ink);width:18px;height:18px}input[readonly]{background:var(--soft);color:var(--ink-2)}.field-note{color:var(--muted);font-size:.8rem;font-weight:400}.spinner{display:inline-block;opacity:.7;animation:.8s linear infinite spin;border:2px solid;border-right-color:#0000;border-radius:50%;flex:none;width:14px;height:14px}.spinner.light{color:#fff}.loading{border:2px solid var(--line-strong);border-top-color:var(--ink);animation:.8s linear infinite spin;border-radius:50%;width:22px;height:22px;margin:4rem auto}@keyframes spin{to{transform:rotate(360deg)}}.topbar{position:sticky;z-index:20;backdrop-filter:saturate(1.5)blur(12px);border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top);background:#ffffffe6;top:0}.topbar-inner{height:var(--topbar);display:flex;align-items: center;gap:1.5rem;max-width:1200px;margin:0 auto;padding:0 1rem}.brand-link{text-decoration:none}.brand{display:inline-flex;letter-spacing:-.01em;align-items: center;gap:.55rem;font-weight:700}.brand-mark{display:grid;background:var(--ink);color:#fff;border-radius:8px;place-items: center;width:28px;height:28px;font-size:.9rem}.topnav{display:none;gap:.25rem}.topnav a{color:var(--muted);text-decoration:none;border-radius:8px;padding:.4rem .8rem;font-size:.9rem;font-weight:550}.topnav a:hover,.topnav a.active{color:var(--ink);background:var(--soft)}.topbar-right{display:flex;align-items: center;gap:.75rem;min-width:0;margin-left:auto}.store-name{display:none;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.85rem}.tabbar{position:fixed;z-index:20;display:flex;backdrop-filter:saturate(1.5)blur(12px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);background:#fffffff0;inset:auto 0 0}.tabbar a{height:var(--tabbar);display:flex;color:var(--muted);text-decoration:none;flex-direction:column;flex:1;justify-content:center;align-items: center;gap:.2rem;font-size:.72rem;font-weight:600}.tabbar a.active{color:var(--ink)}main.with-tabbar{padding-bottom:calc(var(--tabbar) + env(safe-area-inset-bottom))}@media (min-width:720px){.topnav{display:flex}.store-name{display:block}.tabbar{display:none}main.with-tabbar{padding-bottom:0}}.page{display:flex;flex-direction:column;gap:1rem;max-width:760px;margin:0 auto;padding:1.25rem 1rem 2.5rem}.page.wide{max-width:1200px}.page.narrow-page{max-width:520px}.page-head{display:flex;justify-content:space-between;align-items: center;gap:1rem}.page-head+.usage{margin-top:-.5rem}@media (min-width:720px){.page{gap:1.25rem;padding:2rem 1.5rem 3rem}h1{font-size:1.85rem}}.back{display:inline-flex;color:var(--muted);text-decoration:none;align-self: flex-start;align-items: center;gap:.25rem;margin-bottom:-.25rem;font-size:.85rem;font-weight:600}.back:hover{color:var(--ink)}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:1rem;padding:1.1rem}@media (min-width:720px){.card{padding:1.4rem}}.card-head{display:flex;justify-content:space-between;align-items: center;gap:.75rem;min-height:32px}.card-head p{margin-top:.15rem}.notice{background:var(--warn-bg);border:1px solid var(--warn-line);color:#5c3a06;border-radius:var(--radius-sm);display:flex;flex-direction:column;gap:.6rem;padding:.8rem 1rem;font-size:.9rem}.notice.bad{background:var(--bad-bg);border-color:var(--bad-line);color:#6f1418}.failed-job{border-top:1px solid var(--bad-line);padding-top:.6rem}.notice details summary{cursor:pointer;opacity:.8;font-size:.82rem;font-weight:600}.notice details code{display:block;opacity:.85;margin-top:.4rem}.notice a{font-weight:600}.badge{display:inline-flex;white-space:nowrap;background:var(--soft);color:var(--ink-2);border-radius:999px;align-items: center;gap:.35rem;height:24px;padding:0 .6rem;font-size:.75rem;font-weight:600}.badge:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.badge.processing{background:var(--info-bg);color:var(--info)}.badge.processing:before{animation:1.4s ease-in-out infinite pulse}.badge.failed{background:var(--bad-bg);color:var(--bad)}.badge.hold{background:var(--warn-bg);color:var(--warn)}.badge.ready{background:var(--good-bg);color:var(--good)}@keyframes pulse{50%{opacity:.3}}.usage{display:flex;color:var(--muted);white-space:nowrap;align-items: center;gap:.6rem;font-size:.82rem}.usage-bar{background:var(--line);overflow:hidden;border-radius:99px;width:88px;height:5px}.usage-bar span{display:block;border-radius:inherit;background:var(--ink);height:100%}.usage.near .usage-bar span{background:var(--warn)}.usage.full .usage-bar span{background:var(--bad)}.jobs{display:flex;flex-wrap:wrap;gap:.4rem}.job{display:inline-flex;border:1px solid var(--line);background:var(--card);color:var(--muted);border-radius:999px;align-items: center;gap:.35rem;height:28px;padding:0 .7rem;font-size:.78rem;font-weight:550}.job.running,.job.queued{color:var(--info);background:var(--info-bg);border-color:#d5ddfb}.job.done{color:var(--good)}.job.failed{color:var(--bad);border-color:var(--bad-line);background:var(--bad-bg)}.job .spinner{border-width:1.5px;width:11px;height:11px}.job .dot{background:currentColor;border-radius:50%;width:6px;height:6px}.empty-state{display:flex;text-align:center;border:1px dashed var(--line-strong);border-radius:var(--radius);background:var(--card);color:var(--muted);flex-direction:column;align-items: center;gap:.6rem;padding:3.5rem 1.5rem}.empty-state h2{color:var(--ink);font-size:1.1rem}.empty-state p{max-width:360px;margin-bottom:.5rem}.item-grid{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:0;padding:0}@media (min-width:560px){.item-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:1rem}}.item-card{display:flex;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-decoration:none;box-shadow:var(--shadow);flex-direction:column;height:100%;transition:box-shadow .2s,transform .2s}.item-card:hover{box-shadow:var(--shadow-lift);transform:translateY(-2px)}.item-card-image{aspect-ratio:4/5;background:var(--soft);display:grid;color:var(--line-strong);place-items: center}.item-card-image img{object-fit:cover;width:100%;height:100%}.item-card-body{display:flex;flex-direction:column;align-items: flex-start;gap:.35rem;padding:.7rem .8rem .85rem}.item-number{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.75rem;font-weight:600}.item-title{display:-webkit-box;-webkit-line-clamp:2;overflow:hidden;-webkit-box-orient:vertical;font-size:.92rem;font-weight:600;line-height:1.3}.item-head{display:flex;flex-wrap:wrap;align-items: center;gap:.5rem .75rem}.item-head .item-number{font-size:inherit;font-weight:inherit;color:var(--muted)}.item-layout{display:grid;align-items: start;gap:1rem}.item-media,.item-fields{display:flex;flex-direction:column;gap:1rem;min-width:0}@media (min-width:640px) and (max-width:999px){.item-media{display:grid;grid-template-columns:1fr 1fr}.item-media>:not(.media-card){grid-column:1/-1}}@media (min-width:1000px){.item-layout{grid-template-columns:minmax(0,5fr)minmax(0,7fr);gap:1.25rem}.item-media{position:sticky;top:calc(var(--topbar) + 1.25rem)}}.pair{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.pair figure{display:flex;flex-direction:column;gap:.4rem;margin:0}.pair img,.pair .placeholder{aspect-ratio:4/5;object-fit:cover;border-radius:var(--radius-sm);background:var(--soft);width:100%}.pair .final img{object-fit:contain;border:1px solid var(--line);background:#fff}.pair .placeholder{display:grid;color:var(--muted);border:1px dashed var(--line-strong);place-items: center}.pair figcaption,.thumbs span{color:var(--muted);text-align:center;font-size:.75rem;font-weight:500}.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:.75rem}.thumbs a{display:flex;text-decoration:none;flex-direction:column;gap:.35rem}.thumbs img{aspect-ratio:1;object-fit:cover;border-radius:var(--radius-sm);background:var(--soft);width:100%}.field-grid{display:grid;gap:1rem}@media (min-width:560px){.field-grid{grid-template-columns:1fr 1fr;gap:1rem 1.1rem}.field.full{grid-column:1/-1}}.field{display:flex;flex-direction:column;gap:.35rem;min-width:0}.field-head{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}.field-head label{flex-direction:row;align-items: center;gap:.4rem}.prov{color:var(--muted);white-space:nowrap;font-size:.72rem}.prov.user{color:var(--good);font-weight:600}.check-tag{text-transform:uppercase;letter-spacing:.04em;background:var(--warn-bg);color:var(--warn);border-radius:5px;padding:.1rem .4rem;font-size:.68rem;font-weight:700}.field.low input,.field.low select,.field.low textarea{background:#fffcf5;border-color:#eab65f}.with-prefix{position:relative}.with-prefix span{position:absolute;color:var(--muted);pointer-events:none;top:50%;left:.8rem;transform:translateY(-50%)}.with-prefix input{padding-left:1.8rem}.chips{display:flex;flex-wrap:wrap;align-items: center;gap:.35rem}.chip{border-radius:999px;height:26px;padding:0 .6rem;font-size:.78rem;font-weight:500}.page.capture{gap:.9rem;max-width:600px}.stepper{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);position:relative;margin:0;padding:0}.stepper li{position:relative;display:flex;justify-content:center}.stepper li+li:before{content:"";position:absolute;background:var(--line);width:100%;height:1.5px;top:15px;right:50%}.stepper button{position:relative;z-index:1;color:var(--muted);background:0 0;border:0;flex-direction:column;gap:.3rem;height:auto;padding:0;font-size:.72rem;font-weight:550}.stepper button:hover{background:0 0}.step-mark{display:grid;background:var(--card);border:1.5px solid var(--line-strong);color:var(--muted);border-radius:50%;place-items: center;width:30px;height:30px;transition:all .15s;font-size:.78rem;font-weight:650}.stepper button.done .step-mark{background:var(--good-bg);color:var(--good);border-color:#9fdbb6}.stepper button.problems .step-mark{background:var(--warn-bg);color:var(--warn);border-color:#eab65f}.stepper button.skipped .step-mark{border-style:dashed}.stepper button.active{color:var(--ink)}.stepper button.active .step-mark{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:0 0 0 4px #16181d14}.capture-head h1{display:flex;align-items: center;gap:.5rem;font-size:1.35rem}.capture-head p{margin-top:.2rem;font-size:.9rem}.optional{letter-spacing:.02em;background:var(--soft);color:var(--muted);border-radius:6px;padding:.15rem .45rem;font-size:.7rem;font-weight:600}.camera{display:flex;flex-direction:column;gap:.9rem}.viewfinder,.review img{border-radius:var(--radius);object-fit:cover;background:#111318;width:100%;height:clamp(240px,44vh,560px)}.viewfinder.empty{display:flex;text-align:center;background:var(--soft);border:1px dashed var(--line-strong);color:var(--muted);flex-direction:column;justify-content:center;align-items: center;gap:.75rem;padding:2rem;font-size:.88rem}.camera-actions{display:grid;grid-template-columns:1fr auto 1fr;align-items: center;gap:.75rem}.camera-actions>:first-child{justify-self:start}.shutter{border:4px solid var(--card);background:var(--ink);box-shadow:0 0 0 2px var(--ink);border-radius:50%;width:68px;height:68px;padding:0}.shutter:hover{background:#2b2f38}.shutter:active{transform:scale(.94)}.review{position:relative}.review img{object-fit:contain;background:var(--soft)}.review img.dim{opacity:.55}.review-panel{display:flex;border-radius:var(--radius-sm);background:var(--card);border:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items: center;gap:.6rem;margin-top:.75rem;padding:.8rem 1rem;font-size:.9rem;font-weight:550}.review-panel:not(.warn):not(.ok){color:var(--info);justify-content:flex-start}.review-panel.ok{background:var(--good-bg);color:var(--good);border-color:#c4ebd3}.review-panel.ok>span{display:inline-flex;align-items: center;gap:.35rem}.review-panel.warn{background:var(--warn-bg);border-color:var(--warn-line);color:#5c3a06;flex-direction:column;align-items:stretch}.review-panel.warn ul{margin:0;padding-left:1.1rem;font-weight:400}.capture-actions{display:flex;border-top:1px solid var(--line);position:sticky;bottom:calc(var(--tabbar) + env(safe-area-inset-bottom));z-index:5;background:var(--bg);justify-content:space-between;align-items: center;gap:.5rem;padding:.75rem 0}@media (min-width:720px){.capture-actions{bottom:0}}@media (max-width:400px){.capture-actions button{padding:0 .8rem}}.auth{display:grid;place-items: center;min-height:100vh;padding:1.5rem 1rem}.auth-card{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-lift);display:flex;border-radius:18px;flex-direction:column;gap:1rem;width:100%;max-width:400px;padding:2rem 1.5rem}.auth-card h1{margin-top:1rem;font-size:1.5rem}.auth-card>.muted{margin-top:-.6rem;margin-bottom:.25rem}@media (min-width:560px){.auth-card{padding:2.5rem 2.25rem}}.copy-box{display:flex;border-radius:var(--radius-sm);background:var(--soft);flex-direction:column;gap:.4rem;padding:.9rem}.copy{display:flex;gap:.5rem}.copy input{background:var(--card);font-size:.85rem}.people{list-style:none;margin:0;padding:0}.people li{display:flex;align-items: center;gap:.75rem;padding:.6rem 0;font-size:.92rem}.people li+li{border-top:1px solid var(--line)}.avatar{display:grid;background:var(--soft);color:var(--ink-2);border-radius:50%;flex:none;place-items: center;width:32px;height:32px;font-size:.8rem;font-weight:650}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:.2rem;padding:.9rem 1rem}.stat span{color:var(--muted);font-size:.78rem}.stat strong{letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:1.4rem}.add-store input{max-width:360px}.admin-grid{display:grid;gap:1rem}@media (min-width:900px){.admin-grid{grid-template-columns:1fr 1fr;gap:1.25rem}.span-2{grid-column:1/-1}}.table-wrap{overflow-x:auto;margin:0 -.25rem}table{border-collapse:collapse;width:100%;font-size:.88rem}th{color:var(--muted);text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;padding:0 .5rem .5rem;font-size:.75rem;font-weight:600}td{border-bottom:1px solid var(--line);padding:.6rem .5rem}tr:last-child td{border-bottom:0}.num{text-align:right;font-variant-numeric:tabular-nums}
