:root{--bg:#f3f4f6;--card:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--accent:#111827;--green:#06c755;--amber:#b45309}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 "IBM Plex Sans Thai",system-ui,-apple-system,sans-serif}
a{color:inherit}
.muted{color:var(--muted)}.small{font-size:13px}
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));background:#111827;color:#fff}
.top .who{display:flex;align-items:center;gap:10px;min-width:0}
.top img{width:38px;height:38px;border-radius:50%;flex:none}
.top .shop{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top .out{color:#d1d5db;font-size:13px;text-decoration:none;flex:none}
.switch{padding:8px 16px;background:#1f2937}.switch select{width:100%;padding:8px;border-radius:8px;border:0;font:inherit}
main{max-width:560px;margin:0 auto;padding:12px 14px 40px}
h2{font-size:16px;margin:18px 2px 8px}
.card{background:var(--card);border-radius:14px;padding:14px 16px;margin-bottom:12px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.promo .p-h{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.promo .when{font-size:12px;color:var(--muted);white-space:nowrap}
.promo .rule{font-size:13px;color:var(--muted);margin-top:2px}
.promo .det{font-size:13px;margin-top:8px;padding:8px 10px;background:var(--bg);border-radius:8px}
.promo .big{margin-top:10px;font-size:15px}.promo .big b{font-size:28px}
.bar{height:10px;border-radius:5px;background:var(--line);overflow:hidden;margin:6px 0}
.bar i{display:block;height:100%;background:var(--green)}
.promo .st{font-size:14px}
.rw{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:14px}
.tag{display:inline-block;padding:2px 9px;border-radius:10px;font-size:12px}
.tag.wait{background:#fef3c7;color:var(--amber)}.tag.ok{background:#dbeafe;color:#1d4ed8}.tag.done{background:#dcfce7;color:#15803d}
.tier{display:inline-block;padding:0 8px;border-radius:9px;font-size:12px;font-weight:600;color:#fff}
.tier.t-silver{background:#8b95a1}.tier.t-gold{background:#c99700}.tier.t-platinum{background:#4a5568;border:1px solid #9ca3af}
.list .li{padding:8px 0;border-bottom:1px solid var(--line)}.list .li:last-child{border-bottom:0}
.foot{text-align:center;margin-top:20px}
.msg{max-width:420px;margin:0 auto;padding:60px 24px;text-align:center}
.msg .logo{width:64px;height:64px;margin:0 auto 16px;border:3px solid #111;border-radius:8px;font:800 28px/58px system-ui}
.msg h1{font-size:20px}
.btn{display:inline-block;padding:12px 22px;border-radius:10px;background:#111827;color:#fff;text-decoration:none;font-weight:600}
.btn.line{background:var(--green)}
.btn.sm{padding:6px 12px;font-size:13px;border-radius:8px}
.hint{border:1px solid #c7d2fe;background:#eef2ff;font-size:14px}
.hint .h-t{display:flex;align-items:center;gap:6px;margin-bottom:6px}.hint .h-t b{margin-right:4px}
.hint .x{margin-left:auto;border:0;background:none;font-size:20px;line-height:1;color:var(--muted);cursor:pointer}
.buy .ytd{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.buy .ytd b{font-size:26px}
.buy .cmp{text-align:right;font-weight:600}.buy .cmp.up{color:#15803d}.buy .cmp.dn{color:#b91c1c}
.bars{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;height:140px;margin:16px 0 8px;align-items:end}
.bars .b{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;min-width:0}
.bars i{display:block;width:100%;max-width:22px;background:#111827;border-radius:3px 3px 0 0}
.bars i.now{background:#9ca3af}
.bars .v{font-size:9px;color:var(--muted);white-space:nowrap;margin-bottom:2px}
.bars .m{font-size:10px;color:var(--muted);margin-top:3px}
.brands{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}
.brands .br{display:flex;justify-content:space-between;padding:3px 0;font-size:14px}
.buy .note{margin-top:10px}
