/* SAABA MART till. Light, bright, sunlit-counter readable.
   Action buttons are blue. Green is for surfaces that mean paid / in stock. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
}

:root {
  color-scheme: light;
  --ink: #0E1116; --ink2: #4A5160; --ink3: #8A92A3;
  --paper: #F6F7FB; --card: #FFFFFF; --line: #E9ECF3;
  --brand: #0B5FFF; --brandD: #0046C7; --brandL: #EBF2FF;
  --go: #12A150; --goL: #E8F8EF; --goD: #0A7A3D;
  --brandGreen: #0E6B33;
  --warn: #E8820C; --warnL: #FFF4E5; --warnD: #9A5B06;
  --stop: #E5484D; --stopL: #FFEBEC; --stopD: #B4232A;
  --tap: 56px;
  --e1: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --e2: 0 4px 8px -2px rgba(16,24,40,.06), 0 2px 4px -2px rgba(16,24,40,.04);
  --e3: 0 12px 28px -6px rgba(16,24,40,.12), 0 4px 10px -4px rgba(16,24,40,.06);
  --sp: cubic-bezier(.2,.9,.3,1.2);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button { font: inherit; font-variant-numeric: tabular-nums; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
input { font: inherit; color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

#app { max-width: 1280px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---- top bar: top-left is always the way out ---- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gutter) 8px;
  background: rgba(251,251,253,.92); backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.back {
  width: var(--tap); height: var(--tap); flex: 0 0 auto; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--e1);
}
.back:active { transform: scale(.94); background: var(--line); }
.logo { width: 44px; height: 44px; flex: 0 0 auto; display: block; }
.idBlk { min-width: 0; flex: 1 1 auto; }
.brandN { font-size: 18px; font-weight: 800; letter-spacing: -.3px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandW { font-size: 13px; color: var(--ink3); font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- toast: never over the total ---- */
#toast {
  position: fixed; left: 50%; top: calc(84px + env(safe-area-inset-top, 0px)); z-index: 100;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 520px); padding: 11px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 700; text-align: center;
  box-shadow: var(--e3); transition: opacity .18s, transform .24s var(--sp);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.warn { background: var(--warnL); color: var(--warnD); border: 1px solid rgba(232,130,12,.35); }

