@import url("v12-counter.css?v=1");
@import url("v12-member.css?v=1");
@import url("v12-ken.css?v=1");
:root {
  --sky: #E14B4B; --sky-2: #C23838; --sky-soft: #FDE4E1; --amber: #f0a030; --amber-soft: #fdf1dc;
  --ink: #2A1714; --muted: #6E5A56; --line: #EBDDD8; --bg: #FBF5F2; --card: #ffffff;
  --good: #0D7653; --good-soft: #e3f4ea; --bad: #c0392b; --warm: #d9661e;
  --gold-1: #fff3c4; --gold-2: #e2b04f; --gold-3: #9b6a1d;
  --r: 16px; --shadow: 0 1px 2px rgba(24,34,45,.06), 0 6px 20px -8px rgba(24,34,45,.18);
  --font: "Figtree", "Noto Sans SC", "Noto Sans Myanmar", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--sky); }
.app { min-height: 100vh; }
.boot { min-height: 70vh; display: grid; place-items: center; text-align: center; color: var(--muted); gap: 12px; padding: 24px; }
.pad { padding: 16px 16px 96px; max-width: 760px; margin: 0 auto; }
.narrow { max-width: 480px; }
.owner.pad { max-width: 1100px; }
.center { text-align: center; } .muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 12px; } .mono { font-family: "JetBrains Mono", ui-monospace, monospace; word-break: break-all; }
.good { color: var(--good); } .bad { color: var(--bad); } .warmtxt { color: var(--warm); font-weight: 700; } .warn { color: var(--warm); }
.h1 { font: 800 28px/1.15 var(--display); margin: 8px 0 14px; letter-spacing: -.01em; }
.h2 { font: 800 22px/1.2 var(--display); margin: 6px 0 10px; }
.h3 { font: 700 17px/1.3 var(--display); margin: 22px 0 8px; }
h3, h4 { margin: 0 0 8px; } h4 { margin-top: 18px; font-size: 15px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(251,245,242,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .crest { width: 36px; height: 36px; flex: none; border-radius: 10px; }
.brand b { font: 800 17px/1 var(--display); display: block; }
.brand span { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.tb-right { display: flex; align-items: center; gap: 6px; }
.langs { display: flex; background: #efe8dc; border-radius: 999px; padding: 2px; }
.langs button { border: 0; background: none; padding: 5px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.langs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.iconbtn { border: 0; background: #efe8dc; width: 36px; height: 36px; border-radius: 50%; font-size: 17px; cursor: pointer; }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink); width: 100%; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--sky); border-color: var(--sky); color: #fff; }
.btn.primary:hover { background: var(--sky-2); }
.btn.gold { background: linear-gradient(180deg, #f6d27a, #d9a441); border-color: #c48f2c; color: #2a1a00; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.danger { color: var(--bad); }
.btn.big { min-height: 54px; font-size: 17px; } .btn.huge { min-height: 60px; font-size: 19px; border-radius: 14px; }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 14px; width: auto; border-radius: 10px; }
.btn.google { box-shadow: 0 4px 14px rgba(225,75,75,.28); } .gdot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.btn:disabled { opacity: .55; }
.btn.busy { position: relative; color: transparent !important; } .btn.busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.2); border-top-color: currentColor; color: var(--sky); animation: spin .7s linear infinite; }
.btn.primary.busy::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.linkbtn { background: none; border: 0; color: var(--sky); padding: 4px 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn.gold { color: #b07a22; }
.stack { display: grid; gap: 12px; } .row2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; } .row2 .btn { width: auto; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d8d0c3; border-radius: 12px; background: #fff; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }
.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; } .check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; } legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 500; }
.opt input { width: 20px; height: 20px; min-height: 0; accent-color: var(--sky); }
.opt span { display: grid; } .opt small { color: var(--muted); font-size: 13px; }
.opt:has(input:checked) { border-color: var(--sky); background: var(--sky-soft); }
.opt.sm { padding: 8px 12px; }
.search { margin: 8px 0 10px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 12px 0; box-shadow: var(--shadow); }
.card.tight { padding: 12px 14px; }
.note { background: var(--sky-soft); border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.note.gold { background: var(--amber-soft); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #efe8dc; color: var(--muted); margin-left: 4px; vertical-align: middle; }
.tag.spot { background: #fff1cf; color: #8a5a12; } .tag.warm { background: #fde3d2; color: var(--warm); } .tag.new { background: var(--good-soft); color: var(--good); margin: 0; }
.pill { background: var(--sky); color: #fff; font-weight: 800; border-radius: 999px; padding: 3px 10px; font-size: 14px; flex: none; }
.sec-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.sec-h .h2 { margin: 0; }
.bar { height: 10px; background: #efe8dc; border-radius: 999px; overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), #F07A6E); border-radius: inherit; transition: width .4s; }
.bar.low i { background: linear-gradient(90deg, var(--warm), var(--amber)); }

/* landing */
.landing { padding: 0 0 40px; max-width: 560px; margin: 0 auto; }
.hero { position: relative; margin: 0 0 4px; }
.hero-img { width: 100%; height: 300px; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,23,20,.05) 20%, rgba(42,23,20,.84)); }
.hero-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff; z-index: 1; }
.hero-in .eyebrow { color: rgba(255,255,255,.8); }
.hero-in h1 { font: 800 30px/1.08 var(--display); margin: 2px 0 6px; letter-spacing: -.015em; }
.hero-in p { margin: 0; opacity: .92; }
.landing > .card, .landing > .note { margin-left: 16px; margin-right: 16px; }
.perks { display: grid; gap: 10px; }
.perk { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; }
.perk .big { font: 800 26px/1 var(--display); color: var(--sky); text-align: center; }
.signin h2 { font: 800 24px var(--display); margin: 0 0 4px; }
.signin .btn { margin-top: 8px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0 2px; } .or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.photo { border-radius: 12px; margin: 8px 0; height: 180px; width: 100%; object-fit: cover; }

/* join */
.freq legend { font: 700 17px var(--display); }

/* member */
.member .qrcard { background: #fff; border-radius: 22px; padding: 18px 16px 14px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); margin: 6px auto 12px; max-width: 340px; }
.qr-name { font: 800 20px var(--display); margin-bottom: 8px; }
.qrbox { display: grid; place-items: center; padding: 0; background: #fff; border-radius: 14px; margin: 0 auto; width: max-content; }
.qrbox img, .qrbox canvas { width: 250px; height: 250px; image-rendering: pixelated; }
.qrbox.small img, .qrbox.small canvas { width: 190px; height: 190px; }
.qr-code { font: 600 15px "JetBrains Mono", monospace; letter-spacing: .12em; margin-top: 6px; }
.hint-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-weight: 600; }
.weekbar .wb-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.freebar { display: flex; justify-content: space-between; width: 100%; font-weight: 700; color: #8a5a12; background: var(--amber-soft); border-color: #f3dcb0; cursor: pointer; text-align: left; }
.slip-mini { display: flex; justify-content: space-between; gap: 8px; background: var(--good-soft); border-color: #bfe3cc; }
.list { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 10px 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #f0ebe2; background: #fff; text-align: left; border-left: 0; border-right: 0; border-top: 0; width: 100%; }
.row:last-child { border-bottom: 0; }
.row small { display: block; color: var(--muted); font-size: 13px; }
.row.dim { opacity: .55; }
.row .amt { text-align: right; flex: none; } .row .amt small { font-weight: 600; }
.row .grow { flex: 1; min-width: 0; }
.rowbtns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.stall .rate { font: 800 22px var(--display); color: var(--muted); } .stall .rate.hi { color: var(--sky); }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0; }
.stamps i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #d8cbb5; display: grid; place-items: center; font-style: normal; font-size: 20px; }
.stamps i.on { border: 2px solid var(--amber); background: var(--amber-soft); }
.stamps i.last { border-color: var(--amber); border-style: solid; }
.freeready { background: var(--amber-soft); border-radius: 12px; padding: 10px 12px; }
.fr { display: flex; justify-content: space-between; padding: 4px 0; }
.lvlbar { position: relative; height: 14px; background: #efe8dc; border-radius: 999px; margin: 14px 0 6px; }
.lvlbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b9c2cc, #d9a441); }
.lvlbar .mark { position: absolute; top: -4px; bottom: -4px; width: 3px; background: #8a96a3; border-radius: 2px; }
.lvl-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 8px; }
.vouchers { display: grid; gap: 8px; margin-top: 8px; }
.voucher { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed #c9ced4; background: linear-gradient(135deg, #f6f7f9, #e9ecef); }
.voucher.gold { border-color: #d9a441; background: linear-gradient(135deg, #fff8e6, #f6dfa6); }
.race .rankno { font: 800 26px var(--display); color: var(--sky); }
.vipperks { background: linear-gradient(135deg, #1a1611, #0b0a08); color: #f6e3b0; border-color: #6b5320; }
.vipperks ul { margin: 8px 0 0; padding-left: 18px; }
.stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; } .stat span { font-size: 13px; color: var(--muted); display: block; } .stat b { font: 800 24px var(--display); }
.receipts .st-pending { color: var(--sky); } .receipts .st-rejected, .receipts .st-cancelled, .receipts .st-expired { color: var(--bad); }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav button { border: 0; background: none; padding: 8px 2px 9px; font-size: 11px; font-weight: 600; color: var(--muted); display: grid; justify-items: center; gap: 2px; cursor: pointer; }
.bottomnav button.on { color: var(--sky); }
.bottomnav .ni { font-size: 20px; line-height: 1.1; position: relative; }
.bottomnav em, .tabs em { position: absolute; top: -4px; right: -12px; background: var(--bad); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 5px; }

/* sheets and confirm */
.sheet-wrap, .confirm-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(12,20,28,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; display: grid; gap: 10px; animation: up .25s cubic-bezier(.2,.8,.2,1); }
.sheet h3 { font: 800 20px var(--display); }
.terms p { font-size: 14px; }
.confirm-wrap { z-index: 70; align-items: center; padding: 16px; background: rgba(12,20,28,.72); }
.confirm { background: #fff; border-radius: 24px; width: 100%; max-width: 420px; padding: 22px 18px; text-align: center; display: grid; gap: 10px; animation: pop .3s cubic-bezier(.2,.9,.3,1.2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.confirm h2 { font: 800 28px/1.15 var(--display); margin: 0; color: var(--good); }
.slip { display: grid; gap: 6px; background: #f8f5ef; border-radius: 14px; padding: 12px 14px; text-align: left; margin: 6px 0; }
.slip > div { display: flex; justify-content: space-between; gap: 10px; }
.slip .good { color: var(--good); } .slip .tot { border-top: 1px dashed #d8d0c3; padding-top: 6px; font-size: 18px; }
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--good); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 4px auto 6px; animation: pop .35s cubic-bezier(.2,.9,.3,1.3); }
.big-pay { font: 800 26px var(--display); margin: 6px 0; }

/* counter */
.tabs { display: flex; gap: 4px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 57px; z-index: 15; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; border: 0; background: none; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.tabs button.on { background: var(--sky-soft); color: var(--sky); }
.adminbar { background: #fff1cf; padding: 8px 14px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scanbtn { width: 100%; border: 0; border-radius: 22px; background: linear-gradient(160deg, var(--sky), var(--sky-2)); color: #fff; font: 800 22px var(--display); padding: 36px 16px; display: grid; gap: 6px; justify-items: center; cursor: pointer; box-shadow: 0 16px 30px -14px rgba(225,75,75,.6); }
.scanbtn span { font-size: 44px; }
.cam { width: 100%; border-radius: 18px; overflow: hidden; background: #000; min-height: 280px; }
.codeform { margin: 12px 0; } .codeform input { text-transform: uppercase; letter-spacing: .08em; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mini div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; } .mini b { display: block; font: 800 20px var(--display); } .mini span { font-size: 12px; color: var(--muted); }
.mhead { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.mhead b { font: 800 19px var(--display); display: block; } .mhead small { color: var(--muted); }
.mhead.vip { background: linear-gradient(135deg, #1a1611, #0b0a08); color: #f6e3b0; border-color: #6b5320; } .mhead.vip small { color: #c9b27a; }
.rateline { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #efe8dc; margin-bottom: 10px; }
.rateline b { font: 800 30px var(--display); } .rateline.hi { background: var(--good-soft); color: var(--good); } .rateline.hi span { color: var(--ink); } .rateline.none { background: #fde3d2; } .rateline.none b { color: var(--warm); }
.usechoice { display: grid; gap: 6px; margin-bottom: 10px; }
.prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.prices button { min-height: 54px; border-radius: 12px; border: 1.5px solid #d8d0c3; background: #fff; font: 800 18px var(--display); cursor: pointer; }
.prices button:active { background: var(--sky-soft); border-color: var(--sky); }
.amount { grid-template-columns: auto 1fr; align-items: center; background: #fff; border: 1.5px solid #d8d0c3; border-radius: 14px; padding: 0 0 0 14px; font: 800 22px var(--display); }
.amount input { border: 0; font: 800 26px var(--display); min-height: 58px; } .amount input:focus { outline: none; }
.preview { display: grid; gap: 2px; text-align: center; min-height: 24px; } .preview b { font-size: 18px; } .preview small { color: var(--warm); }
.remark summary { cursor: pointer; color: var(--sky); font-weight: 600; font-size: 14px; padding: 4px 0; } .remark input, .remark label { margin-top: 8px; }
.freegive { display: grid; gap: 8px; background: var(--amber-soft); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.items { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; min-height: 30px; }
.item { background: var(--sky-soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.item button { border: 0; background: #fff; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 11px; }
.totline { display: flex; justify-content: space-between; font: 800 20px var(--display); }
.waitcard, .result { text-align: center; display: grid; gap: 10px; padding: 18px 4px; }
.waitcard h2, .result h2 { font: 800 24px/1.2 var(--display); margin: 0; }
.result.ok h2 { color: var(--good); font-size: 30px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #F3E8E4; border-top-color: var(--sky); animation: spin .8s linear infinite; margin: 0 auto; }
.spinner.big { width: 54px; height: 54px; border-width: 5px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.kpis > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; } .kpis span { display: block; font-size: 13px; color: var(--muted); } .kpis b { font: 800 22px var(--display); display: block; } .kpis small { color: var(--muted); }
.kpis .good b { color: var(--good); }
.statement .slip { background: #fbf9f5; }
.poster { text-align: center; background: #fff; border-radius: 20px; padding: 20px; border: 1px solid var(--line); margin-bottom: 12px; }
.poster h2 { font: 800 24px var(--display); margin: 4px 0 10px; } .poster-big { font: 800 22px var(--display); color: var(--sky); margin: 10px 0 4px; }

/* owner */
.period, .chips { display: flex; gap: 6px; margin: 4px 0 12px; flex-wrap: wrap; }
.period button, .chips button { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.period button.on, .chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.topline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.topline div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; } .topline b { display: block; font: 800 22px var(--display); } .topline span { font-size: 12px; color: var(--muted); }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); border-top: 5px solid var(--sky); display: grid; gap: 4px; align-content: start; }
.bcard h3 { font: 800 17px var(--display); margin-bottom: 4px; }
.bcard.members { border-top-color: var(--sky); } .bcard.tenants { border-top-color: var(--good); } .bcard.ken { border-top-color: var(--amber); } .bcard.alan { border-top-color: #8e6cc9; }
.bnum { display: flex; align-items: baseline; gap: 8px; } .bnum b { font: 800 26px var(--display); } .bnum span { color: var(--muted); font-size: 14px; }
.bline { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 3px 0; border-top: 1px dashed #eee6d8; } .bline.good b { color: var(--good); } .bline.bad b { color: var(--bad); } .bline.tot { font-weight: 800; font-size: 15px; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; } .tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0ebe2; } .tbl th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; }
.switch { display: inline-flex; grid-template-columns: none; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #f6f1e8; cursor: pointer; }
.switch input { width: 18px; height: 18px; min-height: 0; accent-color: #b07a22; }
.switch:has(input:checked) { background: #fff1cf; color: #8a5a12; }
.stallrow { align-items: flex-start; flex-wrap: wrap; }
.stallrow > .grow { flex: 1 1 240px; min-width: 220px; }
.board { margin: 6px 0; padding-left: 26px; } .board li { padding: 6px 0; border-bottom: 1px solid #f0ebe2; } .board li span { display: inline-block; min-width: 60%; } .board li b { float: right; }
.board li.gold { font-weight: 800; color: #8a5a12; }
.flag.ok { opacity: .6; }
.closerow { cursor: pointer; }
.settings fieldset { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.settings legend { font: 800 16px var(--display); float: left; width: 100%; margin-bottom: 8px; }
.settings label { grid-template-columns: 1fr minmax(120px, 170px); align-items: center; font-weight: 500; border-bottom: 1px solid #f4efe6; padding: 6px 0; }
.settings label:last-child { border: 0; }
.settings .inp { display: flex; align-items: center; gap: 6px; } .settings .inp i { font-style: normal; color: var(--muted); font-size: 13px; }
.settings .inp input { min-height: 40px; text-align: right; }
.settings input[name=bankText], .settings input[name=invoiceFrom] { text-align: left; }
.row.support { border: 1px solid var(--line); border-radius: var(--r); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 90; max-width: calc(100vw - 32px); font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); animation: up .2s; }
.toast.good { background: var(--good); } .toast.bad { background: var(--bad); }

/* ================= VIP card ================= */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.vip-stage { perspective: 1000px; display: flex; justify-content: center; padding: 10px 0 6px; }
.vip-card {
  --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 30%;
  position: relative; width: min(312px, 84vw); aspect-ratio: 5 / 7.3; border-radius: 24px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(140% 70% at 20% -10%, rgba(226,176,79,.28), transparent 55%),
    radial-gradient(120% 80% at 110% 110%, rgba(226,176,79,.14), transparent 50%),
    linear-gradient(160deg, #1c1813 0%, #0c0b09 55%, #050505 100%);
  color: var(--gold-1); display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; padding: 22px 20px 20px; text-align: center;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 40px 60px -28px rgba(0,0,0,.75), 0 18px 30px -18px rgba(150,100,20,.55), inset 0 0 0 1px rgba(255,220,140,.18);
}
.vip-card.tilting { animation: none; }
.vip-card::after { /* glare that follows the tilt */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(60% 45% at var(--sx) var(--sy), rgba(255,236,190,.22), transparent 60%); mix-blend-mode: screen;
}
.vip-foil { position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--ang), #7a4e0e, #f9e3a3, #b07a22, #fff6d6, #9b6a1d, #f2cf7a, #7a4e0e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: foil 7s linear infinite; }
.vip-grain { position: absolute; inset: 0; z-index: 0; opacity: .16; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 120%, transparent 0 6px, rgba(226,176,79,.55) 6px 7px), repeating-linear-gradient(115deg, transparent 0 3px, rgba(255,255,255,.05) 3px 4px); }
.vip-shine { position: absolute; top: -30%; bottom: -30%; left: -60%; width: 60%; z-index: 4; pointer-events: none; transform: skewX(-18deg) translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,240,200,.08) 30%, rgba(255,244,214,.55) 50%, rgba(255,240,200,.08) 70%, transparent); mix-blend-mode: screen; animation: sweep 4.8s cubic-bezier(.45,.05,.3,1) infinite; }
.vip-top { display: flex; align-items: center; gap: 10px; z-index: 1; transform: translateZ(30px); }
.vip-crest { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgba(226,176,79,.35)); }
.vip-word, .vip-name, .vip-star { background: linear-gradient(180deg, #fff6d6 0%, #f0c867 38%, #c4902f 62%, #fbe3a1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vip-word { font: 800 34px/1 var(--display); letter-spacing: .32em; padding-left: .32em; }
.vip-qr-wrap { z-index: 1; align-self: center; display: grid; justify-items: center; gap: 6px; transform: translateZ(45px); }
.vip-qr { background: #fff; padding: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 2px #d9a441, 0 0 0 5px rgba(217,164,65,.25), 0 14px 26px -10px rgba(0,0,0,.8); }
.vip-qr img, .vip-qr canvas { width: 188px; height: 188px; display: block; image-rendering: pixelated; }
.vip-code { font: 600 13px "JetBrains Mono", monospace; letter-spacing: .2em; color: #c9b27a; }
.vip-star { font-size: 84px; line-height: 1; align-self: center; z-index: 1; transform: translateZ(40px); }
.vip-name { font: 800 27px/1.1 var(--display); z-index: 1; margin-top: 8px; transform: translateZ(35px); overflow-wrap: anywhere; }
.vip-sub { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #c9b27a; margin-top: 6px; z-index: 1; transform: translateZ(25px); }
.vip-card.still, .vip-card.still * { animation: none !important; }
.vip-stage.big .vip-card { width: min(330px, 80vw); }
@keyframes vipFloat { 0%, 100% { transform: rotateX(3deg) rotateY(-5deg) translateY(0); } 50% { transform: rotateX(-3deg) rotateY(5deg) translateY(-8px); } }
@keyframes foil { to { --ang: 360deg; } }
@keyframes sweep { 0% { transform: skewX(-18deg) translateX(-120%); } 55%, 100% { transform: skewX(-18deg) translateX(380%); } }

.vip-reveal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; background: radial-gradient(80% 60% at 50% 40%, #2a2112 0%, #0a0907 60%, #000 100%); color: var(--gold-1); animation: fade .35s; padding: 16px; }
.vip-reveal.out { animation: fadeOut .4s forwards; }
.vip-reveal-in { position: relative; z-index: 2; text-align: center; display: grid; gap: 10px; justify-items: center; width: 100%; max-width: 420px; }
.vip-congrats { font: 800 26px var(--display); margin: 0; background: linear-gradient(180deg, #fff6d6, #e2b04f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vip-reveal-sub { color: #d9c591; margin: 4px 0; }
.vip-reveal .btn { max-width: 320px; width: 100%; margin-bottom: max(8px, env(safe-area-inset-bottom)); }
.vip-reveal .vip-card { width: min(312px, 84vw, calc((100svh - 230px) * 5 / 7.3)); min-width: 200px; }
.vip-reveal .vip-rays { position: fixed; pointer-events: none; } .vip-reveal .vip-sparks { position: fixed; inset: 0; pointer-events: none; } .vip-reveal .vip-congrats { font-size: clamp(20px, 3.4svh, 26px); }
.vip-rays { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, rgba(226,176,79,.09) 0deg 6deg, transparent 6deg 18deg); animation: rays 40s linear infinite; mask: radial-gradient(circle, #000 0%, transparent 60%); -webkit-mask: radial-gradient(circle, #000 0%, transparent 60%); }
.vip-sparks i { position: absolute; left: 50%; top: 45%; width: 6px; height: 6px; border-radius: 50%; background: #ffe7a6; box-shadow: 0 0 10px 2px rgba(255,214,120,.8); opacity: 0;
  animation: spark 2.2s ease-out calc(var(--i) * .07s + .6s) both; --a: calc(var(--i) * 20deg); }
.flip { animation: flipIn 1.5s cubic-bezier(.2,.8,.2,1) .15s both; }
@keyframes flipIn { 0% { transform: perspective(900px) rotateY(180deg) scale(.55); opacity: 0; filter: brightness(2); } 60% { opacity: 1; } 100% { transform: rotateY(0) scale(1); opacity: 1; filter: none; } }
@keyframes spark { 0% { opacity: 0; transform: rotate(var(--a)) translateX(0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(46vmin) scale(1); } }
@keyframes rays { to { transform: rotate(360deg); } }

/* print the sign-up poster */


@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes pop { from { transform: scale(.88); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 900px) { .member.pad, .counter.pad { padding-top: 24px; } }

.settings .ro { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f4efe6; font-size: 14px; } .settings .ro:last-child { border: 0; }

/* ===== A4 sign-up posters ===== */
.print-root { position: fixed; inset: 0; z-index: 99; overflow: auto; background: #6E5A56; padding: 64px 12px 24px; display: grid; justify-items: center; gap: 20px; }
.print-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 10px max(16px, env(safe-area-inset-left)); background: #2A1714; color: #fff; }
.print-bar b { flex: 1; }
.a4 { width: 210mm; height: 297mm; background: #fff; color: #2A1714; display: grid; grid-template-rows: auto auto auto 1fr auto auto auto; justify-items: center; padding: 14mm 16mm 10mm; box-shadow: 0 10px 40px rgba(0,0,0,.4); transform-origin: top center; font-family: var(--font); }
@media (max-width: 820px) { .a4 { zoom: .45; } }
.a4-top { display: flex; align-items: center; gap: 5mm; width: 100%; background: #E14B4B; color: #fff; border-radius: 6mm; padding: 5mm 7mm; }
.a4-top img { width: 18mm; height: 18mm; border-radius: 4mm; background: #fff; }
.a4-top b { display: block; font: 800 10mm/1 var(--display); }
.a4-top span { font-size: 4.6mm; opacity: .92; }
.a4-head { text-align: center; margin-top: 7mm; }
.a4-head h1 { font: 800 17mm/1 var(--display); margin: 0; letter-spacing: -.02em; }
.a4-zh { font-size: 6.2mm; margin: 3mm 0 0; color: #6E5A56; }
.a4-offer { display: flex; align-items: center; gap: 6mm; margin-top: 6mm; background: #FDE4E1; border-radius: 5mm; padding: 4mm 7mm; width: 100%; }
.a4-big { font: 800 24mm/1 var(--display); color: #E14B4B; }
.a4-offer b { display: block; font: 800 7mm/1.15 var(--display); }
.a4-offer span { display: block; font-size: 4.4mm; margin-top: 1.5mm; }
.a4-offer small { display: block; font-size: 3.8mm; color: #6E5A56; margin-top: 1mm; }
.a4-qr { align-self: center; padding: 5mm; border: 1.2mm solid #E14B4B; border-radius: 6mm; }
.a4-qr img, .a4-qr canvas { width: 86mm !important; height: 86mm !important; image-rendering: pixelated; }
.a4-label { text-align: center; display: grid; gap: 1mm; margin-top: 2mm; }
.a4-label span { font-size: 4mm; color: #6E5A56; text-transform: uppercase; letter-spacing: .08em; }
.a4-label b { font: 800 9mm/1.1 var(--display); }
.a4-label i { font-style: normal; font-size: 5mm; color: #6E5A56; }
.a4-perks { list-style: none; padding: 0; margin: 6mm 0 0; display: grid; gap: 1.6mm; font-size: 4mm; text-align: center; }
.a4-foot { margin-top: 5mm; font-size: 3.4mm; color: #6E5A56; }
@media print {
  @page { size: A4; margin: 0; }
  body.printing > *:not(.print-root) { display: none !important; }
  body.printing { background: #fff; }
  .print-root { position: static; padding: 0; background: #fff; display: block; overflow: visible; }
  .print-bar { display: none !important; }
  .a4 { zoom: 1 !important; box-shadow: none; page-break-after: always; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.target { background: var(--sky-soft); border-radius: 14px; padding: 12px 14px; margin: 10px 0; display: grid; gap: 2px; }
.target span { font-size: 13px; color: var(--muted); } .target .nums { font: 800 26px var(--display); color: var(--sky); } .target p { margin: 0; font-size: 14px; }
.topline .tl-sub { display: block; font-size: 11px; color: var(--muted); }
.sec-h .h3 { margin: 22px 0 8px; }

.guide { list-style: none; counter-reset: g; padding: 0; margin: 6px 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.guide li { counter-increment: g; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 10px 44px; position: relative; display: grid; gap: 2px; }
.guide li::before { content: counter(g); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.guide span { font-size: 13px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.steps li { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #F3E8E4; color: var(--muted); }
.steps li.on { background: var(--good-soft, #e3f4ea); color: var(--good); }
.closerow.sel { background: var(--sky-soft); }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #FFF1CF; border: 1px solid #F0D58A; border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.banner b { display: block; } .banner span { font-size: 13px; color: var(--muted); }
.pad1 { padding: 12px 14px; margin: 0; }
/* A5 how-to cards, two per A4 */
.a4.a4-two { display: grid; grid-template-rows: 1fr auto 1fr; padding: 8mm 12mm; }
.a5 { display: grid; gap: 4mm; align-content: start; width: 100%; }
.a5-top { display: flex; gap: 4mm; align-items: center; background: #E14B4B; color: #fff; border-radius: 5mm; padding: 4mm 6mm; }
.a5-top img { width: 14mm; height: 14mm; border-radius: 3mm; background: #fff; }
.a5-top b { display: block; font: 800 7mm/1.1 var(--display); } .a5-top span { font-size: 4mm; }
.a5-why { text-align: center; font-size: 4mm; margin: 0; color: #6E5A56; }
.a5-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.a5-cols h3 { font: 800 6mm var(--display); margin: 0 0 2mm; }
.a5-cols ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 3mm; counter-reset: s; }
.a5-cols li { display: grid; grid-template-columns: 13mm 1fr; gap: 3mm; align-items: center; counter-increment: s; font: 700 4.4mm/1.2 var(--font); }
.a5-cols li i { font-style: normal; width: 13mm; height: 13mm; border: 0.5mm solid #EBDDD8; border-radius: 3mm; display: grid; place-items: center; position: relative; font-size: 3.6mm; color: #0a6cff; }
.a5-cols li i::before { content: counter(s); position: absolute; top: -2mm; left: -2mm; width: 5mm; height: 5mm; border-radius: 50%; background: #E14B4B; color: #fff; font-size: 3mm; display: grid; place-items: center; }
.a5-cols li small { font-weight: 500; font-size: 3.4mm; color: #6E5A56; }
.a5-foot { font-size: 3.4mm; color: #6E5A56; text-align: center; margin: 0; background: #FDE4E1; border-radius: 3mm; padding: 2mm 3mm; }
.cutline { text-align: center; color: #b9a9a4; font-size: 3.5mm; overflow: hidden; white-space: nowrap; margin: 4mm 0; }
/* Home Screen card in the app */
.hs-card { border-color: #F0D58A; background: #FFF9EB; }
.hs-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; } .hs-head div { flex: 1; } .hs-head b { display: block; } .hs-head span { font-size: 13px; color: var(--muted); }
.hs-steps { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; counter-reset: h; }
.hs-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; counter-increment: h; font-size: 14px; }
.hs-ic { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; position: relative; color: #0a6cff; font-size: 12px; }
.hs-ic::before { content: counter(h); position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--sky); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.hs-staff { display: flex; gap: 8px; align-items: center; background: #FFF1CF; border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; font-size: 14px; } .hs-staff span { flex: 1; }
.smsbox { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; } .smsbox small { width: 100%; color: var(--muted); }
.phone-row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; } .otp { font: 800 28px var(--display); letter-spacing: .4em; text-align: center; }
.emailbox summary { cursor: pointer; color: var(--sky); font-weight: 600; text-align: center; padding: 8px 0; } .emailbox[open] summary { margin-bottom: 8px; }
[hidden] { display: none !important; }

.chip-l { align-self: center; font-size: 13px; color: var(--muted); margin-right: 2px; }
.rd-pick { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 10px; } .rd-pick select { flex: 1; max-width: 360px; }
.rd-tot .totrow td { font-weight: 800; background: #fbf6ee; } .rd-tot { min-width: 520px; }
.row .amt b, .row .amt small, .row .amt .linkbtn { display: block; margin-left: auto; }
.smsline { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }

.ideas ul { margin: 6px 0 0; padding-left: 20px; } .ideas li { margin: 6px 0; line-height: 1.45; } .ideas { border-left: 4px solid var(--sky); }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; } .ins-grid .wide { grid-column: 1 / -1; } .ins-grid .card { margin: 0; }
.heat { display: grid; gap: 3px; overflow-x: auto; margin: 8px 0; font-size: 11px; } .heat .hh { color: var(--muted); text-align: center; white-space: nowrap; } .heat .hd { color: var(--muted); font-weight: 700; align-self: center; }
.heat i { font-style: normal; height: 26px; border-radius: 5px; display: grid; place-items: center; background: #fff; border: 1px solid #f1e9dd; color: #fff; font-weight: 700; }
.heat i.l1, .heat-key i.l1 { background: #FFF1D6; border-color: #F3DDB0; color: #7A5A1E; } .heat i.l2, .heat-key i.l2 { background: #F9C58D; border-color: #F9C58D; color: #6B3C10; }
.heat i.l3, .heat-key i.l3 { background: #F08A5D; border-color: #F08A5D; } .heat i.l4, .heat-key i.l4 { background: #E14B4B; border-color: #E14B4B; } .heat i.l5, .heat-key i.l5 { background: #8E1F2A; border-color: #8E1F2A; }
.heat-key { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin: 2px 0 6px; } .heat-key i { width: 22px; height: 12px; border-radius: 3px; border: 1px solid transparent; } .heat-key span { margin: 0 4px; }
.ibar { display: grid; grid-template-columns: 1fr 90px 34px 38px; gap: 8px; align-items: center; font-size: 14px; padding: 4px 0; } .ibar > div { height: 8px; background: #f3ece2; border-radius: 9px; overflow: hidden; } .ibar i { display: block; height: 100%; background: var(--sky); } .ibar b { text-align: right; } .ibar small { color: var(--muted); text-align: right; }
.mini-t { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0; } .mini-t th { font-size: 12px; color: var(--muted); text-align: right; font-weight: 600; } .mini-t td { padding: 4px 0; border-top: 1px dashed #eee6d8; } .mini-t td:not(:first-child) { text-align: right; }
.names { padding-left: 18px; max-height: 260px; overflow: auto; font-size: 14px; } .names small { color: var(--muted); }

.qrcard { position: relative; }
.qrcard .ribbon { margin: -6px auto 10px; display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.qrcard.lvl-silver { border: 3px solid #b8bfc9; background: linear-gradient(180deg, #f4f6f9, #fff 40%); } .qrcard.lvl-silver .ribbon { background: linear-gradient(90deg, #d9dee5, #f4f6f9, #c4cbd4); color: #3f4855; box-shadow: inset 0 0 0 1px #b8bfc9; }
.qrcard.lvl-gold { border: 3px solid #d9a63a; background: linear-gradient(180deg, #fff6df, #fff 40%); } .qrcard.lvl-gold .ribbon { background: linear-gradient(90deg, #f2c75c, #fff0c2, #e2a93a); color: #6b4a08; box-shadow: inset 0 0 0 1px #d9a63a; }
.vstrip { display: grid; gap: 8px; margin: 12px 0; }
.vticket { display: flex; align-items: stretch; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.vticket .vt-amt { display: grid; place-items: center; min-width: 86px; padding: 10px; font-size: 20px; border-right: 2px dashed rgba(0,0,0,.15); } .vticket .vt-amt b { font: 800 22px var(--display); }
.vticket.silver .vt-amt { background: linear-gradient(135deg, #e3e7ed, #f7f8fa); color: #3f4855; } .vticket.gold .vt-amt { background: linear-gradient(135deg, #f6d27a, #fff1c9); color: #6b4a08; }
.vticket .vt-txt { display: grid; gap: 2px; padding: 10px 14px; font-size: 14px; } .vticket .vt-txt small { color: var(--muted); }
.vticket.soon { border-color: var(--bad); } .vticket.soon .vt-txt span { color: var(--bad); font-weight: 800; }
.lvtag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; vertical-align: middle; } .lvtag.silver { background: #e6e9ee; color: #3f4855; } .lvtag.gold { background: #fbe3a4; color: #6b4a08; }
.note.welcome { background: #e3f4ea; color: #0f6b45; font-weight: 700; text-align: center; margin-bottom: 12px; }
.lvnudge .ln-top { margin-bottom: 8px; font-size: 15px; } .lvnudge .bar { margin-bottom: 6px; } .lvnudge.to-silver .bar i { background: linear-gradient(90deg, #c4cbd4, #8e98a6); } .lvnudge.to-gold .bar i { background: linear-gradient(90deg, #f2c75c, #d9a63a); }
.budgetline { border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; margin-bottom: 10px; } .budgetline.amber { background: #fff4d6; color: #7a5300; border: 1px solid #f0d48a; } .budgetline.red { background: #fde4e1; color: #a1271b; border: 1px solid #f3b4ab; }
.banner.budget { background: #fff7e6; border-color: #f0d48a; } .budchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .budchip { display: inline-flex; gap: 4px; align-items: baseline; white-space: nowrap; width: auto; border: 1px solid #f0d48a; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; } .budchip.out { border-color: #f3b4ab; background: #fde4e1; color: #a1271b; }
.hchip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap; } .hchip.open { background: #e3f4ea; color: #0f6b45; } .hchip.soon { background: #fff1d6; color: #8a5a00; } .hchip.closed { background: #eeeae4; color: #6d6458; }
.hsub { display: block; color: var(--muted); font-size: 12px; } .row.stall.dim, .opennow .row.dim { opacity: .55; } .opennow .row { align-items: center; } .opennow .hcol { text-align: right; }
.hoursline { border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; } .hoursline.open { background: #e3f4ea; color: #0f6b45; } .hoursline.closed { background: #eeeae4; color: #5c5449; }
.hours-ed .hrow { display: grid; grid-template-columns: 44px auto 1fr auto 1fr; gap: 8px; align-items: center; padding: 4px 0; } .hours-ed .hrow input[type=time] { min-height: 40px; padding: 6px 8px; } .hours-ed .hrow input:disabled { opacity: .4; } .check.sm { font-size: 13px; }
.openline { justify-content: space-between; }
#hoursForm, #stallHours { margin-top: 4px; } .counter h2.h2 + p + #hoursForm { margin-bottom: 20px; } #savePrices { margin-bottom: 24px; }
.dealbtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0 8px; }
.dealbtn { display: grid; gap: 2px; text-align: left; background: #fff8e8; border: 1.5px solid #f0d48a; border-radius: 14px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.dealbtn span { font-weight: 800; } .dealbtn small { color: var(--muted); font-size: 12px; line-height: 1.3; } .dealbtn em { font-style: normal; font-size: 15px; } .dealbtn em s { color: var(--muted); font-weight: 400; } .dealbtn em b { color: var(--sky); font-size: 18px; }
.dealbtn.shut { opacity: .5; background: #f6f3ee; border-color: var(--line); cursor: not-allowed; } .dealbtn.shut em { font-size: 12px; color: var(--muted); }
.fooditems button small { color: var(--muted); font-weight: 600; } .item.deal { background: #fff4d6; } .item.deal s { color: var(--muted); font-weight: 400; }
.addon { display: flex; align-items: center; gap: 10px; background: #fff4d6; border: 1px solid #f0d48a; border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-weight: 700; font-size: 14px; } .addon span { flex: 1; } .addon s { color: var(--muted); font-weight: 400; } .addon b { color: var(--sky); } .addon .btn { width: auto; }
.btn.gold { background: #f2c75c; border-color: #e2a93a; color: #4d3505; }
.dealslip s, .dealslip .tot s { color: var(--muted); font-weight: 400; margin-right: 4px; } .dealslip .save b { color: var(--good); } .stampnote { margin: 8px 0 0; } .stampnote .muted { font-weight: 400; }
.card.deals { border: 1.5px solid #f0d48a; background: linear-gradient(180deg, #fffaf0, #fff); }
.dealrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed #eee6d8; } .dealrow:first-of-type { border-top: 0; } .dealrow small { display: block; color: var(--muted); font-size: 13px; } .dealrow .dealtag { color: #8a5a00; font-weight: 700; } .dealrow.dim { opacity: .55; }
.dealprice { text-align: right; display: grid; align-content: start; min-width: 80px; } .dealprice s { color: var(--muted); font-size: 13px; } .dealprice b { font: 800 22px var(--display); color: var(--sky); } .dealprice em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--good); border-radius: 999px; padding: 2px 8px; justify-self: end; }
.dealsform fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .dealsform legend { font-weight: 800; padding: 0 6px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .grid5 { display: grid; grid-template-columns: 60px 1.4fr 1fr 1fr 80px 80px; gap: 8px; } .dealkeep { align-self: end; padding-bottom: 12px; } .row3 { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 560px) { .grid3, .grid5 { grid-template-columns: 1fr 1fr; } }
.prices.fooditems { grid-template-columns: repeat(2, 1fr); } .prices.fooditems button { font-size: 15px; min-height: 48px; padding: 8px; } .dealsave { margin: -4px 0 4px; font-weight: 800; text-align: right; }
.dealrow .teatag { color: var(--muted); font-weight: 700; } .dealrow .teatag.on { color: #0f6b45; } .dealrow.dim .teatag { opacity: 1; }
.budgetline small { display: block; font-weight: 600; font-size: 12px; margin-top: 4px; opacity: .9; }
.typeamt { display: grid; grid-template-columns: 1fr 110px; gap: 8px; align-items: end; } .typeamt .amount { margin: 0; } .qtybox { font-size: 13px; font-weight: 700; } .qtybox input { text-align: center; font-size: 20px; font-weight: 800; }
/* ---------- print cards (Red & Gold): A6 stall card 105x148 + 3mm bleed, ID-card staff lanyard 54x86 + 3mm bleed ---------- */
.pc { --red: #E14B4B; --red2: #A9302C; --cream: #FFF6E6; --ink: #2A1714; --b: 3mm;
  --gold: linear-gradient(135deg, #8a5a12 0%, #d9a63a 18%, #fff0c2 38%, #e2b04a 55%, #9c6a18 78%, #f2c75c 100%);
  position: relative; overflow: hidden; font-family: var(--font); -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); page-break-after: always; break-after: page; }
.pc .goldtxt { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-a6 { width: calc(105mm + 2 * var(--b)); height: calc(148mm + 2 * var(--b)); color: var(--cream); background: radial-gradient(120% 80% at 50% 30%, #ea5a52 0%, var(--red) 40%, var(--red2) 100%); }
.pc-a6::before { content: ""; position: absolute; inset: 0; opacity: .09; background-image: radial-gradient(circle at 50% 50%, #ffd77a 1.2px, transparent 1.6px), linear-gradient(45deg, transparent 47%, #ffd77a 48%, #ffd77a 52%, transparent 53%), linear-gradient(-45deg, transparent 47%, #ffd77a 48%, #ffd77a 52%, transparent 53%); background-size: 7mm 7mm; }
.pc .frame { position: absolute; inset: calc(3.6mm + var(--b)); width: auto; height: auto; overflow: visible; pointer-events: none; }
.pc .frame svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-a6 .pbody { position: absolute; inset: calc(7.5mm + var(--b)) calc(8mm + var(--b)) calc(8mm + var(--b)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.pc .brand { display: flex; align-items: center; gap: 2.2mm; justify-content: center; }
.pc .brand img { width: 9.5mm; height: 9.5mm; border-radius: 2.4mm; box-shadow: 0 0 0 .5mm #f2c75c; }
.pc .brand b { font: 800 4.1mm/1 var(--display); letter-spacing: .35mm; display: block; color: #FFF6E6; text-shadow: 0 .3mm .5mm rgba(70,8,4,.5); }
.pc .brand small { font-weight: 700; font-size: 2.5mm; opacity: .9; letter-spacing: .2mm; }
.pc .kicker { margin-top: 2.4mm; font-weight: 800; font-size: 3.6mm; letter-spacing: .5mm; text-transform: uppercase; color: #FFF1CF; text-shadow: 0 .35mm .6mm rgba(70,8,4,.55); }
.pc .bigoff { font: 800 19.5mm/.86 var(--display); letter-spacing: -.6mm; margin-top: 1mm; color: #FFD36B; -webkit-text-stroke: .35mm #7a1d19; paint-order: stroke fill; text-shadow: 0 .8mm 0 #7a1d19, 0 1.6mm 2.4mm rgba(60,5,0,.45); }
.pc .bigoff small { font-size: 11mm; letter-spacing: 0; }
.pc .at { font-weight: 700; font-size: 4.3mm; margin-top: 1.8mm; text-shadow: 0 .3mm .6mm rgba(70,8,4,.5); } .pc .at b { font-weight: 800; }
.pc .qrwrap { margin-top: 2.6mm; padding: 1.1mm; border-radius: 4mm; background: var(--gold); box-shadow: 0 1.2mm 3mm rgba(60,5,0,.35); }
.pc .qrcard { background: #fff; border-radius: 3.2mm; padding: 2.4mm 2.4mm 1.8mm; color: var(--ink); width: 46mm; }
.pc .qrcard .qr { width: 41.2mm; height: 41.2mm; margin: 0 auto; overflow: hidden; } .pc .qrcard .qr img { display: block !important; width: 100% !important; height: 100% !important; image-rendering: pixelated; } .pc .qrcard .qr canvas { display: none !important; }
.pc .qrcard .qtag { font-weight: 800; font-size: 3.4mm; margin-top: 1.6mm; } .pc .qrcard .qtag span { color: var(--red); }
.pc .qrcard .pccam { font-weight: 600; font-size: 2.6mm; color: #6d5a50; margin-top: .4mm; }
.pc .joinfree { margin-top: 2.2mm; font-weight: 800; font-size: 3.2mm; letter-spacing: .25mm; text-shadow: 0 .3mm .6mm rgba(70,8,4,.5); } .pc .joinfree i { font-style: normal; color: #FFD36B; padding: 0 1mm; }
.pc .pcperks { display: flex; gap: 1.4mm; margin-top: 1.8mm; }
.pc .pcperk { border: .35mm solid #FFD36B; border-radius: 2.2mm; padding: 1.2mm 1.4mm; font-weight: 700; font-size: 2.3mm; line-height: 1.15; width: 19.5mm; background: rgba(90,12,8,.35); color: #FFF6E6; }
.pc .pcperk b { display: block; font: 800 3.6mm/1 var(--display); margin-bottom: .5mm; color: #FFD36B; }
.pc .tri { margin-top: auto; padding-bottom: 2.4mm; font-weight: 700; font-size: 2.35mm; line-height: 1.45; opacity: .95; }
.pc-id { width: calc(54mm + 2 * var(--b)); height: calc(86mm + 2 * var(--b)); color: var(--ink); background: var(--cream); }
.pc-id .top { height: calc(35.8mm + var(--b)); background: radial-gradient(120% 120% at 50% 0%, #ea5a52, var(--red) 50%, var(--red2)); color: var(--cream); text-align: center; padding-top: calc(7.5mm + var(--b)); position: relative; display: flex; flex-direction: column; align-items: center; }
.pc-id .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .9mm; background: var(--gold); }
.pc-id .slot { position: absolute; top: calc(1.6mm + var(--b)); left: 50%; transform: translateX(-50%); width: 13mm; height: 2.4mm; border-radius: 2mm; border: .25mm dashed rgba(255,246,230,.55); }
.pc-id .brand { flex-direction: row; gap: 1.8mm; align-items: center; text-align: left; } .pc-id .brand img { width: 7.5mm; height: 7.5mm; border-radius: 1.8mm; } .pc-id .brand b { font-size: 3.2mm; } .pc-id .brand small { font-size: 2.1mm; display: block; margin-top: .7mm; }
.pc-id .team { font-weight: 800; font-size: 2.3mm; letter-spacing: .3mm; margin-top: 2.4mm; color: #FFD36B; text-shadow: 0 .25mm .4mm rgba(70,8,4,.6); white-space: nowrap; }
.pc-id .pname { font: 800 8.4mm/1.15 var(--display); margin-top: .8mm; padding-bottom: 0 !important; max-width: 100%; text-shadow: 0 .4mm .8mm rgba(70,8,4,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3mm; }
.pc-id .mid { text-align: center; padding: 1.8mm 3mm 0; } .pc-id .ask { font-weight: 800; font-size: 3.1mm; color: var(--red2); }
.pc-id .qrwrap { margin: 1.4mm auto 0; display: inline-block; padding: .8mm; border-radius: 3mm; box-shadow: none; }
.pc-id .qrcard { width: 27mm; padding: 1.5mm; border-radius: 2.2mm; } .pc-id .qrcard .qr { width: 24mm; height: 24mm; }
.pc-id .foot { position: absolute; left: 0; right: 0; bottom: calc(2.6mm + var(--b)); text-align: center; font-weight: 700; font-size: 2.1mm; line-height: 1.45; color: #4a3a32; } .pc-id .foot b { color: var(--ink); }
.print-root .pc { flex: none; }
@media (max-width: 820px) { .print-root .pc { zoom: .8; } }
@media print { .print-root .pc { zoom: 1 !important; box-shadow: none; margin: 0 !important; } .print-tip { display: none !important; } .print-root:has(.pc) { gap: 0 !important; padding: 0 !important; } }
.print-tip { color: #fff; max-width: 520px; text-align: center; font-size: 13px; margin: 0; }
.cardprev { display: flex; justify-content: center; margin: 6px 0 12px; } .cardprev .pc { box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); border-radius: 6px; } .cardprev .pc-a6 { zoom: .82; } .cardprev .pc-id { zoom: 1.25; }
@media (max-width: 400px) { .cardprev .pc-a6 { zoom: .76; } .cardprev .pc-id { zoom: 1.15; } }

/* audit fixes v1.0.22 */
.budmore summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 8px; } .budmore summary::-webkit-details-marker { display: none; } .budmore summary span { font-weight: 600; text-decoration: underline; font-size: 12px; white-space: nowrap; } .budmore[open] summary { margin-bottom: 4px; }
.budchip.more { background: transparent; border-style: dashed; font-weight: 700; }
.dealbox { background: #fffaf0; border: 1px solid #f0d48a; border-radius: 10px; padding: 6px 8px; margin: 6px 0; } .dealbox-h { font-size: 13px; font-weight: 700; } .dealbox-s { font-size: 12px; color: var(--muted); margin-bottom: 2px; } .dealbox .bline { border-top: 1px dashed #eee6d8; }
.bline .sub { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.opennow summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; } .opennow summary::-webkit-details-marker { display: none; } .opennow .seeall { color: var(--sky); font-weight: 700; font-size: 14px; white-space: nowrap; } .opennow[hidden] { display: none; } .opennow details[open] .seeall { visibility: hidden; }
.langs button { min-height: 36px; min-width: 40px; }
.row .linkbtn, .rowbtns .linkbtn, .amt .linkbtn { min-height: 36px; display: inline-flex; align-items: center; justify-content: flex-end; padding: 0 6px; }
.amt .linkbtn { display: flex; margin-left: auto; }
.tabs.more { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
@media (max-width: 560px) {
  .hours-ed .hrow { grid-template-columns: 44px 1fr 14px 1fr; row-gap: 4px; }
  .hours-ed .hrow > b { grid-column: 1; grid-row: 1; } .hours-ed .hrow > .check { grid-column: 2 / -1; grid-row: 1; }
  .hours-ed .hrow > input[name^=hFrom] { grid-column: 2; grid-row: 2; } .hours-ed .hrow > span { grid-column: 3; grid-row: 2; text-align: center; } .hours-ed .hrow > input[name^=hTo] { grid-column: 4; grid-row: 2; }
  .hours-ed .hrow input[type=time] { min-width: 0; width: 100%; }
}
button.linkbtn { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; } .budchip { min-height: 36px; }

/* Drinks & Roti staff languages: Burmese and Vietnamese */
html[lang="my"] { --font: "Noto Sans Myanmar", "Figtree", "Noto Sans SC", system-ui, sans-serif; --display: "Noto Sans Myanmar", "Bricolage Grotesque", system-ui, sans-serif; }
html[lang="my"] body { line-height: 1.7; }
html[lang="vi"] { --font: "Be Vietnam Pro", "Figtree", "Noto Sans SC", "Noto Sans Myanmar", system-ui, sans-serif; --display: "Be Vietnam Pro", "Noto Sans Myanmar", system-ui, sans-serif; }
.langs.four button { padding: 5px 7px; min-width: 0; font-size: 12px; white-space: nowrap; }

/* "Am I ahead?" verdict cards (stall Today / This month, Scan strip, Ken Home) */
.vhero { border-radius: 18px; padding: 16px 16px 12px; margin: 6px 0 10px; color: #fff; box-shadow: var(--shadow); }
.vhero.n { background: linear-gradient(150deg, #8f8380, #6e625f); } .vhero.g { background: linear-gradient(150deg, #14905f, #0b6a4a); } .vhero.a { background: linear-gradient(150deg, #e9a23b, #c77612); } .vhero.r { background: linear-gradient(150deg, #d9493c, #a82d22); }
.vtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-weight: 700; font-size: 15px; } .vtop small { font-weight: 500; opacity: .85; font-size: 12px; white-space: nowrap; padding-top: 2px; }
.vamt { font: 800 44px/1.05 var(--display); margin: 6px 0 2px; letter-spacing: -.5px; }
.vsub { font-size: 14px; opacity: .92; }
.vmeter { position: relative; height: 12px; border-radius: 99px; margin: 14px 0 22px; background: linear-gradient(90deg, rgba(255,255,255,.25) 0 25%, rgba(255,255,255,.45) 25% 70%, rgba(255,255,255,.72) 70% 100%); }
.vmeter i { position: absolute; top: -5px; width: 6px; height: 22px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.25); transform: translateX(-3px); }
.vmeter b { position: absolute; top: 16px; font-size: 11px; font-weight: 600; opacity: .92; transform: translateX(-50%); white-space: nowrap; }
.vkey { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.vdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.vdot.g { background: #14905f; } .vdot.n { background: #c9bfbb; } .vdot.a { background: #e9a23b; } .vdot.r { background: #d9493c; }
.vtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.vtile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 9px; min-width: 0; }
.vtile span { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; } .vtile b { display: block; font: 800 24px var(--display); margin: 3px 0 1px; }
.vtile small { font-size: 11.5px; color: var(--muted); line-height: 1.25; display: block; margin-top: 2px; }
.vtile.g b { color: var(--good); } .vtile.n b { color: var(--muted); } .vtile.a b { color: #c77612; } .vtile.r b { color: var(--bad); }
.vbar { position: relative; height: 7px; background: #efe8dc; border-radius: 99px; margin-top: 6px; }
.vbar u { display: block; height: 100%; border-radius: 99px; text-decoration: none; } .vbar u.g { background: #14905f; } .vbar u.a { background: #e9a23b; } .vbar u.r { background: #d9493c; }
.vbar em { position: absolute; top: -3px; width: 2px; height: 13px; background: var(--ink); opacity: .55; }
.vslip > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.vslip > div small { display: block; color: var(--muted); font-size: 12px; } .vslip b { white-space: nowrap; }
.vslip .tot { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; font-weight: 800; font-size: 16px; }
.vdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 4px; margin: 8px 0 6px; }
.vdays span { height: 26px; border-radius: 6px; font-size: 11px; color: #fff; display: grid; place-items: center; font-weight: 700; }
.vdays .g { background: #14905f; } .vdays .a { background: #e9a23b; } .vdays .r { background: #d9493c; }
.vxres { margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; } .vxres.g { background: var(--good-soft); color: var(--good); } .vxres.r { background: #fde4e1; color: var(--bad); }
.vstrip { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; border-radius: 14px; padding: 10px 14px; font-weight: 700; margin: 4px 0 10px; border: 1.5px solid; cursor: pointer; text-align: left; }
.vstrip.n { background: #fff; color: var(--muted); border-color: var(--line); } .vstrip.g { background: #e3f4ea; color: #0b6a4a; border-color: #9fd8b9; } .vstrip.a { background: #fdf1dc; color: #a65f0c; border-color: #f0cf97; } .vstrip.r { background: #fde4e1; color: #a82d22; border-color: #f2b0a8; }
.vsl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .vsl > div { display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .vsl { grid-template-columns: 1fr; } .vamt { font-size: 38px; } }

/* Ask Mochi */
.mochi-fab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 0; background: var(--sky); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 18px -6px rgba(169,48,44,.6); cursor: pointer; }
.mochi-fab img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.mochi-sheet .sheet { max-width: 560px; }
.mochi .mo-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .mochi .mo-head img { width: 40px; height: 40px; border-radius: 12px; }
.mochi .mo-head b { display: block; font: 800 18px var(--display); } .mochi .mo-head small { color: var(--muted); font-size: 13px; }
.mo-log { max-height: 46vh; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px 2px; }
.mo-msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 15px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.mo-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.mo-msg.me { background: var(--sky); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.mo-msg.typing { display: flex; gap: 4px; } .mo-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: moDot 1s infinite; } .mo-msg.typing i:nth-child(2) { animation-delay: .15s; } .mo-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes moDot { 50% { opacity: 1; transform: translateY(-2px); } }
.mo-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; } .mo-chips .chip { border: 1px solid var(--line); background: var(--sky-soft); color: var(--sky-2); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
@media print { .mochi-fab { display: none !important; } }
body:has(.bottomnav) .mochi-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
/* stall / drinks counter: the button sits after the page content instead of floating, so it never covers the race card, Show QR or scan buttons */
body:has(main.counter) .mochi-fab { position: static; margin: 4px auto calc(20px + env(safe-area-inset-bottom, 0px)); width: max-content; box-shadow: none; }
.mo-chips .chip:disabled { opacity: .45; cursor: default; }

/* Ask Mochi: WhatsApp-style input bar, mic and listening bar (in Sky Beyond red) */
.mo-bar { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; }
.mo-type { flex: 1; min-width: 0; background: #fff; border: 1.5px solid var(--line); border-radius: 26px; padding: 0 16px; display: flex; align-items: center; min-height: 50px; }
.mo-type input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 16px; padding: 12px 0; }
.mo-type:focus-within { border-color: var(--sky); }
.mo-round { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--sky); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px -4px rgba(169,48,44,.55); transition: transform .12s; }
.mo-round svg { width: 25px; height: 25px; } .mo-round:active { transform: scale(.94); } .mo-round:disabled { opacity: .45; box-shadow: none; }
.mo-rec { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; }
.mo-rec[hidden], .mo-bar[hidden] { display: none; }
.mo-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f1e9e6; color: var(--muted); display: grid; place-items: center; cursor: pointer; } .mo-x svg { width: 20px; height: 20px; }
.mo-recmid { flex: 1; min-width: 0; background: #fff; border: 1.5px solid var(--sky); border-radius: 22px; padding: 8px 14px; }
.mo-rectop { display: flex; align-items: center; gap: 8px; } .mo-rectop b { font-variant-numeric: tabular-nums; font-size: 14px; min-width: 34px; }
.mo-dot { width: 10px; height: 10px; border-radius: 50%; background: #e53935; animation: moBlink 1s infinite; } @keyframes moBlink { 50% { opacity: .25; } }
.mo-live { font-size: 14px; color: var(--muted); margin-top: 4px; max-height: 3.2em; overflow: hidden; line-height: 1.35; } .mo-live.has { color: var(--ink); }
.mo-wave { display: inline-flex; align-items: center; gap: 2px; height: 20px; flex: 1; overflow: hidden; } .mo-wave i { display: block; width: 3px; border-radius: 2px; background: currentColor; opacity: .55; }
.mo-rectop .mo-wave { color: var(--sky); } .mo-wave.live i { animation: moWave 1s ease-in-out infinite; } .mo-wave.live i:nth-child(3n) { animation-delay: .2s; } .mo-wave.live i:nth-child(3n+1) { animation-delay: .4s; }
@keyframes moWave { 50% { transform: scaleY(.35); } }
.mo-msg.bot { display: flex; flex-direction: column; gap: 6px; }
.mo-as { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--sky-2); background: var(--sky-soft); border-radius: 999px; padding: 2px 9px; }
.mo-test { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; background: #fff7e6; border: 1.5px dashed #e0b44a; border-radius: 14px; padding: 8px 10px; margin: 0 0 8px; font-size: 13.5px; font-weight: 700; }
.mo-test label { display: flex; align-items: center; gap: 6px; white-space: nowrap; } .mo-test select { font-size: 14px; padding: 5px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; max-width: 210px; }
.chip.trap { background: #fff7e6; border-color: #e0b44a; }
.mo-micmark svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; opacity: .9; }

/* Mochi tab: what people asked */
.mq-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.mq-counts div { background: var(--sky-soft); border-radius: 12px; padding: 8px 10px; } .mq-counts b { display: block; font-size: 22px; } .mq-counts span { font-size: 12px; color: var(--muted); }
.mq-sum { margin-top: 10px; background: #fffaf2; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .mq-filters select { padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; }
.mq-row { border-top: 1px solid var(--line); padding: 10px 0; } .mq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mq-role { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: #eef2f6; color: #3b4a5a; } .mq-role.member { background: var(--sky-soft); color: var(--sky-2); } .mq-role.stall { background: #e8f5ec; color: #23704a; } .mq-role.staff { background: #fff1db; color: #8a5a00; } .mq-role.test { background: #fff7e6; color: #8a5a00; }
.mq-q { margin: 5px 0 4px; font-weight: 600; } .mq-tags { display: flex; flex-wrap: wrap; gap: 5px; } .mq-tag { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.mq-tag.lead { border-color: #e0b44a; color: #8a5a00; } .mq-tag.un { border-color: #9bb3cc; color: #3b5a7a; } .mq-tag.flag { border-color: #e14b4b; color: #b02a2a; }
.mq-row details summary { cursor: pointer; font-size: 13px; color: var(--sky-2); margin-top: 4px; }

/* Invite a friend: WhatsApp-green button */
.btn.wa { background: #25D366; color: #fff; border-color: #25D366; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(18,140,74,.6); }
.btn.wa:hover, .btn.wa:active { background: #1EBE5B; } .btn.wa svg { width: 22px; height: 22px; flex: none; } .btn.wa.big { width: 100%; min-height: 54px; font-size: 17px; margin: 6px 0 10px; } .btn.wa.full { width: 100%; min-height: 50px; margin-top: 12px; white-space: nowrap; }
.btn.full { width: 100%; } .invcard .ic-more { display: block; margin: 8px auto 0; font-weight: 700; color: var(--muted); }
.invcard { border: 2px solid #25D366; background: linear-gradient(180deg, #f2fcf5, #fff); } .invcard .ic-top { display: flex; gap: 10px; align-items: center; } .invcard .ic-emoji { font-size: 30px; }
.invcard .ic-top b { display: block; font-size: 16px; } .invcard .ic-top div span { display: block; font-size: 13px; color: var(--muted); } .invcard .ic-top .ic-emoji { font-size: 32px; line-height: 1; } .invcard .ic-btns { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .invcard .ic-btns .btn.wa { flex: 1; min-height: 46px; }
.invsteps { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; } .invsteps li { display: flex; gap: 10px; align-items: center; } .invsteps i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.invnudge { margin: 10px 0 4px; padding: 10px; border-radius: 14px; background: #f2fcf5; border: 1px solid #bfeccf; } .invnudge p { margin: 0 0 8px; font-weight: 700; } .invnudge .btn.wa { width: 100%; }
.friendate { border-color: #25D366; }

/* amount checks: stall counter (unusual amount) and the member's Confirm card */
.amt-check { font: 800 44px/1.1 var(--display); color: var(--sky-2); margin: 6px 0; }
.cf-amt { border: 2px solid var(--line); border-radius: 18px; padding: 10px 12px; display: grid; gap: 2px; background: #fffaf4; }
.cf-amt span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .cf-amt b { font: 800 40px/1.1 var(--display); color: var(--ink); } .cf-amt small { font-size: 13px; color: var(--muted); }
.cf-amt.big { border-color: #e0a12f; background: #fff6e2; } .cf-amt.big small { color: #8a5a00; font-weight: 700; }

.sms-err { border: 1.5px solid #e0a12f; background: #fff6e2; border-radius: 14px; padding: 10px 12px; display: grid; gap: 8px; } .sms-err p { margin: 0; font-size: 14px; } .sms-err .btn { width: 100%; }
.toast { cursor: pointer; }

/* counter buttons: a tap you can feel and see */
.prices button, .dealbtn { position: relative; transition: transform .08s, background .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.prices button:active, .dealbtn:active { transform: scale(.94); }
.prices button.on { background: var(--sky-soft); border-color: var(--sky); color: var(--sky-2); } .dealbtn.on { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky) inset; }
.tapn { position: absolute; top: -9px; right: -7px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--sky); color: #fff; font: 800 14px/26px var(--display); font-style: normal; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pop { animation: tapPop .35s ease-out; } .pop .tapn { animation: tapBadge .35s ease-out; }
@keyframes tapPop { 0% { transform: scale(.9); background: #ffd9d6; } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes tapBadge { 0% { transform: scale(1.8); } 100% { transform: scale(1); } }

/* sign-up race */
.racebar { display: flex; gap: 8px; align-items: stretch; margin: 0 0 10px; }
.racebar .rb-main { flex: 1; min-width: 0; text-align: left; display: grid; gap: 2px; border: 2px solid #f0c867; background: linear-gradient(135deg, #fff8e1, #fff); border-radius: 16px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.racebar.hi .rb-main { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(225,75,75,.15); animation: pop .4s; }
.rb-t { font-size: 12px; font-weight: 700; color: #8a5a00; text-transform: uppercase; letter-spacing: .03em; } .racebar b { font: 800 18px/1.2 var(--display); } .rb-l2 { font-size: 13.5px; font-weight: 700; color: var(--sky-2); }
.rb-goal, .rb-hi { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .rb-hi { color: var(--sky-2); }
.rb-goal i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #e0b44a; display: inline-block; } .rb-goal i.on { background: #25a35a; border-color: #25a35a; }
.racebar em.up { color: #1d8a4b; font-style: normal; font-size: 13px; } .racebar em.down, .racelist em.down { color: var(--bad); font-style: normal; font-size: 12px; } .racelist em.up { color: #1d8a4b; font-style: normal; font-size: 12px; }
.racebar .rb-qr { flex: none; width: 92px; white-space: normal; line-height: 1.2; font-weight: 800; }
.racelist .rr { display: grid; grid-template-columns: 30px minmax(0, 1fr) 46px 80px; align-items: center; gap: 8px; padding: 9px 6px; border-top: 1px solid var(--line); } .racelist .rr:first-child { border-top: 0; }
.racelist .rr.me { background: var(--sky-soft); border-radius: 10px; } .racelist .rk { font-weight: 800; text-align: center; } .racelist .nm { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.racelist .mv { display: flex; gap: 4px; align-items: center; } .racelist b { font: 800 18px var(--display); text-align: right; } .racelist .pz { font-size: 11px; font-weight: 800; color: #8a5a00; background: #fff1cc; border-radius: 999px; padding: 2px 7px; }
.bigqr { position: fixed; inset: 0; z-index: 90; background: rgba(12,20,28,.85); display: grid; place-items: center; padding: 16px; }
.bq-in { background: #fff; border-radius: 24px; padding: 20px; text-align: center; display: grid; gap: 10px; justify-items: center; max-width: 380px; width: 100%; } .bq-h { font: 800 20px/1.25 var(--display); margin: 0; color: var(--sky-2); } .bq-s { margin: 0; font-weight: 700; } .bq-box { background: #fff; padding: 8px; }
.celebrate { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(12,20,28,.6); animation: fade .2s; padding: 16px; }
.cel-card { background: #fff; border-radius: 26px; padding: 24px 22px; text-align: center; max-width: 360px; width: 100%; animation: pop .45s cubic-bezier(.2,.9,.3,1.3); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); } .cel-card h2 { margin: 4px 0; font: 800 30px var(--display); color: var(--good); } .cel-card p { margin: 4px 0; font-weight: 700; } .cel-big { font-size: 64px; }
.cel-confetti i { position: fixed; top: -12px; left: var(--x); width: 9px; height: 14px; background: var(--c); border-radius: 2px; animation: confetti 2.6s ease-in calc(var(--i) * .05s) forwards; }
@keyframes confetti { to { transform: translateY(105vh) rotate(720deg); } }

/* drinks counter: "other drink price" */
.otherlink { display: inline-block; margin: 8px 0 2px; font-weight: 800; color: var(--sky-2); }
.otherrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.otherrow .or-l { font-weight: 800; flex-basis: 100%; display: flex; justify-content: space-between; align-items: center; } .or-amt { display: flex; align-items: center; gap: 4px; border: 1.5px solid #d8d0c3; border-radius: 12px; padding: 0 10px; height: 46px; background: #fff; }
.or-amt span { font-weight: 800; color: var(--muted); } .or-amt input { border: 0; outline: 0; width: 70px; font: 800 18px var(--display); background: transparent; } .or-amt:focus-within { border-color: var(--sky); }
.or-x { font-weight: 800; color: var(--muted); } .stepper { display: inline-flex; align-items: center; border: 1.5px solid #d8d0c3; border-radius: 12px; overflow: hidden; height: 46px; }
.stepper button { width: 40px; height: 100%; border: 0; background: #f6f1ea; font: 800 20px var(--display); cursor: pointer; } .stepper button:active { background: var(--sky-soft); } .stepper b { min-width: 34px; text-align: center; font: 800 18px var(--display); }
.otherrow .or-close { font-size: 18px; color: var(--muted); text-decoration: none; }

.racelist .rr.hd { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 4px; padding-bottom: 4px; } .racelist .rr.hd b.cnt { font: inherit; }
.racelist .nm { display: grid; gap: 1px; } .racelist .nm1 { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .racelist .nm2 { font-size: 12px; } .racelist .nm2 em { font-style: normal; font-weight: 700; }
.racelist .nm2 em.up { color: #1d8a4b; } .racelist .nm2 em.down { color: var(--bad); } .racelist .nm2 em.td { color: #2563a8; }
.racelist b.cnt { text-align: right; } .racelist .pzc { text-align: right; } .racelist .rk { text-align: center; color: var(--muted); }
.racelist .pz, .racehead .pz { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pz.gold { background: #fde9a8; color: #7a5300; } .pz.silver { background: #e6e9ee; color: #47515e; } .pz.bronze { background: #f4d6bf; color: #7a3f12; } .pz.imp { background: #dff3e6; color: #1d6e3f; } .pz.need { background: transparent !important; border: 1.5px dashed currentColor; opacity: .75; } .racelist .pzn { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.racelist .rr.imp { background: #f3fbf6; border-radius: 10px; border-top: 0; margin-bottom: 4px; } .racelist .rr.imp .rk { font-size: 18px; }
.racehead { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; font-weight: 800; } .racehead small { flex-basis: 100%; color: var(--muted); font-weight: 600; }
/* stall member sales cards */
.scards { display: grid; gap: 12px; margin: 8px 0 12px; }
.scard { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); display: grid; gap: 8px; }
.scard .st { font-size: 15px; font-weight: 700; color: var(--muted); } .scard .st span { font-weight: 400; }
.scard .sv { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .scard .sv b { font: 800 30px var(--display); } .scard .sv b.big { font-size: 38px; } .scard .sv span { color: var(--muted); font-size: 15px; }
.scard .sp { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #eee8e3; padding-top: 10px; font-size: 15px; color: var(--muted); }
.sdiff { font-weight: 800; font-size: 16px; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.sdiff.up, .sstrip .sdiff.up { color: #1b7a3a; background: #e4f4e8; } .sdiff.down { color: #b8302f; background: #fbe6e5; }
.sweeks { display: grid; gap: 6px; font-size: 15px; } .sweeks div { display: flex; justify-content: space-between; } .sweeks i { font-style: normal; } .sweeks i.up { color: #1b7a3a; } .sweeks i.down { color: #b8302f; }
.sken { display: flex; justify-content: space-between; align-items: center; background: #fff4e5; border-radius: 12px; padding: 12px 14px; font-weight: 700; } .sken b { font-size: 18px; }
.sstrip { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; border-radius: 14px; padding: 10px 14px; margin: 4px 0 10px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; text-align: left; font-size: 15px; color: inherit; }
.sstrip > span b { font-size: 17px; }
details.sdet { margin: 4px 0 12px; } details.sdet > summary { cursor: pointer; text-align: center; font-weight: 700; color: var(--red, #e14b4b); padding: 12px; list-style: none; } details.sdet > summary::-webkit-details-marker { display: none; }
.scard p { margin: 0; }
.sworth { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; background: #fff4e5; border: 0; border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 600; text-align: left; color: inherit; cursor: pointer; margin: 0 0 12px; }
.sworth span { color: var(--muted); font-size: 18px; }
.sworthbox { display: grid; gap: 12px; margin-bottom: 16px; font-size: 15px; } .sworthbox p { margin: 0; }
.sbig { background: #e4f4e8; color: #0f5a2c; border-radius: 14px; padding: 14px 16px; font: 800 19px var(--display); display: grid; gap: 4px; } .sbig small { font-size: 15px; font-weight: 600; font-family: inherit; color: #2c6b43; }
.sreasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; } .sreasons li { background: #faf6f1; border-radius: 10px; padding: 10px 12px; }
.sworthbox .h3 { margin: 4px 0 0; }
.btn.waiting { background: #f1ebe4; color: var(--muted); border-color: transparent; box-shadow: none; }
/* ---------- Ken's Home ---------- */
.kh-head { background: #1E1918; color: #F6F1EC; border-radius: 20px; padding: 22px; display: grid; gap: 20px; margin: 4px 0 18px; }
.kh-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.kh-top > div:first-child { display: grid; gap: 2px; } .kh-hi { font: 700 22px var(--display); } .kh-top small { color: #BDB2AB; font-size: 14px; }
.kh-topr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kh-pill { font-size: 13px; color: #BDB2AB; border: 1px solid #3A3230; border-radius: 999px; padding: 6px 12px; }
.kh-seg { display: flex; background: #2B2422; border-radius: 999px; padding: 4px; }
.kh-seg button { font: 600 14px inherit; font-family: inherit; color: #BDB2AB; background: transparent; border: 0; border-radius: 999px; padding: 9px 14px; min-height: 40px; cursor: pointer; }
.kh-seg button.on { background: #F6F1EC; color: #1E1918; }
.kh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.kh-tile { background: #2B2422; border-radius: 14px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.kh-tile > span { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #BDB2AB; } .kh-tile > b { font: 700 30px var(--display); } .kh-tile small { font-size: 13px; color: #BDB2AB; }
.kh-d { font-weight: 700; white-space: nowrap; } .kh-d.up { color: #1B7A3A; } .kh-d.down { color: #B8302F; } .kh-d.dk.up { color: #8FD3A6; } .kh-d.dk.down { color: #FF9B91; } .kh-d:not(.up):not(.down) { color: var(--muted); font-weight: 500; }
.kh-body { display: grid; gap: 16px; }
.kh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.kh-card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 1px 2px rgba(30,25,24,.06); display: grid; gap: 12px; align-content: start; }
.kh-h { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); } .kh-h.bad { color: #B8302F; font-size: 15px; letter-spacing: 0; }
.kh-hrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; } .kh-hrow small { color: var(--muted); font-size: 13px; }
.kh-why { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; } .kh-col { display: grid; gap: 12px; align-content: start; }
.kh-need { background: #E9F5EC; color: #0F5A2C; border-radius: 14px; padding: 16px 18px; display: grid; gap: 8px; } .kh-need small { font-size: 14px; color: #2C6B43; font-weight: 600; }
.kh-need div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .kh-need b { font: 800 38px var(--display); line-height: 1; } .kh-need span { font-size: 16px; font-weight: 600; }
.kh-at { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; border: 1.5px solid #CDE7D5; border-radius: 12px; padding: 12px 14px; }
.kh-at > span { font-weight: 700; } .kh-at > b { font: 700 24px var(--display); color: #1B7A3A; } .kh-at small { flex-basis: 100%; text-align: right; font-weight: 700; color: #B8302F; }
.kh-at.bad { background: #FCEDEC; border-color: #F2B0A8; } .kh-at.bad > b { color: #B8302F; }
.kh-split { display: grid; gap: 6px; } .kh-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #EEE8E3; }
.kh-bar i.a { background: #1B7A3A; } .kh-bar i.b { background: #5FAF7B; } .kh-bar i.c { background: #A6D9B5; }
.kh-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; } .kh-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.kh-leg i.a { background: #1B7A3A; } .kh-leg i.b { background: #5FAF7B; } .kh-leg i.c { background: #A6D9B5; }
.kh-eq { margin: 0; font-size: 14px; color: var(--muted); background: #FAF6F1; border-radius: 10px; padding: 10px 12px; }
.kh-reason { border: 1px solid #EEE8E3; border-radius: 12px; padding: 11px 13px; font-size: 15px; } .kh-reason span { color: var(--muted); }
.kh-tips { border: 1.5px solid #F2B0A8; } .kh-tip { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; border-top: 1px solid #EEE8E3; padding-top: 12px; }
.kh-tip > div { display: grid; gap: 3px; } .kh-tip small { color: var(--muted); font-size: 14px; } .kh-n { width: 28px; height: 28px; border-radius: 50%; background: #FCEDEC; color: #B8302F; display: grid; place-items: center; font-size: 14px; }
.kh-plus { font-weight: 800; color: #1B7A3A; white-space: nowrap; }
.kh-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid #EEE8E3; border-radius: 12px; padding: 12px 14px; min-height: 46px; cursor: pointer; }
.kh-act.bad { background: #FCEDEC; border-color: transparent; } .kh-act.bad b { color: #B8302F; } .kh-act b { white-space: nowrap; }
.kh-none { margin: 0; color: #1B7A3A; font-weight: 600; }
.kh-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #EEE8E3; padding-bottom: 10px; }
.kh-row > div { display: grid; gap: 2px; } .kh-row small { font-size: 13px; color: var(--muted); } .kh-row .r { text-align: right; } .kh-num { font: 700 22px var(--display); } .kh-row .kh-d { font-size: 13px; }
.kh-chart { display: grid; gap: 6px; } .kh-chart > small { font-size: 13px; color: var(--muted); }
.kh-bars { display: grid; gap: 6px; align-items: end; height: 108px; } .kh-bars > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kh-bars span { font-size: 12px; color: var(--muted); } .kh-bars span.on { font-weight: 700; color: #B8302F; } .kh-bars i { width: 100%; background: #E9DDD6; border-radius: 4px 4px 0 0; } .kh-bars i.on { background: #E14B4B; }
.kh-wl { display: grid; gap: 6px; font-size: 11px; color: var(--muted); text-align: center; } .kh-wl .on { font-weight: 700; color: #B8302F; }
.kh-cap { font-size: 14px; } .kh-foot { font-size: 13px; color: var(--muted); }
.kh-bar.cost i.a { background: #E14B4B; } .kh-bar.cost i.b { background: #F08C6A; } .kh-bar.cost i.c { background: #F4B860; } .kh-bar.cost i.d { background: #8A7E79; } .kh-bar.cost i.e { background: #C9BDB6; }
.kh-line { display: flex; justify-content: space-between; gap: 10px; } .kh-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kh-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; } .kh-dot.a { background: #E14B4B; } .kh-dot.b { background: #F08C6A; } .kh-dot.c { background: #F4B860; } .kh-dot.d { background: #8A7E79; } .kh-dot.e { background: #C9BDB6; } .kh-dot.f { background: #DDD3CD; }
.kh-line.off { color: #8A7E79; } .kh-feeoff { font-size: 13px; color: #8A7E79; padding-left: 17px; margin-top: -10px; }
.kh-line.tot { border-top: 1px solid #1F1B1A; padding-top: 10px; font-weight: 700; }
.kh-tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 600px; font-variant-numeric: tabular-nums; }
.kh-tbl th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 10px; } .kh-tbl td { padding: 11px 10px; border-top: 1px solid #EEE8E3; } .kh-tbl .r { text-align: right; }
.kh-tbl tr.down td { background: #FCEDEC; } .kh-spot { font-size: 12px; color: #B8302F; border: 1px solid #F2B0A8; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.kh-chg { display: inline-flex; justify-content: space-between; align-items: center; width: 118px; font-weight: 700; } .kh-chg i { font-style: normal; font-size: 11px; } .kh-chg.up { color: #1B7A3A; } .kh-chg.down { color: #B8302F; }
.kh-bud { height: 6px; background: #EEE8E3; border-radius: 999px; min-width: 100px; } .kh-bud i { display: block; height: 6px; background: #8A7E79; border-radius: 999px; } .kh-bud i.hot { background: #E8A33D; }
.kh-link { justify-self: start; background: none; border: 0; padding: 10px 0; font: 700 15px inherit; font-family: inherit; color: #B8302F; cursor: pointer; min-height: 44px; }
.kh-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .kh-big b { font: 700 34px var(--display); } .kh-big b.good { color: #1B7A3A; } .kh-big b.bad { color: #B8302F; } .kh-big span { color: var(--muted); }
.kh-prog { height: 8px; background: #EEE8E3; border-radius: 999px; } .kh-prog i { display: block; height: 8px; background: #1B7A3A; border-radius: 999px; } .kh-prog i.bad { background: #B8302F; }
.kh-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .kh-3 b { font: 700 22px var(--display); display: block; } .kh-3 small { font-size: 13px; color: var(--muted); }
.kh-det > summary { cursor: pointer; font-weight: 700; color: #B8302F; padding: 10px 0; list-style: none; } .kh-det > summary::-webkit-details-marker { display: none; }
.kh-tile > b.pos { color: #8FD3A6; } .kh-tile > b.neg { color: #FF9B91; }
.kh-tlink { justify-self: start; background: none; border: 0; padding: 4px 0; font: 700 13px inherit; font-family: inherit; color: #F6F1EC; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.kh-at small { color: #1B7A3A; } .kh-at small.bad { color: #B8302F; }
.al-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.al-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-top: 1px solid #EEE8E3; padding-top: 10px; }
.al-row > span { display: grid; gap: 2px; } .al-row small { font-size: 13px; color: var(--muted); } .al-row b { font-variant-numeric: tabular-nums; white-space: nowrap; } .al-row .bad { color: #B8302F; }
.al-note { margin: 0; font-size: 14px; } .al-det { font-size: 13px; color: var(--muted); } .al-det summary { cursor: pointer; font-weight: 700; color: #B8302F; padding: 6px 0; }
.kh-card .kh-tips { display: grid; gap: 10px; background: #FFF8F7; border: 1px solid #F2B0A8; border-radius: 12px; padding: 12px 14px; margin-top: -4px; }
.kh-tips .kh-tip { grid-template-columns: 26px 1fr; } .kh-tips .kh-plus { grid-column: 2; }
.kh-rule { font: 800 26px var(--display); line-height: 1.25; }
.kh-rent { display: grid; gap: 8px; border: 1.5px solid #EEE8E3; border-radius: 14px; padding: 14px 16px; }
.kh-rentnum { display: flex; align-items: baseline; gap: 10px; } .kh-rentnum b { font: 800 34px var(--display); color: #1E1918; } .kh-rentnum span { font-size: 15px; color: var(--muted); }
.kh-rent .kh-prog i { background: #E14B4B; } .kh-rent small { font-size: 14px; color: var(--muted); }
.kh-rentnum b { white-space: nowrap; }
.kh-why .kh-rule { display: grid; gap: 4px; background: #E9F5EC; color: #0F5A2C; border-radius: 14px; padding: 16px 18px; font: inherit; }
.kh-why .kh-rule b { font: 800 22px var(--display); line-height: 1.25; } .kh-why .kh-rule small { font-size: 14px; color: #2C6B43; margin-top: 4px; }
.kh-nm { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid #EEE8E3; border-radius: 14px; overflow: hidden; }
.kh-nm > div { display: grid; gap: 4px; padding: 14px 16px; align-content: start; } .kh-nm > div + div { border-left: 1.5px solid #EEE8E3; }
.kh-nm small { font-size: 13px; font-weight: 700; color: var(--muted); } .kh-nm b { font: 700 26px var(--display); } .kh-nm span { font-size: 13px; color: var(--muted); }
.kh-nm .ok { background: #F1F9F3; } .kh-nm .ok b, .kh-nm .ok span { color: #1B7A3A; } .kh-nm .bad { background: #FCEDEC; } .kh-nm .bad b, .kh-nm .bad span { color: #B8302F; }
.kh-rentrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1.5px solid #EEE8E3; border-radius: 14px; padding: 12px 16px; font-size: 15px; } .kh-rentrow b { font: 700 20px var(--display); white-space: nowrap; }

/* ---------- On the house ---------- */
.kh-bar.cost i.g { background: #FFB98A; } .kh-dot.g { background: #FFB98A; }
.giftbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 16px; padding: 14px 16px; margin: 10px 0; font: inherit; color: #5A2412; background: linear-gradient(135deg, #FFF3C9, #FFE0CC); box-shadow: inset 0 0 0 2px #FFD0A8; cursor: pointer; }
.giftbar.on { background: linear-gradient(135deg, #FFE27A 0%, #FFB98A 55%, #FF8F7E 100%); box-shadow: 0 8px 18px rgba(226,100,70,.25); }
.giftbar span { display: flex; flex-direction: column; gap: 2px; } .giftbar b { font-size: 16px; } .giftbar small { font-size: 13px; opacity: .85; }
.tgl { flex: none; width: 46px; height: 28px; border-radius: 999px; background: rgba(90,36,18,.25); position: relative; transition: background .2s; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.giftbar.on .tgl { background: #1B7A3A; } .giftbar.on .tgl::after { transform: translateX(18px); }
.btn.housebtn { background: #fff; color: #9A3B22; border: 2px dashed #FFB98A; margin-top: 10px; }
.callken { background: #B8302F; color: #fff; border-radius: 20px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 12px; animation: ohpulse 1.6s ease-in-out infinite; }
.callken b { font-size: 30px; font-weight: 800; } .callken span { font-size: 16px; line-height: 1.4; }
@keyframes ohpulse { 50% { box-shadow: 0 0 0 10px rgba(184,48,47,.18); } }
.ohcard { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 20px; min-height: 170px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; color: #5A2412; background: linear-gradient(135deg, #FFE27A 0%, #FFB98A 55%, #FF8F7E 100%); box-shadow: 0 18px 32px rgba(226,100,70,.30), inset 0 1px 0 rgba(255,255,255,.7); }
.ohcard.tilt { width: min(320px, 86vw); transform: perspective(700px) rotateX(8deg) rotateY(-12deg); animation: ohin .7s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes ohin { from { transform: perspective(700px) rotateX(30deg) rotateY(-30deg) scale(.6); opacity: 0; } }
.oh-shine { position: absolute; left: -40px; top: -60px; width: 220px; height: 160px; background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(255,255,255,0)); transform: rotate(-18deg); pointer-events: none; }
.oh-top, .oh-bot { display: flex; justify-content: space-between; gap: 10px; position: relative; } .oh-top { align-items: flex-start; } .oh-bot { align-items: flex-end; }
.oh-top div, .oh-bot div { display: flex; flex-direction: column; gap: 2px; }
.oh-top small { font-size: 12px; font-weight: 700; letter-spacing: .08em; } .oh-top b { font-size: 28px; font-weight: 800; line-height: 1; }
.oh-bot small { font-size: 13px; font-weight: 600; } .oh-bot b { font-size: 20px; font-weight: 700; }
.oh-mochi { width: 64px; height: 64px; flex: none; }
.oh-till { font-size: 12px; font-weight: 700; background: rgba(255,255,255,.6); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.ohstrip { margin: 12px 0; } .oh-line { color: #5A2412; font-weight: 600; text-align: center; margin: 10px 4px 0; line-height: 1.4; }
.ohreveal { position: fixed; inset: 0; z-index: 90; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 64px 24px 28px; color: #5A2412; background: radial-gradient(circle at 50% 38%, #FFF4D6 0%, #FFE3C8 45%, #FBD3C4 100%); }
.ohreveal h2 { font-size: 30px; font-weight: 800; text-align: center; margin: 0; }
.ohreveal .oh-big { font-size: 17px; font-weight: 600; text-align: center; line-height: 1.4; max-width: 320px; margin: 0; } .ohreveal .oh-sub { font-size: 14px; color: #8A4A35; text-align: center; margin: 0; }
.ohreveal .btn { margin-top: auto; width: 100%; max-width: 420px; }
.cf { position: absolute; top: -20px; width: 10px; height: 10px; border-radius: 3px; animation: ohfall 3.2s linear infinite; pointer-events: none; }
.cf.c1 { left: 10%; background: #E14B4B; } .cf.c2 { left: 25%; background: #3FB57A; animation-delay: .5s; height: 6px; } .cf.c3 { left: 42%; background: #4F8DF5; animation-delay: 1.1s; width: 7px; height: 14px; }
.cf.c4 { left: 58%; background: #F5A623; animation-delay: .2s; border-radius: 50%; } .cf.c5 { left: 72%; background: #B06AE0; animation-delay: 1.6s; height: 6px; } .cf.c6 { left: 86%; background: #E14B4B; animation-delay: .8s; border-radius: 50%; } .cf.c7 { left: 50%; background: #3FB57A; animation-delay: 2.2s; }
@keyframes ohfall { to { transform: translateY(110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .cf, .ohcard.tilt, .callken { animation: none; } .cf { display: none; } }
.ohconfirm h2 { margin-top: 0; } .ohbill { border-radius: 18px; padding: 18px; color: #5A2412; background: linear-gradient(135deg, #FFE27A 0%, #FFB98A 55%, #FF8F7E 100%); display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.ohbill small { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; } .ohbill s { font-size: 36px; font-weight: 800; text-decoration-thickness: 3px; } .ohbill b { font-size: 26px; font-weight: 800; }
.ohbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; } .ohbtns .btn { margin: 0; }
.btn.good { background: #1B7A3A; color: #fff; border: 0; } .btn.bad-out { background: #fff; color: #B8302F; border: 1.5px solid #F2B0A8; }
.sheet-wrap.ohsheet .sheet { background: radial-gradient(circle at 50% 30%, #FFF4D6 0%, #FFE3C8 60%, #FBD3C4 100%); color: #5A2412; }
.treated { position: relative; overflow: hidden; text-align: center; padding: 12px 4px; } .treated h2 { font-size: 30px; font-weight: 800; margin: 6px 0; } .treated .oh-big { font-size: 17px; font-weight: 600; }
.card.kenask { border: 2px solid #E14B4B; box-shadow: 0 10px 24px rgba(225,75,75,.18); } .ka-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #B8302F; margin: 0 0 6px; } .ka-head i { width: 10px; height: 10px; border-radius: 50%; background: #E14B4B; animation: ohpulse 1.2s infinite; }
.ohchip { border: 1.5px solid #E2DAD4; background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; } .ohchip.on { background: #E14B4B; border-color: #E14B4B; color: #fff; }
.card.kenask h3 { font-size: 24px; font-weight: 800; margin: 2px 0 6px; line-height: 1.2; }
.ohconfirm h2 { color: #5A2412; } .treated > :not(.cf) { position: relative; z-index: 1; } .treated .cf { opacity: .7; }

/* ---------- Members table: compact, scales to thousands ---------- */
.mtbl-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 2px 6px; }
.msort { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; } .msort select { font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; min-height: 36px; }
.mtbl { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mtr { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) 90px 84px; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid #f0ebe2; font-size: 14px; }
.mtr:last-child { border-bottom: 0; } .mtr:not(.mth):hover { background: #fcf9f6; }
.mth { background: #faf7f3; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; }
.mtr .r { text-align: right; } .mtr .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mname { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; } .mname b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mname small { font-size: 12px; color: var(--muted); }
.mtag { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); background: #f3eee8; border-radius: 999px; padding: 1px 7px; white-space: nowrap; } .mtag.gift { color: #9A3B22; background: #FFE7D6; }
.mcon { color: #4a403c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mjoin { display: flex; flex-direction: column; color: #4a403c; } .mjoin small { font-size: 12px; color: var(--muted); }
.mamt { font-weight: 700; font-variant-numeric: tabular-nums; } .mamt.zero { color: #b5aaa4; font-weight: 600; }
.macts { display: flex; justify-content: flex-end; gap: 6px; }
.ibtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ibtn:hover { border-color: #E14B4B; } .ibtn.on { background: #FFE7D6; border-color: #FFB98A; }
.mmore { display: block; width: 100%; margin: 10px 0; }
@media (max-width: 720px) {
  .mth { display: none; }
  .mtr { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "n a b" "c a b"; row-gap: 2px; padding: 10px 12px; }
  .mname { grid-area: n; } .mcon { grid-area: c; font-size: 12px; color: var(--muted); } .mjoin { display: none; } .mamt { grid-area: a; } .macts { grid-area: b; }
}
/* keep the app light even when the phone's browser forces dark mode (an inverted QR won't scan on many readers) */
:root { color-scheme: only light; }
.qrbox, .qrbox img, .qrbox canvas { filter: none !important; forced-color-adjust: none; }
.camhint { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #FFF4E5; color: #6b3a10; font-size: 14px; line-height: 1.4; }
.qrbox { overflow: hidden; } .qrbox img { display: block; }

/* ---------- On the house: the big moving card (VIP-style, sunny) ---------- */
.oh3d {
  --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 30%;
  position: relative; width: min(312px, 84vw); aspect-ratio: 5 / 7.3; border-radius: 24px; overflow: hidden; isolation: isolate; box-sizing: border-box;
  background: radial-gradient(120% 70% at 15% -10%, rgba(255,255,255,.55), transparent 55%), linear-gradient(150deg, #FFE27A 0%, #FFB98A 55%, #FF8F7E 100%);
  color: #5A2412; display: grid; grid-template-rows: auto 1fr auto; padding: 20px 20px 18px; gap: 6px;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 40px 60px -28px rgba(170,70,40,.55), 0 18px 30px -18px rgba(226,100,70,.45), inset 0 0 0 1px rgba(255,255,255,.55);
}
.oh3d.tilting { animation: none; } .oh3d.still, .oh3d.still * { animation: none !important; }
.oh3d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; background: radial-gradient(60% 45% at var(--sx) var(--sy), rgba(255,255,255,.45), transparent 60%); mix-blend-mode: soft-light; }
.oh3d .vip-shine { display: none; } /* a white sweep across a light card reads as blinking: keep only the soft glare that follows the tilt */
.oh3d-shine { position: absolute; left: -50px; top: -70px; width: 260px; height: 190px; background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(255,255,255,0)); transform: rotate(-18deg); pointer-events: none; z-index: 0; }
.oh3d-dots { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .9;
  background: radial-gradient(circle 4px at 18% 22%, #E14B4B 98%, transparent), radial-gradient(circle 3px at 84% 14%, #3FB57A 98%, transparent), radial-gradient(circle 3px at 90% 62%, #4F8DF5 98%, transparent), radial-gradient(circle 4px at 8% 70%, #F5A623 98%, transparent); }
.oh3d-top, .oh3d-bot { display: flex; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.oh3d-top { align-items: flex-start; transform: translateZ(30px); } .oh3d-bot { align-items: flex-end; transform: translateZ(25px); }
.oh3d-top div, .oh3d-bot div { display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0; }
.oh3d-top small { font-size: 12px; font-weight: 700; letter-spacing: .1em; } .oh3d-top b { font: 800 30px/1 var(--display); }
.oh3d-top .oh-mochi { width: 66px; height: 66px; filter: drop-shadow(0 6px 10px rgba(170,70,40,.25)); }
.oh3d-bot small { font-size: 13px; font-weight: 600; } .oh3d-bot b { font: 700 21px/1.1 var(--display); overflow-wrap: anywhere; }
.oh3d-qr { align-self: center; justify-self: center; display: grid; justify-items: center; gap: 6px; z-index: 1; transform: translateZ(45px); }
.oh-qr { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 26px -10px rgba(120,40,20,.5), 0 0 0 3px rgba(255,255,255,.7); }
.oh-qr img, .oh-qr canvas { width: 176px; height: 176px; display: block; image-rendering: pixelated; }
.oh3d-qr span { font: 700 13px "JetBrains Mono", monospace; letter-spacing: .2em; color: #7A3418; }
.ohreveal .flip .oh3d { width: min(300px, 80vw, calc((100svh - 260px) * 5 / 7.3)); }
.ohreveal { overflow-y: auto; gap: 14px; padding-top: 40px; } .ohreveal h2 { font-size: 28px; }
.oh-stage + .oh-line { margin-top: 4px; }
.ohreveal .oh3d-top b { font-size: 26px; }

/* the card's gentle up-and-down float lives on its stage; the card itself only tilts (one smooth JS loop) */
.vip-stage > .vip-card, .vip-stage > .oh3d { animation: cardBob 6.5s ease-in-out infinite; }
@keyframes cardBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .vip-stage > .vip-card, .vip-stage > .oh3d, .flip { animation: none; } }

/* ---------- Member QR cards: Heng Ong Huat · Silver · Gold (moving, shining, Mochi alive) ---------- */
.tc {
  --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 30%;
  position: relative; width: min(312px, 84vw); aspect-ratio: 5 / 7.3; border-radius: 24px; overflow: hidden; isolation: isolate; box-sizing: border-box;
  display: grid; grid-template-rows: auto 1fr auto; padding: 18px 18px 16px; gap: 4px;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; will-change: transform;
}
.vip-stage > .tc { animation: cardBob 6.5s ease-in-out infinite; }
.tc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; background: radial-gradient(55% 40% at var(--sx) var(--sy), rgba(255,255,255,.38), transparent 62%); mix-blend-mode: soft-light; }
.tc-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.tc-top, .tc-bot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 8px; }
.tc-top { align-items: flex-start; transform: translateZ(30px); } .tc-bot { align-items: center; transform: translateZ(22px); }
.tc-top > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.tc-top small { font-size: 11px; font-weight: 800; letter-spacing: .14em; opacity: .85; }
.tc-name { font: 800 27px/1 var(--display); letter-spacing: .03em; }
.tc-sub { font-size: 12px; font-weight: 600; opacity: .9; }
.tc-bot b { font: 700 20px/1.1 var(--display); overflow-wrap: anywhere; text-align: left; }
.tc-chip { flex: none; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.tc-qr { position: relative; z-index: 2; align-self: center; justify-self: center; display: grid; justify-items: center; gap: 5px; transform: translateZ(46px); cursor: pointer; }
.tc-qrbox { background: #fff; border-radius: 16px; overflow: hidden; }
.tc-qrbox img, .tc-qrbox canvas { width: 176px; height: 176px; display: block; image-rendering: pixelated; }
.tc-qr span { font: 700 12px "JetBrains Mono", monospace; letter-spacing: .2em; }
.tc .mochi, .oh3d .mochi { width: 70px; height: 70px; flex: none; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.vip-top .mochi { width: 48px; height: 48px; overflow: visible; }

/* Heng Ong Huat: lucky red and gold, the liveliest card (most members are here) */
.t-heng { color: #FFF4D6; background: radial-gradient(120% 70% at 15% -10%, rgba(255,214,130,.45), transparent 55%), linear-gradient(155deg, #FF7A5C 0%, #E14B4B 42%, #B8302F 100%);
  box-shadow: 0 40px 60px -28px rgba(150,30,25,.6), 0 18px 30px -18px rgba(225,75,75,.45), inset 0 0 0 2px rgba(255,214,130,.75); }
.t-heng .tc-bg { opacity: .22; background: radial-gradient(circle at 20% 80%, transparent 0 18px, rgba(255,214,130,.9) 19px 20px, transparent 21px), radial-gradient(circle at 85% 30%, transparent 0 26px, rgba(255,214,130,.9) 27px 28px, transparent 29px), repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 2px, transparent 2px 16px); }
.t-heng .tc-name { background: linear-gradient(180deg, #FFF6D6 0%, #F7D774 45%, #E2A93A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 25px; filter: drop-shadow(0 1px 0 rgba(120,20,15,.35)); }
.t-heng .tc-qrbox { box-shadow: 0 14px 26px -10px rgba(110,20,15,.6), 0 0 0 3px #F7D774, 0 0 0 6px rgba(247,215,116,.35); }
.t-heng .tc-chip { background: #F7D774; color: #7A1E16; }
/* Silver */
.t-silver { color: #2E3742; background: linear-gradient(150deg, #F8FAFC 0%, #D9DFE6 30%, #F4F6F9 48%, #B9C2CC 70%, #E9EDF2 100%);
  box-shadow: 0 40px 60px -28px rgba(40,55,75,.5), inset 0 0 0 2px rgba(255,255,255,.9), 0 0 0 1px #B9C2CC; }
.t-silver .tc-bg { background: repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 1px, rgba(120,135,150,.07) 1px 3px); }
.t-silver .tc-qrbox { box-shadow: 0 14px 26px -10px rgba(40,55,75,.5), 0 0 0 3px #fff, 0 0 0 4px #AEB8C4; }
.t-silver .tc-chip { background: rgba(255,255,255,.75); color: #2E3742; }
/* Gold */
.t-gold { color: #4A3006; background: linear-gradient(150deg, #FFF6D6 0%, #F2CF7A 28%, #FFF0C2 46%, #D9A441 70%, #F7DC8E 100%);
  box-shadow: 0 40px 60px -28px rgba(140,95,20,.6), inset 0 0 0 2px rgba(255,248,220,.95), 0 0 0 1px #C4902F; }
.t-gold .tc-qrbox { box-shadow: 0 14px 26px -10px rgba(120,80,10,.55), 0 0 0 3px #FFF8DC, 0 0 0 4px #C4902F; }
.t-gold .tc-chip { background: rgba(255,250,230,.8); color: #4A3006; }

/* shine: a soft warm sweep every few seconds (never a hard white flash) */
.tc-shine { position: absolute; top: -30%; bottom: -30%; left: -60%; width: 55%; z-index: 4; pointer-events: none; transform: skewX(-18deg) translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,248,225,.08) 30%, rgba(255,248,225,.42) 50%, rgba(255,248,225,.08) 70%, transparent); mix-blend-mode: soft-light; animation: sweep 5.5s cubic-bezier(.45,.05,.3,1) infinite; }
.t-silver .tc-shine { mix-blend-mode: screen; background: linear-gradient(90deg, transparent, rgba(255,255,255,.05) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.05) 70%, transparent); }
.oh3d .tc-shine { mix-blend-mode: soft-light; animation-duration: 6.5s; }

/* sparkles (bling) and rising lucky coins */
.tc-spk { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; z-index: 1; pointer-events: none; opacity: 0; animation: twinkle 3.2s ease-in-out var(--d) infinite;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), linear-gradient(0deg, transparent 44%, #fff 44% 56%, transparent 56%), linear-gradient(90deg, transparent 44%, #fff 44% 56%, transparent 56%); filter: drop-shadow(0 0 3px rgba(255,255,255,.9)); }
.t-heng .tc-spk, .t-gold .tc-spk, .tc-spk.gold { filter: drop-shadow(0 0 4px rgba(255,214,120,.95)); }
.vip-card .tc-spk { z-index: 2; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: 1; transform: scale(1.15) rotate(45deg); } 60% { opacity: .7; transform: scale(.8) rotate(60deg); } }
.tc-coin { position: absolute; left: var(--x); bottom: -24px; width: 16px; height: 16px; border-radius: 50%; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 35% 35%, #FFF6D6 0 18%, #F7D774 20% 60%, #C4902F 62%); box-shadow: 0 0 0 1.5px #B8862A inset;
  animation: coinUp 6s ease-in var(--d) infinite; scale: var(--s); }
@keyframes coinUp { 0% { opacity: 0; transform: translateY(0) rotateY(0); } 10% { opacity: .95; } 80% { opacity: .9; } 100% { opacity: 0; transform: translateY(-520px) rotateY(720deg); } }

/* Mochi comes alive: blink, a wink now and then, a big smile, a little bob; each card has its own move */
.mochi * { transform-box: fill-box; transform-origin: center; }
.mochi .mo-all { animation: moBob 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
.mochi .mo-eye { animation: moBlink 4.6s infinite; }
.mochi .mo-eye-l { animation: moBlinkL 9.2s infinite; }
.mochi .mo-wink { opacity: 0; animation: moWink 9.2s infinite; }
.mochi .mo-grin { opacity: 0; animation: moGrin 7s infinite; }
.mochi .mo-mouth { animation: moMouth 7s infinite; }
.m-heng .mo-paw { transform-origin: 40% 100%; animation: moWave 2.2s ease-in-out infinite; }
.m-heng .mo-bell { animation: moBell 2.2s ease-in-out infinite; transform-origin: 50% 0; }
.m-gold .mo-coin { animation: moCoin 3s ease-in-out infinite; }
.m-silver .mo-star { animation: moStar 2.8s ease-in-out infinite; }
.m-vip .mo-crown { animation: moCrown 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.m-gift .mo-gift { animation: moGift 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes moBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-3deg); } }
@keyframes moBlink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes moBlinkL { 0%, 22%, 25%, 58%, 100% { transform: scaleY(1); opacity: 1; } 23.5% { transform: scaleY(.1); } 62%, 74% { opacity: 0; } 78% { opacity: 1; } }
@keyframes moWink { 0%, 60%, 78%, 100% { opacity: 0; } 62%, 74% { opacity: 1; } }
@keyframes moGrin { 0%, 30%, 52%, 100% { opacity: 0; } 34%, 48% { opacity: 1; } }
@keyframes moMouth { 0%, 30%, 52%, 100% { opacity: 1; } 34%, 48% { opacity: 0; } }
@keyframes moWave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-22deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-18deg); } 80% { transform: rotate(4deg); } }
@keyframes moBell { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(14deg); } 75% { transform: rotate(-14deg); } }
@keyframes moCoin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes moStar { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(25deg); } }
@keyframes moCrown { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(-6deg) translateY(-1px); } }
@keyframes moGift { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-12deg); } 78% { transform: rotate(10deg); } 82% { transform: rotate(-8deg); } 86% { transform: rotate(6deg); } 90% { transform: rotate(0); } }

/* tap the QR to scan: card straightens, the shine and coins pause */
.tc.hold .tc-shine, .tc.hold .tc-coin, .oh3d.hold .tc-shine, .vip-card.hold .vip-shine { animation-play-state: paused; opacity: 0; }
.tc.still, .tc.still * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .tc *, .mochi *, .tc-spk, .tc-coin { animation: none !important; } .tc-coin, .tc-spk { display: none; } }
.t-heng .tc-name { font-size: 21px; white-space: nowrap; letter-spacing: .01em; }
.oh3d .mochi { width: 60px; height: 60px; } .oh3d-top b { font-size: 27px; white-space: nowrap; }
.al-note.bad { color: #B8302F; font-weight: 700; }

/* ---------- Feedback and news ---------- */
.fbchip { margin-top: 6px; border: 1.5px solid #E2DAD4; background: #fff; color: #4A3F3B; border-radius: 999px; padding: 6px 12px; font: 600 13px var(--sans, inherit); min-height: 36px; cursor: pointer; }
.fbchip.new { border-color: #E14B4B; color: #B8302F; background: #FCEDEC; } .fbchip.new::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E14B4B; margin-left: 6px; }
.fbphoto { display: flex; align-items: center; gap: 10px; margin: 6px 0; } .fbphoto img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.fbimg { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; background: #F3EEE8; margin: 6px 0 10px; }
.fbthread { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.fbmsg { max-width: 86%; border-radius: 14px; padding: 8px 12px; background: #F3EEE8; align-self: flex-start; } .fbmsg p { margin: 2px 0; white-space: pre-wrap; } .fbmsg small { color: var(--muted); font-size: 11px; }
.fbmsg.ken { align-self: flex-end; background: #FCEDEC; } .fbmsg b { font-size: 12px; }
.fbrow { text-align: left; cursor: pointer; } .fbrow.new { background: #FFF8F6; } .fbdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #E14B4B; margin-right: 6px; }
.newsban, .pushcard { border: 2px solid #FFB98A; background: linear-gradient(135deg, #FFF8E8, #FFEDE3); }
.newsban p, .pushcard p { margin: 4px 0 6px; } .nb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.newsitem { border-bottom: 1px solid #F0E8E2; padding: 10px 0; } .newsitem p { margin: 4px 0; } .newsitem small { color: var(--muted); } .newsitem.hl { background: #FFF8E8; border-radius: 10px; padding: 10px; }
.newspref { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-weight: 600; } .newspref input { width: 22px; height: 22px; }

/* ---------- gifts with an amount / from a stall / from staff ---------- */
.oh3d { padding-top: 40px; }
.oh-rib { position: absolute; left: 0; right: 0; top: 0; height: 28px; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 0 12px;
  background: var(--rib, #E14B4B); color: #fff; font: 800 11px/1 var(--sans, Figtree, sans-serif); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 10px -6px rgba(0,0,0,.4); }
.oh3d-top b.amt { font-size: 40px; letter-spacing: -.01em; }
.gmore { display: grid; gap: 8px; margin: 10px 0; }
.gm { background: #fff; border-radius: 14px; padding: 10px 12px 10px 14px; border-left: 6px solid var(--rib, #E14B4B); box-shadow: 0 1px 0 #EEE6DF; display: flex; flex-direction: column; gap: 2px; }
.gm small { color: var(--muted); }
.ohsplit { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 15px; margin: 4px 0 6px; } .ohsplit b { font-size: 15px !important; }
.btn.gswitch { margin: 4px 0; width: 100%; }
.giftbar { border-left: 6px solid var(--rib, #E14B4B); }
.gpick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 10px; } .gpick small { color: var(--muted); }
.btn.sgiftbtn { margin-top: 10px; width: 100%; background: #fff; color: var(--rib, #2A1714); border: 2px solid var(--rib, #E2DAD4); font-weight: 800; }
.btn.sgiftbtn[disabled] { opacity: .5; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; } .sw { position: relative; cursor: pointer; } .sw input { position: absolute; opacity: 0; }
.sw i { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E2DAD4; } .sw input:checked + i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #2A1714; }
.sw input:focus-visible + i { outline: 2px solid #2A1714; outline-offset: 4px; }
/* hold still for scanning: the card flattens and says so */
.hold-badge { display: none; position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); white-space: nowrap; background: #1B7A3A; color: #fff; font: 800 12px/1 var(--sans, Figtree, sans-serif); padding: 7px 12px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); z-index: 5; font-style: normal; }
.tc-qr, .oh3d-qr, .vip-qr-wrap { position: relative; }
.hold .hold-badge { display: block; animation: holdIn .25s ease-out; }
.hold .tc-qrbox, .hold .oh-qr, .hold .vip-qr { box-shadow: 0 0 0 4px #1B7A3A, 0 10px 20px -8px rgba(0,0,0,.45) !important; }
.hold .tc-spk, .hold .tc-coin, .hold .mochi * { animation-play-state: paused !important; }
@keyframes holdIn { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
/* news */
.nb-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFF8E8; border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.sw-row span { display: flex; flex-direction: column; gap: 2px; } .sw-row small { font-weight: 500; color: var(--muted); font-size: 12px; }
.sw-row input { position: absolute; opacity: 0; width: 1px; height: 1px; } .sw-row input:checked + .tgl { background: #1B7A3A; } .sw-row input:checked + .tgl::after { transform: translateX(18px); }
.sw-row input:disabled + .tgl { opacity: .4; } .sw-row input:focus-visible + .tgl { outline: 2px solid #2A1714; outline-offset: 3px; }
.nwlist { display: grid; gap: 12px; }
.nwcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.nwcard h4 { margin: 2px 0 0; font: 800 18px/1.25 var(--display); } .nwcard p { margin: 0; color: #4A3F3B; white-space: pre-wrap; }
.nw-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .nw-top small { color: var(--muted); }
.nwchip { background: #FCEDEC; color: #B8302F; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
.nw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.nw-stats div { background: #F7F3EF; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; } .nw-stats b { font-size: 18px; } .nw-stats small { color: var(--muted); font-size: 12px; }
.nw-pull { align-self: flex-start; color: #B8302F; }
.nwcard.pulled { opacity: .6; } .nwcard.pulled h4 { text-decoration: line-through; } .nw-pulled { color: #B8302F; font-weight: 700; font-size: 13px; }
.dirbtn { white-space: nowrap; }
.stampnote .bonus { display: inline-block; background: #FFF3C4; color: #6B4A08; font-weight: 800; border-radius: 999px; padding: 2px 8px; font-size: 12px; }

/* ---------- Ken's Home header: premium gold ---------- */
.kh-head { position: relative; overflow: hidden; color: #3A2606;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255,250,230,.75), transparent 55%), linear-gradient(135deg, #F7DC8E 0%, #E2B04F 38%, #F9E7AE 55%, #C9963A 100%);
  box-shadow: 0 18px 40px -22px rgba(120,80,10,.65), inset 0 0 0 1.5px rgba(255,248,220,.9), 0 0 0 1px #B8862A; }
.kh-head::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -30%; width: 35%; transform: skewX(-18deg) translateX(-120%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: sweep 7s cubic-bezier(.45,.05,.3,1) infinite; }
.kh-head > * { position: relative; z-index: 1; }
.kh-hi { color: #2A1A04; } .kh-top small { color: #5A3E0E; font-weight: 600; }
.kh-pill { color: #4A3006; border-color: rgba(74,48,6,.35); background: rgba(255,250,230,.5); font-weight: 600; }
.kh-seg { background: rgba(74,48,6,.14); }
.kh-seg button { color: #4A3006; font-weight: 700; } .kh-seg button.on { background: #2A1A04; color: #F7DC8E; }
.kh-tile { background: rgba(255,252,240,.82); box-shadow: inset 0 0 0 1px rgba(184,134,42,.45), 0 6px 16px -10px rgba(120,80,10,.5); }
.kh-tile > span { color: #7A520E; } .kh-tile > b { color: #2A1A04; } .kh-tile small { color: #4A3A28; }
.kh-d.dk.up { color: #1B6B36; } .kh-d.dk.down { color: #B8302F; } .kh-head .kh-d:not(.up):not(.down) { color: #6B5A44; }
.kh-tile > b.pos { color: #1B6B36; } .kh-tile > b.neg { color: #B8302F; }
@media (prefers-reduced-motion: reduce) { .kh-head::after { display: none; } }

/* ===== revamp part B: members, counters, supervisor ===== */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .two > label { min-width: 0; }
.amount.sm { display: grid; padding-left: 10px; font-size: 16px; border-radius: 12px; } .amount.sm input { font-size: 18px; min-height: 44px; }
.tag.ok { background: var(--good-soft); color: var(--good); }
/* member home */
.tierstrip { margin: 4px 0 10px; border-radius: 14px; padding: 10px 12px; background: #f4f6f9; border: 1px solid #dfe4ea; font-size: 13px; }
.tierstrip.t-gold { background: linear-gradient(135deg, #fff6d8, #fffbef); border-color: #ecd28b; } .tierstrip.t-vip { background: linear-gradient(135deg, #2a2216, #3a2e1a); border-color: #6b5426; color: #f2d48a; }
.tierstrip b { display: block; font: 800 14px var(--display); margin-bottom: 4px; } .tierstrip div { display: flex; flex-wrap: wrap; gap: 4px 12px; } .tierstrip span { white-space: nowrap; }
.quietban { display: flex; gap: 10px; align-items: center; background: #1f2a44; color: #fff; border-radius: 14px; padding: 10px 14px; margin: 10px 0; font-size: 22px; }
.quietban span { display: grid; font-size: 14px; } .quietban b { font-size: 15px; } .quietban small { opacity: .8; }
.boostcard { border: 2px solid #f5c24a; background: linear-gradient(135deg, #fffaf0, #fff); }
.bc-top b { font: 800 17px var(--display); } .bc-dots { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; }
.bc-dots i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: #efe8dc; color: var(--muted); }
.bc-dots i.on { background: var(--good); color: #fff; } .bc-gift { font-size: 24px; margin-left: auto; }
.bestcard { padding: 0; overflow: hidden; } .best-h { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: linear-gradient(135deg, #fde4e1, #fff); padding: 10px 14px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.best-h .mochi { width: 40px; height: 40px; flex: none; } .best-h b { flex: 1; font: 800 16px var(--display); } .best-h span { color: var(--sky); font-weight: 800; }
.best-list { display: grid; } .best-i { display: flex; justify-content: space-between; gap: 8px; text-align: left; border: 0; border-top: 1px solid #f0ebe2; background: #fff; padding: 11px 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.best-i span { color: var(--muted); } .best-more { margin: 4px 14px 10px; font-size: 13px; }
.lowrow { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 18px; } .lowrow .card { margin: 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.lr-race b, .lr-mochi b { display: block; font-size: 14px; } .lr-race small, .lr-mochi small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.lr-mochi { display: flex; gap: 8px; align-items: center; } .lr-mochi img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.welcome-sh .ws-cup { font-size: 56px; line-height: 1; margin: 4px 0; } .welcome-sh .qrbox { margin: 8px auto; }
.stall .rate.rm { display: grid; justify-items: end; text-align: right; flex: none; } .stall .rate.rm b { font: 800 15px/1.1 var(--display); white-space: nowrap; } .stall .rate.rm small { font: 600 11px var(--font); color: var(--muted); }
.stall .rate.rm.hi b { color: var(--sky); }
/* Today at Sky Beyond */
.tdstrip { margin: 14px 0; } .td-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; } .td-row::-webkit-scrollbar { display: none; }
.tdcard { flex: none; width: 168px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; scroll-snap-align: start; cursor: pointer; box-shadow: var(--shadow); }
.tdcard.big { width: 100%; max-width: 340px; margin: 0 auto; cursor: default; } .tdcard.big .td-ph { height: 190px; }
.td-ph { position: relative; height: 104px; background: linear-gradient(135deg, var(--sc, var(--sky)), #f5b2a5); display: grid; place-items: center; }
.td-ph img { width: 100%; height: 100%; object-fit: cover; } .td-emo { font-size: 40px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.td-sold { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(40,30,28,.55); color: #fff; font: 800 18px var(--display); font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.td-b { padding: 8px 10px 10px; display: grid; gap: 2px; } .td-st { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-dot { width: 8px; height: 8px; border-radius: 50%; background: #c9c0b9; flex: none; } .td-dot.on { background: #25b06a; }
.td-name { font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-price b { color: var(--sky); font: 800 16px var(--display); } .td-price s { color: var(--muted); font-size: 13px; } .td-price em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--sky); background: var(--sky-soft); border-radius: 999px; padding: 1px 6px; }
.td-price.big b { font-size: 24px; } .td-only { color: var(--warm); font-weight: 700; font-size: 12px; }
.tdcard.out { filter: grayscale(1); opacity: .65; } .td-bigph { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; }
.td-prev { margin: 8px 0 12px; }
.soldbtn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 18px; padding: 18px; font: 800 20px var(--display); background: #2A1714; color: #fff; cursor: pointer; margin-bottom: 10px; }
.soldbtn span { font-size: 28px; } .soldbtn.on { background: var(--good); }
.row2b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.td-pick { display: grid; place-items: center; height: 150px; border: 2px dashed #d8c9c2; border-radius: 16px; background: #fff; cursor: pointer; overflow: hidden; text-align: center; color: var(--muted); }
.td-pick img { width: 100%; height: 150px; object-fit: cover; } .td-pick .td-cam { display: block; font-size: 42px; } .td-pick > span { display: grid; place-items: center; width: 100%; }
/* after purchase */
.apdone { display: grid; gap: 8px; justify-items: center; } .ap-k { margin: 0; font-weight: 700; color: var(--muted); }
.ap-big { font: 800 52px/1 var(--display); color: var(--good); letter-spacing: -.02em; } .ap-month { margin: 0; font-weight: 700; color: var(--good); }
.apdone .big-pay { margin: 2px 0; font-size: 20px; }
.ap-surprise { display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; background: linear-gradient(135deg, #fff4d6, #ffe3c8); border: 2px solid #f5c24a; border-radius: 16px; padding: 10px 12px; }
.ap-surprise .mochi { width: 56px; height: 56px; flex: none; } .ap-surprise b { display: block; font: 800 18px var(--display); color: #b8302f; } .ap-surprise span { font-size: 14px; }
.ap-surprise.pop { animation: pop .5s cubic-bezier(.2,.9,.3,1.3); } .ap-prog { width: 100%; margin: 0; }
.heartbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 2px solid #f3c2bd; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.heartbtn span { font-size: 22px; } .heartbtn.sent { border-color: #f08a80; background: #fff1ef; color: #b8302f; }
.ap-prompt { width: 100%; text-align: left; border-radius: 14px; padding: 10px 12px; } .ap-prompt.pushcard { border: 2px solid #FFB98A; }
.joinperks { display: grid; gap: 6px; font-size: 14px; font-weight: 600; background: #fff8f6; border-radius: 12px; padding: 10px 12px; } .agree-line { margin: 0; }
/* counters */
.teambar { background: linear-gradient(135deg, #fff8e1, #fff); border: 2px solid #f0c867; border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; }
.tm-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 6px; } .tm-h b { font: 800 17px var(--display); } .tm-h span { font: 800 17px var(--display); color: var(--sky); }
.bar.big { height: 16px; } .teambar small { color: var(--muted); font-size: 13px; }
.score { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; } .score.loading { display: grid; place-items: center; min-height: 80px; grid-template-columns: 1fr; }
.score > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 4px; text-align: center; display: grid; gap: 0; }
.score span { font-size: 22px; line-height: 1.1; } .score b { font: 800 22px var(--display); } .score small { font-size: 11px; color: var(--muted); line-height: 1.2; } .score .money b { color: var(--good); }
.waitline { margin: 0 0 10px; background: #fff1d6; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 14px; color: #7a5200; }
.facts { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 10px; margin-bottom: 10px; cursor: pointer; font: inherit; color: var(--ink); text-align: center; }
.facts .fx-t { grid-column: 1 / -1; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.facts b { display: block; font: 800 19px var(--display); } .facts small { font-size: 11px; color: var(--muted); line-height: 1.2; display: block; }
.modeline { background: #eef3fb; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.tipcard { display: flex; gap: 10px; align-items: center; background: #fff1d6; border: 2px solid #f0c867; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; font-size: 26px; }
.tipcard span { display: grid; font-size: 14px; } .tipcard b { font-size: 15px; } .tipcard.warnc { background: #fde3d2; border-color: #f4b38c; }
.errbox { text-align: center; display: grid; gap: 8px; } .err-ic { font-size: 48px; line-height: 1; } .err-msg { margin: 0; font-weight: 700; font-size: 17px; }
.err-tip { margin: 0; background: #fff1d6; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 17px; color: #6b4300; }
.err-tip.small { font-size: 14px; }
.tdnudge { display: flex; justify-content: space-between; width: 100%; font: inherit; font-weight: 700; cursor: pointer; color: var(--sky); background: #fff; border: 2px dashed #f3b8b0; text-align: left; } .tdnudge.on { color: var(--good); border-style: solid; border-color: #bfe3cf; }
.forgotbtn { margin-top: 10px; min-height: 52px; font-size: 17px; }
.cel-card h2.plus1 { font: 800 56px var(--display); color: var(--good); }
.plusline { background: var(--good-soft); color: var(--good); border-radius: 12px; padding: 8px 12px; font: 800 18px var(--display); margin: 0; }
.tierbadge { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; padding: 12px; margin-bottom: 10px; font-size: 16px; font-weight: 700; flex-wrap: wrap; text-align: center; }
.tierbadge b { font: 800 26px var(--display); } .tierbadge.b-gold { background: linear-gradient(135deg, #f7d774, #e2b04f); color: #3d2600; } .tierbadge.b-silver { background: linear-gradient(135deg, #eef1f5, #c7cfd8); color: #222b35; } .tierbadge.b-vip { background: linear-gradient(135deg, #2a2216, #4a3a1c); color: #f2d48a; }
.cardtoggle { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; } .cardtoggle input { width: 22px; height: 22px; min-height: 0; }
.bonusline { margin: 0 0 8px; background: #fff6d8; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.wknav { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; text-align: center; margin-bottom: 8px; } .wknav .btn { width: 44px; }
.kpis.wk { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .kpis.wk small { display: block; font-size: 12px; }
.wkbars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; margin-top: 8px; text-align: center; } .wkbars i { display: block; background: linear-gradient(180deg, #F07A6E, var(--sky)); border-radius: 6px 6px 2px 2px; margin: 0 auto 4px; width: 60%; }
.wkbars b { display: block; font-size: 14px; } .wkbars small { font-size: 11px; color: var(--muted); }
.owncard p { margin: 6px 0; } .ownres { background: var(--good-soft); border-radius: 10px; padding: 6px 10px; font-weight: 700; }
.eyebrow.est { margin-top: 10px; }
.warnnote { background: #fde3d2; }
/* supervisor */
.supgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 14px; }
.suptile { display: grid; gap: 4px; justify-items: center; text-align: center; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 18px 10px; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--shadow); }
.suptile span { font-size: 36px; line-height: 1.1; } .suptile b { font: 800 18px var(--display); } .suptile small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.suptile.wide { grid-column: 1 / -1; background: linear-gradient(135deg, #fde4e1, #fff); border-color: #f3c2bd; }
.backlink { display: inline-block; margin-bottom: 6px; text-decoration: none; }
.fixlist .row { align-items: flex-start; } .fixlist .rowbtns { flex-direction: column; align-items: stretch; }
.reghow .ohchip { flex: 1; } .regdone .tick { margin-top: 0; }
@media (max-width: 360px) { .score { grid-template-columns: repeat(2, 1fr); } .facts { grid-template-columns: repeat(2, 1fr); } .lowrow { grid-template-columns: 1fr; } }

/* ---------- revamp part C: Ken's Home (mockup Main.dc.html) ---------- */
.ohome.pad { max-width: 760px; }
.kc { display: grid; gap: 14px; }
.kh-goal { padding: 18px; gap: 12px; margin: 4px 0 0; border-radius: 20px; }
.kg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: #7A520E; } .kg-top span:first-child { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kg-num small { font-size: 14px; color: #3A2606; display: block; } .kg-num div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kg-num b { font: 800 44px/1 var(--display); color: #2A1A04; } .kg-num span { font-size: 18px; font-weight: 700; color: #3A2606; }
.kg-bar { height: 12px; border-radius: 999px; background: rgba(255,252,240,.7); overflow: hidden; } .kg-bar i { display: block; height: 100%; border-radius: 999px; background: #2A1A04; }
.kg-bar.light { background: #F3E9E5; margin: 6px 0; } .kg-bar.light i { background: #C9963A; }
.kg-sub { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; font-weight: 600; color: #3A2606; } .kg-sub .up { color: #1B6B36; } .kg-sub .down { color: #B8302F; }
.kg-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kg-tile { background: rgba(255,252,240,.82); border-radius: 12px; padding: 10px; display: grid; gap: 2px; align-content: start; text-align: left; border: 0; font: inherit; color: inherit; }
.kg-tile span { font-size: 12px; color: #7A520E; } .kg-tile b { font: 800 20px var(--font); color: #2A1A04; } .kg-tile b.pos { color: #1B6B36; } .kg-tile b.neg { color: #B8302F; } .kg-tile small { font-size: 12px; color: #3A2606; }
.kg-btn { cursor: pointer; }
.kc-note { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 14px; } .kc-note .mochi { width: 34px; height: 34px; flex: none; } .kc-note p { margin: 0; }
.kc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .kc-h h2 { margin: 0; font: 800 18px var(--display); } .kc-h span { font-size: 12px; color: var(--muted); text-align: right; }
.kt-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--bg); border: 0; font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; flex-wrap: wrap; }
.kt-row.hot { background: #FDECEC; cursor: default; } div.kt-row, form.kt-row { cursor: default; }
.kt-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #C77A10; } .kt-dot.red { background: #B8302F; } .kt-dot.green { background: #1B6B36; }
.kt-txt { flex: 1 1 180px; font-size: 14px; min-width: 0; } .kt-go { font-size: 18px; color: var(--muted); }
.kt-row .btn { width: auto; min-height: 36px; padding: 6px 12px; }
.kt-posin { display: flex; gap: 6px; flex: 1 1 100%; padding-left: 18px; } .kt-posin input { flex: 1; min-width: 0; min-height: 40px; } .kt-posin .btn { min-height: 40px; }
.kt-none { margin: 0; padding: 10px; border-radius: 12px; background: #E9F5EC; color: #1B6B36; font-weight: 700; }
.btn.good, .btn.small.good { background: #1B6B36; border-color: #1B6B36; color: #fff; }
.kw-a, .kw-b { border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; } .kw-a p, .kw-b p { margin: 0; font-size: 14px; }
.kw-a.ok { background: #E9F5EC; } .kw-a.bad { background: #FDF1E3; }
.kw-ah { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .kw-ah > span { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #6E5A56; text-transform: uppercase; }
.kw-a.ok .kw-ah > span, .kw-a.ok .kw-ah b { color: #1B6B36; } .kw-a.bad .kw-ah > span, .kw-a.bad .kw-ah b { color: #8A4B00; } .kw-ah b { font-size: 13px; font-weight: 800; }
.kw-b { background: var(--bg); border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.kc-link { font-size: 13px; font-weight: 700; color: #B8302F; background: none; border: 0; padding: 4px 0 0; text-align: left; cursor: pointer; font-family: inherit; }
.kw-tips { display: grid; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(138,75,0,.2); } .kw-tips > b { font-size: 14px; color: #8A4B00; }
.ks { gap: 0; } .ks .kc-h { padding-bottom: 6px; }
.ks-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border: 0; border-top: 1px solid #F3E9E5; background: none; font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; flex-wrap: wrap; }
.ks-name { flex: 1 1 140px; font-size: 15px; font-weight: 600; } .ks-name small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ks-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ks-tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 8px; white-space: nowrap; } .ks-tag.amber { color: #8A4B00; background: #FBEBD3; } .ks-tag.red { color: #fff; background: #B8302F; } .ks-tag.green { color: #1B6B36; background: #E9F5EC; } .ks-tag.grey { color: var(--muted); background: #F3E9E5; } .ks-tag.gold { color: #6B4A08; background: #FFF3C4; }
.ks-n { width: 40px; text-align: right; font-size: 16px; font-weight: 800; }
.ks > .tiny { margin: 8px 0 0; }
.kf { padding: 6px 16px; gap: 0; }
.kf-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; font: inherit; font-size: 14px; color: inherit; border: 0; border-top: 1px solid #F3E9E5; background: none; text-align: left; width: 100%; cursor: pointer; } .kf-row:first-child { border-top: 0; }
.kf-tiles { display: grid; gap: 8px; } .kf-tile { background: var(--bg); border-radius: 12px; padding: 12px; display: grid; gap: 2px; } .kf-tile span { font-size: 12px; color: var(--muted); font-weight: 700; } .kf-tile b { font: 800 24px var(--display); } .kf-tile small { font-size: 12px; color: var(--muted); }
.subtabs { margin-top: 0; } .sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.peakform { display: grid; gap: 8px; } .peakform small { display: block; color: var(--muted); font-size: 13px; } .peakform .row2 { grid-template-columns: 1fr 1fr auto; } .peakform .btn { width: auto; }
.stallrow .kh-bud { max-width: 260px; margin: 4px 0; }
.tag.dim { opacity: .7; } .tag.gold { background: #FFF3C4; color: #6B4A08; } .tag.ok { background: #E9F5EC; color: #1B6B36; }
.warnbox { border: 1px solid #F2B0A8; background: #FFF8F7; }
.mtag.warm { background: #fde3d2; color: #8A4B00; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; } .pos-grid label { display: grid; grid-template-columns: 1fr 90px; gap: 4px 8px; align-items: center; font-size: 13px; background: var(--bg); padding: 8px 10px; border-radius: 10px; } .pos-grid label .check { grid-column: 1 / -1; font-size: 12px; display: flex; gap: 6px; align-items: center; } .pos-grid .check input { width: 16px; height: 16px; min-height: 0; }
.mk-card .btn { width: auto; }
.good-t { color: #1B6B36; font-weight: 700; } .bad { color: #B8302F; }
@media (min-width: 720px) { .kg-tiles { gap: 12px; } .kc-card { padding: 20px; } .kf-tiles { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Alan tab (mockup Todo.dc.html) ---------- */
.al-head { background: #2A1714; color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.al-head > div { flex: 1; display: grid; } .al-head b { font: 800 18px var(--display); } .al-head small { font-size: 12px; opacity: .85; } .al-head > span { font-size: 13px; font-weight: 700; background: rgba(255,255,255,.14); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.al-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; } .al-tabs button { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; color: var(--ink); cursor: pointer; } .al-tabs button.on { background: var(--sky); border-color: var(--sky); color: #fff; font-weight: 700; }
.al-body { display: grid; gap: 14px; }
.al-filter { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .al-filter > button:not(.btn) { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; cursor: pointer; } .al-filter > button.on { background: var(--ink); color: #fff; font-weight: 700; border-color: var(--ink); } .al-filter .btn { width: auto; margin-left: auto; min-height: 34px; }
.td-group { display: grid; gap: 8px; } .td-gh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .td-gh h2 { margin: 0; font: 800 17px var(--display); } .td-gh span { font-size: 12px; color: var(--muted); }
.td-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; }
.td-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #F3E9E5; } .td-item:last-child { border-bottom: 0; }
.td-item > input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--sky); flex: none; }
.td-main { display: grid; gap: 4px; flex: 1; min-width: 0; } .td-text { font: inherit; font-size: 14px; line-height: 1.35; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; } .td-item.done .td-text { text-decoration: line-through; color: var(--muted); }
.td-chips { display: flex; gap: 6px; flex-wrap: wrap; } .td-due { font-size: 12px; font-weight: 700; color: #8E2322; background: #FDECEC; border-radius: 999px; padding: 2px 8px; } .td-due.late { background: #B8302F; color: #fff; }
.td-up { font: inherit; font-size: 12px; font-weight: 700; color: var(--ink); background: #F3E9E5; border: 0; border-radius: 999px; padding: 2px 8px; cursor: pointer; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .td-rep { font-size: 12px; color: var(--muted); }
.filebtn { cursor: pointer; }
.hl-tiles, .sc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.hl-tile, .sc-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; } .hl-tile span, .sc-tile span { font-size: 12px; font-weight: 700; color: var(--muted); } .hl-tile b, .sc-tile b { font: 800 24px var(--display); } .hl-tile small, .sc-tile small { font-size: 12px; color: var(--muted); } .hl-tile.bad { border-color: #F2B0A8; background: #FFF8F7; } .hl-tile.bad b { color: #B8302F; }
.hl-n { font-size: 18px; } .hl-report { white-space: pre-wrap; font-size: 12px; background: var(--bg); padding: 10px; border-radius: 10px; overflow-x: auto; }
.al-body > .btn { width: auto; justify-self: start; }
.al-wide { grid-template-columns: 1fr !important; } .al-stalls { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px; } .al-stalls .check { font-size: 13px; border: 0; padding: 2px 0; grid-template-columns: auto 1fr; }
.mig .btn { width: auto; }
.sc-t td, .sc-t th { white-space: nowrap; }
.sc-page { background: #fff; color: #2A1714; width: 277mm; max-width: 100%; padding: 10mm; display: grid; gap: 12px; } .sc-page header { display: flex; justify-content: space-between; align-items: baseline; } .sc-page header b { font: 800 22px var(--display); } .sc-page header span { color: var(--muted); }
@media print { .sc-page { width: auto; padding: 0; } .sc-page .tablewrap { overflow: visible; } }

/* ---------- printed member card (mockup Card.dc.html): 85.6 × 54 mm front + back on one strip ---------- */
.mc-a4 { width: 210mm; min-height: 297mm; background: #fff; box-sizing: border-box; padding: 10mm 0 0; display: flex; justify-content: center; align-items: flex-start; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
@media (max-width: 820px) { .mc-a4 { zoom: .45; } }
.mc-strip { display: flex; border: .4mm dashed #6B6B6B; background: #fff; color: #111; font-family: Figtree, var(--font), sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mc-front, .mc-back { width: 85.6mm; height: 54mm; box-sizing: border-box; position: relative; overflow: hidden; }
.mc-front { padding: 4mm 4.4mm; display: flex; gap: 3.6mm; }
.mc-band { position: absolute; left: 0; top: 0; right: 0; height: 1.2mm; background: #E14B4B; }
.mc-left { display: flex; flex-direction: column; justify-content: space-between; flex: 1; min-width: 0; }
.mc-brand { display: flex; align-items: center; gap: 1.6mm; white-space: nowrap; } .mc-mochi { width: 9.6mm; height: 9.6mm; flex: none; }
.mc-brand b { display: block; font: 800 4.3mm/1 "Bricolage Grotesque", var(--display), sans-serif; letter-spacing: .02em; } .mc-brand span { display: block; font-size: 2.4mm; font-weight: 700; letter-spacing: .32em; margin-top: .5mm; }
.mc-who { display: flex; flex-direction: column; gap: .4mm; } .mc-who b { font: 700 6mm/1.05 "Bricolage Grotesque", var(--display), sans-serif; overflow-wrap: anywhere; } .mc-who span { font-size: 2.6mm; color: #333; }
.mc-right { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2mm; }
.mc-qr { width: 30mm; height: 30mm; } .mc-qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.mc-code { font: 600 2.6mm "JetBrains Mono", ui-monospace, monospace; letter-spacing: .18em; }
.mc-fold { width: 0; border-left: .4mm dotted #9A9A9A; }
.mc-back { padding: 4mm 4.8mm; display: flex; flex-direction: column; justify-content: space-between; }
.mc-title { font: 800 3.4mm "Bricolage Grotesque", var(--display), sans-serif; }
.mc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2mm; }
.mc-list li { display: flex; gap: 2mm; align-items: flex-start; font-size: 2.8mm; line-height: 1.3; }
.mc-list i { width: 4.8mm; height: 4.8mm; flex: none; border-radius: 50%; border: .4mm solid #111; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font: 800 2.6mm var(--font); font-style: normal; }
.mc-lost { font-size: 2.4mm; color: #333; }
@media print { .mc-a4 { width: auto; min-height: 0; padding: 0; box-shadow: none; zoom: 1 !important; display: block; } .mc-strip { width: max-content; margin: 0 auto; } .mc-root .print-tip { display: none !important; } }

/* ---- v1.1 printables: ringgit core messages, launch-boost poster, staff table card ---- */
.a4-offer.a4-core { display: grid; gap: 3mm; padding: 4.5mm 7mm; margin-top: 5mm; }
.a4-cm { display: grid; grid-template-columns: 13mm 1fr; gap: 4mm; align-items: center; }
.a4-cm > i { font-style: normal; width: 13mm; height: 13mm; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 7mm; }
.a4-cm b { display: block; font: 800 5.8mm/1.15 var(--display); }
.a4-cm b em { font-style: normal; font-weight: 600; color: #A9302C; }
.a4-cm span { display: block; font-size: 4.2mm; margin-top: 1mm; }
.a4-cm small { display: block; font-size: 3.7mm; color: #6E5A56; margin-top: .4mm; }
.a4-core + .a4-qr { margin-top: 3mm; padding: 3.5mm; } .a4-core + .a4-qr img, .a4-core + .a4-qr canvas { width: 58mm !important; height: 58mm !important; }
.pc .bigoff.rmoff { font-size: 17mm; } .pc .bigoff.rmoff small { font-size: 6mm; letter-spacing: 0; -webkit-text-stroke: .2mm #7a1d19; }
.pc .rmsub { font-weight: 800; font-size: 4mm; margin-top: 1.6mm; color: #FFF1CF; text-shadow: 0 .3mm .6mm rgba(70,8,4,.5); }
.pc .at { font-size: 3.8mm; margin-top: 1mm; }
.pc .pcperks.three .pcperk { width: 20.5mm; } .pc .pcperks.three .pcperk.wide { width: 33mm; }
.pc-id .foot { font-size: 2mm; line-height: 1.35; padding: 0 2.5mm; } .pc-id .foot .ftri { display: block; margin-top: .6mm; font-size: 1.85mm; color: #6d5a50; }
.pc-id .mid { padding-top: 1.2mm; } .pc-id .qrwrap { margin-top: 1mm; } .pc-id .qrcard { width: 25mm; } .pc-id .qrcard .qr { width: 22mm; height: 22mm; }
/* launch-boost A4 poster */
.a4.a4-boost { grid-template-rows: auto auto auto auto auto 1fr auto; }
.bp-head { margin-top: 8mm; }
.bp-kick { display: inline-block; background: #FFF1CF; color: #7a4d06; border: .4mm solid #F0D58A; border-radius: 99mm; padding: 1.4mm 5mm; font-weight: 800; font-size: 4.2mm; margin-bottom: 4mm; }
.bp-head h1 { font-size: 14.5mm; line-height: 1.05; max-width: 170mm; }
.bp-head h1 em { font-style: normal; color: #E14B4B; white-space: nowrap; }
.bp-head .a4-zh { font-size: 6mm; line-height: 1.35; }
.bp-row { display: flex; align-items: center; justify-content: center; gap: 3mm; margin-top: 9mm; width: 100%; }
.bp-step { display: grid; justify-items: center; gap: 1.2mm; text-align: center; width: 30mm; }
.bp-step b { font: 800 5.6mm/1 var(--display); } .bp-step small { font-size: 3.4mm; color: #6E5A56; }
.bp-day { width: 22mm; height: 22mm; border-radius: 50%; background: #E14B4B; display: grid; place-items: center; position: relative; box-shadow: 0 1.2mm 0 #A9302C; }
.bp-day svg { width: 12mm; height: 12mm; }
.bp-day span { position: absolute; top: -1.5mm; right: -1.5mm; width: 8mm; height: 8mm; border-radius: 50%; background: #2A1714; color: #fff; font: 800 4.4mm/8mm var(--display); }
.bp-arrow { font-style: normal; font: 800 10mm/1 var(--display); color: #E8B4AC; margin-top: -9mm; }
.bp-free { width: 40mm; } .bp-free b { color: #E14B4B; font-size: 6.6mm; }
.bp-cup { width: 30mm; height: 30mm; border-radius: 50%; background: #FFF1CF; border: 1.2mm solid #F5B841; display: grid; place-items: center; } .bp-cup svg { width: 19mm; height: 19mm; }
.bp-how { text-align: center; margin: 8mm 0 0; display: grid; gap: 1.2mm; max-width: 172mm; } .bp-how b { font: 800 5.6mm/1.25 var(--display); } .bp-how span { font-size: 4.2mm; color: #6E5A56; }
.bp-double { margin-top: 6mm; background: #FDE4E1; border-radius: 4mm; padding: 3mm 6mm; text-align: center; width: 100%; } .bp-double b { font: 800 5.2mm/1.2 var(--display); } .bp-double span { display: block; font-size: 3.8mm; margin-top: 1mm; color: #6E5A56; }
.bp-join { display: flex; align-items: center; gap: 7mm; align-self: center; }
.bp-join .bp-qr { padding: 3mm; border-width: .9mm; } .bp-join .bp-qr img, .bp-join .bp-qr canvas { width: 46mm !important; height: 46mm !important; }
.bp-join > div:last-child { display: grid; gap: 1.2mm; } .bp-join b { font: 800 5mm/1.1 var(--display); color: #6E5A56; } .bp-join .bp-scan { font-size: 9mm; color: #2A1714; } .bp-join span { font-size: 4.4mm; } .bp-join small { font-size: 3.4mm; color: #6E5A56; }
/* staff table card (A5, two per A4) */
.stc { gap: 3mm; font-family: "Figtree", "Noto Sans Myanmar", "Padauk", "Myanmar Text", sans-serif; }
.stc [lang=my] { font-family: "Noto Sans Myanmar", "Padauk", "Myanmar Text", sans-serif; }
.tc-tri { display: grid; justify-items: center; text-align: center; line-height: 1.25; }
.tc-tri b { font: 800 5.4mm/1.1 var(--display); } .tc-tri span { font-size: 3.7mm; font-weight: 700; color: #4a3a32; }
.tc-tri.big b { font-size: 9mm; color: #E14B4B; } .tc-tri.big span { font-size: 5mm; }
.tc-top .tc-tri { justify-items: start; text-align: left; } .tc-top .tc-tri b { color: #fff; font-size: 7mm; } .tc-top .tc-tri span { color: #fff; opacity: .95; font-size: 3.8mm; }
.tc-top .tc-tri { grid-template-columns: auto auto auto; gap: 0 3.5mm; align-items: baseline; }
.tc-ask { display: grid; grid-template-columns: auto 34mm auto; gap: 4mm; align-items: center; justify-content: center; position: relative; }
.tc-n { font-style: normal; width: 9mm; height: 9mm; border-radius: 50%; background: #2A1714; color: #fff; display: grid; place-items: center; font: 800 5mm var(--display); }
.tc-pic svg { width: 100%; height: auto; display: block; }
.tc-ask .tc-pic { width: 34mm; }
.tc-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5mm; }
.tc-b { border: .5mm solid #EBDDD8; border-radius: 4mm; padding: 2.5mm 2mm 3mm; display: grid; justify-items: center; align-content: start; gap: 1.6mm; text-align: center; position: relative; }
.tc-b .tc-pic { width: 22mm; height: 22mm; display: grid; place-items: center; }
.tc-if { font-weight: 800; font-size: 3.2mm; border-radius: 99mm; padding: .8mm 2.6mm; color: #fff; line-height: 1.3; }
.tc-if.yes { background: #25A55F; } .tc-if.new { background: #E14B4B; } .tc-if.nop { background: #2A1714; }
.tc-b .tc-tri b { font-size: 4.6mm; }
.tc-sub { font-size: 2.9mm; color: #6E5A56; line-height: 1.3; }
.tc-foot { font-weight: 700; }
.a4.a4-two.tc-sheet { grid-template-rows: 1fr auto 1fr; }
.pc-a6 .tri { font-size: 2.15mm; line-height: 1.4; padding-bottom: 1.4mm; } .pc-a6 .pcperks.three { margin-top: 1.4mm; } .pc-a6 .joinfree { margin-top: 1.6mm; } .pc-a6 .qrwrap { margin-top: 2mm; }
.pc-a6 .qrcard { width: 41mm; } .pc-a6 .qrcard .qr { width: 36.5mm; height: 36.5mm; } .pc-a6 .bigoff.rmoff { font-size: 15.5mm; }
.pc-a6 .qrcard { width: 38mm; } .pc-a6 .qrcard .qr { width: 33.5mm; height: 33.5mm; } .pc-a6 .qrcard .pccam { white-space: nowrap; font-size: 2.3mm; } .pc-a6 .bigoff.rmoff { font-size: 14.5mm; } .pc-a6 .pcperk { padding: 1mm 1.3mm; }
.pc-id .foot { font-size: 1.9mm; line-height: 1.3; bottom: calc(1.6mm + var(--b)); } .pc-id .foot .ftri { font-size: 1.75mm; margin-top: .4mm; }
.pc-id .ask { font-size: 2.9mm; } .pc-id .qrcard { width: 22mm; padding: 1.2mm; } .pc-id .qrcard .qr { width: 19.6mm; height: 19.6mm; }
.a4-boost .bp-row { margin-top: 6mm; } .a4-boost .bp-how { margin-top: 6mm; } .a4-boost .bp-free { width: 48mm; } .a4-boost .bp-join { margin-top: 5mm; }
.a4-boost .bp-join .bp-qr img, .a4-boost .bp-join .bp-qr canvas { width: 40mm !important; height: 40mm !important; } .a4-boost .a4-foot { margin-top: 3mm; }
.a4.tc-sheet > .stc { width: 182mm; justify-self: center; align-self: center; }
.tc-top .tc-tri { grid-template-columns: auto auto auto; }
.tc-top .tc-tri b { white-space: nowrap; }
.tc-ask { grid-template-columns: auto 30mm minmax(0, 1fr); justify-content: start; padding: 0 6mm; }
.tc-ask .tc-pic { width: 30mm; } .tc-ask .tc-tri { justify-items: start; text-align: left; }
.tc-ask .tc-tri.big b { font-size: 11mm; }
.tc-if { display: grid; justify-items: center; font-size: 4mm; padding: 1mm 3mm; border-radius: 3mm; width: 100%; box-sizing: border-box; }
.tc-if small { font-size: 2.9mm; font-weight: 700; opacity: .95; }
.tc-b .tc-tri span { font-size: 3.4mm; }
.a4.tc-sheet { padding: 6mm 12mm; } .a4.tc-sheet > .stc { align-self: start; gap: 2.5mm; }
.tc-top { padding: 2.5mm 5mm; } .tc-top img { width: 11mm; height: 11mm; }
.tc-ask .tc-pic { width: 24mm; } .tc-ask { grid-template-columns: auto 24mm minmax(0, 1fr); } .tc-ask .tc-tri.big b { font-size: 9.5mm; } .tc-ask .tc-tri.big span { font-size: 4.4mm; }
.tc-b { padding: 2mm 2mm 2.4mm; gap: 1.2mm; } .tc-b .tc-pic { width: 17mm; height: 17mm; } .tc-b .tc-tri b { font-size: 4.2mm; } .tc-b .tc-tri span { font-size: 3.1mm; }
.tc-sub { font-size: 2.6mm; } .tc-foot { padding: 1.5mm 3mm; }
.tc-top { justify-content: flex-start; } .tc-top > div { flex: 1; } .tc-top .tc-tri { justify-content: start; }
.a4.tc-sheet > .stc { align-self: center; gap: 3.5mm; }
.tc-ask .tc-pic { width: 32mm; } .tc-ask { grid-template-columns: auto 32mm minmax(0, 1fr); }
.tc-b .tc-pic { width: 24mm; height: 24mm; } .tc-b { gap: 2mm; padding: 2.5mm 2mm 3mm; }
.tc-tri { line-height: 1.45; } .tc-tri b { margin-bottom: .6mm; }
.tc-ask { grid-template-columns: 32mm minmax(0, 1fr); padding: 0 10mm; }
/* v1.1.3: one compact numbers block on the stall Scan screen; most improved as a rank; report → feedback */
.cstats { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; margin: 0 0 10px; overflow: hidden; }
.cstats .sstrip, .cstats .ss2 { margin: 0; border: 0; border-radius: 0; background: transparent; padding: 11px 14px; display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; text-align: left; font: inherit; font-size: 15px; color: inherit; }
.cstats .ss2 { border-top: 1px solid #eee8e3; }
.cstats .ss-l { min-width: 0; line-height: 1.35; } .cstats .ss-k { font-weight: 700; color: var(--muted); }
.cstats .ss-l b { font-size: 16.5px; } .cstats .ss-l em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.cstats .ss-l em.up { color: #1b7a3a; } .cstats .ss-l em.down { color: #b8302f; }
.cstats .ss-l small { display: block; font-size: 13px; font-weight: 700; color: var(--sky-2); margin-top: 2px; }
.cstats .ss-go { font-size: 22px; color: var(--muted); flex: none; }
.impline { border: 1.5px dashed #c9b4e8; background: #faf6ff; color: #5b3a8c; border-radius: 14px; padding: 10px 12px; margin: 0 0 10px; font-weight: 700; font-size: 15px; }
.impline.on { border-style: solid; background: #f3ecff; }
.fbbtns { display: flex; column-gap: 12px; row-gap: 0; flex-wrap: wrap; align-items: center; } .fbbtns .linkbtn { margin: 0; } .receipts .rc > div:first-child { flex: 1; min-width: 0; }
/* ---- v1.1.4: food stall — 4 tabs, More, My results, Today's special goals ---- */
.tabs.four { gap: 2px; padding: 6px 6px 4px; overflow: visible; }
.tabs.four button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 5px; font-size: 12.5px; line-height: 1.15; white-space: normal; text-align: center; }
.tabs.four .ti { font-size: 20px; line-height: 1.1; }
.tabs.four .tl { display: block; max-width: 100%; overflow-wrap: anywhere; }
.tabs.four em { top: 2px; right: calc(50% - 26px); }
.moreback { display: inline-block; margin: 2px 0 6px; font-weight: 700; font-size: 15px; }
.morelist { display: flex; flex-direction: column; gap: 8px; }
.morerow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; color: inherit; font: inherit; }
.morerow .mi { font-size: 24px; width: 30px; text-align: center; flex: none; }
.morerow .mt { flex: 1; min-width: 0; } .morerow .mt b { display: block; font-size: 16.5px; } .morerow .mt small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.morerow .mg { font-size: 22px; color: var(--muted); flex: none; }
.mbadge { font-style: normal; background: var(--bad); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; vertical-align: 2px; }
.rseg { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 3px; gap: 3px; margin: 2px 0 8px; }
.rseg button { border: 0; background: none; border-radius: 11px; padding: 9px 4px; font-weight: 800; font-size: 15px; color: var(--muted); cursor: pointer; }
.rseg button.on { background: var(--sky); color: #fff; }
.rnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.rnav > div { text-align: center; min-width: 0; } .rnav b { display: block; font: 800 17px/1.2 var(--display); } .rnav small { color: var(--muted); font-size: 13px; }
.rnav .btn.small { min-width: 44px; font-size: 20px; padding: 2px 10px; }
.rcard { padding: 14px 16px; margin: 10px 0; }
.rlab { margin: 0 0 6px; font-weight: 800; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.rbig { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; } .rbig > b { font: 800 38px/1.05 var(--display); letter-spacing: -.01em; }
.rv { display: inline-block; border-radius: 999px; padding: 4px 11px; font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.rv.g { background: var(--good-soft); color: var(--good); } .rv.a { background: var(--amber-soft); color: #9a5a00; } .rv.n { background: #f1ebe8; color: var(--muted); font-weight: 700; }
.rsub { margin: 6px 0 2px; font-weight: 700; font-size: 15.5px; }
.rtrend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; margin: 8px 0 4px; }
.rtrend > div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.rtrend i { display: block; width: 70%; max-width: 46px; background: #e9dcd7; border-radius: 6px 6px 2px 2px; }
.rtrend .cur i { background: var(--sky); } .rtrend small { font-size: 11.5px; color: var(--muted); white-space: nowrap; } .rtrend .cur small { color: var(--ink); font-weight: 800; }
.rtrend span { font-size: 11.5px; color: var(--muted); white-space: nowrap; } .rtrend .cur span { color: var(--sky-2); font-weight: 800; }
.rtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rtile { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fffaf8; min-width: 0; }
.rtile span { display: block; font-weight: 700; font-size: 14px; color: var(--muted); } .rtile b { display: block; font: 800 32px/1.1 var(--display); } .rtile small { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.rline { margin: 10px 0 0; font-weight: 700; font-size: 15.5px; }
.rdo { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f0e6e2; } .rdo:first-of-type { border-top: 0; padding-top: 2px; }
.rdo-i { font-size: 22px; flex: none; width: 28px; text-align: center; } .rdo > div { flex: 1; min-width: 0; } .rdo b { display: block; font-size: 15.5px; line-height: 1.3; } .rdo small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.rdo .rquote { font-style: italic; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rdo .btn.small { flex: none; max-width: 42%; white-space: normal; line-height: 1.2; }
.rdo.warn b { color: #9a5a00; }
.rallgood { margin: 2px 0; font-weight: 800; color: var(--good); font-size: 16px; } .rhearts { margin: 6px 0 0; font-weight: 700; color: var(--muted); }
.rprize { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; font: inherit; font-weight: 700; font-size: 15px; color: inherit; cursor: pointer; }
.rprize > span:last-child { font-size: 22px; color: var(--muted); }
.owncard > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: center; } .owncard > summary::-webkit-details-marker { display: none; }
.owncard > summary .ownres { font-size: 14px; } .owncard[open] > summary { margin-bottom: 8px; }
.rscanbig { font: 800 24px/1.25 var(--display); text-align: center; margin: 14px 0; color: var(--sky-2); }
.tdtop { background: #fff8e8; border: 1.5px solid #f3dca8; border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: 15px; line-height: 1.4; margin: 0 0 6px; }
.tdwant { margin-top: 16px; }
.goalgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.goalbtn { display: flex; align-items: center; gap: 8px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; min-height: 56px; }
.goalbtn span { font-size: 22px; flex: none; } .goalbtn b { font-size: 14.5px; line-height: 1.25; }
.goalbtn.on { border-color: var(--sky); background: var(--sky-soft); box-shadow: inset 0 0 0 1px var(--sky); }
.goalgrid .goalbtn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.goalhint { background: var(--sky-soft); border-radius: 12px; padding: 9px 12px; margin: 8px 0 4px; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.tdmnote { margin: -4px 0 0; }
.tdgoaltag { display: inline-block; background: #f6eeeb; border-radius: 999px; padding: 1px 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.dwcard { padding: 14px 16px; } .dw-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .dw-h b { font: 800 17px var(--display); } .dw-h small { color: var(--muted); font-weight: 700; }
.dw-what { margin: 4px 0 6px; font-weight: 700; }
.dw-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; } .dw-num b { font: 800 30px/1.1 var(--display); } .dw-num span { color: var(--muted); font-weight: 700; }
.dw-cust { margin: 8px 0 10px; font-weight: 700; }
.rtrend.n3 { grid-template-columns: repeat(3, 1fr); } .rtrend.n2 { grid-template-columns: repeat(2, 1fr); } .rtrend.n1 { grid-template-columns: 1fr; }
/* ---- v1.2: KPI cards (Why → Do → Result) ---- */
.kpiset { display: grid; gap: 10px; margin: 12px 0; } .kpiset-h { margin: 0; font: 800 18px/1.2 var(--display); } .kpiset-sub { margin: -4px 0 2px; font-size: 13px; color: var(--muted); font-style: italic; }
.kpi { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.kpi-good { border-left-color: #2E9E5B; } .kpi-notEnough { border-left-color: #E8A33D; } .kpi-wrong { border-left-color: #D93B3B; background: #FFF6F5; }
.kpi-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .kpi-name { font-weight: 800; } .kpi-res { font-size: 13px; font-weight: 700; white-space: nowrap; }
.kpi-good .kpi-res { color: #1B6B36; } .kpi-notEnough .kpi-res { color: #8A5A00; } .kpi-wrong .kpi-res { color: #B8302F; } .kpi-none .kpi-res { color: var(--muted); }
.kpi-num { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .kpi-num b { font: 800 28px/1 var(--display); } .kpi-num small { color: var(--muted); font-size: 13px; }
.kpi-why, .kpi-do { font-size: 14px; line-height: 1.35; } .kpi-why b, .kpi-do b { display: inline-block; min-width: 40px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi-do { background: #F6EFEC; border-radius: 10px; padding: 7px 9px; } .kpi-wrong .kpi-do { background: #FDE7E5; }
/* ---- v1.2: cleaning SOP + cleaner screen ---- */
.sop { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; } .sop h3 { margin: 0 0 4px; } .sop h4 { margin: 12px 0 4px; font-size: 14px; }
.sop ol, .sop ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 14px; } .sop-mist li::marker { color: #B8302F; } .sop-cloth { margin: 10px 0 0; font-size: 13px; background: #F6EFEC; border-radius: 10px; padding: 8px 10px; }
.cl-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-left: 5px solid #E8A33D; } .cl-item.toilet { border-left-color: #D93B3B; } .cl-item small { display: block; color: var(--muted); font-size: 13px; } .cl-item .btn { width: auto; }
.cl-ticks { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.sop-card { padding: 10mm; font-size: 10.5pt; } .sop-card h4 { margin: 3mm 0 1mm; } .sop-card ol, .sop-card ul { margin: 0; padding-left: 6mm; } .sop-card li { margin-bottom: 1.5mm; } .sop-tr { display: block; color: #6E5A56; font-size: 9pt; } .sop-when, .sop-cl { margin: 2mm 0; }

/* v1.2 Make it right */
.mr { display: grid; gap: 6px; background: #F1F8F3; border: 1px solid #CFE6D6; border-radius: 12px; padding: 10px 12px; margin: 8px 0; } .mr-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .mr-rm { font-weight: 700; } .mr-amt { width: 70px; } .mr .btn { width: auto; } .mr-done { margin: 6px 0; font-size: 14px; color: #1B6B36; font-weight: 600; }

/* v1.2 Stalls that need you */
.ks-need { border-left: 4px solid #E8A33D; background: #FFFBF3; border-radius: 10px; padding: 8px 10px; margin: 8px 0; } .ks-need.red { border-left-color: #D93B3B; background: #FFF6F5; } .ks-need p { margin: 3px 0; } .ks-need-top { display: flex; justify-content: space-between; } .ks-do b { font-weight: 700; } .ks-need .btn { width: auto; }

/* v1.2 quick replies */
.qr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; } .qr-chips small { width: 100%; } .chip.qr { text-align: left; white-space: normal; font-size: 13px; line-height: 1.3; padding: 6px 10px; border-radius: 12px; }

/* v1.2: the stall icon tab bar lines up with the page on wide screens (no stretching) */
nav.tabs.four { padding-left: max(12px, calc((100% - 760px) / 2)); padding-right: max(12px, calc((100% - 760px) / 2)); }

/* v1.2 compact KPI lines for staff */
.kpiset.compact { gap: 6px; } .kpil { display: flex; justify-content: space-between; gap: 8px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; } .kpil.kpi-good { border-left-color: #2E9E5B; } .kpil.kpi-notEnough { border-left-color: #E8A33D; } .kpil.kpi-wrong { border-left-color: #D93B3B; } .kpil-do { margin: -2px 0 4px 10px; font-size: 13px; font-weight: 600; } .kpil-ok { margin: 2px 0; font-weight: 700; color: #1B6B36; } .cl-staff { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .cl-staff .btn { width: auto; } .cl-staff .cl-what { display: block; margin-top: 4px; font-weight: 700; color: var(--ink, #2a1d1a); font-size: 15px; }

.mr-done small { display: block; font-weight: 500; font-size: 13px; } .mr-used { color: #1B6B36; } .mr-wait { color: #8A5A00; }
/* v1.2 SOP card: one per A4 */
.a4.a4-sop { padding: 12mm 14mm; overflow: hidden; } .a4-sop .sop-card { padding: 0; font-size: 11.5pt; line-height: 1.28; } .a4-sop .sop-card h4 { font-size: 1.12em; margin: 3mm 0 1mm; }
.a4-sop .sop-tr { font-size: .83em; } .a4-sop .sop-card li { margin-bottom: 1.6mm; } .a4-sop .a4-top b { font-size: 20pt; }
/* v1.2 Ken's ☰ More */
.v12-more { display: grid; gap: 8px; } .v12-moreitem { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; color: inherit; font: inherit; }
.v12-moreitem .mi-ic { font-size: 24px; } .v12-moreitem .mi-t { flex: 1; display: grid; gap: 2px; } .v12-moreitem small { color: #6E5A56; } .v12-moreitem .mi-go { font-size: 22px; color: #b9a9a4; }
.v12-moreback { margin: 0 0 8px; }
.fb-steps { display: grid; gap: 3px; font-size: 13.5px; background: #FFF8F0; }
/* toasts: white text on the red/green box (the .bad/.good text colours must not apply here) */
.toast.good, .toast.bad { color: #fff; }
