﻿/* The stamp app (web/app/stamp.js), for a shop's staff and owner. Light, always.
   Like a good iPhone app: soft warm paper behind, white surfaces that float a little, one deep navy for
   what matters, gold for stamps. Movement is slow and soft: things glide and settle, nothing blinks.
   The thumb's half of the screen (the bottom) holds what is pressed most. */
:root {
  --bg: #fbf6f0; --surface: #ffffff; --surface-2: #fffaf5; --sunk: #f4ece3; --press: #ecdfd2;
  --ink: #2b1a0e; --ink-2: #6b5546; --ink-3: #a8948a; --sep: #f0e6dc;
  --brand: #ef5f1c; --brand-2: #ff7a33; --on-brand: #ffffff;
  --gold: #c8460f; --gold-2: #f08a4b; --gold-soft: #fff1e6;
  --good: #1f8f58; --good-soft: #e3f4ea; --bad: #cc4433; --bad-soft: #fbe9e5; --warn: #b57611; --warn-soft: #fbf1de;
  --r: 22px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 1px 1px rgba(17, 24, 39, .02);
  --shadow-up: 0 -12px 40px rgba(40, 26, 6, .14);
  --ease: cubic-bezier(.22, .8, .26, 1); --soft: cubic-bezier(.4, 0, .2, 1); --spring: cubic-bezier(.34, 1.3, .5, 1);
  --font: -apple-system, "SF Pro Text", "Kantumruy Pro", "Segoe UI", system-ui, sans-serif;
  --top: max(env(safe-area-inset-top, 0px), var(--tg-top, 0px));
  --bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-bottom, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; overscroll-behavior: none; letter-spacing: -.005em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
svg { display: block; }

/* ---- the calm background: three soft lights drifting very slowly ---- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient i { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; opacity: .55; will-change: transform; }
.ambient i:nth-child(1) { left: -35vmax; top: -40vmax; background: radial-gradient(closest-side, rgba(224, 178, 94, .22), transparent); animation: drift1 34s var(--soft) infinite alternate; }
.ambient i:nth-child(2) { right: -40vmax; top: 10vh; background: radial-gradient(closest-side, rgba(35, 65, 122, .10), transparent); animation: drift2 42s var(--soft) infinite alternate; }
.ambient i:nth-child(3) { left: -20vmax; bottom: -50vmax; background: radial-gradient(closest-side, rgba(214, 150, 120, .14), transparent); animation: drift3 38s var(--soft) infinite alternate; }
@keyframes drift1 { to { transform: translate3d(12vmax, 8vmax, 0); } }
@keyframes drift2 { to { transform: translate3d(-10vmax, 14vmax, 0); } }
@keyframes drift3 { to { transform: translate3d(14vmax, -10vmax, 0); } }

/* ---- the page ---- */
#app { min-height: 100vh; max-width: 560px; margin: 0 auto; padding: calc(var(--top) + 14px) 18px calc(120px + var(--bottom)); }
#app.no-tabs { padding-bottom: calc(26px + var(--bottom)); }
.wide #app { max-width: 880px; }
.view { animation: fadeIn .32s var(--soft) both; }
.view.push { animation: pushIn .42s var(--ease) both; }
.view.pop { animation: popIn .42s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pushIn { from { opacity: 0; transform: translate3d(28px, 0, 0); } }
@keyframes popIn { from { opacity: 0; transform: translate3d(-22px, 0, 0); } }
/* waiting: a slow, thin ring that only shows when it takes a moment */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes appear { from { opacity: 0; } }
.center { display: grid; place-items: center; padding: 48px 0; }
.boot { height: 70vh; display: grid; place-items: center; }

.top { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-bottom: 4px; }
.top .grow, .grow { flex: 1; min-width: 0; }
h1.title { margin: 4px 0 2px; font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.sub { color: var(--ink-2); font-size: 15px; margin: 2px 0 18px; }
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, .7); box-shadow: var(--shadow); flex: none; transition: transform .2s var(--ease); }
.round:active { transform: scale(.92); }
.round svg { width: 20px; height: 20px; }
.shopline { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.shopline b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shopline small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.logo { width: 40px; height: 40px; border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); object-fit: contain; flex: none; }
.logo.none { display: grid; place-items: center; font-weight: 700; font-size: 17px; color: var(--gold); }
.scan-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 11px; border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; color: var(--brand); flex: none; transition: transform .2s var(--ease); }
.scan-chip svg { width: 18px; height: 18px; }
.scan-chip:active { transform: scale(.95); }

/* ---- surfaces ---- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 18px; }
.group { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
.group-title { margin: 24px 8px 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.row { display: flex; align-items: center; gap: 13px; min-height: 58px; padding: 10px 16px; width: 100%; text-align: left; position: relative; transition: background .2s; }
.row + .row::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: .5px; background: var(--sep); }
.row.with-ic + .row.with-ic::before { left: 63px; }
button.row:active { background: var(--surface-2); }
.row .ic { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--gold-soft); color: var(--gold); }
.row .ic svg { width: 18px; height: 18px; }
.row .ic.navy { background: rgba(200, 70, 15, .08); color: var(--brand); }
.row .ic.green { background: var(--good-soft); color: var(--good); }
.row .ic.red { background: var(--bad-soft); color: var(--bad); }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { display: block; color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .v { color: var(--ink-2); font-size: 15px; flex: none; text-align: right; }
.row .v b { display: block; font-size: 16px; color: var(--ink); font-weight: 600; }
.row .v small { display: block; color: var(--ink-3); font-size: 12.5px; }
.chev { color: #c7c3bb; flex: none; }
.chev svg { width: 15px; height: 15px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--sunk); color: var(--ink-2); }
.tag.gold { background: var(--gold-soft); color: var(--gold); }
.tag.green { background: var(--good-soft); color: var(--good); }
.tag.red { background: var(--bad-soft); color: var(--bad); }
.note { color: var(--ink-3); font-size: 13.5px; margin: -8px 8px 18px; }
.empty { text-align: center; color: var(--ink-3); padding: 48px 20px; }
.empty svg { width: 42px; height: 42px; margin: 0 auto 10px; opacity: .45; }
.banner { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 15px; border-radius: 16px; font-weight: 500; font-size: 14.5px; margin: 0 0 14px; }
.banner svg { width: 19px; height: 19px; flex: none; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.good { background: var(--good-soft); color: var(--good); }

/* ---- controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 600; font-size: 16.5px; white-space: nowrap; background: var(--sunk); color: var(--ink); transition: transform .2s var(--ease), background .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px rgba(200, 70, 15, .22); }
.btn.gold { background: linear-gradient(140deg, var(--gold-2), var(--gold)); color: #fff; }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.full { width: 100%; }
.btn.small { min-height: 40px; padding: 0 15px; border-radius: 13px; font-size: 14.5px; }
.btn:disabled { opacity: .45; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btns { display: flex; gap: 10px; }
.btns > * { flex: 1; }
.mt { margin-top: 14px; }
.more-btn { display: block; margin: 4px auto 0; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin: 0 8px 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field > small { display: block; margin: 6px 8px 0; font-size: 12.5px; color: var(--ink-3); }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 15px; border: 1.5px solid transparent; background: var(--surface); box-shadow: var(--shadow); outline: none; font-size: 16px; transition: border-color .2s; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--gold-2); }
.seg { display: flex; background: rgba(118, 108, 90, .12); border-radius: 12px; padding: 2px; gap: 2px; }
.seg button { flex: 1; min-height: 36px; padding: 0 12px; border-radius: 10px; font-weight: 500; font-size: 14.5px; color: var(--ink); white-space: nowrap; transition: background .25s var(--soft), box-shadow .25s; }
.seg button.on { background: var(--surface); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .1), 0 .5px 1px rgba(0, 0, 0, .06); }
.switch { width: 51px; height: 31px; border-radius: 16px; background: #e5e1d9; position: relative; flex: none; transition: background .3s var(--soft); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .1); transition: transform .35s var(--spring); }
.switch.on { background: #ef5f1c; }
.switch.on::after { transform: translateX(20px); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: rgba(118, 108, 90, .12); border-radius: 13px; padding: 3px; }
.stepper button { width: 42px; height: 36px; border-radius: 10px; background: var(--surface); font-size: 21px; font-weight: 500; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); transition: transform .15s var(--ease); }
.stepper button:active { transform: scale(.92); }
.stepper b { min-width: 42px; text-align: center; font-size: 17px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 14px; padding: 4px 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 15px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-weight: 500; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: background .3s var(--soft), color .3s; }
.chip i { font-style: normal; font-size: 12.5px; opacity: .6; }
.chip.on { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: rgba(118, 108, 90, .1); margin-bottom: 12px; color: var(--ink-3); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.hstack { display: flex; align-items: center; gap: 10px; }
.savebar { position: sticky; bottom: calc(14px + var(--bottom)); z-index: 5; margin-top: 8px; }

/* ---- the tab bar: floating glass, a soft pill gliding to the tab you press ---- */
#tabs { position: fixed; left: 50%; bottom: calc(12px + var(--bottom)); transform: translateX(-50%); z-index: 20; display: flex; padding: 6px; border-radius: 30px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); box-shadow: 0 0 0 .5px rgba(60, 40, 10, .08), 0 16px 40px rgba(60, 40, 10, .16); width: min(calc(100% - 28px), 420px); }
#tabs .tab-pill { position: absolute; left: 0; top: 6px; bottom: 6px; border-radius: 24px; background: rgba(200, 70, 15, .08); transition: transform .45s var(--ease), width .45s var(--ease); }
#tabs button { position: relative; flex: 1; min-width: 0; height: 56px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: 11px; font-weight: 600; transition: color .35s var(--soft); }
#tabs button svg { width: 23px; height: 23px; transition: transform .45s var(--spring); }
#tabs button.on { color: var(--brand); }
#tabs button:active svg { transform: scale(.88); }

