:root{--bg: #1a1420;--surface: #251c2d;--surface-2: #2f2438;--text: #fbeff3;--muted: #b8a5b8;--accent: #ff7a8a;--accent-2: #ffb4a2;--gold: #f5b942;--radius: 16px;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--bg);color:var(--text)}body{font-family:-apple-system,BlinkMacSystemFont,Inter,Segoe UI,Roboto,sans-serif;font-size:15px}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}h1{font-size:22px;margin:0}.app{min-height:100vh;display:flex;flex-direction:column}.content{flex:1;padding:12px 14px 90px}.muted{color:var(--muted);font-size:13px}.small{font-size:12px}.loading,.empty{text-align:center;color:var(--muted);padding:40px 0}.page-title{margin:6px 2px 14px}.section-label{color:var(--muted);font-size:12px;letter-spacing:.08em;margin:16px 4px 10px}.beta-banner{background:linear-gradient(90deg,var(--accent),#c4458f);color:#fff;font-size:12px;text-align:center;padding:6px}.center-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center;gap:4px}.logo-round{border-radius:50%;margin-bottom:12px}.topbar{display:flex;gap:8px;align-items:center;position:sticky;top:0;background:var(--bg);padding:4px 0 8px;z-index:5}.search{flex:1;display:flex;align-items:center;gap:8px;background:var(--surface);border-radius:12px;padding:10px 12px}.search input{flex:1;background:none;border:0;outline:none;color:var(--text);font:inherit}.balance-pill{background:var(--surface);border-radius:12px;padding:10px 12px;color:var(--gold);font-weight:600;white-space:nowrap}.cat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cat-card{background:var(--surface);border-radius:var(--radius);padding:14px;text-align:left;display:flex;flex-direction:column;gap:4px;transition:transform .08s}.cat-card:active{transform:scale(.97)}.cat-emoji{font-size:28px}.cat-img{width:32px;height:32px;border-radius:8px;object-fit:cover}.cat-name{font-weight:600;margin-top:6px}.cat-header{display:flex;align-items:center;gap:10px;margin:8px 2px 12px;flex-wrap:wrap}.link-btn{color:var(--accent);width:100%;text-align:left;padding:0 0 6px}.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;scrollbar-width:none}.chip{background:var(--surface);border-radius:999px;padding:7px 14px;white-space:nowrap;color:var(--muted)}.chip.active{background:var(--accent);color:#fff}.list{background:var(--surface);border-radius:var(--radius);overflow:hidden}.product-row{display:flex;width:100%;gap:10px;padding:14px;text-align:left;border-bottom:1px solid var(--surface-2)}.product-row:last-child{border-bottom:0}.product-row.out{opacity:.5}.product-main{flex:1;min-width:0}.product-name{font-weight:600;line-height:1.3}.product-meta{display:flex;gap:8px;align-items:center;margin-top:6px;flex-wrap:wrap}.product-price{color:var(--accent-2);font-weight:700;white-space:nowrap}.tag{background:var(--surface-2);color:var(--muted);border-radius:6px;padding:2px 8px;font-size:12px}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:flex-end;z-index:20;animation:fade .15s}.sheet{position:relative;background:var(--surface);width:100%;max-height:88vh;overflow-y:auto;border-radius:20px 20px 0 0;padding:12px 16px 24px;animation:up .2s ease-out}.sheet-handle{width:40px;height:4px;border-radius:2px;background:var(--surface-2);margin:0 auto 10px}.sheet-close{position:absolute;right:14px;top:12px;width:32px;height:32px;border-radius:50%;background:var(--surface-2)}.sheet-title{font-size:19px;margin:8px 40px 8px 0}.sheet-price{font-size:26px;font-weight:800;margin:12px 0 4px}.desc{background:var(--bg);border-radius:12px;padding:4px 12px;margin:14px 0}.desc p{white-space:pre-line;line-height:1.5;margin-top:0}.buy-btn{width:100%;padding:15px;border-radius:14px;background:linear-gradient(90deg,var(--accent),#c4458f);color:#fff;font-weight:700;position:sticky;bottom:0}.buy-btn:disabled{background:var(--surface-2);color:var(--muted)}.card-list,.card{background:var(--surface);border-radius:var(--radius)}.util-row{display:flex;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--surface-2)}.util-row:last-child{border-bottom:0}.util-icon{width:36px;height:36px;display:grid;place-items:center;background:var(--surface-2);border-radius:10px}.util-cmd{font-weight:600}.balance-card{background:linear-gradient(135deg,#ff7a8a,#c4458f);border-radius:var(--radius);padding:18px;margin-bottom:12px}.balance-card .muted{color:#fffc}.balance-big{font-size:32px;font-weight:800;margin-top:4px}.notice{padding:14px}.tabbar{position:fixed;bottom:0;left:0;right:0;display:flex;background:var(--surface);border-top:1px solid var(--surface-2);padding:6px 0 calc(6px + env(safe-area-inset-bottom));z-index:10}.tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:var(--muted);padding:4px 0}.tab-icon{font-size:20px;filter:grayscale(1);opacity:.7}.tab.active{color:var(--accent)}.tab.active .tab-icon{filter:none;opacity:1}@keyframes fade{0%{opacity:0}}@keyframes up{0%{transform:translateY(40px);opacity:.6}}.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.stat{background:var(--surface);border-radius:12px;padding:10px;display:flex;flex-direction:column;align-items:center}.stat b{font-size:20px}.stat span{font-size:12px;color:var(--muted)}.stat.ok b{color:#5bd68a}.stat.bad b{color:#ff7a7a}.review-filters{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-bottom:8px}.review-filters select{background:var(--surface);color:var(--text);border:0;border-radius:10px;padding:9px 6px;font:inherit;font-size:13px;min-width:0}.bulk-bar{display:flex;justify-content:space-between;align-items:center;margin:4px 2px 10px;gap:8px}.bulk-bar>div{display:flex;gap:6px}.mini-btn{background:var(--surface-2);border-radius:9px;padding:7px 11px;font-size:13px;font-weight:600;white-space:nowrap}.mini-btn.ok{background:#5bd68a29;color:#5bd68a}.mini-btn.bad{background:#ff7a7a29;color:#ff7a7a}.mini-btn:disabled{opacity:.4}.review-row{border-bottom:1px solid var(--surface-2);padding:12px 14px}.review-row:last-child{border-bottom:0}.review-main{width:100%;text-align:left;display:flex;flex-direction:column;gap:5px}.review-actions{display:flex;gap:6px;margin-top:10px}.review-desc{margin:10px 0 0;max-height:260px;overflow-y:auto;font-size:13px}.tag.warn{background:#f5b94229;color:var(--gold)}.tag.st-approved{background:#5bd68a29;color:#5bd68a}.tag.st-rejected{background:#ff7a7a29;color:#ff7a7a}.tag.st-pending{background:var(--surface-2);color:var(--muted)}.load-more{width:100%;margin-top:10px;padding:12px;border-radius:12px;background:var(--surface);color:var(--accent);font-weight:600}.pay{display:flex;flex-direction:column;gap:8px}.qr-box{background:#fff;border-radius:16px;padding:12px;margin:8px auto;width:min(280px,80vw);aspect-ratio:1;display:grid;place-items:center}.qr-box img{width:100%;height:100%;image-rendering:pixelated}.qr-box .loading{color:#555;padding:0}.center{text-align:center}.center-btn{text-align:center;width:100%;padding:8px}.delivery{white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,Menlo,monospace;font-size:13px;-webkit-user-select:text;user-select:text}.tag.st-pending_payment{background:#f5b94229;color:var(--gold)}.tag.st-paid,.tag.st-sourcing,.tag.st-sourced{background:#78aaff29;color:#8fb4ff}.tag.st-delivered{background:#5bd68a29;color:#5bd68a}.tag.st-cancelled,.tag.st-expired,.tag.st-refunded{background:var(--surface-2);color:var(--muted)}.tag.st-refund_needed{background:#ff7a7a29;color:#ff7a7a}.tag{align-self:flex-start}