/* ---- buttons ---- */
.goBtn {
  width: 100%; min-height: 64px; border-radius: 18px;
  background: linear-gradient(180deg, #0B5FFF, #0049D1); color: #fff;
  font-size: 19px; font-weight: 800; letter-spacing: -.3px;
  box-shadow: 0 8px 20px -6px rgba(11,95,255,.55);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .14s var(--sp);
}
.goBtn:active { transform: scale(.98); }
.goBtn:disabled { background: #D9DEE8; color: #8A92A3; box-shadow: none; }
.secBtn {
  width: 100%; min-height: var(--tap); border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); font-size: 17px; font-weight: 700; color: var(--ink); box-shadow: var(--e1);
}

/* ---- gate ---- */
.gate { width: 100%; max-width: 460px; margin: 0 auto; padding: calc(48px + env(safe-area-inset-top, 0px)) var(--gutter) 32px; text-align: center; }
.lockup { display: flex; align-items: center; justify-content: center; gap: .22em; font-weight: 800; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.lockup img { height: 1.15em; width: auto; margin-right: .1em; }
.lkS { color: var(--brandGreen); }
.lkM { background: linear-gradient(180deg, #F2C23E, #BE7D0E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gateLogo { font-size: clamp(36px, 11vw, 52px); }
.gateTag { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; color: var(--ink3); margin-top: 12px; }
.gateQ { font-size: 19px; font-weight: 700; color: var(--ink2); margin: 40px 0 16px; }
.gateList { display: grid; gap: 12px; }
.who {
  display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 14px 18px;
  background: var(--card); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--e1); text-align: left;
}
.who:active { transform: scale(.985); background: var(--paper); }
.whoA { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; flex: 0 0 auto; }
.r-manager { background: linear-gradient(145deg, #2F6BFF, #0046C7); }
.r-attendant { background: linear-gradient(145deg, #2E9E5B, #0E6B33); }
.r-owner { background: linear-gradient(145deg, #9B6BFF, #6D28D9); }
.whoG { min-width: 0; }
.whoN { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.whoS { display: block; font-size: 14px; font-weight: 600; color: var(--ink3); margin-top: 2px; }

/* ---- home ---- */
.homeBody { padding: 16px var(--gutter) 40px; width: 100%; max-width: 720px; margin: 0 auto; }
.banner { border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; font-size: 14.5px; font-weight: 600; line-height: 1.45; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.banner.warn { background: var(--warnL); color: var(--warnD); border: 1px solid rgba(232,130,12,.3); display: block; }
.banner.info { background: var(--brandL); color: var(--brandD); }
.banner.info span { flex: 1 1 200px; }
.bannerB { min-height: var(--tap); padding: 0 18px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 800; }
.start, .resume {
  width: 100%; min-height: 84px; border-radius: 22px; display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; color: #fff; text-align: left;
  background: linear-gradient(145deg, #0B5FFF, #0043C4); box-shadow: 0 12px 26px -10px rgba(11,95,255,.6);
}
.start { justify-content: center; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.start:active, .resume:active { transform: scale(.985); }
.resumeDot { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; flex: 0 0 auto; }
.resumeG { flex: 1; min-width: 0; }
.resumeT { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.resumeS { display: block; font-size: 15px; font-weight: 600; opacity: .9; margin-top: 2px; }
.resumeB { font-size: 16px; font-weight: 800; background: rgba(255,255,255,.22); padding: 10px 16px; border-radius: 12px; flex: 0 0 auto; }
.hello { font-size: 26px; font-weight: 800; letter-spacing: -.7px; margin: 26px 0 2px; }
.today { font-size: 15px; font-weight: 600; color: var(--ink3); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; min-height: 128px;
  padding: 16px; background: var(--card); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--e1);
}
.tile:active { transform: scale(.98); }
.tileI { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.tileT { font-size: 16.5px; font-weight: 800; letter-spacing: -.3px; }
.tileS { font-size: 13px; font-weight: 600; color: var(--ink3); line-height: 1.35; }

/* ---- sell ---- */
.sellWrap { flex: 1; display: flex; min-height: 0; }
.sellMain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.searchRow { display: flex; gap: 8px; padding: 12px var(--gutter) 0; }
.search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: var(--tap); padding: 0 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink3); box-shadow: var(--e1);
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brandL); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 600; height: 100%; }
.search input::placeholder { color: var(--ink3); font-weight: 500; }
.search input::-webkit-search-cancel-button { display: none; }
.clearQ { width: var(--tap); height: var(--tap); flex: 0 0 auto; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.chips { display: flex; gap: 8px; padding: 10px var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.ch {
  flex: 0 0 auto; min-height: var(--tap); padding: 0 18px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink2); white-space: nowrap;
}
.ch[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid {
  display: grid; gap: 12px; padding: 10px var(--gutter) 230px;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); align-content: start;
}
.card {
  background: var(--card); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px -6px rgba(16,24,40,.10); border: 1px solid rgba(233,236,243,.9);
}
.card.added { animation: pop .32s var(--sp); }
@keyframes pop { 40% { transform: scale(.97); box-shadow: 0 0 0 3px var(--brandL); } }
.body { display: block; width: 100%; padding: 11px 12px 10px; text-align: left; flex: 1; }
.body:active { background: var(--paper); }
.hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.thumb { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.thumb.ph { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; border: 0; }
.kind { font-size: 9.5px; font-weight: 800; letter-spacing: .5px; padding: 4px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm { display: -webkit-box; font-size: 15px; font-weight: 700; line-height: 1.28; letter-spacing: -.2px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sub { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-top: 4px; }
.st { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink3); margin-top: 7px; line-height: 1.3; }
.st i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; margin-top: 4px; background: var(--go); }
.st.lv-LOW i { background: var(--stop); }
.st.lv-LOW b { color: var(--stopD); }
.st.lv-REORDER i { background: var(--warn); }
.st.lv-REORDER b { color: var(--warnD); }
.st.lv-OUT, .st.lv-NEGATIVE { color: var(--stopD); }
.st.lv-OUT i, .st.lv-NEGATIVE i { background: var(--stop); }
.st.lv-NEGATIVE { background: var(--stopL); margin: 7px -6px 0; padding: 4px 6px; border-radius: 8px; font-weight: 800; }
.zone { flex: 0 0 auto; min-height: var(--tap); background: linear-gradient(180deg, #FCFDFF, #F2F5FB); border-top: 1px solid var(--line); transition: background .12s; }
.zone:active { background: var(--brand); }
.zone:active .lab, .zone:active .val { color: #fff; }
.two { display: flex; flex: 0 0 auto; }
.two .zone { flex: 1 1 0; min-width: 0; text-align: center; padding: 7px 4px; }
.two .zone + .zone { border-left: 1px solid var(--line); }
.one { width: 100%; text-align: left; padding: 0 12px; }
.lab { display: block; font-size: 10px; font-weight: 800; letter-spacing: .6px; color: var(--ink3); }
.val { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; }
.noHit { grid-column: 1 / -1; text-align: center; padding: 48px 24px; color: var(--ink2); font-size: 16px; font-weight: 700; line-height: 1.7; }
.noHit span { font-size: 14px; font-weight: 600; color: var(--ink3); }

/* ---- cart dock (phone): fixed to the bottom, PAY never moves ---- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0 auto; max-width: 760px;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
}
.dockIn {
  display: flex; flex-direction: column; padding: 0 0 12px;
  background: rgba(255,255,255,.97); backdrop-filter: saturate(200%) blur(24px); -webkit-backdrop-filter: saturate(200%) blur(24px);
  border-radius: 24px; border: 1px solid #fff;
  box-shadow: 0 -2px 10px rgba(16,24,40,.04), 0 -18px 50px -12px rgba(16,24,40,.22);
}
.dockIn > .goBtn { width: auto; margin: 0 12px; }
.undoBar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 0 18px; font-size: 14.5px; font-weight: 700; color: var(--ink2); }
.undoBar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undoB { min-height: var(--tap); min-width: 96px; padding: 0 18px; border-radius: 14px; background: var(--brandL); color: var(--brand); font-weight: 800; font-size: 16px; }
.lines { display: none; max-height: 46vh; overflow-y: auto; padding: 4px 16px 8px; border-bottom: 1px solid var(--line); overscroll-behavior: contain; }
.dock.open .lines { display: block; }
.ln { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ln:last-of-type { border-bottom: 0; }
.lnT { font-size: 16px; font-weight: 700; letter-spacing: -.2px; line-height: 1.3; }
.lnS { font-size: 13px; color: var(--ink3); font-weight: 600; margin-top: 2px; }
.lnS b { color: var(--ink2); }
.lnTop { display: flex; align-items: flex-start; gap: 12px; }
.lnN { flex: 1; min-width: 0; }
.lnR { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.stp { flex: 0 0 auto; display: flex; align-items: center; background: var(--paper); border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.stp button { flex: 0 0 auto; width: var(--tap); height: var(--tap); font-size: 24px; font-weight: 700; color: var(--brand); }
.stp button:active { background: var(--brandL); }
.stp .stpN { color: var(--ink); font-size: 18px; font-weight: 800; min-width: var(--tap); width: auto; padding: 0 6px; text-decoration: underline dotted; text-underline-offset: 4px; }
.lnA { flex: 0 0 auto; text-align: right; white-space: nowrap; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.del { width: var(--tap); height: var(--tap); border-radius: 16px; color: var(--ink3); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.del:active { background: var(--stopL); color: var(--stop); }
.clearSale { width: 100%; min-height: var(--tap); margin: 6px 0 2px; border-radius: 14px; border: 1px dashed var(--line); color: var(--ink2); font-weight: 700; font-size: 15px; }
.sum { display: flex; align-items: center; gap: 14px; padding: 12px 10px 10px 18px; }
.badge { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; flex: 0 0 auto; background: var(--ink); color: #fff; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.dock.empty .badge { background: var(--line); color: var(--ink3); }
.sumG { flex: 1; min-width: 0; }
.sumL { display: block; font-size: 12px; font-weight: 700; color: var(--ink3); letter-spacing: .3px; text-transform: uppercase; }
.sumV { display: block; font-size: 40px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.05; }
.chev { width: var(--tap); height: var(--tap); border-radius: 16px; background: var(--paper); color: var(--ink2); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--sp); flex: 0 0 auto; }
.chev:disabled { opacity: .35; }
.dock.open .chev { transform: rotate(180deg); }

/* Wide screens: the cart is a permanent column, always expanded. */
@media (min-width: 1024px) {
  .sellWrap { align-items: flex-start; }
  .grid { padding-bottom: 40px; }
  .dock {
    position: sticky; top: 73px; left: auto; right: auto; bottom: auto; flex: 0 0 400px; width: 400px; max-width: none;
    height: calc(100vh - 73px); height: calc(100dvh - 73px); margin: 0; padding: 12px var(--gutter) 16px 0;
  }
  .dockIn { height: 100%; }
  .dock .lines { display: block; flex: 1; max-height: none; }
  .dock .chev { display: none; }
}

/* ---- number pad: identical everywhere ---- */
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad button {
  min-height: var(--tap); border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  font-size: 24px; font-weight: 700; box-shadow: var(--e1);
}
.pad button:active { background: var(--brandL); transform: scale(.96); }

/* ---- pay ---- */
.payBody { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 12px var(--gutter) 16px; }
.due { text-align: center; }
.dueK { font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--ink3); text-transform: uppercase; }
.dueV { font-size: 48px; font-weight: 800; letter-spacing: -1.8px; line-height: 1.1; }
.methods { display: flex; gap: 8px; margin: 10px 0; }
.method { min-height: 44px; padding: 0 18px; display: flex; align-items: center; border-radius: 14px; font-weight: 800; font-size: 15px; }
.method.on { background: var(--brandL); color: var(--brand); }
.recv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
.recv span { font-size: 14px; font-weight: 700; color: var(--ink3); }
.recv b { font-size: 28px; font-weight: 800; letter-spacing: -.8px; }
.recv b.dim { color: var(--ink3); font-size: 20px; }
.tender { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.tch { min-height: var(--tap); border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 15px; font-weight: 800; padding: 0 2px; box-shadow: var(--e1); }
.tch:active { background: var(--brandL); }
.payFoot {
  position: sticky; bottom: 0; z-index: 20; width: 100%; max-width: 560px; margin: 0 auto;
  padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(246,247,251,0), var(--paper) 18px);
}
.change { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 18px; padding: 8px 18px; margin-bottom: 10px; }
.change.ok { background: var(--goL); color: var(--goD); }
.change.short { background: var(--warnL); color: var(--warnD); }
.chK { font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.chV { font-size: 56px; font-weight: 800; letter-spacing: -2px; line-height: 1.05; }

/* ---- receipt ----
   Ported from the prototype (saaba-till.html .rcp … .rFoot), values as written
   there. Deliberate changes: Merchant ID 16px → 22px (Abdul, 2026-10-14);
   colour lockup in the 224px logo slot (screens and WhatsApp only — print
   must use the mono lockup, see receipt.js). */
.rcpBody { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px)); }
.rcpActs { display: flex; gap: 8px; max-width: 400px; margin: 0 auto 14px; }
.rcpActs .goBtn { flex: 1; }
.rcpBody > .secBtn { display: block; max-width: 400px; margin: 14px auto 0; }
.rcp { background: var(--card); border-radius: 22px; padding: 26px 24px; max-width: 400px; margin: 0 auto;
  box-shadow: var(--e2); border: 1px solid var(--line); }
.rH { text-align: center; padding-bottom: 16px; border-bottom: 1.5px dashed var(--line); }
.rLogo { font-size: 32px; height: 40px; margin: 0 auto 5px; }
.rTag { font-size: 10px; font-weight: 800; letter-spacing: 1.1px; color: var(--ink3); text-transform: uppercase; margin-bottom: 9px; }
.rShop { font-size: 11px; color: var(--ink2); line-height: 1.8; font-weight: 600; margin-top: 8px; }
.rShop b { font-weight: 800; color: var(--ink2); }
.rM { font-size: 10.5px; color: var(--ink3); margin-top: 10px; line-height: 1.5; font-weight: 600;
  padding-top: 9px; border-top: 1px solid var(--line); display: inline-block; min-width: 62%; }
.rL { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; font-size: 14.5px; font-weight: 400; }
.rLq { color: var(--ink3); font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.rLa { font-weight: 700; white-space: nowrap; }
.rT { display: flex; justify-content: space-between; padding-top: 15px; margin-top: 9px;
  border-top: 1.5px dashed var(--line); font-size: 23px; font-weight: 800; letter-spacing: -.6px; }
.rP { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink3); padding-top: 9px; font-weight: 600; }
.rPay2 { background: var(--goL); border: 1px solid rgba(18,161,80,.22); border-radius: 12px;
  padding: 11px 13px; margin-top: 14px; text-align: center; }
.rPayK { font-size: 9.5px; font-weight: 800; letter-spacing: .7px; color: #0C7A3E; }
.rPayV { font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: #0A7A3D; margin-top: 3px; }
.rPayS { font-size: 10.5px; color: #0C7A3E; font-weight: 600; margin-top: 2px; }
.rSteps { margin-top: 9px; text-align: left; display: grid; gap: 5px; }
.rStep { display: flex; gap: 7px; align-items: flex-start; font-size: 10.5px; font-weight: 600; line-height: 1.35; }
.rStep b:first-child { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: #0E6B33; color: #fff;
  font-size: 8.5px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.rFoot { text-align: center; font-size: 10.5px; color: var(--ink3); font-weight: 600;
  margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--line); line-height: 1.7; }
.rFoot b { color: var(--ink); }
.rStrap { margin-top: 9px; font-weight: 800; letter-spacing: .8px; font-size: 9.5px; text-transform: uppercase; color: var(--ink2); }

/* ---- quantity sheet: a panel over Sell ---- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(14,17,22,.4); min-height: 0; }
.sheetIn { position: absolute; inset: 0; background: var(--paper); display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.qtyBody { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
.qtyV { text-align: center; font-size: 64px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.qtyS { text-align: center; font-size: 15px; font-weight: 600; color: var(--ink3); margin-bottom: 6px; }

.fatal { padding: 40px var(--gutter); max-width: 560px; margin: 0 auto; }