/* ---- the scan screen: what is pressed most sits at the bottom, by the thumb ---- */
.scan-page { min-height: calc(100vh - var(--top) - 40px - var(--bottom)); display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 11px; }
.bar-t { flex: 1; min-width: 0; }
.bar-t b { display: block; font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-t small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.branch-seg { margin-top: 14px; }
.scan-stage { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px 0 14px; min-height: 260px; }
.today { margin: auto 0; text-align: center; }
.today span { display: block; font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.today b { display: block; font-size: 68px; line-height: 1.05; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.today small { display: block; font-size: 14px; color: var(--ink-3); }
.notes { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.notes:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 15px; font-size: 13.5px; font-weight: 500; background: var(--sunk); }
.pill svg { width: 16px; height: 16px; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

/* the last scan: a small card, above the slider */
.result-slot { position: relative; display: grid; }
.result-slot > * { grid-area: 1 / 1; }
.result-wrap { animation: rise .5s var(--ease) both; }
.result-wrap.out { animation: sink .26s var(--soft) both; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.98); } }
@keyframes sink { to { opacity: 0; transform: translate3d(0, -8px, 0) scale(.98); } }
.result { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 14px 10px; }
.result.pending, .result.bad, .result.wait { display: flex; align-items: center; gap: 12px; padding: 16px; }
.result .t { flex: 1; min-width: 0; }
.result .t b { display: block; font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result .t small { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result .mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.result .mark svg { width: 20px; height: 20px; }
.result.bad { background: var(--bad-soft); animation: nudge .5s var(--ease); }
.result.bad .mark { background: rgba(204, 68, 51, .12); color: var(--bad); }
.result.bad .t b { color: var(--bad); white-space: normal; }
@keyframes nudge { 30% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }
.result.wait { background: var(--warn-soft); }
.result.wait .mark { color: var(--warn); }
.r-top { display: flex; align-items: center; gap: 12px; }
.r-top .plus { font-size: 30px; font-weight: 700; color: var(--good); letter-spacing: -.02em; flex: none; }
.result.won { background: linear-gradient(160deg, #fffaf0, #fff); box-shadow: 0 0 0 1px rgba(224, 178, 94, .45), var(--shadow); }
.r-prog { display: flex; align-items: center; gap: 12px; margin: 12px 2px 4px; }
.r-prog .dots { flex: 1; }
.r-prog > span { font-size: 15px; font-weight: 600; color: var(--ink-2); flex: none; }
.r-note { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; padding: 8px 11px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-size: 13.5px; font-weight: 500; }
.r-note svg { width: 15px; height: 15px; flex: none; }
.r-free { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 11px 12px 11px 14px; border-radius: 15px; background: linear-gradient(140deg, #23a066, #178050); color: #fff; text-align: left; }
.r-free svg { width: 20px; height: 20px; flex: none; }
.r-free span { flex: 1; font-weight: 600; font-size: 15px; }
.r-free b { padding: 7px 14px; border-radius: 11px; background: #fff; color: #178050; font-size: 14.5px; }
.r-acts { display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end; }
.r-acts button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .2s; }
.r-acts button:active { background: var(--sunk); }
.r-acts svg { width: 16px; height: 16px; }

.dock { display: flex; flex-direction: column; gap: 12px; padding-bottom: 4px; }
/* how many drinks: a big number and the slider */
.qty { padding: 14px 16px 16px; }
.qty.flat { box-shadow: none; }
.qty-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.qty-head > span { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.qty-head b { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.02em; display: inline-block; }
.qty-head b.bump { animation: bump .35s var(--spring); }
@keyframes bump { 40% { transform: scale(1.18); } }
.qty-head .unit { font-size: 13px; color: var(--ink-3); }
.reset { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 11px; border-radius: 15px; background: var(--sunk); font-size: 14px; font-weight: 600; color: var(--ink-2); animation: fadeIn .3s var(--soft); }
.reset svg { width: 14px; height: 14px; }
.slider { position: relative; height: 56px; touch-action: none; cursor: grab; }
.sl-track { position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; border-radius: 22px; background: var(--sunk); overflow: hidden; }
.sl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; border-radius: 22px; background: linear-gradient(90deg, #f3dfb6, var(--gold-2)); }
.sl-fill.settle { transition: width .45s var(--spring); }
.sl-ticks { position: absolute; left: 18px; right: 18px; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; }
.sl-ticks span { width: 20px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: color .3s; }
.sl-ticks span.on { color: rgba(90, 58, 10, .55); }
.sl-thumb { position: absolute; left: 0; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: var(--surface); box-shadow: 0 6px 16px rgba(60, 40, 10, .2), 0 1px 2px rgba(0, 0, 0, .12); display: grid; place-items: center; will-change: transform; }
.sl-thumb.settle { transition: transform .45s var(--spring); }
.sl-thumb b { font-size: 21px; font-weight: 700; color: var(--brand); transition: transform .3s var(--spring); }
.sl-thumb.held b { transform: scale(1.12); }
.sl-thumb.held { box-shadow: 0 10px 24px rgba(60, 40, 10, .26), 0 1px 2px rgba(0, 0, 0, .12); }

.scan-row { display: flex; gap: 10px; }
.pad-btn { width: 68px; height: 68px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--gold); flex: none; transition: transform .2s var(--ease); }
.pad-btn svg { width: 24px; height: 24px; }
.pad-btn:active { transform: scale(.94); }
.scan-go { flex: 1; height: 68px; border-radius: 24px; background: linear-gradient(160deg, var(--brand-2), var(--brand)); color: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 21px; font-weight: 700; box-shadow: 0 12px 28px rgba(200, 70, 15, .3); transition: transform .2s var(--ease), box-shadow .2s; position: relative; overflow: hidden; }
.scan-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .14) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 6s var(--soft) infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.scan-go svg { width: 26px; height: 26px; }
.scan-go em { font-style: normal; font-size: 16px; opacity: .8; font-weight: 600; }
.scan-go:active { transform: scale(.97); box-shadow: 0 6px 16px rgba(200, 70, 15, .25); }

/* ---- stamps as dots ---- */
.dots { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 5px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--sunk); max-width: 26px; width: 100%; justify-self: center; transition: background .4s; }
.dots i.on { background: linear-gradient(140deg, var(--gold-2), var(--gold)); }
.dots i.new { animation: pop .6s var(--spring) both; }
@keyframes pop { 0% { transform: scale(.3); opacity: .3; } 100% { transform: scale(1); } }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 20px; font-weight: 600; color: #fff; background: var(--av, var(--gold)); }
.avatar.s { width: 42px; height: 42px; font-size: 16px; }

/* ---- sheets: up from the bottom, slowly ---- */
.dim { position: fixed; inset: 0; z-index: 40; background: rgba(28, 22, 12, .32); opacity: 0; transition: opacity .4s var(--soft); }
.dim.open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-up); padding: 8px 18px calc(22px + var(--bottom)); transform: translate3d(0, 105%, 0); transition: transform .5s var(--ease); overscroll-behavior: contain; }
.sheet.open { transform: none; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #d8d3ca; margin: 0 auto 16px; }
.sheet h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.sheet .lead { color: var(--ink-2); font-size: 14.5px; margin: 0 0 16px; }
.pad-screen { height: 66px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 34px; font-weight: 700; letter-spacing: .12em; margin-bottom: 14px; }
.pad-screen.empty { color: var(--ink-3); font-size: 16px; letter-spacing: 0; font-weight: 500; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.keys button { height: 60px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-size: 26px; font-weight: 500; transition: transform .15s var(--ease), background .15s; }
.keys button:active { background: var(--press); transform: scale(.96); }
.keys button.quiet { background: transparent; box-shadow: none; color: var(--ink-2); display: grid; place-items: center; }
.keys button.ok { color: var(--good); font-weight: 700; font-size: 20px; }
.keys button svg { width: 26px; height: 26px; }
.nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.nums.small { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
.nums button { height: 50px; border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); font-size: 19px; font-weight: 600; transition: background .2s, color .2s; }
.nums button.on { background: var(--brand); color: var(--on-brand); }

/* ---- the report ---- */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 22px 22px 20px; color: #fff; background: linear-gradient(150deg, #ff7a33, #c8460f 70%); box-shadow: 0 18px 40px rgba(200, 70, 15, .26); margin-bottom: 12px; }
.hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .13), transparent); animation: glow 12s var(--soft) infinite alternate; }
@keyframes glow { to { transform: translate3d(-30px, 30px, 0) scale(1.1); } }
.hero span { position: relative; display: block; font-size: 14px; font-weight: 500; opacity: .8; }
.hero b { position: relative; display: block; font-size: 64px; font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.hero small { position: relative; display: block; font-size: 14.5px; opacity: .85; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tile { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 15px 16px; }
.tile span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.tile b { display: block; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.tile small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.gold b { color: var(--gold); }
.tile.good b { color: var(--good); }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding: 0 2px; }
.chart .bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; }
.chart .bar .col { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.chart .bar i { width: 100%; max-width: 24px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); min-height: 4px; height: calc((100% - 26px) * var(--h, 0)); transform-origin: bottom; animation: grow .9s var(--ease) both; }
.chart .bar.top i { background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.chart .bar small { font-size: 10.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.chart .bar em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
@keyframes grow { from { transform: scaleY(0); } }
.section-h { display: flex; align-items: baseline; margin: 0 2px 12px; }
.section-h b { font-size: 16.5px; font-weight: 600; }
.section-h small { margin-left: auto; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.share { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.share .n { flex: 0 0 34%; min-width: 0; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share .track { flex: 1; height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.share .track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; animation: growx .9s var(--ease) both; }
@keyframes growx { from { transform: scaleX(0); } }
.share b { flex: none; min-width: 38px; text-align: right; font-size: 15.5px; font-weight: 600; }

/* ---- customers and scans ---- */
.person, .hist { display: flex; align-items: center; gap: 13px; padding: 11px 16px; width: 100%; text-align: left; position: relative; min-height: 64px; transition: background .2s; }
.person + .person::before, .hist + .hist::before { content: ""; position: absolute; left: 70px; right: 0; top: 0; height: .5px; background: var(--sep); }
.person:active, button.hist:active:not(:disabled) { background: var(--surface-2); }
.person .t, .hist .t { flex: 1; min-width: 0; }
.person .t b, .hist .t b { display: block; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .t small, .hist .t small { display: block; color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .v { text-align: right; flex: none; }
.person .v b { display: block; font-size: 16px; font-weight: 600; }
.person .v small { display: block; font-size: 12.5px; color: var(--ink-3); }
.person .v.away b { color: var(--bad); }
.hist .mark { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--gold-soft); color: var(--gold); }
.hist .mark.free { background: var(--good-soft); color: var(--good); }
.hist .mark.edit { background: var(--sunk); color: var(--ink-2); }
.hist .mark svg { width: 18px; height: 18px; }
.hist.undone { opacity: .45; }
.hist.undone .t b { text-decoration: line-through; }
.profile { text-align: center; padding: 22px 18px 18px; margin-bottom: 14px; }
.profile .avatar { width: 76px; height: 76px; font-size: 28px; margin: 0 auto 12px; }
.profile h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile p { margin: 4px 0 14px; color: var(--ink-2); font-size: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.three div { background: var(--surface-2); border-radius: 15px; padding: 10px 6px; }
.three b { display: block; font-size: 21px; font-weight: 700; }
.three span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.actions .btn { min-height: 50px; font-size: 15px; border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); font-weight: 500; }
.actions .btn.danger { background: var(--bad-soft); box-shadow: none; }

/* ---- the card's settings ---- */
.stage { position: relative; border-radius: 26px; padding: 20px 18px 16px; margin-bottom: 16px; background: var(--surface); box-shadow: var(--shadow); }
.stage canvas { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; border-radius: 18px; box-shadow: 0 16px 40px rgba(60, 40, 10, .2); animation: float 7s var(--soft) infinite alternate; }
@keyframes float { to { transform: translate3d(0, -6px, 0); } }
.stage.wide canvas { width: 100%; max-width: 420px; }
.stage .play { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.stage .play span { font-size: 13px; font-weight: 500; color: var(--ink-3); flex: none; min-width: 58px; }
.stage .play b { flex: none; min-width: 44px; text-align: right; font-size: 15px; }
input[type=range] { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 30px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--sunk); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .05); }
.looks { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 12px; overflow-x: auto; margin: 0 -18px 18px; padding: 6px 18px 12px; scrollbar-width: none; }
.looks::-webkit-scrollbar { display: none; }
.look { text-align: center; }
.look canvas { display: block; width: 104px; height: 130px; border-radius: 14px; box-shadow: var(--shadow); outline: 2.5px solid transparent; outline-offset: 3px; transition: outline-color .3s, transform .45s var(--spring); }
.look.on canvas { outline-color: var(--gold); transform: translateY(-4px); }
.look span { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster { display: block; width: min(100%, 320px); margin: 0 auto 16px; border-radius: 14px; box-shadow: 0 16px 40px rgba(60, 40, 10, .18); background: var(--surface); aspect-ratio: 1240 / 1754; }
.bubble { max-width: 86%; background: var(--surface); border-radius: 20px 20px 20px 6px; box-shadow: var(--shadow); padding: 12px 15px; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.bubble.gift { margin-top: 8px; border-radius: 6px 20px 20px 20px; color: #fff; font-weight: 600; }
.bubble.gift.warm { background: linear-gradient(135deg, #d9a84e, #b9822e); }
.bubble.gift.navy { background: linear-gradient(135deg, #ff7a33, #c8460f); }
.bubble.gift.paper { background: #f7e3b5; color: #6b3a1e; }
.bubble.gift.night { background: linear-gradient(135deg, #33231a, #1a110c); color: #f0c877; }
.qrbox { background: #fff; border-radius: 22px; padding: 18px; width: min(100%, 280px); margin: 0 auto 14px; box-shadow: var(--shadow); }
.qrbox svg { width: 100%; height: auto; }
.code { display: block; background: var(--sunk); border-radius: 12px; padding: 10px 12px; font: 13px/1.4 ui-monospace, Menlo, monospace; word-break: break-all; margin-bottom: 12px; color: var(--ink-2); }
.place { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.place .input { box-shadow: none; background: var(--surface-2); margin-bottom: 8px; min-height: 46px; }
.place .head { display: flex; align-items: center; margin-bottom: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.place .head button { margin-left: auto; color: var(--bad); font-weight: 500; font-size: 13.5px; padding: 4px 6px; }

#toast { position: fixed; left: 50%; top: calc(var(--top) + 10px); z-index: 80; transform: translate3d(-50%, -12px, 0); opacity: 0; pointer-events: none; max-width: calc(100% - 36px); padding: 11px 18px; border-radius: 18px; background: rgba(28, 27, 25, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-weight: 500; font-size: 14.5px; text-align: center; transition: opacity .35s var(--soft), transform .45s var(--ease); }
#toast.show { opacity: 1; transform: translate3d(-50%, 0, 0); }
#toast.bad { background: rgba(204, 68, 51, .94); }

/* inside the admin's page (a frame): the tabs at the top */
.embedded body { background: transparent; }
.embedded .ambient { display: none; }
.embedded #app { padding-top: 84px; padding-bottom: 30px; }
.embedded #app.no-tabs { padding-top: 16px; }
.embedded #tabs { top: 12px; bottom: auto; width: min(calc(100% - 28px), 460px); }
.embedded #tabs button { height: 46px; flex-direction: row; gap: 8px; font-size: 13.5px; }
.embedded #tabs button svg { width: 19px; height: 19px; }
@media (min-width: 700px) { .wide .grid2 { grid-template-columns: repeat(4, 1fr); } }
/* "reduce motion" on: only the moving background stops. (Never shorten every animation to .01ms: the ones that
   repeat then run thousands of times a second, which is flickering.) */
@media (prefers-reduced-motion: reduce) { .ambient i { animation: none !important; } }

/* ===== Round 3: clean and still. White on light grey, navy for what matters, green for done.
   Nothing moves by itself: no drifting background, no glow, no sheen, no float, no glass blur.
   Movement only answers a touch, and is short. ===== */
.ambient { display: none !important; }
.view, .view.pop { animation: none; }
.view.push { animation: pushIn .24s var(--ease) both; }
@keyframes pushIn { from { opacity: 0; transform: translate3d(16px, 0, 0); } }
.hero::before, .scan-go::after { content: none; animation: none; }
.stage canvas { animation: none; }
.chart .bar i, .share .track i, .dots i.new { animation: none; }
.card, .group, .tile, .result, .input, .chip, .round, .logo, .scan-chip, .keys button, .nums button { box-shadow: var(--shadow); }
.chip { box-shadow: inset 0 0 0 1px var(--press); }
.chip.on { box-shadow: none; }
/* waiting: three dots breathing, slowly */
@keyframes breathe { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
#rep { transition: opacity .2s; }
#rep.loading { opacity: .45; }
/* the tab bar: plain white, a line above, the open tab in navy */
#tabs { left: 0; right: 0; bottom: 0; transform: none; width: auto; border-radius: 0; padding: 6px 8px calc(6px + var(--bottom)); background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -1px 0 var(--sep); }
#tabs .tab-pill { display: none; }
#tabs button { height: 52px; color: var(--ink-3); }
#tabs button.on { color: var(--brand); }
#tabs button.on svg { stroke-width: 2.3; }
#app { padding-bottom: calc(96px + var(--bottom)); }
.hero { background: var(--brand); box-shadow: none; border-radius: 22px; }
.tile.gold b { color: var(--brand); }
.dots i.on { background: var(--brand); }
.chart .bar i { background: #c7d2e6; }
.chart .bar.top i { background: var(--brand); }
.share .track i { background: var(--brand); }
.r-top .plus { color: var(--good); }
.result.won { background: #fff; box-shadow: inset 0 0 0 1.5px var(--good), var(--shadow); }
.round { background: #fff; }

/* ---- the scan screen ---- */
.scan-page { min-height: calc(100vh - var(--top) - 14px - 26px - var(--bottom)); }
.today-chip { text-align: right; flex: none; }
.today-chip b { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; }
.today-chip small { display: block; font-size: 12px; color: var(--ink-3); }
.scan-stage { min-height: 200px; padding: 14px 0 12px; }
.hint { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; color: var(--ink-3); font-size: 14.5px; text-align: center; border: 1.5px dashed var(--press); border-radius: 22px; }
.hint svg { width: 30px; height: 30px; }
.dock { gap: 10px; }
.qty-row { display: flex; align-items: center; min-height: 30px; margin: 0 4px; }
.qty-row > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.reset { margin-left: auto; background: var(--sunk); animation: none; height: 30px; }
/* the number picker: a row that scrolls under a lens */
.picker { position: relative; height: 68px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.pk-lens { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 60px; margin-left: -30px; border-radius: 16px; background: var(--brand); pointer-events: none; }
.pk-row { position: relative; display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc(50% - 32px); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pk-row::-webkit-scrollbar { display: none; }
.pk-n { flex: 0 0 64px; height: 100%; scroll-snap-align: center; font-size: 22px; font-weight: 600; color: var(--ink-3); transition: color .15s; }
.pk-n.on { color: #fff; font-weight: 700; }
/* the big square button, by the thumb, with a smaller button on each side */
.scan-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.scan-square { width: min(52vw, 230px, 30vh); aspect-ratio: 1; border-radius: 32px; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 10px 24px rgba(200, 70, 15, .28); transition: transform .12s ease-out; flex: none; }
.scan-square svg { width: 34%; height: 34%; stroke-width: 1.7; }
.scan-square b { font-size: 24px; font-weight: 700; line-height: 1.2; }
.scan-square em { font-style: normal; font-size: 14px; opacity: .75; }
.scan-square:active { transform: scale(.96); }
.side-btn { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; flex: none; }
.side-btn svg { width: 56px; height: 56px; padding: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); color: var(--brand); transition: transform .12s ease-out; }
.side-btn:active svg { transform: scale(.92); }
.result-wrap { animation: rise .22s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.result.bad { animation: none; }

/* ===== Round 4: glass and light, like a system app. A still, soft background; surfaces are frosted
   white with a hairline edge and a light top highlight; one rich blue for the main action. ===== */
:root { --glass: rgba(255, 255, 255, .72); --glass-edge: rgba(255, 255, 255, .95); --hair: rgba(15, 23, 42, .06);
  --lift: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px var(--hair), 0 10px 30px -12px rgba(15, 23, 42, .14); }
body { background: radial-gradient(120% 60% at 0% 0%, #ffefe0 0%, transparent 60%), radial-gradient(100% 60% at 100% 100%, #fff4e8 0%, transparent 60%), #fbf6f0; background-attachment: fixed; }
.card, .group, .tile, .result, .today-card, .picker, .side-btn svg, .round, .scan-chip, .input, .keys button, .nums button, .logo, .place, .stage { background: var(--glass); box-shadow: var(--lift); }
.chip { background: var(--glass); box-shadow: 0 0 0 1px var(--hair); }
.chip.on { background: #ef5f1c; color: #fff; box-shadow: none; }
.seg { background: rgba(15, 23, 42, .06); }
h1.title { font-size: 34px; letter-spacing: -.03em; }
#tabs { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: 0 -1px 0 var(--hair); }
#tabs button.on { color: #ef5f1c; }
.hero { background: linear-gradient(155deg, #ff8a45 0%, #ef5f1c 55%, #b8400c 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 18px 40px -16px rgba(239, 95, 28, .55); }
.dots i.on, .share .track i, .chart .bar.top i { background: #ef5f1c; }
.chart .bar i { background: #fbd6bf; }

/* Telegram full screen: the shop's name in Telegram's own top row, between its Close and â‹¯ buttons */
#band { display: none; }
html.full #band { position: fixed; z-index: 30; left: 0; right: 0; top: var(--tg-safe); height: var(--tg-bar); padding: 0 96px; display: flex; align-items: center; justify-content: center; gap: 8px; pointer-events: none; }
html.full #band img { width: 24px; height: 24px; border-radius: 7px; object-fit: contain; background: #fff; }
html.full #band b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #0f172a; }
html.full .scan-page .bar, html.full .shopline > .logo, html.full .shopline > .grow { display: none; }
html.full .shopline { justify-content: flex-end; margin-bottom: 4px; }
html.full #app { padding-top: calc(var(--tg-top) + 6px); }

/* ---- the staff screen ---- */
.scan-page { gap: 12px; }
.today-card { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; padding: 18px 20px; border-radius: 24px; }
.today-card span { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.today-card b { display: block; font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.035em; color: #0f172a; margin-top: 4px; }
.today-card small { font-size: 15px; color: var(--ink-3); margin-bottom: 5px; }
.today-card em { flex-basis: 100%; font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.notes:empty, .result-slot:empty, .recent:empty { display: none; }
.recent-h { display: flex; align-items: baseline; margin: 2px 6px 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.recent-h button { margin-left: auto; color: #ef5f1c; font-size: 13.5px; font-weight: 600; }
.recent .group { margin-bottom: 0; }
.recent .hist { min-height: 56px; padding: 8px 14px; }
.recent .hist .mark { width: 38px; height: 38px; border-radius: 12px; }
.hist .mark { background: #eaf0fd; color: #ef5f1c; }
.dock { margin-top: auto; gap: 10px; }
/* the number picker: a frosted rail, a raised white capsule on the chosen number */
.picker { height: 64px; border-radius: 22px; }
.pk-lens { top: 7px; bottom: 7px; width: 58px; margin-left: -29px; border-radius: 17px; background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 6px 14px -4px rgba(15, 23, 42, .22); }
.pk-n { font-size: 20px; font-weight: 500; color: #94a3b8; }
.pk-n.on { color: #ef5f1c; font-weight: 700; font-size: 24px; }
/* the scan button: a deep blue tile with light on its top edge */
.scan-row { gap: 18px; margin-top: 4px; }
.scan-square { width: min(46vw, 210px, 28vh); border-radius: 46px; background: linear-gradient(160deg, #ff8a45 0%, #ef5f1c 45%, #b8400c 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 -14px 30px -10px rgba(0, 0, 0, .25) inset, 0 22px 40px -18px rgba(239, 95, 28, .7); gap: 8px; }
.scan-square .sq-ic { width: 38%; aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset; }
.scan-square .sq-ic svg { width: 58%; height: 58%; stroke-width: 2; }
.scan-square b { font-size: 22px; }
.scan-square em { opacity: .8; font-size: 13.5px; }
.side-btn { width: 64px; }
.side-btn svg { width: 54px; height: 54px; padding: 15px; color: #ef5f1c; }
.reset { background: rgba(15, 23, 42, .06); }
.result { border-radius: 22px; }
.r-top .plus { color: #16a34a; }

.today-card { display: block; }
.today-card .tc-n { display: flex; align-items: baseline; gap: 8px; }
.today-card .tc-n small { margin: 0; }

/* ===== Round 5: navy again (no bright blue), a camera-style shutter, the shop in the middle, and a
   floating glass tab bar with the scan button floating beside it (as on iPhone). ===== */
#tabs button.on, .recent-h button, .pk-n.on, .side-btn svg, .hist .mark { color: #c8460f; }
.hist .mark { background: rgba(200, 70, 15, .07); }
.hero { background: linear-gradient(160deg, #ff7a33 0%, #c8460f 60%, #a8380a 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 18px 40px -18px rgba(200, 70, 15, .6); }
.dots i.on, .share .track i, .chart .bar.top i { background: #c8460f; }
.chart .bar i { background: #d5dbe6; }
body { background: radial-gradient(120% 60% at 0% 0%, #eef1f7 0%, transparent 60%), #f5f6f8; background-attachment: fixed; }

/* the shop, in the middle of the staff screen */
.shop-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px 8px; margin: auto 0; }
.sh-logo { width: 88px; height: 88px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 14px 30px -14px rgba(15, 23, 42, .3); display: grid; place-items: center; overflow: hidden; font-size: 34px; font-weight: 700; color: #c8460f; }
.sh-logo img { width: 100%; height: 100%; object-fit: contain; }
.shop-hero h2 { margin: 14px 0 2px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.shop-hero p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.sh-today { display: inline-flex; align-items: baseline; gap: 7px; margin-top: 16px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(15, 23, 42, .06); font-size: 13.5px; color: var(--ink-2); }
.sh-today b { font-size: 19px; font-weight: 700; color: #c8460f; }
.scan-page .recent { margin-top: 0; }

/* the shutter: a navy disc inside a thin ring, like the camera's button */
.scan-row { gap: 34px; margin-top: 8px; }
.shutter { width: 92px; height: 92px; border-radius: 50%; padding: 5px; background: transparent; box-shadow: 0 0 0 3px #c8460f; flex: none; transition: transform .14s ease-out; }
.shutter i { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 20%, #ff7a33 0%, #c8460f 60%); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 20px -8px rgba(200, 70, 15, .6); }
.shutter svg { width: 34px; height: 34px; stroke-width: 2; }
.shutter:active { transform: scale(.93); }
.shutter-label { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.shutter-label b { color: #c8460f; font-weight: 600; }
.side-btn { width: 60px; }
.side-btn svg { width: 52px; height: 52px; padding: 15px; }
.scan-square { display: none; }

/* the floating tab bar: a glass capsule, and the scan button as a glass circle beside it */
#tabs { left: 14px; right: 14px; bottom: calc(14px + var(--bottom)); width: auto; transform: none; padding: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; display: flex; align-items: center; gap: 10px; border-radius: 0; max-width: 520px; margin: 0 auto; }
#tabs .cap { flex: 1; display: flex; padding: 5px; border-radius: 32px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, 0 0 0 1px rgba(15, 23, 42, .06), 0 12px 32px -10px rgba(15, 23, 42, .25); }
#tabs .cap button { flex: 1; min-width: 0; height: 54px; border-radius: 27px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8a94a6; font-size: 10.5px; font-weight: 600; transition: background .2s, color .2s; }
#tabs .cap button svg { width: 22px; height: 22px; }
#tabs .cap button.on { background: rgba(200, 70, 15, .09); color: #c8460f; }
#tabs .fab { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: radial-gradient(120% 120% at 30% 20%, #ff7a33 0%, #c8460f 60%); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 28px -10px rgba(200, 70, 15, .7); transition: transform .14s ease-out; }
#tabs .fab svg { width: 26px; height: 26px; stroke-width: 2; }
#tabs .fab:active { transform: scale(.92); }
#app { padding-bottom: calc(110px + var(--bottom)); }
#app.no-tabs { padding-bottom: calc(22px + var(--bottom)); }
html.full .shopline { display: none; }

/* ===== Round 6: minimal. The shop and one line in the middle; the last scan as the customer's own small
   stamp card; the picker and the shutter fixed at the bottom (they never move, however much is above). ===== */
.scan-page { min-height: 0; padding-bottom: calc(205px + var(--bottom)); }
.shop-hero { margin: 8vh 0 18px; padding: 0 12px; }
.sh-logo { width: 76px; height: 76px; border-radius: 23px; }
.shop-hero h2 { font-size: 22px; margin-top: 12px; }
.sh-line { margin: 4px 0 0; color: var(--ink-3); font-size: 14.5px; }
.sh-line b { color: var(--ink); font-weight: 600; }
.scan-page .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-width: 560px; margin: 0 auto; padding: 22px 18px calc(16px + var(--bottom)); background: linear-gradient(to bottom, rgba(245, 246, 248, 0), #f5f6f8 22px); gap: 14px; }
.pick-wrap { position: relative; }
.pick-wrap .reset { position: absolute; right: -2px; top: -12px; width: 30px; height: 30px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 4px 10px -4px rgba(15, 23, 42, .25); z-index: 2; }
.pick-wrap .reset svg { width: 15px; height: 15px; }
.scan-row { margin-top: 0; }
.side-btn span { font-size: 12px; }
/* the last scan: their own card, small, with name, how far and what was added */
.result.mini { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 22px; }
.mini-card { width: 112px; aspect-ratio: 16 / 10; border-radius: 10px; flex: none; background: var(--sunk); box-shadow: 0 6px 14px -6px rgba(15, 23, 42, .35); }
.result.mini .t b { font-size: 17px; }
.result.mini .t small { font-size: 13.5px; color: var(--ink-2); }
.result.mini .plus { font-size: 26px; align-self: flex-start; margin-top: 2px; }
.result.mini .r-acts { justify-content: flex-start; margin-top: 6px; gap: 4px; }
.result.mini .r-acts button { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; background: rgba(15, 23, 42, .05); }
.result.mini .r-acts svg { width: 16px; height: 16px; }
.result.mini.won { box-shadow: 0 0 0 1.5px #16a34a inset, var(--lift); }
.r-free { margin-top: 8px; border-radius: 18px; }
.result.mini .plus { font-weight: 700; color: #16a34a; letter-spacing: -.02em; flex: none; }
/* a bigger scan button, its name under it */
.shutter-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.shutter-wrap span { font-size: 14px; font-weight: 600; color: #c8460f; }
.shutter { width: 116px; height: 116px; padding: 6px; box-shadow: 0 0 0 3.5px #c8460f; }
.shutter svg { width: 44px; height: 44px; }
.scan-row { align-items: flex-start; gap: 28px; }
.side-btn { margin-top: 26px; }
.scan-page { padding-bottom: calc(240px + var(--bottom)); }
/* the customer's card, big: the card on top, their name and what was added under it */
.result.mini.big { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 12px 10px; }
.result.mini.big .mini-card { width: 100%; max-width: 380px; align-self: center; border-radius: 16px; box-shadow: 0 12px 26px -12px rgba(15, 23, 42, .45); }
.r-info { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.r-info .t { flex: 1; min-width: 0; }
.result.mini.big .r-acts { margin-top: 0; justify-content: flex-end; }
.r-info .t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.r-info .t .r-acts { margin-left: auto; }
.result.mini.big .plus { align-self: center; margin-top: 0; font-size: 24px; }
.shop-hero { margin-top: 4vh; }

/* ---- the free drink question: in the middle, over everything; only its two buttons close it ---- */
.ask-free { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .22s ease-out; }
.ask-free.open { opacity: 1; }
.af-card { width: min(100%, 360px); background: #fff; border-radius: 30px; padding: 28px 22px 18px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); transform: scale(.9); transition: transform .3s cubic-bezier(.2, .9, .3, 1.15); }
.ask-free.open .af-card { transform: scale(1); }
.af-ic { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #e7f6ec; color: #16a34a; }
.af-ic svg { width: 42px; height: 42px; stroke-width: 1.8; }
.af-card h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: #0f172a; }
.af-card p { margin: 8px 0 0; font-size: 16.5px; color: #475569; }
.af-card p + .af-btn { margin-top: 20px; }
.af-card p b { color: #0f172a; }
.af-reward { display: inline-block; margin: 14px 0 20px; padding: 8px 16px; border-radius: 999px; background: #f1f5f9; font-size: 15px; font-weight: 600; color: #c8460f; }
.af-yes { display: block; width: 100%; height: 60px; border-radius: 18px; background: #16a34a; color: #fff; font-size: 19px; font-weight: 700; box-shadow: 0 12px 24px -12px rgba(22, 163, 74, .7); transition: transform .12s ease-out; }
.af-yes:active, .af-no:active { transform: scale(.97); }
.af-yes:disabled { opacity: .7; }
.af-no { display: block; width: 100%; height: 54px; margin-top: 10px; border-radius: 18px; background: #f1f5f9; color: #c8460f; font-size: 17px; font-weight: 600; transition: transform .12s ease-out; }
.af-card small { display: block; margin-top: 12px; font-size: 12.5px; color: #94a3b8; }

.result.pending { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 150px; padding: 18px; }
.result.pending .soft-spin { width: 44px; height: 44px; }
.pending-t { font-size: 14.5px; color: var(--ink-3); font-weight: 500; }

/* ===== Clean marks: a soft circle; stamps as "+1" in navy, a free drink as a cup in green ===== */
.hist .mark { width: 40px; height: 40px; border-radius: 50%; background: rgba(200, 70, 15, .07); color: #c8460f; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.hist .mark.free { background: rgba(22, 163, 74, .1); color: #16a34a; }
.hist .mark svg { width: 19px; height: 19px; stroke-width: 1.8; }
.free-tag { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; background: rgba(22, 163, 74, .1); color: #16a34a; font-size: 13.5px; font-weight: 600; flex: none; }
.free-tag svg { width: 16px; height: 16px; }

/* ===== The questions' buttons ===== */
.af-btn { display: block; width: 100%; min-height: 56px; margin-top: 10px; padding: 0 16px; border-radius: 18px; font-size: 17px; font-weight: 700; transition: transform .12s ease-out; }
.af-btn:first-of-type { margin-top: 0; }
.af-btn:active { transform: scale(.97); }
.af-btn.green { background: #16a34a; color: #fff; box-shadow: 0 12px 24px -12px rgba(22, 163, 74, .7); }
.af-btn.navy { background: #c8460f; color: #fff; }
.af-btn.grey { background: #f1f5f9; color: #c8460f; font-weight: 600; }
.af-ic svg { stroke-width: 1.7; }
.next-free { display: flex; align-items: center; gap: 7px; margin: 0 4px; padding: 9px 12px; border-radius: 14px; background: rgba(22, 163, 74, .08); color: #16a34a; font-size: 14px; font-weight: 600; }
.next-free svg { width: 17px; height: 17px; stroke-width: 1.8; }

.hist .mark svg { width: 20px; height: 20px; }
.free-tag svg { width: 17px; height: 17px; }

/* ---------- boost ---------- */
.bst-prices { margin: 12px 6px 0; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.bst-prices b { color: var(--ink); }
.bst-list { display: grid; gap: 10px; }
.bst-item { display: grid; gap: 6px; width: 100%; padding: 14px 15px; border-radius: 18px; background: var(--card, #fff); box-shadow: 0 1px 0 var(--sep); text-align: left; }
.bst-top { display: flex; align-items: center; gap: 8px; }
.bst-top small { color: var(--ink-3); font-size: 12.5px; }
.bst-top .grow { flex: 1; }
.bst-kind { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bad-soft); color: var(--bad); }
.bst-kind.announce { background: rgba(200, 70, 15, .08); color: var(--brand); }
.bst-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.05); color: var(--ink-2); }
.bst-chip.good { background: var(--good-soft); color: var(--good); }
.bst-chip.warn { background: var(--warn-soft); color: var(--warn); }
.bst-chip.navy { background: rgba(200, 70, 15, .08); color: var(--brand); }
.bst-chip.bad { background: var(--bad-soft); color: var(--bad); }
.bst-msg { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bst-meta { color: var(--ink-3); font-size: 13px; }
.bst-res { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4px; padding-top: 10px; border-top: .5px solid var(--sep); }
.bst-res div { display: grid; justify-items: center; gap: 1px; }
.bst-res b { font-size: 17px; }
.bst-res small { color: var(--ink-3); font-size: 11.5px; }
.bst-res .hi b { color: var(--good); }
.bst-pay { justify-self: start; margin-top: 4px; }
.bst-step { display: flex; align-items: center; gap: 10px; margin: 26px 4px 12px; font-size: 17px; font-weight: 700; }
.bst-step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 13px; }
.bst-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; background: none; }
.bst-kinds button { display: grid; gap: 3px; padding: 14px 12px; border-radius: 16px; background: var(--card, #fff); border: 2px solid transparent; text-align: left; box-shadow: 0 1px 0 var(--sep); }
.bst-kinds button b { font-size: 15.5px; }
.bst-kinds button small { color: var(--ink-3); font-size: 12.5px; }
.bst-kinds button.on { border-color: var(--brand); background: var(--card, #fff); }
.chips .chip i { font-style: normal; opacity: .6; margin-left: 4px; }
.bst-line { background: var(--card, #fff); border-radius: 16px; margin-top: 10px; }
.bst-unit { color: var(--ink-3); font-size: 13.5px; }
.bst-aud { display: grid; gap: 10px; justify-items: center; margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--card, #fff); }
.bst-count { display: flex; align-items: baseline; gap: 8px; }
.bst-count b { font-size: 34px; font-weight: 800; }
.bst-count span { color: var(--ink-3); }
.bst-range { width: 100%; accent-color: var(--brand); height: 28px; }
.bst-hint { color: var(--ink-3); font-size: 12.5px; text-align: center; }
.bst-none { color: var(--ink-3); padding: 6px; }
.bst-tpls { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.bst-tpls::-webkit-scrollbar { display: none; }
.bst-tpl { flex: none; display: grid; gap: 5px; justify-items: center; width: 120px; padding: 0; background: none; }
.bst-tpl canvas { width: 120px; height: 75px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.12); outline: 2.5px solid transparent; outline-offset: 2px; }
.bst-tpl.on canvas { outline-color: var(--brand); }
.bst-tpl span { font-size: 12px; color: var(--ink-2); }
.bst-stage canvas { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; box-shadow: 0 16px 34px -20px rgba(0,0,0,.5); touch-action: none; }
.bst-colours { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 2px 0; }
.bst-col { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.bst-col.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.bst-text { min-height: 110px; resize: vertical; }
.bst-chat { margin-top: 12px; padding: 14px; border-radius: 18px; background: #c9d9e8 linear-gradient(160deg, #cfe0d0, #c4d7ea); }
.bst-bubble { max-width: 86%; border-radius: 16px 16px 16px 4px; background: #fff; overflow: hidden; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.bst-bubble img { display: block; width: 100%; }
.bst-bubble-t { padding: 9px 12px 10px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.bst-sum { margin-top: 22px; border-radius: 18px; background: var(--card, #fff); overflow: hidden; }
.bst-sum .row { min-height: 48px; }
.bst-sum .total b { font-weight: 700 !important; }
.bst-sum .total .v b { font-size: 20px; }
.bst-amount { display: grid; justify-items: center; gap: 2px; margin: 8px 0 22px; text-align: center; }
.bst-amount small { color: var(--ink-3); }
.bst-amount b { font-size: 46px; font-weight: 800; letter-spacing: -1px; }
.bst-amount span { color: var(--ink-2); font-size: 14px; }
.bst-aba { background: #005d7c; color: #fff; min-height: 58px; font-size: 17px; box-shadow: 0 10px 22px -10px rgba(0, 93, 124, .7); }
.bst-aba .aba-mark { padding: 3px 7px; border-radius: 7px; background: #e1251b; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.bst-other { margin-top: 10px; background: var(--card, #fff); color: var(--ink); box-shadow: 0 1px 0 var(--sep); }
.bst-qr { display: grid; justify-items: center; gap: 10px; margin-top: 14px; padding: 16px; border-radius: 18px; background: #fff; text-align: center; }
.bst-qr img { width: 230px; height: 230px; }
.bst-qr small { color: var(--ink-3); }
.bst-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; color: var(--ink-3); font-size: 14px; }
.bst-paid { display: grid; justify-items: center; gap: 8px; padding: 50px 10px; text-align: center; }
.bst-paid .ok { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #fff; }
.bst-paid .ok svg { width: 40px; height: 40px; }
.bst-paid h2 { margin: 8px 0 0; font-size: 24px; }
.bst-paid p { margin: 0; color: var(--ink-2); }
.bst-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bst-big div { display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: var(--card, #fff); }
.bst-big b { font-size: 34px; font-weight: 800; color: var(--good); }
.bst-big small { color: var(--ink-3); }
.bst-funnel { display: grid; gap: 10px; margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--card, #fff); }
.bst-funnel .f { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; }
.bst-funnel .f i { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 9px; background: linear-gradient(90deg, var(--brand) var(--w), rgba(0,0,0,.06) var(--w)); }
.bst-funnel .f b { font-size: 15px; }

/* ---------- the owner's tab bar, like the customer wallet: a floating pill, the chosen tab says its name ---------- */
#tabs.dk { left: 50%; right: auto; top: auto; bottom: calc(14px + var(--bottom)); transform: translateX(-50%); width: auto; max-width: calc(100% - 24px); display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 10px 30px rgba(15, 23, 42, .14); }
#tabs.dk > button { flex: none; height: 48px; min-width: 48px; padding: 0 13px; border-radius: 999px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 0; color: #8a94a6; background: transparent; font-size: 14px; font-weight: 700; transition: background .35s, color .35s, padding .35s, gap .35s; }
#tabs.dk > button svg { width: 21px; height: 21px; stroke-width: 1.9; }
#tabs.dk > button span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s cubic-bezier(.2,.9,.2,1), opacity .25s; }
#tabs.dk > button.on { background: #c8460f; color: #fff; padding: 0 17px 0 14px; gap: 8px; }
#tabs.dk > button.on span { max-width: 110px; opacity: 1; }
#tabs.dk > button:active { transform: scale(.92); }
.embedded #tabs.dk { top: 12px; bottom: auto; }
/* the Report's top: the shop, and Scan on the right */
.ohead { display: flex; align-items: center; gap: 11px; margin: 2px 0 14px; }
.ohead .grow { flex: 1; min-width: 0; }
.ohead b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ohead small { display: block; color: var(--ink-3); font-size: 12.5px; }
.scan-top { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px 0 13px; border-radius: 21px; background: #c8460f; color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: 0 8px 18px -8px rgba(200, 70, 15, .6); }
.scan-top svg { width: 19px; height: 19px; }
.scan-top:active { transform: scale(.95); }
html.full .ohead { padding-right: 0; }
/* the invitation to boost */
.boost-ad { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 16px; padding: 14px 14px 14px 14px; border-radius: 20px; text-align: left; color: #fff; background: linear-gradient(135deg, #e5484d, #b4232c); box-shadow: 0 14px 30px -16px rgba(197, 35, 44, .8); }
.boost-ad:active { transform: scale(.98); }
.boost-ad .ba-ic { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.boost-ad .ba-ic svg { width: 22px; height: 22px; }
.boost-ad .ba-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.boost-ad .ba-t b { font-size: 15px; line-height: 1.3; }
.boost-ad .ba-t small { font-size: 12.5px; opacity: .85; }
.boost-ad .ba-go { flex: none; padding: 9px 14px; border-radius: 999px; background: #fff; color: #b4232c; font-weight: 800; font-size: 13.5px; }
.boost-hero { display: grid; justify-items: center; gap: 8px; padding: 22px 18px 18px; border-radius: 24px; text-align: center; color: #fff; background: radial-gradient(120% 140% at 20% 0%, #ff6b6b 0%, #e5484d 35%, #9b1c2a 100%); box-shadow: 0 18px 36px -20px rgba(155, 28, 42, .9); }
.boost-hero .bh-ic { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.boost-hero .bh-ic svg { width: 28px; height: 28px; }
.boost-hero b { font-size: 19px; line-height: 1.3; }
.boost-hero small { font-size: 13.5px; opacity: .9; line-height: 1.5; max-width: 320px; }
.boost-hero .bh-go { margin-top: 6px; background: #fff; color: #b4232c; font-weight: 800; }
/* Settings: the shop on top */
.set-hero { display: flex; align-items: center; gap: 13px; padding: 14px 16px; margin-top: 4px; border-radius: 18px; background: var(--card, #fff); box-shadow: 0 1px 0 var(--sep); }
.set-hero .grow { flex: 1; min-width: 0; }
.set-hero b { display: block; font-size: 17px; font-weight: 700; }
.set-hero small { display: block; color: var(--ink-3); font-size: 13px; }

/* ---------- tab bar, take 2: always fits the phone, Boost raised in the middle ---------- */
#tabs.dk { gap: 2px; padding: 6px 8px; max-width: calc(100% - 20px); overflow: visible; align-items: center; }
#tabs.dk > button { flex: 0 1 auto; min-width: 44px; height: 46px; padding: 0 11px; }
#tabs.dk > button svg { flex: none; }
#tabs.dk > button span { min-width: 0; text-overflow: ellipsis; font-size: 13px; }
#tabs.dk > button.on { padding: 0 14px 0 12px; gap: 7px; }
#tabs.dk > button.on span { max-width: 92px; }
/* Boost: a red circle with a white ring, lifted out of the bar, its name small underneath */
#tabs.dk > button.bt { flex: none; position: relative; width: 62px; min-width: 62px; height: 46px; padding: 0; margin: 0 4px; background: transparent !important; gap: 0; }
#tabs.dk > button.bt i { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(120% 120% at 30% 20%, #ff6b6b 0%, #e5484d 45%, #b4232c 100%); box-shadow: 0 0 0 4px #fff, 0 10px 22px -6px rgba(197, 35, 44, .75); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
#tabs.dk > button.bt i svg { width: 27px; height: 27px; stroke-width: 2.1; }
#tabs.dk > button.bt i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(229, 72, 77, .45); animation: btPulse 2.6s ease-out infinite; }
@keyframes btPulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
#tabs.dk > button.bt span { position: absolute; bottom: 0; line-height: 1.1; left: 50%; transform: translateX(-50%); max-width: none; opacity: 1; font-size: 10.5px; font-weight: 800; color: #b4232c; white-space: nowrap; }
#tabs.dk > button.bt.on i { transform: translateX(-50%) scale(1.06); box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(229, 72, 77, .35), 0 12px 24px -6px rgba(197, 35, 44, .8); }
#tabs.dk > button.bt.on i::after { animation: none; opacity: 0; }
#tabs.dk > button.bt:active i { transform: translateX(-50%) scale(.92); }
.embedded #tabs.dk > button.bt i { top: -6px; width: 44px; height: 44px; }
.embedded #tabs.dk > button.bt span { display: none; }

/* ---------- the owner's tab bar, final: five equal places that never move; Boost red in the middle ---------- */
#tabs.nb { left: 12px; right: 12px; top: auto; bottom: calc(12px + var(--bottom)); transform: none; width: auto; max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 0; padding: 8px 6px 7px; border-radius: 26px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 10px 28px rgba(15, 23, 42, .12); overflow: visible; }
#tabs.nb > button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 3px; min-width: 0; color: #8a94a6; -webkit-tap-highlight-color: transparent; }
#tabs.nb > button i { width: 46px; height: 32px; border-radius: 16px; display: grid; place-items: center; }
#tabs.nb > button i svg { width: 22px; height: 22px; stroke-width: 1.9; }
#tabs.nb > button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; line-height: 1.2; }
#tabs.nb > button.on { color: #c8460f; }
#tabs.nb > button.on i { background: rgba(200, 70, 15, .09); }
#tabs.nb > button.on span { font-weight: 800; }
#tabs.nb > button:active i { opacity: .7; }
/* Boost: a red circle, a little higher than the others, still the same width */
#tabs.nb > button.bt { color: #c62f36; }
#tabs.nb > button.bt i { width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; color: #fff; background: linear-gradient(160deg, #f0565b, #c62f36); box-shadow: 0 0 0 4px #fff, 0 8px 18px -6px rgba(198, 47, 54, .7); }
#tabs.nb > button.bt i svg { width: 26px; height: 26px; stroke-width: 2; }
#tabs.nb > button.bt span { font-weight: 800; }
#tabs.nb > button.bt.on i { background: linear-gradient(160deg, #e5484d, #9f1d25); }
#tabs.nb > button.bt:active i { opacity: .85; }
.embedded #tabs.nb { top: 12px; bottom: auto; }
.embedded #tabs.nb > button.bt i { margin-top: 0; width: 40px; height: 32px; border-radius: 16px; box-shadow: none; }
#app:not(.no-tabs) { padding-bottom: calc(120px + var(--bottom)); }

/* the admin picks the shop to scan for */
.sh-pick { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; }
.sh-pick h2 { margin: 0; }
.sh-pick span svg { width: 18px; height: 18px; transform: rotate(90deg); opacity: .5; }
.sh-pick:active { background: rgba(0,0,0,.05); }
.sh-admin { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }

.sh-switch { display: inline-flex; align-items: center; gap: 6px; margin: 6px auto 0; padding: 7px 14px; border-radius: 999px; background: #c8460f; color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 14px -8px rgba(200, 70, 15, .6); }
.sh-switch svg { width: 16px; height: 16px; }
.sh-switch:active { transform: scale(.95); }
.sh-now { color: #16a34a; font-weight: 800; font-size: 17px; }

/* owner tabs: the title alone; Scans has a small scan icon on the right */
.title-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.title-row .title { flex: 1; min-width: 0; margin-bottom: 0; }
.scan-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #c8460f; color: #fff; box-shadow: 0 8px 18px -8px rgba(200, 70, 15, .6); }
.scan-ic svg { width: 21px; height: 21px; }
.scan-ic:active { transform: scale(.93); }
/* the admin's shop: the name is the switch (a small arrow says so) */
.sh-name { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 12px; color: inherit; }
.sh-name h2 { margin: 0; }
.sh-name svg { width: 20px; height: 20px; opacity: .45; }
.sh-name:active { background: rgba(0, 0, 0, .05); }
.sh-name:has(.sh-branch) { flex-direction: column; gap: 0; }
.sh-branch { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 15px; font-weight: 700; color: #a08b7b; }
.sh-name .sh-branch svg { width: 14px; height: 14px; opacity: .9; }
#shopLogo { cursor: pointer; }

/* the owner's looks: made for them (with a remove ×), and the request for a new design */
.look-wrap { position: relative; flex: none; }
.look-x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #64748b; font-size: 16px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.18); display: grid; place-items: center; }
.ask-design { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 16px; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed rgba(200, 70, 15, .25); background: transparent; text-align: left; color: var(--brand); }
.ask-design svg { width: 20px; height: 20px; flex: none; }
.ask-design span { display: grid; gap: 1px; }
.ask-design b { font-size: 15px; }
.ask-design small { color: var(--ink-3); font-size: 12.5px; }

/* ---------- the Boost composer ---------- */
.bz-hist { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px 0 11px; border-radius: 19px; background: var(--card, #fff); color: var(--ink-2); font-weight: 600; font-size: 14px; box-shadow: 0 1px 0 var(--sep), 0 4px 12px -8px rgba(0,0,0,.2); }
.bz-hist svg { width: 17px; height: 17px; }
.bz-hist i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(200, 70, 15, .08); font-size: 12px; display: grid; place-items: center; }
.bz-last { display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 14px; padding: 11px 14px; border-radius: 14px; background: var(--good-soft); color: var(--good); font-size: 14px; text-align: left; }
.bz-last span:nth-child(2) { flex: 1; }
.bz-last svg { width: 16px; height: 16px; opacity: .6; }
.bz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.bz-card { margin: 0 0 14px; padding: 16px 16px 16px; border-radius: 22px; background: var(--card, #fff); box-shadow: 0 1px 0 var(--sep), 0 10px 26px -22px rgba(0,0,0,.35); }
.bz-card h3 { margin: 0 0 12px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.bz-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bz-tile { display: grid; justify-items: start; gap: 2px; padding: 12px 13px; border-radius: 16px; background: rgba(200, 70, 15, .04); border: 2px solid transparent; text-align: left; }
.bz-tile b { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.bz-tile span { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.bz-tile.on { border-color: #e5484d; background: rgba(229, 72, 77, .06); }
.bz-tile.on b { color: #d93036; }
.bz-days { margin-top: 12px; }
.bz-days > span { display: block; font-size: 13px; color: var(--ink-3); margin: 0 2px 8px; }
.bz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bz-chips button { height: 36px; padding: 0 14px; border-radius: 18px; background: rgba(200, 70, 15, .06); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.bz-chips button.on { background: #c8460f; color: #fff; }
.bz-count.loading { opacity: .5; transition: opacity .2s; }
.bz-num { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bz-num > div { display: grid; justify-items: center; }
.bz-num b { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.bz-num small { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.bz-step { width: 52px; height: 52px; border-radius: 50%; background: rgba(200, 70, 15, .07); font-size: 26px; font-weight: 600; color: var(--ink); touch-action: none; user-select: none; -webkit-user-select: none; }
.bz-step:active { background: rgba(200, 70, 15, .14); transform: scale(.94); }
.bz-hint { color: var(--ink-3); font-size: 12.5px; margin: 10px 2px 0; line-height: 1.45; }
.bz-none { color: var(--ink-3); text-align: center; padding: 10px; }
.bz-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.bz-kind button { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: rgba(200, 70, 15, .04); border: 2px solid transparent; text-align: left; }
.bz-kind button b { font-size: 15px; }
.bz-kind button small { color: var(--ink-3); font-size: 12.5px; }
.bz-kind button.on { border-color: #c8460f; background: #fff; }
.bz-designs { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.bz-designs::-webkit-scrollbar { display: none; }
.bz-design { flex: none; width: 220px; display: grid; gap: 6px; padding: 0; background: none; text-align: left; scroll-snap-align: start; }
.bz-design canvas { width: 220px; aspect-ratio: 16 / 10; border-radius: 14px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.4); outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.bz-design.on canvas { outline-color: #e5484d; }
.bz-design > span { font-size: 13px; color: var(--ink-2); padding: 0 2px; }
.bz-req { width: 150px; height: 137.5px; place-content: center; justify-items: center; text-align: center; border-radius: 14px; border: 2px dashed rgba(200, 70, 15, .22); color: var(--brand); gap: 4px; }
.bz-req > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(200, 70, 15, .07); }
.bz-req > span svg { width: 18px; height: 18px; }
.bz-req b { font-size: 13.5px; }
.bz-req small { font-size: 11.5px; color: var(--ink-3); }
.bz-req.on { border-color: #e5484d; border-style: solid; background: rgba(229, 72, 77, .05); }
#reqPart textarea { min-height: 84px; margin-top: 4px; }
.bz-sub { margin: 10px 2px 8px; font-size: 13px; color: var(--ink-3); }
.bz-admin { margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--sep); }
.bz-admin summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.bz-preview summary { cursor: pointer; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.bz-soon { padding: 34px 12px; text-align: center; color: var(--ink-3); font-size: 13px; background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 10px, #eef0f3 10px, #eef0f3 20px); }
.bz-bar { position: fixed; left: 12px; right: 12px; bottom: calc(14px + var(--bottom)); z-index: 19; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px; background: #c8460f; color: #fff; box-shadow: 0 14px 30px -12px rgba(200, 70, 15, .7); }
.bz-bar.tabbed { bottom: calc(96px + var(--bottom)); }
.bz-sum { flex: 1; min-width: 0; display: grid; gap: 1px; }
.bz-sum b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.bz-sum small { font-size: 12.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 16px; background: linear-gradient(160deg, #f0565b, #c62f36); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 8px 18px -8px rgba(198, 47, 54, .9); }
.bz-go svg { width: 21px; height: 21px; }
.bz-go:disabled { opacity: .45; }
.bz-go:active { transform: scale(.96); }

/* send by itself, and the credit */
.bz-auto-head { display: flex; align-items: center; gap: 12px; }
.bz-auto-head > div { flex: 1; }
.bz-auto-head small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.bz-auto-on { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bz-auto-on span { padding: 6px 10px; border-radius: 10px; background: var(--good-soft); color: var(--good); font-size: 12.5px; font-weight: 600; }
.bz-link { margin-top: 10px; color: var(--brand); font-weight: 600; font-size: 13.5px; }
.bz-credit { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--sep); }
.bz-credit > div { flex: 1; display: grid; }
.bz-credit small { color: var(--ink-3); font-size: 12.5px; }
.bz-credit b { font-size: 20px; font-weight: 800; }
.bz-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bz-amounts button { display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: var(--surface, #fff); box-shadow: var(--shadow); text-align: left; }
.bz-amounts b { font-size: 24px; font-weight: 800; }
.bz-amounts small { color: var(--ink-3); font-size: 12.5px; }

/* the Report's coming-back numbers */
.keep { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 16px; padding: 14px 6px; border-radius: 20px; background: var(--card, #fff); box-shadow: 0 1px 0 var(--sep); }
.keep > * { display: grid; justify-items: center; gap: 2px; padding: 0 4px; background: none; text-align: center; }
.keep > * + * { border-left: .5px solid var(--sep); }
.keep b { font-size: 22px; font-weight: 800; }
.keep small { color: var(--ink-3); font-size: 11.5px; line-height: 1.3; }
.keep .risk b { color: #d93036; }
.keep .risk small { color: #d93036; font-weight: 600; }

/* the ruler that slides */
.rl { position: relative; }
.rl-val { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: 100%; padding: 2px 0 10px; background: none; }
.rl-val b { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: var(--ink); }
.rl-val small { color: var(--ink-3); font-size: 13.5px; }
.rl-in { display: block; width: 140px; margin: 0 auto 10px; height: 52px; border-radius: 14px; border: 2px solid #c8460f; text-align: center; font-size: 30px; font-weight: 800; background: #fff; }
.rl-win { position: relative; height: 54px; border-radius: 14px; background: rgba(200, 70, 15, .04); overflow: hidden; }
.rl-win::before, .rl-win::after { content: ""; position: absolute; top: 0; bottom: 0; width: 56px; z-index: 2; pointer-events: none; }
.rl-win::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.rl-win::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.rl-track { height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.rl-track::-webkit-scrollbar { display: none; }
.rl-strip { height: 100%; background:
  repeating-linear-gradient(90deg, rgba(200, 70, 15, .35) 0 2px, transparent 2px 70px) left bottom / 100% 60% no-repeat,
  repeating-linear-gradient(90deg, rgba(200, 70, 15, .18) 0 2px, transparent 2px 14px) left bottom / 100% 34% no-repeat; }
.rl-mid { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: #e5484d; z-index: 3; pointer-events: none; box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
#daysRuler:not(:empty), #validRuler:not(:empty) { margin-top: 12px; }
.bz-picks { margin-top: 12px; }
/* What to send: the request is its own line under the cards */
.bz-reqrow { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 6px; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed rgba(200, 70, 15, .22); background: transparent; text-align: left; }
.bz-reqrow .grow { flex: 1; display: grid; gap: 1px; }
.bz-reqrow b { font-size: 14.5px; color: var(--ink); }
.bz-reqrow small { font-size: 12.5px; color: var(--ink-3); }
.bz-reqic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(200, 70, 15, .07); color: var(--brand); }
.bz-reqic svg { width: 18px; height: 18px; }
.bz-tick svg { width: 16px; height: 16px; color: var(--ink-3); }
.bz-reqrow.on { border-style: solid; border-color: #e5484d; background: rgba(229, 72, 77, .05); }
.bz-reqrow.on .bz-tick svg { transform: rotate(90deg); }
#reqPart textarea { min-height: 84px; }
.bz-sub { margin: 14px 2px 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.bz-designs { padding-top: 2px; }

.bz-credit { align-items: flex-start; }
.bz-credit .grow { flex: 1; min-width: 0; display: grid; gap: 4px; }
.bz-credit-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bz-credit-top b:first-child { font-size: 14px; font-weight: 700; color: var(--ink); }
.bz-credit-top b.num { font-size: 18px; font-weight: 800; }
.bz-credit small { color: var(--ink-3); font-size: 12px; line-height: 1.45; }




/* the Boost composer, take 3: numbered steps, the offer first, the button at the end */
.bz-hd { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--ink); }
.bz-hd i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; color: #fff; background: #c8460f; }
.bz-field { display: grid; gap: 6px; margin-top: 14px; }
.bz-field > span { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 0 2px; }
.bz-big { margin: 0 -2px 12px; }
.bz-big canvas { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; box-shadow: 0 16px 34px -20px rgba(0,0,0,.55); }
.bz-big .bz-soon { aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 18px; }
.bz-designs { gap: 10px; margin: 0 -16px; padding: 4px 16px 10px; }
.bz-mini { flex: none; padding: 0; background: none; border-radius: 12px; }
.bz-mini canvas { display: block; width: 96px; aspect-ratio: 16 / 10; border-radius: 10px; outline: 2.5px solid transparent; outline-offset: 2px; box-shadow: 0 4px 10px -6px rgba(0,0,0,.4); }
.bz-mini.on canvas { outline-color: #e5484d; }
.bz-final { padding: 18px 16px 16px; }
.bz-lines { display: grid; gap: 8px; margin-bottom: 14px; }
.bz-lines > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); }
.bz-lines .tot { margin-top: 4px; padding-top: 10px; border-top: .5px solid var(--sep); align-items: baseline; color: var(--ink); font-weight: 700; }
.bz-lines .tot b { font-size: 26px; font-weight: 800; }
.bz-final .bz-go { width: 100%; justify-content: center; height: 56px; font-size: 17px; border-radius: 18px; }

/* ---------- loading, take 4: ONE mark, fixed on the screen, never moves ----------
   Page loaders (.boot / .center) are only placeholders; a single #ld element, made once, shows while
   any of them is on the page. It never moves (no transform at all, fixed px from the top, so Telegram
   opening/expanding the app cannot drag it) and never restarts between pages: it only fades, slowly. */
.boot > .soft-spin { display: block; width: 40px; height: 40px; visibility: hidden; background: none; animation: none; }
/* a part of a page still loading: a small still logo in its place (the big one is only for the app's start) */
.center > .soft-spin { display: block; width: 30px; height: 30px; opacity: .35; }
#ld { position: fixed; left: 50%; top: 190px; width: 44px; height: 44px; margin-left: -22px; z-index: 25; pointer-events: none; visibility: hidden; }
/* just the logo, still: no fade, no movement (user); appears only when loading takes over 0.3 s */
#ld.on { visibility: visible; transition: visibility 0s .3s; }
#ld i { position: absolute; inset: 0; background: url(/app/mark.png) center / 44px 44px no-repeat; opacity: .6; }
@keyframes ldFade { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }
/* small waits inside a card (Saving..., waiting for the payment): the mark in place, fading only */
.soft-spin { display: inline-block; flex: none; width: 34px; height: 34px; background: url(/app/mark.png) center / contain no-repeat; opacity: .6; }
.result.pending .soft-spin { width: 40px; height: 40px; }

/* Bakong KHQR: the QR shown straight away (no bank button) */
.bst-scan { margin: 6px 0 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* ---------- the KHQR to pay (Bakong): like a bank's KHQR ---------- */
.kq { position: relative; margin: 6px auto 0; max-width: 380px; border-radius: 26px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 22px 40px -26px rgba(15, 23, 42, .45); }
.kq-band { position: relative; height: 62px; display: grid; place-items: center; background: #e2232f; }
.kq-band::after { content: ""; position: absolute; right: 0; bottom: -26px; border-style: solid; border-width: 0 26px 26px 0; border-color: transparent #e2232f transparent transparent; }
.kq-logo { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.kq-logo b { display: inline-block; padding: 0 1px; border: 2.5px solid #fff; border-radius: 6px; line-height: 1; font-size: 17px; margin: 0 1px; transform: translateY(-1px); }
.kq-who { display: flex; align-items: center; gap: 9px; padding: 16px 22px 0; font-size: 14.5px; font-weight: 500; color: #4b5563; }
.kq-mark { width: 24px; height: 24px; flex: none; border-radius: 7px; background: #c8460f; display: grid; place-items: center; }
.kq-mark img { width: 15px; height: 15px; }
.kq-amt { display: flex; align-items: baseline; gap: 8px; padding: 2px 22px 16px; }
.kq-amt b { font-size: 34px; font-weight: 800; color: #111827; letter-spacing: -.5px; }
.kq-amt span { font-size: 15px; font-weight: 600; color: #6b7280; }
.kq-tear { border-top: 1.5px dashed #d8dde5; }
.kq-qr { position: relative; margin: 18px 22px 0; }
.kq-qr > img { display: block; width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.kq-qr.gone > img { filter: blur(6px); opacity: .35; }
.kq-mid { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #c8460f; border: 4px solid #fff; display: grid; place-items: center; }
.kq-mid img { width: 22px; height: 22px; }
.kq-exp { display: flex; align-items: center; gap: 7px; width: max-content; margin: 16px auto 0; padding: 6px 14px; border-radius: 999px; background: #f1f4f8; font-size: 13.5px; font-weight: 600; color: #374151; }
.kq-exp i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.kq-exp.gone i { background: #e5484d; }
.kq-note { padding: 10px 22px 22px; text-align: center; font-size: 13px; color: #9ca3af; }
.kq-save { max-width: 380px; margin: 14px auto 0; display: flex; justify-content: center; gap: 8px; height: 50px; border-radius: 16px; background: #fff; color: #c8460f; font-weight: 600; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); }
.kq-save svg { width: 18px; height: 18px; }

/* the yes/no question: a card in the middle */
.dlg-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(15, 23, 42, 0); transition: background .22s ease; }
.dlg-back.open { background: rgba(15, 23, 42, .42); }
.dlg { width: 100%; max-width: 330px; padding: 26px 22px 20px; border-radius: 26px; background: #fff; text-align: center; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45); transform: scale(.92); opacity: 0; transition: transform .22s cubic-bezier(.2, .9, .3, 1.2), opacity .18s ease; }
.dlg-back.open .dlg { transform: none; opacity: 1; }
.dlg-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(200, 70, 15, .08); color: #c8460f; }
.dlg-ic.bad { background: rgba(229, 72, 77, .12); color: #d93036; }
.dlg-ic svg { width: 26px; height: 26px; }
.dlg h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.dlg p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.dlg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.dlg-btns .btn { height: 50px; justify-content: center; border-radius: 15px; font-weight: 700; }
.kq-logo { height: 34px; width: auto; display: block; }

/* history: search, who scanned */
.hsearch { display: flex; align-items: center; gap: 10px; height: 48px; margin: 4px 0 12px; padding: 0 14px; border-radius: 16px; background: var(--card, #fff); box-shadow: 0 0 0 1px rgba(15, 23, 42, .07); }
.hsearch svg { width: 19px; height: 19px; color: var(--ink-3); flex: none; }
.hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15.5px; color: var(--ink); }
.hstaff { display: grid; gap: 8px; margin: 0 0 14px; }
.hstaff-t { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin: 0 2px; }
.hs { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card, #fff); box-shadow: 0 0 0 1px rgba(15, 23, 42, .07); text-align: left; font: inherit; }
.hs > b { font-size: 15px; color: var(--ink); }
.hs span { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.hs span b { color: var(--ink); }
.hs.on { box-shadow: 0 0 0 2px #c8460f; }
.hno { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

.ntime { width: 92px; height: 36px; margin-right: 8px; padding: 0 8px; border: 0; border-radius: 10px; background: var(--bg-soft, #f1f4f8); font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.ntime:disabled { opacity: .45; }

/* the word FREE as a rubber stamp (instead of a cup icon) */
.freeword { display: inline-grid; place-items: center; padding: 1px 7px; border: 2px solid #16a34a; border-radius: 6px; color: #16a34a; font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; line-height: 1.35; transform: rotate(-6deg); flex: none; }
.freeword.sm { font-size: 9.5px; padding: 0 5px; border-width: 1.6px; letter-spacing: 1px; }
.freeword.big { display: grid; width: max-content; margin: 0 auto 12px; padding: 4px 14px; font-size: 20px; border-width: 3px; border-radius: 9px; letter-spacing: 3px; transform: rotate(-8deg); }
.next-free { display: flex; align-items: center; gap: 8px; }
.hist .mark.free { background: rgba(22, 163, 74, .1); }
/* the drinks row: the last cell types a bigger number */
.pk-more { display: grid; place-items: center; padding: 0; color: var(--ink-3); }
.pk-more svg { display: block; width: 20px; height: 20px; margin: 0; }
.pk-more.on { color: #c8460f; }

/* ===== 2026-11-18: Boost (ask Bonkh), report, customers ===== */
.bz-lead { margin: -4px 4px 14px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.bz-wait { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 13px 14px; border-radius: 18px; background: var(--warn-soft); color: var(--ink); text-align: left; }
.bz-wait .grow { display: grid; gap: 2px; }
.bz-wait b { font-size: 14.5px; }
.bz-wait small { color: var(--ink-2); font-size: 12.5px; }
.bz-wait > svg { width: 16px; height: 16px; color: var(--ink-3); }
.bz-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); flex: none; box-shadow: 0 0 0 0 rgba(181, 118, 17, .5); animation: bzPulse 1.8s ease-out infinite; }
@keyframes bzPulse { to { box-shadow: 0 0 0 10px rgba(181, 118, 17, 0); } }
.bz-chart-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bz-chart-h b { font-size: 15px; }
.bz-chart-h small { color: var(--ink-3); font-size: 12.5px; }
.bz-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 132px; }
.bz-bar { all: unset; display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.bz-col { position: relative; width: 26px; height: 86px; display: block; }
.bz-col i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--h) * 100%); min-height: 3px; border-radius: 8px; }
.bz-col i.all { background: rgba(200, 70, 15, .1); }
.bz-col i.back { background: #e5484d; }
.bz-bar b { font-size: 13px; }
.bz-bar small { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.bz-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.bz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bz-legend i { width: 10px; height: 10px; border-radius: 3px; }
.bz-legend i.all { background: rgba(200, 70, 15, .14); }
.bz-legend i.back { background: #e5484d; }
.bz-groups { display: grid; gap: 8px; }
.bz-group { border-radius: 16px; background: rgba(200, 70, 15, .035); border: 1.5px solid transparent; overflow: hidden; transition: border-color .2s, background .2s; }
.bz-group.on { border-color: #c8460f; background: #fff; }
.bz-g { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; }
.bz-g .t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.bz-g .t b { font-size: 15px; color: var(--ink); }
.bz-g .t small { font-size: 12.5px; color: var(--ink-3); }
.bz-n { font-size: 17px; color: var(--ink); }
.bz-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c5cad3; flex: none; display: grid; place-items: center; box-sizing: border-box; }
.bz-group.on .bz-radio { border-color: #c8460f; }
.bz-group.on .bz-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #c8460f; }
.bz-stepper { display: flex; align-items: center; gap: 10px; padding: 0 14px 14px 46px; }
.bz-stepper > span { flex: 1; font-size: 13px; color: var(--ink-2); }
.bz-stepper button { width: 36px; height: 36px; border-radius: 50%; background: rgba(200, 70, 15, .07); font-size: 20px; font-weight: 600; color: var(--ink); }
.bz-stepper button:disabled { opacity: .35; }
.bz-stepper b { min-width: 30px; text-align: center; font-size: 22px; }
.bz-stepper small { margin-left: -6px; font-size: 12.5px; color: var(--ink-3); }
.bz-howmany { display: flex; align-items: baseline; gap: 8px; margin: 2px 2px 12px; }
.bz-howmany b { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: var(--ink); }
.bz-howmany span { color: var(--ink-2); font-size: 14px; }
.bz-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; margin: 4px 0 14px; background: linear-gradient(90deg, #c8460f var(--p, 100%), rgba(200, 70, 15, .1) var(--p, 100%)); outline: none; }
.bz-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.18); }
.bz-range::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.18); }
.bz-quick { margin-bottom: 4px; }
.bz-handpick { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed rgba(200, 70, 15, .2); text-align: left; color: var(--ink); }
.bz-handpick > svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.bz-handpick > svg:last-child { width: 16px; height: 16px; color: var(--ink-3); }
.bz-handpick .grow { display: grid; gap: 1px; }
.bz-handpick b { font-size: 14.5px; }
.bz-handpick small { font-size: 12.5px; color: var(--ink-3); }
.bz-pickrow { display: flex; gap: 8px; flex-wrap: wrap; }
.bz-pickbar { display: flex; align-items: center; gap: 14px; margin: 10px 4px 8px; font-size: 13.5px; color: var(--ink-2); }
.bz-pickbar span { flex: 1; font-weight: 600; }
.bz-link { color: var(--brand); font-weight: 600; font-size: 13.5px; background: none; }
.bz-people { max-height: 52vh; overflow-y: auto; border-radius: 16px; background: var(--surface); }
.bz-person { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: .5px solid var(--sep); cursor: pointer; }
.bz-person[hidden] { display: none; }
.bz-person input { position: absolute; opacity: 0; pointer-events: none; }
.bz-person .t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.bz-person .t b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-person .t small { font-size: 12px; color: var(--ink-3); }
.bz-tick { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c5cad3; flex: none; display: grid; place-items: center; box-sizing: border-box; }
.bz-person input:checked ~ .bz-tick { background: #c8460f; border-color: #c8460f; }
.bz-person input:checked ~ .bz-tick::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.bz-field textarea.input { min-height: 64px; }
.bz-steps { display: grid; gap: 0; margin: 4px 0 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); }
.bz-steps > div { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--ink-3); font-size: 14px; }
.bz-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: rgba(200, 70, 15, .07); flex: none; }
.bz-steps .ok { color: var(--ink); }
.bz-steps .ok i { background: var(--good); color: #fff; }
.bz-steps .now { color: var(--ink); font-weight: 600; }
.bz-steps .now i { background: var(--warn); color: #fff; }
/* the tip on the report: a calm white card at the top, slides in once, stays still, then fades;
   the Boost tab keeps a small dot. No looping motion (it flickers in Telegram's browser), no red. */
.bz-nudge { position: fixed; z-index: 60; left: 16px; right: 16px; top: calc(var(--top) + 10px); opacity: 0; transform: translateY(-10px); display: block; padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 0 0 1px rgba(200, 70, 15, .08), 0 14px 32px -14px rgba(200, 70, 15, .35); transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; will-change: transform, opacity; }
.bz-nudge.in { opacity: 1; transform: translateY(0); }
.bz-nudge.out { opacity: 0; transform: translateY(-6px); }
.bz-nudge-in { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; }
.bz-nudge .t { flex: 1; display: grid; gap: 1px; min-width: 0; }
.bz-nudge b { font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-nudge small { font-size: 12.5px; color: #2563c9; font-weight: 600; }
.bz-nudge-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #c8460f; background: rgba(200, 70, 15, .07); }
.bz-nudge-ic svg { width: 19px; height: 19px; }
.bz-nudge-go { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #c8460f; background: rgba(200, 70, 15, .06); flex: none; }
.bz-nudge-go svg { width: 14px; height: 14px; }
#tabs [data-tab="boost"] { position: relative; }
#tabs [data-tab="boost"] i { position: relative; }
#tabs [data-tab="boost"].has-dot i::before { content: ""; position: absolute; top: 0; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #2563c9; box-shadow: 0 0 0 2px #fff; z-index: 1; }
/* report */
.rp-time { display: grid; gap: 10px; margin: 0 0 14px; }
.rp-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.rp-nav b { font-size: 16px; }
.rp-nav .round { width: 36px; height: 36px; }
.rp-nav .round svg { width: 17px; height: 17px; }
.rp-nav .round:disabled { opacity: .3; }
.rp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0 0 12px; padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.rp-big { display: grid; gap: 2px; }
.rp-big span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.rp-big b { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; color: var(--ink); }
.rp-split { grid-column: 1 / -1; margin-top: 10px; }
.rp-track { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: rgba(200, 70, 15, .07); gap: 2px; }
.rp-track i { display: block; height: 100%; }
.rp-track i.new { background: #f0b429; }
.rp-track i.back { background: var(--good); }
.rp-keys { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.rp-keys span { display: inline-flex; align-items: center; gap: 6px; }
.rp-keys i { width: 9px; height: 9px; border-radius: 50%; }
.rp-keys i.new { background: #f0b429; }
.rp-keys i.back { background: var(--good); }
.rp-keys b { color: var(--ink); }
.rp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.rp-row > div { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.rp-row b { font-size: 20px; font-weight: 800; color: var(--ink); }
.rp-row small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
/* customers */
.cu-bar { display: flex; gap: 8px; margin: 2px 0 8px; }
.cu-pick, .cu-sort { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--sep); color: var(--ink); font-weight: 600; font-size: 14px; }
.cu-pick { flex: 1; min-width: 0; }
.cu-pick span { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-pick i { font-style: normal; padding: 1px 8px; border-radius: 10px; background: rgba(200, 70, 15, .07); font-size: 12.5px; }
.cu-pick svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.cu-sort { flex: none; color: var(--ink-2); }
.cu-sort svg { width: 16px; height: 16px; }
.cu-total { margin: 0 6px 10px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.cu-opt .t { flex: 1; }
.cu-n { color: var(--ink-2); font-size: 15px; margin-right: 6px; }
.cu-check { width: 20px; height: 20px; flex: none; position: relative; }
.cu-opt.on .cu-check { border-radius: 50%; background: #c8460f; }
.cu-opt.on .cu-check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rp-time { margin-top: 10px; }
.cu-total:empty { display: none; }

/* ===== 2026-11-18 (2): calmer sheets, boost colours, post composer, receipt, scans ===== */
.sheet { transition: transform .62s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.dim { transition: opacity .55s var(--soft); }
.sheet .grab { width: 40px; height: 5px; margin-bottom: 18px; cursor: grab; touch-action: none; }
.bz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 4px; }
.bz-head .title { margin: 0; }
.bz-histbtn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 12px; border-radius: 19px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 4px 12px -6px rgba(15, 23, 42, .18); flex: none; }
.bz-histbtn svg { width: 17px; height: 17px; color: var(--ink-2); }
.bz-histbtn i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #c8460f; color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.bz-lead { margin: 2px 4px 16px; }
/* the groups: each its own soft colour */
.bz-group { --tone: #c8460f; --tone-soft: rgba(200, 70, 15, .08); }
.bz-group.amber { --tone: #c47a0a; --tone-soft: #fdf1dc; }
.bz-group.green { --tone: #1f8f58; --tone-soft: #e3f4ea; }
.bz-group.blue { --tone: #ef5f1c; --tone-soft: #e6eefe; }
.bz-group.violet { --tone: #7c3aed; --tone-soft: #efe7fd; }
.bz-group.rose { --tone: #db2777; --tone-soft: #fce7f1; }
.bz-group.navy { --tone: #c8460f; --tone-soft: #e8ecf4; }
.bz-gic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); }
.bz-gic svg { width: 19px; height: 19px; }
.bz-group.on { border-color: var(--tone); background: #fff; box-shadow: 0 8px 20px -14px var(--tone); }
.bz-group.on .bz-radio { border-color: var(--tone); }
.bz-group.on .bz-radio::after { background: var(--tone); }
.bz-group.on .bz-n { color: var(--tone); }
.bz-stepper { padding-left: 64px; }
.bz-stepper b { min-width: 74px; font-size: 18px; color: var(--tone); }
.bz-stepper button { color: var(--tone); background: var(--tone-soft); }
/* how many */
.bz-howmany em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 18px; color: #c62f36; }
.bz-ends { display: flex; justify-content: space-between; margin: -8px 2px 0; font-size: 12px; color: var(--ink-3); }
/* what */
.bz-kind button { gap: 4px; }
.bz-kic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(200, 70, 15, .07); color: #c8460f; margin-bottom: 4px; }
.bz-kic svg { width: 18px; height: 18px; }
.bz-kind button.on .bz-kic { background: #c8460f; color: #fff; }
.bz-chips button { display: inline-flex; align-items: center; gap: 6px; }
.bz-chips button svg { width: 15px; height: 15px; }
/* the message, written like a post */
.bz-post { border-radius: 18px; border: 1px solid var(--sep); background: #fff; overflow: hidden; }
.bz-post-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; }
.bz-post-h .logo { width: 36px; height: 36px; border-radius: 50%; }
.bz-post-h div { display: grid; }
.bz-post-h b { font-size: 14.5px; }
.bz-post-h small { font-size: 12px; color: var(--ink-3); }
.bz-langs { margin: 8px 14px 0; }
.bz-post-t { display: block; width: 100%; min-height: 190px; padding: 12px 16px; border: 0; outline: none; resize: vertical; background: transparent; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink); }
.bz-post-f { display: flex; justify-content: space-between; padding: 0 16px 10px; font-size: 12px; color: var(--ink-3); }
.bz-post .bz-soon { margin: 0 14px 14px; border-radius: 12px; }
/* the total and Boost */
.bz-total { display: flex; align-items: baseline; justify-content: space-between; }
.bz-total span { font-weight: 700; color: var(--ink-2); }
.bz-total b { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.bz-total-s { display: block; text-align: right; color: var(--ink-3); font-size: 12.5px; margin: 0 0 14px; }
/* the receipt to confirm, and hold to boost */
.bz-rcpt { position: relative; margin: 4px 4px 18px; padding: 20px 18px 26px; background: #fffdf8; border-radius: 6px 6px 0 0; box-shadow: 0 10px 26px -18px rgba(0,0,0,.4); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #1f2937; }
.bz-rcpt-top { display: grid; justify-items: center; gap: 4px; text-align: center; margin-bottom: 4px; }
.bz-rcpt-top .logo { width: 44px; height: 44px; border-radius: 12px; }
.bz-rcpt-top b { font-family: var(--font); font-size: 17px; }
.bz-rcpt-top small { font-size: 11.5px; letter-spacing: .06em; color: #6b7280; }
.bz-rule { height: 0; border-top: 1.5px dashed #c9c4b8; margin: 12px 0; }
.bz-rl { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 13.5px; }
.bz-rl span:first-child { color: #6b7280; flex: none; }
.bz-rl span:last-child { text-align: right; font-family: var(--font); font-weight: 600; }
.bz-rtot { font-size: 16px; padding-top: 6px; }
.bz-rtot span { color: #111827 !important; font-weight: 800; letter-spacing: .08em; }
.bz-rtot b { font-size: 24px; font-family: var(--font); }
.bz-rnote { margin: 0; text-align: center; font-size: 12.5px; color: #6b7280; font-family: var(--font); line-height: 1.5; }
.bz-teeth { position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(135deg, #fffdf8 33.3%, transparent 33.3%) 0 0 / 14px 14px, linear-gradient(225deg, #fffdf8 33.3%, transparent 33.3%) 0 0 / 14px 14px; }
.bz-hold { position: relative; overflow: hidden; display: grid; place-items: center; width: 100%; height: 56px; margin-top: 10px; border-radius: 18px; background: #e5484d; color: #fff; font-weight: 800; font-size: 16px; touch-action: none; user-select: none; -webkit-user-select: none; }
.bz-hold i { position: absolute; inset: 0; background: #b4232c; transform: scaleX(0); transform-origin: left; }
.bz-hold span { position: relative; }
.bz-hold:disabled { opacity: .85; }
.plainbtn { display: block; width: 100%; height: 46px; margin-top: 6px; background: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
/* scans */
.sc-tabs { margin: 10px 0 12px; }
.sc-day { margin: 18px 6px 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.sc-row { gap: 12px; }
.sc-time { flex: none; width: 46px; display: grid; justify-items: center; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.sc-time small { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.sc-row .t small { color: var(--ink-3); }
.sc-by { display: inline !important; font-size: inherit !important; font-weight: 700 !important; color: var(--ink-2); }
.sc-row + .sc-row::before { left: 120px; }
/* card history */
.st-now { display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.st-now canvas { width: 100%; border-radius: 14px; box-shadow: 0 12px 26px -18px rgba(0,0,0,.45); }
.st-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-facts > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.st-facts span { font-size: 12px; color: var(--ink-3); }
.st-facts b { font-size: 15px; }
.st-facts b.ok { color: var(--good); }
.st-now .note { margin: 0; }
.st-old { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-o { display: grid; gap: 6px; }
.st-o canvas { width: 100%; border-radius: 12px; filter: saturate(.85); }
.st-o small { color: var(--ink-3); font-size: 12px; text-align: center; }
/* the admin's Switch shop */
.sw-row { display: flex; align-items: center; gap: 12px; width: 100%; margin: -4px 0 18px; padding: 13px 16px; border-radius: 18px; background: #c8460f; color: #fff; text-align: left; }
.sw-row .t { flex: 1; display: grid; gap: 1px; }
.sw-row small { opacity: .75; font-size: 12.5px; }
.sw-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.sw-ic svg, .sw-row .chev svg { width: 18px; height: 18px; }
.sw-list .row[hidden] { display: none; }
/* the boost groups: plain again, colour only on the numbers and the days */
.bz-group, .bz-group.on { --tone: #c8460f; --tone-soft: rgba(200, 70, 15, .07); box-shadow: none; }
.bz-group.on { border-color: #c8460f; }
.bz-group.on .bz-n { color: #d93036; }
.bz-stepper { padding-left: 46px; }
.bz-stepper b { color: #d93036; }
.bz-stepper button { color: var(--ink); background: rgba(200, 70, 15, .07); }
.bz-howmany b { color: #d93036; }
/* the shop's QR */
.qr-box { display: grid; place-items: center; padding: 18px; margin: 4px 0 14px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.qr-img { width: min(100%, 300px); aspect-ratio: 1; display: block; }
.qr-opts { display: grid; gap: 12px; margin-bottom: 16px; }
.qr-row { display: flex; align-items: center; gap: 12px; }
.qr-row > span { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.qr-row .seg { flex: none; width: 170px; }
.qr-row[hidden] { display: none; }
.qr-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; transition: box-shadow .2s; }
.qr-dot.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }

/* points cards: the hint where the drinks slider is, and the amount pad */
.pts-hint { margin: 0 0 14px; text-align: center; color: var(--muted, #6b7280); font-size: 14px; line-height: 1.4; padding: 0 16px; }
.pad-screen.money { font-variant-numeric: tabular-nums; }
.sp-points { margin: 4px 0 12px; min-height: 1.4em; text-align: center; font-weight: 700; color: var(--ok, #138a4b); }

/* ===== Boost and Promos, take 2: calm navy, like writing a message (no red) ===== */
#tabs.nb > button.bt { color: #c8460f; }
#tabs.nb > button.bt i { width: 50px; height: 50px; margin-top: -22px; border-radius: 50%; color: #fff; background: linear-gradient(160deg, #ff7a33, #c8460f); box-shadow: 0 0 0 4px #fff, 0 8px 18px -8px rgba(200, 70, 15, .6); }
#tabs.nb > button.bt i svg { width: 23px; height: 23px; stroke-width: 2; }
#tabs.nb > button.bt.on i { background: linear-gradient(160deg, #ef5f1c, #b8400c); }
.bx { padding: 0; }
.bx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.bx-head .title { margin: 0; }
.bx-hist { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; color: #c8460f; font-size: 13px; font-weight: 700; box-shadow: 0 1px 2px rgba(200, 70, 15, .08); }
.bx-hist svg { width: 16px; height: 16px; }
.bx-hist i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #eef2f8; display: grid; place-items: center; font-size: 11px; }
.bx-lead { margin: 6px 0 14px; color: var(--ink-3, #6b7280); font-size: 14px; line-height: 1.5; }
.bx-free { background: #fff; border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(200, 70, 15, .06); }
.bx-free-t { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 8px; }
.bx-free-t b { color: #c8460f; }
.bx-free-t span { color: var(--ink-3, #6b7280); }
.bx-bar { height: 8px; border-radius: 4px; background: #e8edf5; overflow: hidden; }
.bx-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #3d6af7, #c8460f); }
.bx-live { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.bx-live .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bx-live b { font-size: 14px; color: #c8460f; }
.bx-live small { color: var(--ink-3, #6b7280); font-size: 12.5px; }
.bx-live svg { width: 18px; height: 18px; color: #9aa4b5; }
.bx-dot { width: 9px; height: 9px; border-radius: 50%; background: #3d6af7; flex: none; }
.bx-card { background: #fff; border-radius: 20px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(200, 70, 15, .06); }
.bx-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: #c8460f; margin-bottom: 10px; }
.bx-h .seg { flex: none; width: auto; }
.bx-sub { margin: 12px 0 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3, #6b7280); }
.bx-hint { margin: 8px 0 0; color: var(--ink-3, #6b7280); font-size: 12.5px; line-height: 1.5; }
.bx-none { margin: 8px 0 0; color: var(--ink-3, #6b7280); font-size: 13.5px; text-align: center; }
.bx-groups { display: grid; gap: 6px; }
.bx-group { border-radius: 14px; border: 1px solid #e8edf5; }
.bx-group.on { border-color: #c8460f; background: #f6f8fc; }
.bx-g { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.bx-g .t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.bx-g .t b { font-size: 14px; }
.bx-g .t small { font-size: 12px; color: var(--ink-3, #6b7280); }
.bx-g > b { font-size: 15px; color: #c8460f; }
.bx-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c3cbd8; flex: none; box-sizing: border-box; }
.bx-group.on .bx-radio { border: 5.5px solid #c8460f; }
.bx-step { display: flex; align-items: center; gap: 10px; padding: 0 12px 10px 40px; }
.bx-step button { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; background: #eef2f8; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: #c8460f; }
.bx-step button:disabled { opacity: .35; }
.bx-step b { min-width: 76px; text-align: center; font-size: 15px; }
.bx-many { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; }
.bx-many span:first-child { font-size: 13px; color: var(--ink-3, #6b7280); flex: 1; }
.bx-many b { font-size: 22px; color: #c8460f; }
.bx-range { width: 100%; accent-color: #c8460f; }
.bx-kind { margin-bottom: 12px; }
.bx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-chips button { all: unset; cursor: pointer; padding: 8px 13px; border-radius: 999px; background: #eef2f8; font-size: 13.5px; font-weight: 600; color: #c8460f; }
.bx-chips button.on { background: #c8460f; color: #fff; }
.bx-field { display: grid; gap: 6px; margin-top: 12px; }
.bx-field span { font-size: 12.5px; font-weight: 700; color: var(--ink-3, #6b7280); }
.bx-looks { display: grid; gap: 10px; }
.bx-looks.wide { grid-template-columns: 1fr 1fr; }
.bx-looks.tall { grid-template-columns: repeat(3, 1fr); }
.bx-look { all: unset; box-sizing: border-box; cursor: pointer; position: relative; border-radius: 12px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; background: #f1f4f9; min-height: 60px; }
.bx-look canvas { display: block; width: 100%; height: auto; }
.bx-look i { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: #c8460f; color: #fff; display: none; place-items: center; }
.bx-look i svg { width: 14px; height: 14px; stroke-width: 2.6; }
.bx-look.on { outline-color: #c8460f; }
.bx-look.on i { display: grid; }
.bx-look.sk { aspect-ratio: 16 / 10; animation: none; }
.bx-more { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 14px; border: 1px dashed #c3cbd8; color: #c8460f; font-size: 14px; font-weight: 700; }
.bx-more svg { width: 17px; height: 17px; }
.bx-chat { background: #dfe8f1; border-radius: 16px; padding: 12px; }
.bx-bubble { background: #fff; border-radius: 16px 16px 16px 4px; padding: 8px; display: grid; gap: 8px; }
.bx-bubble canvas { width: 100%; height: auto; border-radius: 10px; }
.bx-bubble textarea { all: unset; box-sizing: border-box; width: 100%; min-height: 84px; padding: 2px 6px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; color: #1d1d1f; }
.bx-btn { display: block; text-align: center; padding: 9px; border-radius: 10px; background: #eef4fb; color: #2481cc; font-size: 14px; font-weight: 600; }
.bx-btn[hidden] { display: none; }
.bx-send { position: fixed; left: 0; right: 0; bottom: calc(88px + var(--bottom, 0px)); padding: 0 16px; display: grid; justify-items: center; gap: 4px; z-index: 20; pointer-events: none; }
.bx-send > * { pointer-events: auto; }
.bx-go { all: unset; box-sizing: border-box; cursor: pointer; width: min(100%, 520px); height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #c8460f; color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 10px 24px -10px rgba(200, 70, 15, .6); }
.bx-go svg { width: 20px; height: 20px; }
.bx-go:disabled { opacity: .45; }
.bx-go.full { width: 100%; margin-top: 14px; }
.bx-send small { background: rgba(255, 255, 255, .92); padding: 2px 10px; border-radius: 999px; font-size: 12.5px; color: #c8460f; font-weight: 600; }
.bx-send small:empty { display: none; }
.bx-sum { display: grid; gap: 0; margin-top: 8px; border-radius: 14px; background: #f6f8fc; padding: 4px 14px; }
.bx-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: .5px solid #e3e8f0; font-size: 14px; }
.bx-sum > div:last-child { border-bottom: 0; }
.bx-sum span { color: var(--ink-3, #6b7280); }
.bx-sum b { text-align: right; }
.bx-wide { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; background: #eef2f8; color: #c8460f; font-size: 14px; font-weight: 700; }
.bx-wide svg { width: 17px; height: 17px; }
.bx-wide.danger { background: #fbefef; color: #a3262c; }
.bx-new { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #c8460f; color: #fff; margin-bottom: 10px; }
.bx-new > svg { width: 22px; height: 22px; flex: none; }
.bx-new span { display: grid; gap: 2px; }
.bx-new b { font-size: 15px; }
.bx-new small { font-size: 12px; opacity: .78; }
.pr-cardrow { display: flex; gap: 12px; align-items: center; }
.pr-cardrow canvas { width: 120px; border-radius: 10px; flex: none; }
.pr-cardrow .grow { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pr-cardrow b { font-size: 15px; }
.pr-cardrow small { font-size: 12.5px; color: var(--ink-3, #6b7280); }
.pr-offer { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: .5px solid #e8edf5; }
.pr-offer canvas { width: 96px; border-radius: 8px; flex: none; }
.pr-offer .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pr-offer b { font-size: 14px; }
.pr-offer small { font-size: 12px; color: var(--ink-3, #6b7280); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-big { display: block; width: 100%; height: auto; border-radius: 14px; }
.pr-how ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; }
.pr-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pr-dates .bx-field { margin-top: 0; }
.pr-rate { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.pr-rate input { width: 72px; text-align: center; }
.pr-goal { padding: 12px 0 0; }
.pr-goal span { flex: 1; font-size: 13.5px; font-weight: 600; }
.bst-chip.ok { background: #e6f5ec; color: #17733f; }
.bx-field input, .bx-field .input { width: 100%; min-width: 0; box-sizing: border-box; }
.pr-dates > * { min-width: 0; }
.embedded .bx-send { bottom: 16px; }

/* ===== take 3: the Boost button stands up out of the bar; a clearer active tab; no bar while typing ===== */
body.typing #tabs { display: none !important; }
#tabs.nb { overflow: visible; }
#tabs.nb > button i { transition: background .2s, color .2s, transform .2s; }
#tabs.nb > button.on { color: #c8460f; }
#tabs.nb > button.on i { background: #e8eef9; color: #c8460f; }
#tabs.nb > button.on i svg { stroke-width: 2.2; }
#tabs.nb > button.on span { font-weight: 800; }
#tabs.nb > button.bt { color: #c8460f; position: relative; }
#tabs.nb > button.bt i { width: 62px; height: 62px; margin-top: -34px; border-radius: 50%; color: #fff; background: radial-gradient(120% 120% at 30% 20%, #ff7a33 0%, #ff7a33 55%, #0f2147 100%); box-shadow: 0 0 0 5px #fff, 0 12px 24px -8px rgba(200, 70, 15, .7); }
#tabs.nb > button.bt i svg { width: 30px; height: 30px; stroke-width: 1.9; }
#tabs.nb > button.bt span { font-weight: 800; }
#tabs.nb > button.bt.on i { background: radial-gradient(120% 120% at 30% 20%, #ff9a5c 0%, #c8460f 55%, #c8460f 100%); box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(240, 180, 60, .55), 0 12px 24px -8px rgba(200, 70, 15, .75); transform: translateY(-2px); }
#tabs.nb > button.bt:active i { transform: scale(.94); }
.embedded #tabs.nb > button.bt i { margin-top: 0; width: 44px; height: 34px; border-radius: 17px; box-shadow: none; }
.embedded #tabs.nb > button.bt i svg { width: 22px; height: 22px; }
/* history: a round clock button */
.bx-hist { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.bx-hist svg { width: 22px; height: 22px; }
/* free boosts: warm gold with the navy */
.bx-free { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff8e8, #fdf0d2); border: 1px solid #f3dca4; box-shadow: none; }
.bx-free .grow { flex: 1; min-width: 0; }
.bx-free-ic { width: 38px; height: 38px; border-radius: 12px; background: #f5b941; color: #fff; display: grid; place-items: center; flex: none; }
.bx-free-ic svg { width: 21px; height: 21px; }
.bx-free-t b { color: #7a4a0c; }
.bx-free-t span { color: #8a6a3a; font-weight: 600; }
.bx-bar { background: #f3e2b8; }
.bx-bar i { background: linear-gradient(90deg, #f5b941, #e08a1e); }
/* Send: at the end of the page, a normal button */
.bx-send { position: static; padding: 6px 0 130px; display: grid; justify-items: center; gap: 8px; pointer-events: auto; }
.embedded .bx-send { padding-bottom: 30px; }
.bx-go { width: 100%; }
.bx-send small { background: none; padding: 0; font-size: 13px; color: var(--ink-3, #6b7280); font-weight: 500; text-align: center; line-height: 1.4; }
.bx-send small b { color: #c8460f; }
/* Ask Admin to design one */
.bx-ask { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #f6f8fc; border: 1.5px solid #e3e8f0; }
.bx-ask .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bx-ask b { font-size: 14px; color: #c8460f; }
.bx-ask small { font-size: 12px; color: var(--ink-3, #6b7280); }
.bx-ask-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: #c8460f; flex: none; }
.bx-ask-ic svg { width: 18px; height: 18px; }
.bx-ask > i { width: 22px; height: 22px; border-radius: 50%; background: #c8460f; color: #fff; display: none; place-items: center; }
.bx-ask > i svg { width: 14px; height: 14px; stroke-width: 2.6; }
.bx-ask.on { border-color: #c8460f; background: #eef2f9; }
.bx-ask.on > i { display: grid; }
.actions.saving { opacity: .55; pointer-events: none; }

/* take 4: the Bonkh mark in the Boost button, room for its label, the tip easy to see */
#tabs.nb > button.bt i .bt-mark { width: 32px; height: 32px; object-fit: contain; display: block; }
#tabs.nb > button.bt span { margin-top: 6px; }
#tabs.nb > button.bt.caught i { animation: btCatch .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes btCatch { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
.embedded #tabs.nb > button.bt i .bt-mark { width: 22px; height: 22px; }
.embedded #tabs.nb > button.bt span { margin-top: 0; }
.bz-nudge { top: auto; bottom: calc(var(--bottom, 0px) + 112px); border-radius: 20px; background: linear-gradient(135deg, #fff8e8, #fdf0d2); border: 1px solid #f3dca4; box-shadow: 0 14px 34px -14px rgba(200, 70, 15, .45); transform: translateY(14px); transition: opacity .35s, transform .45s cubic-bezier(.2,1.3,.4,1); }
.bz-nudge.in { transform: translateY(0); }
.bz-nudge-in { padding: 12px 12px 12px 12px; }
.bz-nudge b { white-space: normal; overflow: visible; text-overflow: clip; font-size: 15px; line-height: 1.35; color: #c8460f; }
.bz-nudge small { color: #a0640f; font-size: 13px; font-weight: 700; }
.bz-nudge-ic { width: 42px; height: 42px; border-radius: 13px; background: #f5b941; color: #fff; }
.bz-nudge-ic svg { width: 22px; height: 22px; }
.bz-nudge-go { width: 32px; height: 32px; background: #c8460f; color: #fff; }
.embedded .bz-nudge { bottom: auto; top: calc(var(--top, 0px) + 96px); }
/* the receipt prints out from the top */
.bx-print { animation: rcptPrint .7s cubic-bezier(.2,.8,.3,1) both; transform-origin: top center; }
@keyframes rcptPrint { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 -20px 0); transform: none; } }
.bz-rtot span, .bz-rtot b { font-size: 16px !important; color: #c8460f !important; font-weight: 800 !important; }
.bx-morerow { display: flex; gap: 8px; margin-top: 10px; }
.bx-morerow .bx-more { margin-top: 0; flex: 1; }
.bx-morerow .bx-prev { flex: 0 0 auto; width: auto; padding: 11px 16px; }

/* ===== take 5: no gold; the active Boost button; the tip on the Report; the pay page ===== */
#tabs.nb > button.bt.on i { background: radial-gradient(120% 120% at 30% 20%, #ff9a5c 0%, #ef5f1c 50%, #c8460f 100%); box-shadow: 0 0 0 5px #fff, 0 14px 26px -8px rgba(200, 70, 140, .75); transform: translateY(-3px) scale(1.04); }
#tabs.nb > button.bt.on span { color: #c8460f; }
#tabs.nb > button.bt::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px; border-radius: 50%; background: #c8460f; transform: translateX(-50%) scale(0); transition: transform .2s; }
#tabs.nb > button.bt.on::after { transform: translateX(-50%) scale(1); }
/* free boosts and tips: a bright, friendly blue next to the navy */
.bx-free { background: linear-gradient(135deg, #eef4ff, #e3ecff); border: 1px solid #d3e0fb; }
.bx-free-ic { background: linear-gradient(160deg, #ff8a45, #ef5f1c); }
.bx-free-t b { color: #c8460f; }
.bx-free-t span { color: #4a5f86; }
.bx-bar { background: #d5e1f8; }
.bx-bar i { background: linear-gradient(90deg, #ff8a45, #ef5f1c); }
.rp-tip { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0 0 14px; border-radius: 20px; background: linear-gradient(135deg, #ff7a33, #c8460f); color: #fff; box-shadow: 0 14px 28px -16px rgba(200, 70, 15, .7); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.rp-tip.in { opacity: 1; transform: none; }
.rp-tip .t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rp-tip b { font-size: 15.5px; line-height: 1.35; font-weight: 700; }
.rp-tip small { font-size: 13px; color: #ffe08a; font-weight: 600; }
.rp-tip-ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; flex: none; }
.rp-tip-ic img { width: 26px; height: 26px; }
.rp-tip-go { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #c8460f; display: grid; place-items: center; flex: none; }
.rp-tip-go svg { width: 16px; height: 16px; }
.rp-ghost { position: fixed; z-index: 70; margin: 0; pointer-events: none; transition: transform .8s cubic-bezier(.55, 0, .35, 1), opacity .8s ease-in; transform-origin: center; }
/* the pay page */
.pp { padding: 0 0 120px; display: grid; gap: 14px; }
.pp-head { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.pp-head .grow { display: grid; gap: 2px; }
.pp-head b { font-size: 17px; color: #c8460f; }
.pp-head small { font-size: 13px; color: var(--ink-3, #6b7280); }
.pp-mark { width: 42px; height: 42px; border-radius: 13px; background: #c8460f; display: grid; place-items: center; flex: none; }
.pp-mark img { width: 24px; height: 24px; }
.pp-amount { background: #fff; border-radius: 22px; padding: 18px 18px 8px; display: grid; justify-items: center; gap: 2px; box-shadow: 0 1px 2px rgba(200, 70, 15, .06); }
.pp-amount small { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3, #6b7280); font-weight: 700; }
.pp-amount > b { font-size: 48px; line-height: 1.05; color: #c8460f; font-weight: 800; }
.pp-detail { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; margin-top: 12px; padding: 12px 2px 6px; border-top: 1px dashed #dfe5ee; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-2, #374151); }
.pp-detail span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-detail em { font-style: normal; display: inline-flex; align-items: center; gap: 2px; color: #c8460f; font-weight: 700; flex: none; }
.pp-detail em svg { width: 15px; height: 15px; }
.pp-qr { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgba(200, 70, 15, .06), 0 18px 34px -24px rgba(200, 70, 15, .4); }
.pp-qr-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #e2232f; }
.pp-qr-top img { height: 22px; filter: brightness(0) invert(1); }
.pp-exp { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 13px; background: rgba(255, 255, 255, .18); padding: 4px 10px; border-radius: 999px; }
.pp-exp svg { width: 14px; height: 14px; }
.pp-exp.low { background: #fff; color: #e2232f; }
.pp-qr-img { width: min(76%, 280px); margin: 18px auto 8px; aspect-ratio: 1 / 1; }
.pp-qr-img img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.pp-wait { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px 16px; font-size: 13.5px; color: var(--ink-3, #6b7280); font-weight: 600; }
.pp-wait i { width: 8px; height: 8px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 0 rgba(47, 179, 107, .5); animation: ppPulse 1.6s ease-out infinite; }
@keyframes ppPulse { 0% { box-shadow: 0 0 0 0 rgba(47, 179, 107, .5); } 100% { box-shadow: 0 0 0 10px rgba(47, 179, 107, 0); } }
.pp-save { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: #c8460f; color: #fff; box-shadow: 0 12px 24px -14px rgba(200, 70, 15, .7); }
.pp-save .grow { flex: 1; display: grid; gap: 3px; }
.pp-save b { font-size: 16.5px; }
.pp-save small { font-size: 13px; color: #ffd9b8; line-height: 1.4; }
.pp-save-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex: none; }
.pp-save-ic svg { width: 24px; height: 24px; }
.pp-hint { margin: -4px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3, #6b7280); }
.pp-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 18px; font-size: 14px; }
.pp-note span { display: grid; gap: 3px; }
.pp-note svg { width: 20px; height: 20px; flex: none; }
.pp-note.bad { background: #fdeeee; color: #a3262c; }
.pp-note.warn { background: #fff6e6; color: #8a5a0c; }
.pp-cancel { all: unset; box-sizing: border-box; cursor: pointer; justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 11px 18px; border-radius: 999px; border: 1px solid #ecd2d3; color: #a3262c; font-size: 14px; font-weight: 700; background: #fff; }
.pp-cancel svg { width: 16px; height: 16px; }
.pp-big { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 18px; background: #c8460f; color: #fff; font-size: 16.5px; font-weight: 800; box-shadow: 0 12px 24px -14px rgba(200, 70, 15, .7); }
.pp-big svg { width: 20px; height: 20px; }
.pp-paid { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 6px 120px; }
.pp-tick { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(120% 120% at 30% 20%, #4cd18a, #1f9a5a); box-shadow: 0 0 0 10px #e3f6ec, 0 18px 30px -14px rgba(31, 154, 90, .7); animation: ppPop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.pp-tick svg { width: 52px; height: 52px; stroke-width: 2.6; }
@keyframes ppPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.pp-paid h1 { margin: 18px 0 0; font-size: 36px; line-height: 1.1; color: #c8460f; }
.pp-paid-amt { margin: 0; font-size: 20px; font-weight: 800; color: #1f9a5a; }
.pp-paid p { margin: 0; color: var(--ink-2, #374151); font-size: 15px; line-height: 1.5; max-width: 300px; }
.pp-paid .pp-big { margin-top: 26px; }
.pp-card { display: block; width: 100%; height: auto; border-radius: 10px; margin: 14px 0 2px; }
.pp-sheet-btns { display: flex; gap: 10px; }
.pp-edit, .pp-close { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; height: 50px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; }
.pp-edit { background: #c8460f; color: #fff; }
.pp-edit svg { width: 17px; height: 17px; }
.pp-close { background: #eef2f8; color: #c8460f; }
.pp-qr-img { position: relative; }
.pp-qr-mid { position: absolute; left: 50%; top: 50%; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #c8460f; border: 3px solid #fff; display: grid; place-items: center; }
.pp-qr-mid img { width: 58% !important; height: auto !important; }

/* Boost: the owner's photo */
.bx-photo { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1.5px dashed #c3cbd8; background: #f8fafd; margin-bottom: 10px; }
.bx-photo.has { border-style: solid; border-color: #d7deea; background: #fff; }
.bx-photo .grow { flex: 1; display: grid; gap: 2px; }
.bx-photo b { font-size: 15px; color: #c8460f; }
.bx-photo small { font-size: 12.5px; color: var(--ink-3, #6b7280); }
.bx-photo-ic { width: 56px; height: 56px; border-radius: 12px; background: #eef2f8; color: #c8460f; display: grid; place-items: center; overflow: hidden; flex: none; }
.bx-photo-ic svg { width: 24px; height: 24px; }
.bx-photo-ic img { width: 100%; height: 100%; object-fit: cover; }
.bx-switch-row { display: flex; align-items: center; gap: 12px; padding: 4px 2px 10px; }
.bx-switch-row .grow { flex: 1; display: grid; gap: 2px; }
.bx-switch-row b { font-size: 14.5px; }
.bx-switch-row small { font-size: 12.5px; color: var(--ink-3, #6b7280); }
.bx-kind button { font-size: 14px; }

/* ---------- her website on a computer (/app): a header with Log out, the pages wider ---------- */
.web body { background: #f6f1e7; }
.webhead { position: fixed; top: 0; left: 0; right: 0; z-index: 25; height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; pointer-events: none; }
.webhead > * { pointer-events: auto; }
.wh-shop { display: flex; align-items: center; gap: 12px; }
.wh-shop img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow); background: #fff; }
.wh-shop b { display: block; font-size: 16px; }
.wh-shop small { display: block; color: var(--ink-3); font-size: 12.5px; }
.wh-out { border-radius: 12px; padding: 10px 16px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.web #app { max-width: 1040px; padding-left: 28px; padding-right: 28px; }
.web .sheet { max-width: 620px; border-radius: 24px; bottom: 24px; }
@media (max-width: 1060px) { .wh-shop span { display: none; } }
@media (max-width: 700px) { .webhead { height: 64px; padding: 0 12px; } .web #app { padding-top: 132px; } .web #tabs { top: 70px !important; } }

/* one page inside the computer dashboard: white, no tabs, no header */
.embed body { background: #fff; }
.embed #tabs, .embed .webhead, .embed #band { display: none !important; }
.embed #app { max-width: none; padding: 18px 22px 40px !important; }
.embed .sheet { max-width: 560px; }
.embed #ovBox { display: none; }

/* ===== 2026-11-27: the scan screen fits one phone screen. The dock's real height (--dockH, measured) is
   kept free; with a result the shop shrinks to one line and the customer's card takes the room left; Group
   QR is a small round button at the top right. */
.scan-page { position: relative; padding-bottom: calc(var(--dockH, 205px) + var(--bottom) + 8px) !important; }
.group-btn { display: none !important; }
.grp-mini { position: absolute; top: 2px; right: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-2); font-size: 11px; font-weight: 600; }
.grp-mini svg { width: 42px; height: 42px; padding: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .07), 0 6px 16px -8px rgba(15, 23, 42, .35); color: var(--brand); }
.grp-mini:active svg { transform: scale(.92); }
.result.mini.big { gap: 8px; padding: 10px 10px 8px; }
.result.mini.big .r-info { min-height: 0; }
.result.vused { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; box-shadow: 0 0 0 2px #16a34a inset, var(--lift); }
.vu-tick { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; }
.vu-tick svg { width: 28px; height: 28px; stroke-width: 3; }
.vu-t { display: grid; gap: 2px; } .vu-t small { color: var(--ink-2); font-size: 13px; } .vu-t b { font-size: 24px; letter-spacing: -.02em; } .vu-t b span { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.af-card-pic { display: block; width: 100%; max-width: 300px; margin: 0 auto 14px; aspect-ratio: 16 / 10; border-radius: 14px; box-shadow: 0 12px 24px -12px rgba(15, 23, 42, .45); }

/* 2026-11-27 (2): the shop's big logo with its name under it stays; the room left for the customer's card
   is measured (--room: from under the shop to the top of the buttons) and the card, with a compact line
   under it, fits inside it */
.scan-page .shop-hero { margin: 3vh 0 10px; }
.result.mini.big { gap: 6px; padding: 8px 8px 6px; border-radius: 20px; }
.result.mini.big .mini-card { width: auto; max-width: min(100%, 360px, calc((var(--room, 420px) - 78px) * 1.6)); border-radius: 13px; }
.result.mini.big .r-info { padding: 0 6px; min-height: 0; }
.result.mini.big .t b { font-size: 16px; } .result.mini.big .t small { font-size: 12.5px; }
.result.mini.big .r-acts button { width: 30px; height: 30px; }
.result.mini.big .r-acts svg { width: 14px; height: 14px; }
.result.mini.big .plus { font-size: 20px; }
.result.mini.big .next-free { padding: 6px 10px; font-size: 12.5px; }

/* ===== the staff QR and the stamping (as bonkh, in her colours) ===== */
/* ---- the stamp spot (stampSpot.js): the staff's QR, and the stamp landing in its place ---- */
.view.ss-view { display: flex; flex-direction: column; min-height: calc(100vh - var(--top, 0px) - 14px); min-height: calc(var(--app-h, 100vh) - var(--top, 0px) - 14px); } #app:has(.ss-view) { padding-bottom: 0; }
#app.ss-on { padding-bottom: 0; } #app.ss-on, .ss-over { overflow-x: hidden; } #app:has(.ss-view), .ss-over { overflow-x: clip; } .ss { --n: #3a2412; --g: #1f9a5b; --s: min(100%, 420px, 47vh); --s: min(100%, 420px, max(190px, calc(var(--app-h, 100vh) - var(--top, 0px) - 330px))); flex: 1; display: flex; flex-direction: column; align-items: center; color: var(--n); padding-bottom: calc(14px + var(--bottom, 0px)); }
.ss-say { flex: 1 1 0; display: grid; place-content: center; min-height: 96px; padding: 4px 0; text-align: center; }
.ss-say h1 { margin: 0; font-size: clamp(27px, 9vw, 37px); line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.ss[data-s=ok] h1, .ss[data-s=full] h1 { color: var(--g); }
.ss-spot { position: relative; width: var(--s); aspect-ratio: 1; flex: none; } .ss-spot > * { position: absolute; inset: 0; }
.ss-edge { border-radius: 40px; background: #fff; box-shadow: 0 1px 2px rgba(58, 36, 18, .05), 0 22px 48px -22px rgba(58, 36, 18, .28); }
.ss-qr { padding: 6.6%; } .ss-qr svg { display: block; width: 100%; height: 100%; }
.ss-mid { left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; } .ss-mid img { max-width: 76%; max-height: 72%; object-fit: contain; border-radius: 18%; }
.ss[data-s=load] .ss-qr, .ss[data-s=ok] .ss-qr, .ss[data-s=full] .ss-qr, .ss[data-s=note] .ss-qr, .ss[data-s=wait] .ss-qr { visibility: hidden; }
/* saving: a pale empty stamp with the logo, the words and the card number; then the ink mark in the same place. Nothing moves or fades here: it flickered inside Telegram */
.ss[data-s=load] .ss-mid, .ss[data-s=ok] .ss-mid, .ss[data-s=full] .ss-mid, .ss[data-s=note] .ss-mid { visibility: hidden; }
.ss-wait { display: none; padding: 8%; } .ss[data-s=load] .ss-wait { display: block; } .ss-wait > div { box-sizing: border-box; width: 100%; height: 100%; border: 6px solid #f3e3d6; border-radius: 50%; box-shadow: inset 0 0 0 9px #fff, inset 0 0 0 11px #f8ede3; display: grid; align-content: center; justify-items: center; text-align: center; color: var(--n); container-type: inline-size; } .ss-wait img { width: 25cqw; height: 22cqw; object-fit: contain; border-radius: 3cqw; } .ss-wait b { margin-top: 3cqw; font-size: 9.4cqw; line-height: 1.5; font-weight: 700; } .ss-wait span { font-size: 13.5cqw; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; } .ss-wait em { display: flex; gap: 3cqw; margin-top: 5cqw; } .ss-wait em i { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: #ef5f1c; } .ss-wait em i:nth-child(2) { background: #f79a6b; } .ss-wait em i:nth-child(3) { background: #fbd9c6; }
.ss-ink { position: absolute; inset: 8%; transform: rotate(var(--tilt)); } .ss-ink svg { display: block; width: 100%; height: 100%; } .ss-ink text { fill: currentColor; font-family: inherit; } .ss-ink .r { font-weight: 700; letter-spacing: 2.4px; } .ss-ink .b { font-weight: 800; letter-spacing: -2px; } .ss-ink .s { font-weight: 700; letter-spacing: 1.6px; } .ss-ink .km { letter-spacing: 0; }
.ss-note { display: none; place-items: center; padding: 10%; } .ss[data-s=note] .ss-note { display: grid; } .ss-note button { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 8px; text-align: center; } .ss-note svg { width: 60px; height: 60px; padding: 15px; box-sizing: border-box; border-radius: 50%; background: #fdeee4; } .ss-note b { font-size: 19px; } .ss-note small { font-size: 14px; color: var(--ink-2); } .ss-bad { color: var(--bad); text-align: center; font-size: 16px; line-height: 1.5; }
.ss-bot { flex: 1.15 1 0; width: 100%; max-width: 420px; display: grid; align-content: center; justify-items: center; min-height: 196px; padding-top: 10px; }
.ss-step { width: 100%; display: grid; grid-template-columns: 78px 1fr 78px; align-items: center; text-align: center; } .ss-step button { all: unset; cursor: pointer; width: 78px; height: 78px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 600; box-shadow: 0 0 0 1px rgba(58, 36, 18, .06), 0 10px 24px -12px rgba(58, 36, 18, .28); } .ss-step button:active { transform: scale(.95); } .ss-step div { display: flex; align-items: baseline; justify-content: center; gap: 8px; } .ss-step b { font-size: 66px; line-height: 1; font-weight: 800; } .ss-step span { font-size: 21px; font-weight: 600; }
.ss-step.fixed { min-height: 78px; }
.ss-step.fixed div { grid-column: 2; }
.ss-no { font-size: 36px; line-height: 1.2; font-weight: 800; }
.ss-who { display: grid; justify-items: center; gap: 6px; } .ss-who b { font-size: 52px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; } .ss-who i { font-style: normal; font-weight: 600; color: #bda99b; } .ss-who span { font-size: 19px; font-weight: 600; color: #8a7566; }
.ss-ask { width: 100%; display: grid; gap: 9px; margin-top: 12px; } .ss-ask button { all: unset; box-sizing: border-box; cursor: pointer; height: 58px; border-radius: 19px; text-align: center; font-size: 18px; font-weight: 700; } .ss-ask .g { background: var(--g); color: #fff; } .ss-ask .k { background: #f6ece2; color: var(--n); } .saving { opacity: .65; } .ss-ask button:disabled:not(.saving), .ask-free .af-btn:disabled:not(.saving) { opacity: .35; }
.ss-over { position: fixed; inset: 0; z-index: 60; display: flex; padding: calc(var(--top, 0px) + 14px) 18px 0; background: radial-gradient(120% 60% at 0% 0%, #eef3ff 0%, transparent 60%), #f5f6f8; } .ss-over .ss { max-width: 560px; margin: 0 auto; }
.af-done { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; } .af-done i { width: 92px; height: 92px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center; background: #1f9a5b; color: #fff; } .af-done i svg { width: 46px; height: 46px; stroke-width: 3; } .af-done p { font-weight: 600; } .af-card:has(.af-done) { box-sizing: border-box; }
/* Group: how many people (3 to start, − and +, tap the number to type it) */
.gp-h { text-align: center; margin: 6px 0 22px !important; }
.gp-step { margin: 0 auto 28px; max-width: 340px; }
.gp-step button:disabled { opacity: .35; }
.gp-n { cursor: pointer; min-width: 0; }
.gp-in { width: 120px; font: inherit; font-size: 60px; font-weight: 800; text-align: center; border: 0; border-bottom: 3px solid currentColor; background: transparent; color: inherit; outline: none; -moz-appearance: textfield; }
.gp-in::-webkit-outer-spin-button, .gp-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gp-go { height: 56px; font-size: 17px; }
/* 2026-12-05: the line under the scanned card at one even size: the name, the count (4/10) and what was
   added (+1) all 19px and bold, the pencil and undo a medium round button */
.result.mini.big .r-info { padding: 4px 6px 2px; }
.result.mini.big .r-info .t { align-items: center; gap: 4px 12px; }
.result.mini.big .t b { font-size: 19px; font-weight: 700; }
.r-count { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--ink, #14284b); font-variant-numeric: tabular-nums; }
.r-count i { font-style: normal; font-size: inherit; font-weight: inherit; color: var(--ink-3, #8a93a3); }
.result.mini.big .plus { font-size: 32px; font-weight: 800; line-height: 1; }
.result.mini.big .r-acts { gap: 8px; }
.result.mini.big .r-acts button { width: 36px; height: 36px; }
.result.mini.big .r-acts svg { width: 17px; height: 17px; }

/* 2026-12-06: every phone (an old iPhone 7/8 on an older iOS, small Androids): the QR screen's title, QR and
   the number with − and + always fit in the height that shows (--app-h, from Telegram); no newer CSS needed */
@supports not (aspect-ratio: 1) {
  .ss-spot { height: 0; padding-bottom: var(--s); }
  .ss-mid { height: 23%; }
}
.ss-spot > * { top: 0; right: 0; bottom: 0; left: 0; }
@media (max-height: 720px) {
  .ss-say { min-height: 64px; } .ss-say h1 { font-size: clamp(23px, 7.4vw, 30px); line-height: 1.3; }
  .ss-bot { min-height: 150px; padding-top: 6px; }
  .ss-step { grid-template-columns: 64px 1fr 64px; } .ss-step button { width: 64px; height: 64px; font-size: 30px; } .ss-step b { font-size: 54px; }
}
@media (max-height: 600px) {
  .ss-say { min-height: 52px; } .ss-bot { min-height: 124px; }
  .ss-step { grid-template-columns: 56px 1fr 56px; } .ss-step button { width: 56px; height: 56px; } .ss-step b { font-size: 46px; }
}

/* 2026-12-06: Give now / Keep for later on the staff's QR: the QR area makes room for the two buttons */
.ss.ask { --s: min(100%, 420px, max(150px, calc(var(--app-h, 100vh) - var(--top, 0px) - 480px))); }
.ss.ask .ss-bot { min-height: 0; }
@media (max-height: 620px) {
  .ss.ask { --s: min(100%, 420px, max(120px, calc(var(--app-h, 100vh) - var(--top, 0px) - 470px))); }
  .ss.ask .ss-say { min-height: 44px; } .ss.ask .ss-who b { font-size: 38px; } .ss.ask .ss-ask { gap: 7px; margin-top: 8px; } .ss.ask .ss-ask button { height: 50px; }
}

/* the staff website (/staff): not signed in, the home-screen steps, the camera */
.web-in { max-width: 420px; margin: 0 auto; padding: 12vh 6px 40px; color: var(--ink, #3a2412); }
.web-in-logo { display: block; width: 64px; height: 64px; margin: 0 0 22px; border-radius: 18px; }
.web-in h1 { margin: 0 0 18px; font-size: 30px; line-height: 1.25; letter-spacing: -.02em; }
.web-in ol, .web-steps { margin: 0; padding: 0 0 0 22px; display: grid; gap: 12px; font-size: 17px; line-height: 1.45; }
.web-in-note { margin: 22px 0 0; font-size: 15px; color: #64708a; }
.web-in-bad { margin: 0 0 16px; padding: 10px 0; border-top: 1px solid #f0c9c9; border-bottom: 1px solid #f0c9c9; color: #b42318; font-size: 15px; }
.web-steps { margin: 14px 0 4px; }
.cam { position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 90; background: #000; display: flex; flex-direction: column; }
.cam video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-frame { position: absolute; left: 50%; top: 42%; width: min(72vw, 300px); height: min(72vw, 300px); transform: translate(-50%, -50%); border-radius: 28px; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .45); }
.cam-frame i { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 3px solid #fff; border-radius: 28px; }
.cam-say { position: absolute; left: 0; right: 0; top: calc(42% - min(36vw, 150px) - 64px); margin: 0; text-align: center; color: #fff; font-size: 18px; font-weight: 600; padding: 0 24px; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px)); }
.cam-bar button { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 6px; color: #fff; font-size: 14px; font-weight: 600; min-width: 96px; }
.cam-bar svg { width: 30px; height: 30px; padding: 14px; border-radius: 50%; background: rgba(255, 255, 255, .16); box-sizing: content-box; }
.web-in-lead { margin: 0 0 22px; font-size: 17px; line-height: 1.5; color: #3d4a63; }
.web-tg { height: 56px; font-size: 17px; gap: 10px; } .web-tg svg { width: 20px; height: 20px; }
.web-wait { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #e3e7ee; border-bottom: 1px solid #e3e7ee; }
.web-wait b { display: block; font-size: 17px; } .web-wait small { display: block; font-size: 14px; color: #64708a; margin-top: 2px; }
.web-in-cancel { all: unset; cursor: pointer; display: block; margin: 14px auto 0; color: #64708a; font-size: 15px; }
.web-in-tip { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; box-sizing: border-box; margin-top: 28px; padding: 14px 0; border-top: 1px solid #e3e7ee; color: #d9531a; font-size: 15.5px; font-weight: 600; } .web-in-tip svg { width: 16px; height: 16px; }
/* the staff website: the scan, Show QR and group screens stay still (no moving up and down with a finger);
   sheets and the other pages still scroll */
html.web-lock, html.web-lock body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.web-lock body { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; }
html.web-lock #app { height: var(--app-h, 100vh); overflow: hidden; box-sizing: border-box; }
html.web-lock .scan-page { min-height: 0; }
.web-in-by { margin: -10px 0 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #9a8a7a; }
.web-in-logo { border-radius: 50%; }
