/* Central Mall app prototype. 390px phone design.
   > 480px wide: a centred phone frame. <= 480px: full screen. html.bare: full screen, no chrome. */

:root {
  --app-bg: #F4F6FA;
  --card: #FFFFFF;
  --line: rgba(10, 42, 94, .09);
  --ok: #0F7A5A;
  --ok-soft: #E3F6EE;
  --radius: 18px;
  --tab-h: 64px;
  --chrome-top: 0px;     /* room for the fixed back link on a real phone */
  --chrome-bottom: 0px;  /* room for the fixed demo chip on a real phone */
}

html, body { height: 100%; }
body {
  background:
    radial-gradient(900px 600px at 78% 12%, rgba(30, 200, 224, .16), transparent 60%),
    radial-gradient(800px 640px at 12% 92%, rgba(10, 42, 94, .12), transparent 62%),
    #E9EEF5;
  overflow: hidden;
}
.noscript { position: fixed; inset: auto 16px 50% 16px; margin: 0; padding: 16px; border-radius: 14px; background: var(--card); color: var(--heading); text-align: center; font-weight: 500; z-index: 5; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- frame ---------- */
.stage { height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 28px; }
.phone {
  position: relative; width: 414px; height: min(868px, calc(100dvh - 56px)); padding: 12px;
  border-radius: 62px; background: linear-gradient(145deg, #1B2638, #0B1220 55%, #172234);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .08),
    0 0 0 1px rgba(6, 28, 64, .25),
    0 2px 4px rgba(6, 28, 64, .12),
    0 40px 80px -30px rgba(6, 28, 64, .55),
    0 90px 140px -70px rgba(6, 28, 64, .45);
}
.phone::before, .phone::after { /* side buttons */
  content: ''; position: absolute; width: 4px; border-radius: 2px; background: #1B2638;
}
.phone::before { left: -3px; top: 168px; height: 64px; box-shadow: 0 84px 0 #1B2638; }
.phone::after { right: -3px; top: 220px; height: 96px; }
.screen {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 50px; background: var(--app-bg); isolation: isolate;
}

.statusbar {
  flex: none; height: 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 4px 30px 0 34px; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
}
.sb-island { width: 120px; height: 34px; border-radius: 20px; background: #05080F; }
.sb-icons { justify-self: end; display: inline-flex; gap: 6px; align-items: center; }
.sb-icons svg { fill: currentColor; }

/* real phone: fill the screen, leave room for the fixed chrome */
@media (max-width: 480px) {
  .stage { padding: 0; }
  .phone { width: 100%; height: 100dvh; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .phone::before, .phone::after { display: none; }
  .screen { border-radius: 0; }
  html:not(.bare) { --chrome-top: 64px; --chrome-bottom: 58px; }
  html:not(.bare) .statusbar { height: var(--chrome-top); }
  html:not(.bare) .statusbar > * { visibility: hidden; }
}
/* bare: the Work library frames the capture itself */
html.bare body { background: var(--app-bg); }
html.bare .stage { padding: 0; }
html.bare .phone { width: 100%; height: 100dvh; padding: 0; border-radius: 0; background: none; box-shadow: none; }
html.bare .phone::before, html.bare .phone::after { display: none; }
html.bare .screen { border-radius: 0; }
html.bare .statusbar { padding-inline: 28px 26px; }

/* ---------- app shell ---------- */
.app { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.app::-webkit-scrollbar { display: none; }
.content { padding: 4px 20px 28px; }

.appbar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 6px 20px 6px; background: color-mix(in srgb, var(--app-bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.appbar-title { flex: 1; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: var(--heading); line-height: 1.1; }
.appbar-title:focus { outline: none; }
.appbar-title:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 4px; }
.logo { display: inline-flex; flex: none; }
.logo svg { width: 34px; height: 34px; display: block; }
.logo.xl svg { width: 64px; height: 64px; }
[data-screen="home"] .appbar-title { font-size: 20px; }

.points-pill {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--card); color: var(--heading); font-weight: 600; font-size: 14px; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px -12px rgba(6, 28, 64, .5);
  font-variant-numeric: tabular-nums;
}
.pp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px var(--accent-soft); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 50%;
  color: inherit; text-decoration: none;
}
.icon-btn svg, .chev, .check { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons and focus ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 16px; font: 600 16px/1 var(--font-body); cursor: pointer; text-decoration: none;
  transition: transform .16s var(--ease), background-color .25s var(--ease);
}
.btn:active, .claim-btn:active, .redeem-btn:active, .chip:active, .seg-btn:active, .till-cta:active, .quick-item:active { transform: scale(.97); }
.btn-primary { background: var(--cyan); color: var(--deep); }
.btn-block { width: 100%; }
.btn-ghost { min-height: 44px; background: var(--card); color: var(--heading); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
:where(.app, .tabbar) :is(a, button, input):focus-visible { outline: 2.5px solid var(--accent-ink); outline-offset: 2px; }
.signin :is(a, button, input):focus-visible { outline-color: var(--cyan); }
[data-screen="till"] .appbar :is(a):focus-visible { outline-color: var(--cyan); }

/* ---------- sign in ---------- */
body[data-screen="signin"] .screen {
  background:
    radial-gradient(420px 360px at 85% 0%, rgba(30, 200, 224, .32), transparent 65%),
    radial-gradient(360px 300px at 0% 55%, rgba(30, 200, 224, .12), transparent 70%),
    linear-gradient(180deg, var(--deep), var(--navy));
}
body[data-screen="signin"] .statusbar, body[data-screen="till"] .statusbar { color: #FFFFFF; }
.signin { min-height: 100%; display: flex; flex-direction: column; color: #FFFFFF; }
.signin-hero { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 28px 28px; }
.signin-brand { margin: 22px 0 8px; font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.signin-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.signin-title:focus { outline: none; }
.signin-sub { margin: 14px 0 0; color: rgba(255, 255, 255, .72); font-size: 16px; max-width: 30ch; }
.signin-form { padding: 24px 24px 28px; margin: 0 12px 30px; border-radius: 28px; background: var(--card); color: var(--ink); }
.field-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--heading); }
.phone-field { display: flex; align-items: center; height: 54px; margin-bottom: 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.phone-field:focus-within { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.phone-field .cc { padding: 0 12px 0 16px; margin-right: 4px; border-right: 1px solid var(--line); font-weight: 600; color: var(--heading); }
.phone-field input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: none; font: 500 17px var(--font-body); color: var(--ink); letter-spacing: .02em; }
.phone-field input:focus-visible { outline: none; }
.signin .btn-primary { background: var(--navy); color: #FFFFFF; }
.signin .btn-primary:focus-visible { outline-color: var(--accent-ink); outline-offset: 3px; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.fine.center { text-align: center; margin-top: 18px; }
@media (hover: hover) { .signin .btn-primary:hover { background: var(--btn-bg-hover); } }

/* ---------- home ---------- */
.greeting { margin: 2px 0 14px; color: var(--muted); font-size: 15px; }
.greeting strong { color: var(--heading); font-weight: 600; }
.balance-card {
  position: relative; overflow: hidden; padding: 20px 20px 18px; border-radius: 24px; color: #FFFFFF;
  background:
    radial-gradient(280px 200px at 100% 0%, rgba(30, 200, 224, .45), transparent 70%),
    radial-gradient(240px 180px at 0% 100%, rgba(30, 200, 224, .14), transparent 70%),
    linear-gradient(150deg, #0E3677, var(--navy) 45%, var(--deep));
  box-shadow: 0 24px 40px -24px rgba(6, 28, 64, .75);
}
.balance-card::after { /* the C mark, large and faint */
  content: ''; position: absolute; right: -36px; bottom: -48px; width: 170px; height: 170px; border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, .05); border-right-color: transparent; transform: rotate(-20deg);
}
.bc-top { display: flex; justify-content: space-between; align-items: center; }
.bc-brand { font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.tier-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-weight: 600; font-size: 12px; letter-spacing: .02em; }
.tier-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tier-silver { background: rgba(255, 255, 255, .14); color: #E4EBF5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.tier-bronze { background: rgba(214, 140, 80, .2); color: #F4C59C; }
.tier-gold { background: rgba(240, 196, 80, .2); color: #F7D77A; }
.tier-pill.on-light.tier-silver { background: var(--surface-2); color: var(--heading); box-shadow: inset 0 0 0 1px var(--line); }
.tier-pill.on-light.tier-silver::before { background: #9AA8BF; }
.bc-label { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, .66); }
.bc-points { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 50px; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bc-unit { margin-left: 6px; font-family: var(--font-body); font-weight: 500; font-size: 17px; letter-spacing: 0; color: rgba(255, 255, 255, .7); }
.bc-progress { margin-top: 14px; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7FE6F3, var(--cyan)); }
.bc-hint { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .78); }
.bc-foot { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .7); }
.bc-num { font-variant-numeric: tabular-nums; letter-spacing: .06em; }

.till-cta {
  display: flex; align-items: center; gap: 14px; min-height: 68px; margin-top: 14px; padding: 12px 16px 12px 12px;
  border-radius: 20px; background: var(--cyan); color: var(--deep); text-decoration: none;
  box-shadow: 0 14px 28px -18px rgba(11, 127, 146, .9);
  transition: transform .16s var(--ease);
}
.till-cta-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--deep); color: var(--cyan); }
.till-cta-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.till-cta-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.till-cta-text strong { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.till-cta-text span { font-size: 13px; color: rgba(6, 28, 64, .75); }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.quick-item {
  display: flex; flex-direction: column; gap: 2px; min-height: 76px; padding: 14px; border-radius: 18px;
  background: var(--card); color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.3;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .16s var(--ease);
}
.quick-item strong { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--heading); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 10px; }
.section-head h2, .ready h2, .till-apply h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--heading); }
.link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px -4px; padding: 0 4px; color: var(--accent-ink); font-weight: 600; font-size: 14px; text-decoration: none; }

/* ---------- category icons ---------- */
.cat-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; }
.cat-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tone-rose { background: #FDECEF; color: #B23A57; }
.tone-amber { background: #FFF2DE; color: #A35A00; }
.tone-blue { background: #E6EEFC; color: #2350A8; }
.tone-teal { background: #DFF6F8; color: #0B7F92; }
.tone-violet { background: #F0EAFC; color: #6A3FB5; }
.tone-sun { background: #FFF6CF; color: #8A6400; }
.tone-green { background: #E3F6EE; color: #0F7A5A; }
.tone-navy { background: #E3E9F4; color: var(--navy); }

/* ---------- offers ---------- */
.lede { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.chips { display: flex; gap: 8px; margin: -4px -20px 0; padding: 4px 20px 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--heading); font: 500 14px var(--font-body); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s var(--ease), color .2s var(--ease), transform .16s var(--ease);
}
.chip[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; box-shadow: none; }
.count { margin: 14px 0 10px; color: var(--muted); font-size: 13px; }

.offer-list, .store-list, .reward-list, .ready ul, .till-apply ul { list-style: none; margin: 0; padding: 0; }
.offer-list { display: grid; gap: 10px; }
.offer {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; padding: 16px; border-radius: var(--radius);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -22px rgba(6, 28, 64, .5);
  transition: box-shadow .3s var(--ease);
}
.offer.is-claimed { box-shadow: inset 0 0 0 1.5px rgba(15, 122, 90, .35); }
.offer-body { min-width: 0; }
.offer-store { margin: 0; font-size: 12.5px; color: var(--muted); }
.offer-title { margin: 2px 0 8px; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink); text-wrap: pretty; }
.offer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.chip-tag { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--heading); font-weight: 500; font-size: 12px; }
.offer-ends { font-size: 12px; color: var(--muted); }
.claim-btn {
  grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  border: 0; border-radius: 13px; cursor: pointer; background: var(--navy); color: #FFFFFF; font: 600 15px var(--font-body);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .16s var(--ease);
}
.offer.compact { grid-template-columns: auto 1fr auto; align-items: center; }
.offer.compact .offer-title { margin-bottom: 6px; font-size: 15px; }
.offer.compact .claim-btn { grid-column: auto; padding: 0 16px; border-radius: 999px; }
.offer.compact .claim-btn .check { width: 18px; height: 18px; }
.is-claimed .claim-btn { background: var(--ok-soft); color: var(--ok); }
@media (hover: hover) {
  .claim-btn:hover { background: var(--btn-bg-hover); }
  .is-claimed .claim-btn:hover { background: #D3F0E4; }
  .chip:not([aria-pressed="true"]):hover, .seg-btn:not([aria-pressed="true"]):hover { background: var(--surface-2); }
}

/* ---------- stores ---------- */
.search { position: relative; }
.search svg { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 50px; padding: 0 14px 0 44px; border: 0; border-radius: 15px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); font: 400 16px var(--font-body); color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #8390A6; }
.search input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ink); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 12px; padding: 4px; border-radius: 15px; background: #E3E9F2; }
.seg-btn {
  min-height: 44px; border: 0; border-radius: 11px; cursor: pointer; background: transparent; color: var(--heading);
  font: 500 14px var(--font-body); transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .16s var(--ease);
}
.seg-btn[aria-pressed="true"] { background: var(--card); font-weight: 600; box-shadow: 0 1px 2px rgba(6, 28, 64, .08), 0 4px 10px -6px rgba(6, 28, 64, .3); }
.store-list { border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.store { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 11px 16px; }
.store + .store { border-top: 1px solid var(--line); }
.store .cat-icon { width: 42px; height: 42px; border-radius: 12px; }
.store-body { flex: 1; min-width: 0; }
.store-name { margin: 0; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.store-meta { margin: 0; font-size: 13px; color: var(--muted); }
.floor-badge { flex: none; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--heading); font-weight: 500; font-size: 12px; }

.empty { padding: 36px 20px 30px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.empty p { margin: 0 0 4px; }
.empty-title { color: var(--heading); font-weight: 600; font-size: 17px; }
.empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: var(--surface-2); }
.empty-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.empty .btn { margin-top: 14px; }

/* ---------- rewards ---------- */
.balance-strip {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; margin-bottom: 16px;
  border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.bs-label { margin: 0; font-size: 13px; color: var(--muted); }
.bs-points { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.15; color: var(--heading); font-variant-numeric: tabular-nums; }
.reward-list { display: grid; gap: 10px; }
.reward {
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: var(--radius);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -22px rgba(6, 28, 64, .5);
}
.reward-body { flex: 1; min-width: 0; }
.reward-title { margin: 0; font-weight: 600; font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.reward-cost { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.reward-cost strong { color: var(--accent-ink); font-weight: 600; }
.short-note { display: block; color: var(--warn); }
.is-short .cat-icon { filter: grayscale(.85); opacity: .6; }
.is-short .reward-cost strong { color: var(--muted); }
.redeem-btn {
  flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--navy); color: #FFFFFF; font: 600 14px var(--font-body);
  transition: background-color .25s var(--ease), transform .16s var(--ease);
}
.redeem-btn.is-muted { background: var(--surface-2); color: var(--heading-lt); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) { .redeem-btn:not(.is-muted):hover { background: var(--btn-bg-hover); } }
.ready { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); background: var(--ok-soft); }
.ready h2 { font-size: 15px; color: var(--ok); }
.ready ul, .till-apply ul { display: grid; gap: 6px; margin-top: 10px; }
.ready li, .till-apply li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); }
.ready .check, .till-apply .check { width: 18px; height: 18px; color: var(--ok); flex: none; }
.times { margin-left: auto; font-weight: 600; color: var(--ok); }

.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); color: var(--accent-ink); } 100% { transform: scale(1); } }

/* ---------- till ---------- */
body[data-screen="till"] .screen { background: var(--deep); }
[data-screen="till"] .appbar { background: color-mix(in srgb, var(--deep) 88%, transparent); color: #FFFFFF; }
[data-screen="till"] .appbar-title { color: #FFFFFF; }
[data-screen="till"] .points-pill { background: rgba(255, 255, 255, .1); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.till { color: #FFFFFF; }
.till-card { margin-top: 6px; padding: 22px 22px 20px; border-radius: 28px; background: #FFFFFF; color: var(--ink); text-align: center; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.till-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
.qr { width: 228px; aspect-ratio: 1; margin: 0 auto; padding: 10px; border-radius: 16px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { display: block; width: 100%; height: 100%; fill: var(--deep); }
.till-num { margin: 14px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .08em; color: var(--heading); font-variant-numeric: tabular-nums; }
.till-name { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.till-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(30, 200, 224, .12); box-shadow: inset 0 0 0 1px rgba(30, 200, 224, .28); }
.till-note p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
.till-note strong { color: #FFFFFF; font-weight: 600; }
.till-note-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.till-apply { margin-top: 18px; }
.till-apply h2 { font-size: 15px; color: #FFFFFF; }
.till-apply li { color: rgba(255, 255, 255, .9); }
.till-apply .check { color: var(--cyan); }
.muted { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .62); }

/* ---------- tab bar, toast, chrome room ---------- */
.tabbar {
  flex: none; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tab-h); padding: 0 8px;
  background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line);
}
.tabbar[hidden] { display: none; }
.tabbar { height: calc(var(--tab-h) + 18px); padding-bottom: 18px; } /* home-indicator room */
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px;
  margin: 6px 2px; border-radius: 14px; color: #7A869C; text-decoration: none; font-weight: 500; font-size: 11.5px;
  transition: color .2s var(--ease);
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.tabbar a[aria-current="page"] svg { fill: var(--accent-soft); stroke-width: 2.1; }
.tabbar a[aria-current="page"] span { position: relative; }
.tabbar a[aria-current="page"] span::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--cyan); }
@media (hover: hover) { .tabbar a:not([aria-current]):hover { color: var(--heading); } }
.chrome-safe { flex: none; height: var(--chrome-bottom); background: #FFFFFF; }
body[data-screen="signin"] .chrome-safe { background: transparent; }
/* home indicator, drawn only when the app shows its own phone chrome */
.screen::after { content: ''; position: absolute; left: 50%; bottom: 8px; z-index: 6; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); pointer-events: none; }
body[data-screen="signin"] .screen::after { background: #FFFFFF; }
@media (max-width: 480px) {
  html:not(.bare) .tabbar { height: var(--tab-h); padding-bottom: 0; }
  html:not(.bare) .screen::after { display: none; }
}

.toast-region { position: absolute; left: 16px; right: 16px; bottom: calc(var(--tab-h) + 30px + var(--chrome-bottom)); z-index: 5; display: grid; pointer-events: none; }
@media (max-width: 480px) { html:not(.bare) .toast-region { bottom: calc(var(--tab-h) + 12px + var(--chrome-bottom)); } }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 16px;
  background: var(--deep); color: #FFFFFF; font-size: 14px; line-height: 1.4; font-weight: 500;
  box-shadow: 0 18px 36px -16px rgba(6, 28, 64, .7);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.toast.in { opacity: 1; transform: none; }
.toast-dot { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #3DDC97; }
.toast.tone-info .toast-dot { background: var(--cyan); }
.toast.tone-warn .toast-dot { background: #FFC94D; }
body[data-screen="till"] .toast { background: #FFFFFF; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .toast { transform: none; }
}
