:root{--parchment:#f6efe0;--paper:#fffaf0;--ink:#2a2118;--muted:#6f6253;--line:#e3d6bd;--burgundy:#6e1423;--burgundy-dark:#551019;--navy:#2f3e56;--gold:#b8892b;--danger:#a3261f;--ok:#2f6b3f;--radius:12px;--serif:"Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{background:var(--parchment);color:var(--ink);font:16px/1.4 var(--sans);overscroll-behavior:none}h1,h2,h3{font-family:var(--serif);color:var(--burgundy);margin:0}h2{font-size:1.2rem}h3{margin:18px 0 8px;font-size:1.05rem}p{margin:0 0 8px}.app{background:var(--parchment);flex-direction:column;max-width:560px;height:100%;margin:0 auto;display:flex}.splash{height:100%;font:600 1.4rem var(--serif);color:var(--burgundy);place-items:center;display:grid}header{padding:calc(env(safe-area-inset-top) + 10px) 14px 10px;background:var(--burgundy);border-bottom:3px solid var(--gold);justify-content:space-between;align-items:center;gap:8px;display:flex}header h1{color:#fff;letter-spacing:.02em;font-size:1.1rem}header h1 span{color:#e9c97c}.status{color:#fff;white-space:nowrap;background:#ffffff29;border-radius:999px;padding:3px 9px;font-size:.72rem}.status.ok{color:#1f4d2b;background:#dcefdc}.status.offline,.status.auth,.status.error{color:#5a3a00;background:#f6d9a8}.progress{height:22px;color:var(--ink);background:#eadfc6;font-size:.72rem;position:relative}.progress div{background:#e2c676;transition:width .3s;position:absolute;top:0;bottom:0;left:0;right:auto}.progress span{text-align:center;line-height:22px;display:block;position:relative}main{-webkit-overflow-scrolling:touch;flex:1;overflow-y:auto}.screen{flex-direction:column;gap:10px;padding:12px 14px 28px;display:flex}nav{background:var(--paper);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);grid-template-columns:repeat(5,1fr);display:grid}nav button{font:600 .7rem var(--sans);color:var(--muted);background:0 0;border:0;border-radius:0;flex-direction:column;align-items:center;gap:2px;min-height:54px;padding:8px 0 7px;display:flex;position:relative}nav button.on{color:var(--burgundy)}nav svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}nav i{background:var(--burgundy);color:#fff;min-width:17px;font:700 .65rem/17px var(--sans);border-radius:999px;padding:0 4px;position:absolute;top:4px;left:54%}button,select,input{font:inherit;color:inherit}button{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);cursor:pointer;min-height:44px;padding:9px 14px;font-weight:600}button:disabled{opacity:.5}button.primary{background:var(--burgundy);border-color:var(--burgundy-dark);color:#fff}button.primary:active{background:var(--burgundy-dark)}button.big{flex:1;min-height:54px;font-size:1.05rem}button.ghost{color:var(--navy);background:0 0;border:0;min-height:36px}button.link{color:var(--navy);background:0 0;border:0;align-self:center;font-weight:500;text-decoration:underline}button.danger,.danger{color:var(--danger)}input,select{border:1px solid var(--line);border-radius:var(--radius);background:#fff;width:100%;min-height:44px;padding:9px 12px}input:focus,select:focus{outline:2px solid var(--gold);outline-offset:1px}button:focus-visible{outline:2px solid var(--gold);outline-offset:1px}.btn-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.btn-row>button{flex:1}.grow{flex:1;font-size:.9rem}.two{grid-template-columns:1fr 1fr;align-items:end;gap:10px;display:grid}.field{flex-direction:column;gap:4px;margin:6px 0;display:flex}.field-label{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.78rem;font-weight:700}.hint{color:var(--muted);font-size:.75rem}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border-radius:999px;min-height:38px;padding:6px 12px;font-size:.88rem;font-weight:600}.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}.stepper{border:1px solid var(--line);border-radius:var(--radius);background:#fff;grid-template-columns:44px 1fr 44px;min-width:124px;display:grid;overflow:hidden}.stepper button{background:var(--paper);border:0;border-radius:0;padding:0;font-size:1.3rem}.stepper input{text-align:center;border:0;border-radius:0;padding:0;font-weight:700}.search{background:#fff}.filter-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.filter-row select{flex:1;width:auto;min-width:150px}.list{flex-direction:column;gap:6px;display:flex}.row{text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);align-items:center;gap:10px;width:100%;padding:8px 10px;font-weight:400;display:flex}.row.out,.sale.out{opacity:.55}.row-main{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.row-title{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.row-sub{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;overflow:hidden}.row-sub.strong{color:var(--ink)}.row-price{font:700 1.1rem var(--serif);color:var(--burgundy);white-space:nowrap}.row-price s{color:var(--muted);font-size:.85rem;font-weight:400}.chev{color:var(--muted);font-size:1.4rem}.tag{color:var(--muted);background:#ece2cb;border-radius:6px;margin-left:6px;padding:0 6px;font-size:.7rem;font-style:normal;font-weight:700;display:inline-block}.tag.warn{color:#5a3a00;background:#f6d9a8}.warn-text{color:#8a5a00;font-weight:700}.thumb{object-fit:cover;background:#e8dcc3;border-radius:5px;flex:none}.thumb.empty{background:repeating-linear-gradient(45deg,#ece2cb,#ece2cb 6px,#e4d8be 6px 12px)}.empty{text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:var(--radius);padding:22px 12px}.empty strong{color:var(--ink);margin-bottom:4px;display:block}.note{color:var(--muted);font-size:.85rem}.note.center{text-align:center}.stats{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.stats div{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);text-align:center;padding:8px}.stats b{font:700 1.15rem var(--serif);color:var(--navy);display:block}.stats span{color:var(--muted);font-size:.7rem}.today{color:var(--muted);font-size:.85rem}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:8px;padding:4px 12px 12px;display:flex}.panel h3{margin-top:10px}.cart-line{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:6px;padding:8px 10px;display:flex}.panel .cart-line,.sheet .cart-line{background:#fff}.cart-line .row-title{white-space:normal}.cart-line select{min-height:38px;margin-top:4px}.cart-controls{justify-content:space-between;align-items:center;gap:8px;display:flex}.cart-controls .stepper{width:140px}.price-edit{align-items:center;gap:2px;font-weight:700;display:flex}.price-edit input{text-align:right;width:84px;font-weight:700}.checkout{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:8px;padding:10px 12px 14px;display:flex}.totals{border-top:1px solid var(--line);grid-template-columns:1fr auto;gap:4px 12px;padding:8px 0;display:grid}.totals>:nth-child(2n){text-align:right;font-variant-numeric:tabular-nums}.totals b{font-size:1.1rem}.sale{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:8px 10px}.sale-head{color:var(--muted);justify-content:space-between;gap:8px;font-size:.85rem;display:flex}.sale-head b{color:var(--ink);font-size:1rem}.sale .link{min-height:32px;padding:2px 0}.finder{flex-direction:column;gap:10px;display:flex}.camera{border-radius:var(--radius);background:#17120d;height:min(56vh,460px);position:relative;overflow:hidden}.camera.square{height:min(44vh,340px)}.camera video{object-fit:cover;width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}.guide{border:3px solid #f0d27a;border-radius:10px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 2000px #00000059}.guide.card{aspect-ratio:63/88;max-width:94%;height:92%}.guide.card span{text-align:center;color:#fff;text-shadow:0 1px 3px #000;font-size:.8rem;position:absolute;bottom:14%;left:0;right:0}.guide.qr{aspect-ratio:1;width:min(62%,240px)}.camera-msg{text-align:center;color:#fff;background:#000000b3;place-items:center;padding:20px;display:grid;position:absolute;top:0;bottom:0;left:0;right:0}.scrim{z-index:20;background:#1e140a80;justify-content:center;align-items:flex-end;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.sheet{background:var(--parchment);border-top:3px solid var(--gold);border-radius:18px 18px 0 0;flex-direction:column;width:100%;max-width:560px;max-height:92%;display:flex}.sheet.tall{height:92%}.sheet-head{justify-content:space-between;align-items:center;padding:10px 8px 6px 16px;display:flex}.sheet-body{padding:4px 16px calc(env(safe-area-inset-bottom) + 20px);flex-direction:column;gap:8px;display:flex;overflow-y:auto}.card-head{align-items:center;gap:12px;display:flex}.card-head .row-title,.card-head .row-sub{white-space:normal}.preview{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);flex-wrap:wrap;align-items:baseline;gap:6px 16px;padding:10px 12px;font-size:.9rem;display:flex}.preview .price{font:700 1.5rem var(--serif);color:var(--burgundy)}.label-preview{border-radius:var(--radius);background:#d9cdb3;place-items:center;padding:12px;display:grid}.label-preview canvas{max-width:100%;image-rendering:pixelated;background:#fff;border-radius:4px;box-shadow:0 1px 4px #00000040}.toasts{left:0;right:0;top:calc(env(safe-area-inset-top) + 56px);z-index:40;pointer-events:none;flex-direction:column;align-items:center;gap:6px;display:flex;position:fixed}.toast{background:var(--navy);color:#fff;border-radius:10px;max-width:90%;padding:9px 14px;font-size:.9rem;box-shadow:0 3px 10px #00000040}.toast.err{background:var(--danger)}
