:root{--bg:#f6f1ea;--surface:#fffdf9;--surface-2:#efe7dc;--line:#e2d7c8;--text:#2b2420;--text-2:#6b5d52;--muted:#94857a;--accent:#8a5a3b;--accent-ink:#fff;--accent-soft:#f1e2d5;--tab-active:#f1e2d5;--bar:#a86b45;--ok:#2f7d4f;--warn:#a86a00;--error:#b3261e;--radius:12px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#1c1916;--surface:#262220;--surface-2:#322c28;--line:#3d3631;--text:#f1ebe4;--text-2:#c4b8ad;--muted:#92867b;--accent:#d39a6f;--accent-ink:#1c1916;--accent-soft:#3d2f25;--tab-active:#634c3c;--bar:#d39a6f;--ok:#6cc08b;--warn:#e0b04f;--error:#ff8a80;--low:#f0a24a;--low-ink:#1c1916;--low-soft:#3f2d16;--promo:#e59ac4;--promo-soft:#3a2431;--info:#8cbbe6;--info-soft:#1f2d3a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#1c1916;--surface:#262220;--surface-2:#322c28;--line:#3d3631;--text:#f1ebe4;--text-2:#c4b8ad;--muted:#92867b;--accent:#d39a6f;--accent-ink:#1c1916;--accent-soft:#3d2f25;--tab-active:#634c3c;--bar:#d39a6f;--ok:#6cc08b;--warn:#e0b04f;--error:#ff8a80;--low:#f0a24a;--low-ink:#1c1916;--low-soft:#3f2d16;--promo:#e59ac4;--promo-soft:#3a2431;--info:#8cbbe6;--info-soft:#1f2d3a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body{overscroll-behavior:none;height:100%;margin:0;overflow:hidden}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;font:16px/1.45 -apple-system,PingFang TC,Noto Sans TC,system-ui,sans-serif}input,select,textarea{-webkit-user-select:text;user-select:text}code{color:var(--text-2);font-family:ui-monospace,Menlo,monospace;font-size:.92em}h1{margin:0;font-size:1.5rem}h2{margin:0;font-size:1.25rem}h3{color:var(--text-2);margin:0 0 12px;font-size:1rem}.muted{color:var(--muted)}.center{text-align:center;padding:32px 0}.grow{flex:1;min-width:0}.row{align-items:center;gap:8px;display:flex}.row.wrap{flex-wrap:wrap}button,.button{appearance:none;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:0 16px;display:inline-flex}button:active{transform:scale(.97)}button:disabled{opacity:.45}button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:600}button.danger{color:var(--error);border-color:var(--error)}button.ghost{background:0 0;border-color:#0000}button.small{min-height:36px;padding:0 12px;font-size:.9rem}button.big{width:100%;min-height:60px;font-size:1.25rem}button.wide{width:100%}input,select{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:10px;width:100%;min-height:44px;padding:0 12px}input[type=checkbox]{width:22px;height:22px;min-height:0;accent-color:var(--accent)}input:focus,select:focus{outline:2px solid var(--accent);outline-offset:-1px}label{color:var(--text-2);flex-direction:column;gap:4px;font-size:.9rem;display:flex}label.row{color:var(--text);flex-direction:row;font-size:1rem}.shell{flex-direction:column;display:flex;position:fixed;inset:0}.content{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:auto;min-height:0;overflow:auto}.tabbar,.device-bar{flex-shrink:0}.shell.typing .tabbar{display:none}.tabbar{background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);display:flex}.tabbar a{color:var(--text);flex-direction:column;flex:1;align-items:center;padding:6px 0;font-size:.8rem;text-decoration:none;display:flex;position:relative}.tabbar a .icon{font-size:1.4rem}.tabbar a.active:before{content:"";z-index:-1;background:var(--tab-active);border-radius:12px;position:absolute;inset:3px 4px}.tabbar a{isolation:isolate}.device-bar{border:0;border-bottom:1px solid var(--line);width:100%;min-height:32px;padding:4px max(12px, env(safe-area-inset-right)) 4px max(12px, env(safe-area-inset-left));background:var(--surface-2);color:var(--text);font:inherit;text-align:left;cursor:pointer;border-radius:0;flex:none;justify-content:flex-start;align-items:center;gap:8px;margin:0;font-size:.8rem;display:flex}.device-bar-text{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.device-bar:active{transform:none}.device-bar-go{color:var(--muted);font-size:1.1rem;line-height:1}.device-bar.handed-off{background:var(--low-soft);border-bottom-color:var(--low)}.device-bar.handed-off .device-bar-text{white-space:normal}.tabbar .dot{background:var(--error);border-radius:50%;width:9px;height:9px;position:absolute;top:6px;right:calc(50% - 18px)}.page{--pad-l:max(16px, env(safe-area-inset-left));--pad-r:max(16px, env(safe-area-inset-left));padding:16px var(--pad-r) 16px var(--pad-l);max-width:1100px;margin:0 auto}.page.narrow{max-width:720px}.page-head{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.page>.page-head:first-child{z-index:5;background:var(--bg);margin:-16px calc(-1 * var(--pad-r)) 12px calc(-1 * var(--pad-l));padding:10px var(--pad-r) 10px var(--pad-l);border-bottom:1px solid var(--line);position:sticky;top:0}.page-head .short{display:none}.head-stats{display:contents}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:16px;padding:16px}.card.form{flex-direction:column;gap:12px;display:flex}.filters{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.filters input[type=search]{flex:2 220px;width:auto}.filters select,.filters input[type=date]{flex:140px;width:auto}.badge{background:var(--accent);color:var(--accent-ink);border-radius:99px;margin-left:4px;padding:2px 8px;font-size:.75rem}.toasts{bottom:calc(76px + env(safe-area-inset-bottom));z-index:100;pointer-events:none;flex-direction:column;gap:6px;width:min(92vw,520px);display:flex;position:fixed;left:50%;transform:translate(-50%)}.toast{background:var(--text);color:var(--bg);text-align:center;border-radius:12px;padding:12px 18px;font-weight:600;animation:.15s ease-out pop;box-shadow:0 6px 24px #0003}.toast.warn{color:#fff;background:#8a5700}.toast.error{color:#fff;background:#b3261e}@keyframes pop{0%{opacity:0;transform:translateY(8px)}}.pos{padding:12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));grid-template-columns:minmax(0,1fr);gap:16px;min-height:100%;display:grid}@media (width>=900px){.pos{grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);height:100%}.pos-left,.pos-right{overflow:auto}}.pos-left,.pos-right{flex-direction:column;gap:12px;min-height:0;display:flex}@media (width<=899px){.pos-left{display:contents}.pos-right{order:1}.picker{order:2}.scanner{aspect-ratio:auto;height:26vh;max-height:none}}.event-bar{font-weight:600}.pos .event-bar,.pos .backfill-bar{z-index:5;position:sticky;top:0}.pos .event-bar{background:var(--bg);border-bottom:1px solid var(--line);margin:-12px -12px 0;padding:10px 12px 8px}@media (width>=900px){.pos .event-bar{margin:0;padding:0 0 8px}}.warn-link{color:var(--warn)}.scan-controls{gap:8px;display:flex}.scanner{border-radius:var(--radius);aspect-ratio:16/9;background:#000;flex-shrink:0;width:100%;min-width:0;max-width:100%;max-height:34vh;position:relative;overflow:hidden}.scanner video{object-fit:cover;width:100%;height:100%;display:block}.scanner video.mirror{transform:scaleX(-1)}.scanner-frame{border:3px solid #ffffffd9;border-radius:16px;transition:border-color .1s;position:absolute;inset:15% 30%;box-shadow:0 0 0 999px #00000040}.scanner.flash .scanner-frame{border-color:#5ee08b}.scanner-msg{text-align:center;color:#fff;background:#0009;justify-content:center;align-items:center;padding:16px;display:flex;position:absolute;inset:0}.picker{flex-direction:column;gap:8px;min-height:0;display:flex}.chips{gap:6px;padding-bottom:2px;display:flex;overflow-x:auto}.chip{border-radius:99px;flex-shrink:0;min-height:36px;padding:0 14px}.chip.active{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;display:grid}.grid>.grid-empty{text-align:center;grid-column:1/-1;margin:12px 0}.field-hint{color:var(--muted);margin:-4px 0 0 4px;font-size:.8rem}.tile{text-align:left;flex-direction:column;align-items:stretch;gap:2px;height:auto;padding:6px;position:relative}.tile-img{aspect-ratio:1;background:var(--surface-2);color:var(--muted);border-radius:8px;justify-content:center;align-items:center;font-size:.85rem;display:flex;overflow:hidden}.tile-img img{object-fit:cover;width:100%;height:100%}.tile-name{white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;overflow:hidden}.tile-meta{justify-content:space-between;font-size:.85rem;display:flex}.tile-qty{background:var(--accent);color:var(--accent-ink);border-radius:99px;padding:0 8px;font-size:.8rem;position:absolute;top:10px;right:10px}.cart{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:4px 12px}.cart.empty{text-align:center;color:var(--muted);padding:32px 16px}.cart-row{border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:10px 0;display:flex}.cart-row:last-child{border-bottom:0}.cart-name{flex:1;min-width:0}.cart-name>div{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.cart-amt{text-align:right;font-variant-numeric:tabular-nums;min-width:72px;font-weight:600}.stepper{align-items:center;gap:4px;display:flex}.stepper button{width:40px;padding:0}.stepper span{text-align:center;min-width:28px;font-weight:600}.checkout{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:10px;padding:12px;display:flex}.checkout .line{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;gap:8px;display:flex}.checkout .line input{text-align:right;width:96px}.checkout .total{font-size:1.6rem;font-weight:700}.pay-methods{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.cash input{width:130px}.change{color:var(--ok);text-align:right;margin-top:6px;font-size:1.5rem;font-weight:700}.change.neg{color:var(--error)}.recent{flex-direction:column;gap:4px;display:flex}.recent-row{border-bottom:1px solid var(--line);align-items:center;gap:8px;padding:8px 4px;font-size:.9rem;display:flex}.recent-row .grow{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.recent-row.voided{opacity:.5;text-decoration:line-through}.list{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;display:flex;overflow:hidden}.list:empty{display:none}.item-row{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:10px 12px;display:flex}.item-row:last-child{border-bottom:0}.item-row.sold,.item-row.archived{opacity:.55}.item-row.current{background:var(--accent-soft)}.thumb{background:var(--surface-2);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:52px;height:52px;display:flex;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%}.label-bar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;display:flex}.label-bar select{width:auto}.modal-bg{z-index:50;background:#0006;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border-radius:16px;flex-direction:column;gap:16px;width:min(680px,100%);max-height:92dvh;padding:20px;display:flex;overflow:auto}.seg{grid-template-columns:1fr 1fr;gap:8px;display:grid}.form-grid{gap:16px;display:flex}.fields{flex-direction:column;flex:1;gap:10px;min-width:0;display:flex}.fields .row>label{flex:1}.optional-fields{flex-direction:column;gap:10px;display:flex}.optional-fields .row>label{flex:200px}.label-text{align-items:center;gap:6px;display:flex}.modal>.page-head:first-child{z-index:3;background:var(--surface);flex-wrap:nowrap;margin:-20px -20px 0;padding:12px 12px 8px 20px;position:sticky;top:-20px}.modal>.page-head:first-child h2{flex:auto;min-width:0;margin:0}.modal .page-head>.modal-close{background:var(--surface-2);width:44px;height:44px;min-height:44px;color:var(--text-2);border-radius:50%;flex:0 0 44px;margin-left:auto;padding:0;font-size:1.1rem;line-height:1}.modal .page-head>.modal-close:hover{color:var(--text)}.photo-pick{border:2px dashed var(--line);text-align:center;width:140px;height:140px;color:var(--muted);cursor:pointer;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;font-size:1.1rem;display:flex;overflow:hidden}.photo-pick img{object-fit:cover;width:100%;height:100%}.last-created{background:var(--accent-soft);border-radius:12px;align-items:center;gap:12px;padding:10px;display:flex}.last-created img{background:#fff;border-radius:6px}@media (width<=600px){.form-grid{flex-direction:column}.photo-pick{width:100%;height:160px}}.stats{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-bottom:16px;display:grid}.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px}.stat-label{color:var(--text-2);font-size:.85rem}.stat-value{font-variant-numeric:tabular-nums;font-size:1.6rem;font-weight:700}.stat-sub{color:var(--muted);font-size:.8rem}.report-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px;display:grid}.report-grid .card{margin:0}.bar-row{grid-template-columns:minmax(90px,34%) 1fr auto;align-items:center;gap:10px;padding:6px 0;display:grid}.bar-label{flex-direction:column;min-width:0;display:flex}.bar-label span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.bar-label small,.bar-value small{color:var(--muted);font-size:.75rem}.bar-track{height:14px}.bar-fill{background:var(--bar);border-radius:0 4px 4px 0;height:100%}.bar-value{text-align:right;font-variant-numeric:tabular-nums;flex-direction:column;min-width:64px;display:flex}.checklist{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}ol{flex-direction:column;gap:6px;margin:0;padding-left:20px;display:flex}textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--line);resize:vertical;-webkit-user-select:text;user-select:text;border-radius:10px;width:100%;padding:10px 12px}textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}.note-line{color:var(--text-2);white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;overflow:hidden}.tile-note{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.78rem;overflow:hidden}.note-text{white-space:pre-wrap;opacity:.9;margin-top:4px;font-size:.9rem}.photo-col{flex-direction:column;flex-shrink:0;gap:6px;width:140px;display:flex}.photo-col .photo-pick{cursor:default}.photo-col .button.small{min-height:36px;padding:0 8px;font-size:.9rem}.danger-text{color:var(--error)}.hint{color:var(--text-2);font-size:.85rem}details summary{cursor:pointer;color:var(--accent);margin-top:8px;font-weight:600}details ol{margin-top:8px}.viewer{background:#000000d9;flex-direction:column;gap:12px}.viewer img{object-fit:contain;border-radius:12px;max-width:100%;max-height:75dvh}.viewer-caption{color:#fff;text-align:center;max-width:600px}.viewer-caption code{color:#ddd}@media (width<=600px){.photo-col{width:100%}}:root{--low:#b45309;--low-ink:#fff;--low-soft:#fdecd6}.tile-qty.low{background:var(--low);color:var(--low-ink);font-weight:700}.badge.low{background:var(--low);color:var(--low-ink)}.low-chip{background:var(--low-soft);color:var(--text);border-color:var(--low)}.threshold input{text-align:center;width:96px}:root{--promo:#8a3b6b;--promo-soft:#f6e3ee;--info:#2f5f8a;--info-soft:#e1ecf6}.sub-head{margin:-6px 0 12px;font-size:.85rem}.pending-chip{background:var(--info-soft);color:var(--text);border-color:var(--info)}.badge.pending{background:var(--info);color:var(--surface)}.row-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.small-modal{width:min(440px,100%)}.qty-input{text-align:center;width:72px}.qty-input.wide{width:110px}.tile-promo{background:var(--promo);color:var(--surface);border-radius:99px;padding:0 8px;font-size:.75rem;font-weight:700;position:absolute;top:10px;left:10px}.promo-text{color:var(--promo)}.promo-row .cart-name{color:var(--promo);font-weight:600}.promo-row small{color:var(--text-2);font-weight:400}.badge.promo-on{background:var(--ok);color:var(--surface)}.badge.promo-off{background:var(--surface-2);color:var(--text-2)}.section-title{margin:20px 0 10px;font-size:1.1rem}.section-head{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.seg.compact{grid-template-columns:none;grid-auto-flow:column;gap:6px;margin-bottom:8px;display:inline-grid}.seg.compact button{min-height:36px;font-size:.9rem}.switch{color:var(--text);flex-direction:row;align-items:center;gap:6px;font-size:.9rem}.picker-box{flex-direction:column;gap:6px;display:flex}.pick-list{border:1px solid var(--line);border-radius:10px;max-height:260px;padding:4px 10px;overflow:auto}.pick{border-bottom:1px solid var(--line);padding:8px 0;font-size:.95rem}.pick:last-child{border-bottom:0}.tiers{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.stocktake .progress{color:var(--accent);font-weight:700}.progress-bar{background:var(--surface-2);border-radius:99px;height:6px;margin-bottom:12px;overflow:hidden}.progress-bar>div{background:var(--accent);height:100%;transition:width .2s}.count-row.checked{background:var(--accent-soft)}.count-s{flex-wrap:wrap;justify-content:flex-end}.diff{text-align:center;min-width:36px;font-weight:700}.diff.down{color:var(--error)}.diff.up{color:var(--low)}.review-row{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:10px;padding:10px 0;display:flex}.review-row:last-child{border-bottom:0}.review-row select{width:auto;min-width:160px}.warn-card{border-color:var(--low);background:var(--low-soft)}.channel-fields{background:var(--surface-2);border-radius:10px;flex-basis:100%;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;padding:10px;display:grid}.channel-fields small{grid-column:1/-1}.block{display:block}.field-label{color:var(--text-2);margin-bottom:4px;font-size:.9rem}label.check{color:var(--text);flex-direction:row;align-items:center;gap:8px;font-size:1rem}label.inline{color:var(--text);flex-direction:row;align-items:center;gap:6px}label.inline input{width:auto;min-height:36px}.form-row{flex-wrap:wrap;gap:10px;display:flex}.form-row>label{flex:140px;min-width:0}.seg.three{grid-template-columns:repeat(3,1fr)}.fee-total{background:var(--surface-2);font-variant-numeric:tabular-nums;border-radius:10px;padding:8px 12px}.wide-modal{width:min(820px,100%)}.scroll-list{max-height:50dvh;overflow:auto}.notice{background:var(--surface-2);border-radius:10px;margin:0 0 12px;padding:10px 12px}.notice.warn{background:var(--low-soft);border:1px solid var(--low)}.notice a{color:var(--accent);font-weight:600}.badge.cur{background:var(--info);color:var(--surface)}.badge.special{background:var(--promo-soft);color:var(--promo);border:1px solid var(--promo)}.event-row .row-actions{max-width:50%}button.danger-solid{background:var(--error);border-color:var(--error);color:#fff;font-weight:600}button.warn-solid{background:var(--low);border-color:var(--low);color:var(--low-ink);font-weight:700}.dialog-bg{z-index:200}.dialog{gap:12px;width:min(460px,100%)}.dialog h2{font-size:1.15rem}.dialog-body{color:var(--text-2);flex-direction:column;gap:8px;display:flex}.dialog-body p{margin:0}.dialog-confirm-text input{margin-top:4px}.dialog-actions{flex-wrap:wrap}.seller-bar{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.seller-bar .chip small{color:inherit;opacity:.8}.backfill-bar{background:var(--low-soft);border:2px solid var(--low);border-radius:var(--radius);flex-direction:column;gap:6px;padding:10px 12px;display:flex}.pos.backfilling .checkout{border:2px solid var(--low)}.tile.unpriced{opacity:.5}.tile-special{background:var(--promo-soft);color:var(--promo);border:1px solid var(--promo);border-radius:99px;padding:0 8px;font-size:.72rem;font-weight:700;position:absolute;bottom:62px;left:10px}.checkout .line input{min-width:0}.label-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:10px;margin-bottom:12px;padding:12px 14px;display:flex}.label-box-head{align-items:center;gap:8px;display:flex}.label-box h3{color:var(--text);margin:0}.label-settings{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px;display:grid}.label-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.label-box .hint{margin:0}.label-preview img{width:100%;image-rendering:pixelated;border:1px solid var(--line);background:#fff;border-radius:6px}.price-records{border-top:1px solid var(--line);flex-direction:column;gap:8px;padding-top:12px;display:flex}.price-records h3{margin:0}.price-group{background:var(--surface-2);border-radius:10px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}.price-group .field-label{color:var(--text);margin:0;font-weight:600}.price-row{grid-template-columns:minmax(0,1fr) 9.5em 11em 44px;align-items:center;gap:8px;min-height:44px;display:grid}.price-row.ended{opacity:.7}.price-label{overflow-wrap:anywhere;min-width:0}.price-label .when{font-variant-numeric:tabular-nums;color:var(--text-2)}.price-label small{display:block}.price-note{color:var(--text-2);font-variant-numeric:tabular-nums;font-size:.85rem}.req{color:var(--error);white-space:nowrap;border:1px solid;border-radius:99px;padding:0 6px;font-size:.75rem}.money-input{border:1px solid var(--line);background:var(--surface);border-radius:10px;align-items:center;display:flex;overflow:hidden}.money-input:focus-within{outline:2px solid var(--accent);outline-offset:-1px}.money-input.missing{border-color:var(--error)}.money-input .sym{color:var(--text-2);white-space:nowrap;font-variant-numeric:tabular-nums;padding:0 2px 0 10px}.money-input input{text-align:right;font-variant-numeric:tabular-nums;background:0 0;border:0;outline:0;width:100%;min-width:0}.add-row select{width:auto;max-width:100%;color:var(--accent)}.ended-toggle{align-self:flex-start}.kv{grid-template-columns:auto 1fr;gap:4px 16px;margin:0 0 12px;display:grid}.kv dt{color:var(--text-2)}.kv dd{font-variant-numeric:tabular-nums;margin:0}.device-name{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}.device-name input{flex:160px;max-width:240px}.steps{color:var(--text-2);margin:10px 0 0;padding-left:1.3em;font-size:.9rem}.backup-source{background:var(--surface-2);border-radius:10px;padding:8px 10px}.handoff-notice{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.badge.cur.base{background:var(--surface-2);color:var(--text-2);border:1px solid var(--line)}.camera-pick select{min-width:9em}.camera-hint{margin:-4px 0 6px;display:block}@media (width<=700px){.page{--pad-l:max(12px, env(safe-area-inset-left));--pad-r:max(12px, env(safe-area-inset-right))}.page-head .long{display:none}.page-head .short{display:inline}.inventory-head{gap:6px}.inventory-head>button{min-height:40px;padding:0 10px}.inventory-head .head-stats{flex-wrap:wrap;flex:1 0 100%;order:10;align-items:center;gap:6px;font-size:.85rem;display:flex}.inventory-head .head-stats button.small{min-height:30px;padding:0 10px;font-size:.8rem}h1{font-size:1.3rem}.page-head>button{flex:auto}.item-row{flex-wrap:wrap}.item-row>.grow{flex-basis:calc(100% - 100px)}.row-actions,.event-row .row-actions{flex-basis:100%;justify-content:flex-start;max-width:none}.tabbar a{padding:6px 0 4px;font-size:.68rem}.tabbar a .icon{font-size:1.2rem}.modal{border-radius:14px;padding:16px}.modal>.page-head:first-child{margin:-16px -16px 0;padding:12px 12px 8px 16px;top:-16px}.modal-bg{align-items:flex-end;padding:10px}.checkout .line.total{font-size:1.3rem}.pay-methods button{padding:0 6px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-value{font-size:1.3rem}.bar-row{grid-template-columns:minmax(70px,30%) 1fr auto;gap:6px}.filters>*{flex-basis:100%}.grid{grid-template-columns:repeat(auto-fill,minmax(108px,1fr))}.review-row select{flex:100%}.seg.three button,.seg button{padding:0 6px;font-size:.9rem}.price-row{grid-template-columns:minmax(0,1fr) auto 44px;row-gap:4px}.price-row .price-label{grid-column:1/-1}.price-row .money-input{grid-column:1}}.badge{white-space:nowrap;display:inline-block}input.invalid{border-color:var(--error);outline-color:var(--error)}.field-error{color:var(--error);font-size:.85rem}.pos{align-content:start}.danger-zone{border-color:var(--error)}.clear-options{flex-direction:column;gap:8px;display:flex}.clear-option{cursor:pointer;border:1px solid var(--line);color:var(--text);border-radius:12px;flex-direction:row;align-items:flex-start;gap:10px;padding:12px;font-size:1rem}.clear-option>span{flex-direction:column;gap:2px;display:flex}.clear-option .muted{font-size:.85rem}.clear-option.selected{border-color:var(--error);background:var(--surface-2)}.clear-option input[type=radio]{width:20px;height:20px;min-height:0;accent-color:var(--error);flex:none;margin-top:2px}.clear-sub{align-items:flex-start;gap:8px;margin:-2px 0 4px 32px;font-size:.9rem}.clear-sub input{flex:none;margin-top:1px}.clear-sub .muted{font-size:.8rem;display:block}
