/* Bots Platform UI kit · v1 · 26 Nov 2026 · owned by the design session.
   Needs tokens.css first. Arabic RTL first: logical properties only (inline-start = right in RTL).
   Rules: saffron = the bot and money in · ink = owner/staff · white = customers.
   Only transform/opacity animate. Every animation has a reduced-motion fallback at the end of this file. */

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100dvh; font: var(--t-body); background: var(--paper); color: var(--ink); overflow-x: hidden; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: var(--saffron-ink); text-underline-offset: 3px; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 18px; height: 18px; }
.flip-rtl { transform: scaleX(-1); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 560px; margin-inline: auto; padding-inline: var(--page-x); }
.wrap--wide { max-width: 1200px; }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack--s { gap: var(--s2); } .stack--l { gap: var(--s6); }
.row { display: flex; align-items: center; gap: var(--s3); }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.with-bottombar { padding-bottom: 112px; }

/* ---------- type ---------- */
.t-display { font: var(--t-display); margin: 0; }
.t-h1 { font: var(--t-h1); margin: 0; }
.t-h2 { font: var(--t-h2); margin: 0; }
.t-h3 { font: var(--t-h3); margin: 0; }
.t-body { font: var(--t-body); margin: 0; }
.t-small { font: var(--t-small); margin: 0; }
.t-label { font: var(--t-label); margin: 0; }
.muted { color: var(--ink-2); }
.hint { color: var(--ink-3); }
@media (min-width: 900px) { .t-display { font-size: 64px; } }

/* ---------- top bar + progress ---------- */
.topbar { display: flex; align-items: center; gap: var(--s3); min-height: 52px; padding-block: 10px; }
.iconbtn { width: var(--tap); height: var(--tap); flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--ink); text-decoration: none; transition: transform var(--t-press) var(--ease-out); }
.iconbtn:active { transform: scale(.94); }
.iconbtn--ink { background: var(--ink); color: var(--card); }
.steps { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; }
.steps i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-input); opacity: .55; }
.steps i.done { background: var(--ink); opacity: 1; }
.steps i.now { width: 28px; border-radius: 4px; background: var(--saffron); opacity: 1; }
.steps-count { width: var(--tap); text-align: center; font: var(--t-label); color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn { min-height: 56px; padding: 0 var(--s6); border-radius: var(--r-pill); background: var(--saffron); color: #16161D;
  font: 600 17px/1.3 var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-quick); }
.btn:active { transform: scale(.97); background: var(--saffron-press); }
.btn--ink { background: var(--ink); color: var(--card); }
.btn--ink:active { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:active { background: var(--saffron-tint); }
.btn--sm { min-height: 48px; font-size: 15px; padding: 0 var(--s5); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--ink-3); box-shadow: none; transform: none; cursor: not-allowed; }
.btn.is-loading > :not(.typing) { visibility: hidden; position: absolute; }
.bottombar { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line);
  padding: 12px var(--page-x) calc(16px + env(safe-area-inset-bottom)); }
.bottombar__in { max-width: 560px; margin-inline: auto; display: flex; gap: 10px; }
.bottombar__in > .btn { flex: 1; padding: 0 var(--s4); white-space: nowrap; } .bottombar__in > .btn--main { flex: 2; }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font: var(--t-small); font-weight: 500; }
.field__hint { font: var(--t-label); color: var(--ink-3); }
.field__error { font: var(--t-small); color: var(--alarm); }
.input, .inputgroup { min-height: 52px; border-radius: var(--r-m); background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--line-input); }
.input { width: 100%; border: 0; padding: 0 var(--s4); font: var(--t-body); color: var(--ink); }
.input:focus-visible, .inputgroup:focus-within { outline: none; background: var(--card); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px var(--saffron-tint); }
.input[aria-invalid="true"], .inputgroup:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--alarm); }
.inputgroup { display: flex; overflow: hidden; }
.inputgroup .input { box-shadow: none; background: transparent; min-height: 0; }
.inputgroup .input:focus-visible { box-shadow: none; }
.inputgroup__addon { display: flex; align-items: center; padding: 0 var(--s3); color: var(--ink-2); font: var(--t-small); white-space: nowrap; }
.input--num { direction: ltr; text-align: end; font-variant-numeric: tabular-nums; } /* RTL page: end = left, numbers read LTR */

/* ---------- chips, switch, segmented ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--page-x)); padding-inline: var(--page-x); scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill); background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-input); font: 500 15px/1.3 var(--font); display: inline-flex; align-items: center; gap: 6px;
  transition: background-color var(--t-quick), color var(--t-quick), transform var(--t-press); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .chip:has(> input:checked) { background: var(--ink); color: var(--card); box-shadow: none; }
.chip[aria-pressed="true"]::before, .chip[aria-checked="true"]::before, .chip:has(> input:checked)::before { content: ""; width: 6px; height: 11px; margin-top: -3px; flex: none;
  border: solid currentColor; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); } /* physical borders: a check mark reads the same in RTL */
/* a chip around a real checkbox / radio (2 Dec): the input stays (keyboard, forms) but is invisible; the chip shows its state */
label.chip { position: relative; cursor: pointer; }
.chip > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip:has(> input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.switch { width: 56px; height: 34px; flex: none; border-radius: var(--r-pill); position: relative; background: var(--card); box-shadow: inset 0 0 0 2px var(--line-input); transition: background-color var(--t-quick); }
.switch::after { content: ""; position: absolute; top: 5px; inset-inline-start: 5px; width: 24px; height: 24px; border-radius: 50%; background: var(--line-input); transition: transform var(--t-quick) var(--ease-out), background-color var(--t-quick); }
.switch[aria-checked="true"] { background: var(--ink); box-shadow: none; }
.switch[aria-checked="true"]::after { background: var(--saffron); transform: translateX(-22px); }
[dir="ltr"] .switch[aria-checked="true"]::after { transform: translateX(22px); }

.seg { display: flex; background: var(--card-2); border-radius: var(--r-pill); padding: 4px; }
.seg__btn { flex: 1; min-height: 44px; border-radius: var(--r-pill); font: 15px/1.3 var(--font); color: var(--ink-2); transition: background-color var(--t-quick); }
.seg__btn[aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 2px 8px -2px rgba(22, 22, 29, .2); }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r-l); padding: var(--s5); }
.card--bot { border-radius: var(--shape-bot-card); }
.card--flat { background: var(--card-2); }
.hero { position: relative; overflow: hidden; background: var(--hero); color: #fff; border-radius: 28px 28px 28px 10px; padding: var(--s5); display: flex; flex-direction: column; gap: 14px; }
:root[data-theme="dark"] .hero { box-shadow: inset 0 0 0 1px var(--line); }
.hero__label { color: #C4C5CE; font: var(--t-small); font-size: 15px; }
.hero__num { font: var(--t-num-xl); font-size: 58px; letter-spacing: -.02em; color: var(--saffron); }
.hero__unit { color: #C4C5CE; font-size: 17px; }
.days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.days i { height: 10px; border-radius: 3px; background: #2E2F39; }
.days i.on { background: var(--saffron); }
.hero.is-low .days i.on { background: var(--ember-on-dark); }
.hero.is-low .hero__num { color: var(--ember-on-dark); animation: breathe 2.6s ease-in-out infinite; }
.hero.is-zero .hero__num { color: #8E909B; }
.flood { position: absolute; inset: 0; background: var(--saffron); transform-origin: bottom; transform: scaleY(0); opacity: 0; pointer-events: none; }
.flood.is-on { animation: flood var(--t-rise) var(--ease-io) both; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 4px; font: 400 15px/1.6 var(--font); }
.chat--stage { background: var(--card-2); border-radius: 20px; padding: var(--s3); }
.bubble { padding: 9px 14px; max-width: 80%; overflow-wrap: anywhere; white-space: pre-line; }
.bubble--cust { align-self: flex-start; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--shape-cust-bubble); margin-bottom: 6px; }
.chat--stage .bubble--cust { background: var(--card); }
.msg { align-self: flex-end; display: flex; align-items: center; gap: var(--s2); max-width: 90%; }
.msg .bubble { max-width: none; }
.bubble--bot { background: var(--saffron); color: #16161D; border-radius: var(--shape-bot-bubble); }
.bubble--staff { background: var(--ink); color: var(--card); border-radius: var(--shape-bot-bubble); }
/* bot groups: consecutive bot rows share small corners on the speaker side */
.msg--bot.g-first .bubble--bot { border-radius: var(--shape-bot-bubble); }
.msg--bot.g-mid .bubble--bot { border-radius: var(--shape-bot-bubble-mid); }
.msg--bot.g-last .bubble--bot { border-radius: var(--shape-bot-bubble-end); }
.staff-name { font-size: 11px; color: var(--ink-3); align-self: flex-end; }
.sysline { align-self: center; display: inline-flex; align-items: center; gap: 6px; font: var(--t-label); font-weight: 400; font-size: 12px; color: var(--ink-2); background: var(--card); border-radius: var(--r-pill); padding: 5px 12px; margin-block: 10px; }

/* media from the customer (UI.mediaBubble): photo / voice note / other file + what the bot heard or saw (saffron tint = the bot) */
.bubble--media { display: flex; flex-direction: column; gap: 8px; padding: 6px; width: min(80%, 290px); max-width: none; white-space: normal; }
.bubble--media.is-sending { opacity: .72; }
.mb__img { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 18px 4px 18px 18px; background: var(--card-2); }
.mb__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 112px; border-radius: 18px 4px 18px 18px; background: var(--card-2); color: var(--ink-3); font: 500 13px/1.4 var(--font); }
.mb__ph .ico { width: 30px; height: 30px; stroke-width: 1.8; }
.mb__ph--row { flex-direction: row; height: auto; justify-content: flex-start; padding: 10px 12px; }
.mb__ph--row .ico { width: 20px; height: 20px; }
.mb__cap { padding: 0 8px 2px; white-space: pre-line; overflow-wrap: anywhere; }
.mb__voice { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 10px; }
.mb__play, .mb__mic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.mb__play { background: var(--ink); color: var(--card); transition: transform var(--t-press) var(--ease-out); }
.mb__play:active { transform: scale(.92); }
.mb__play .ico { width: 18px; height: 18px; fill: currentColor; stroke-width: 2.4; }
.mb__mic { background: var(--card-2); color: var(--ink-2); }
.mb__wave { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; gap: 2px; }
.mb__wave i { flex: 1; max-width: 4px; height: 100%; border-radius: 2px; background: var(--line-input); transform: scaleY(var(--h, .4)); transition: background-color var(--t-quick); }
.mb__wave i.on { background: var(--ink); }
.mb__len { flex: none; min-width: 32px; font: 500 12px/1 var(--font); color: var(--ink-3); text-align: end; }
.mb__note { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 14px 4px 14px 14px; background: var(--saffron-tint); color: var(--ink); font: 400 14px/1.6 var(--font); overflow-wrap: anywhere; }
.mb__note b { font: 600 12px/1.4 var(--font); color: var(--saffron-ink); }
.mb__note--bad, .mb__note--wait { flex-direction: row; align-items: center; gap: 7px; font: 500 13px/1.45 var(--font); }
.mb__note--bad { background: var(--ember-tint); color: var(--ember-ink); }
.mb__note--wait { background: var(--card-2); color: var(--ink-3); }
.mb__note--wait .typing { gap: 3px; } .mb__note--wait .typing i { width: 5px; height: 5px; }
/* small status tags (inbox rows, test chat notes): moved here from shop.css 27 Nov */
.tag { display: inline-flex; align-items: center; gap: 3px; font: 600 12px/1.6 var(--font); padding: 1px 10px; border-radius: var(--r-pill); background: var(--card-2); color: var(--ink-2); }
.tag--warm { background: var(--saffron-tint); color: var(--saffron-ink); }
.tag--hot { background: var(--ember-tint); color: var(--ember-ink); }
.tag--alarm { background: var(--alarm-tint); color: var(--alarm); }
.tag .ico { width: 14px; height: 14px; flex: none; }
/* a public comment in a chat (27 Nov): dashed outline = said in public, not in DM */
.bubble--comment { display: flex; flex-direction: column; gap: 6px; padding: 9px 12px 10px; width: min(80%, 300px); max-width: none; white-space: normal; box-shadow: none; border: 1.5px dashed var(--line-input); }
.cmt__head { display: flex; align-items: center; gap: 6px; font: 600 12px/1.4 var(--font); color: var(--ink-3); }
.cmt__head > .ico { width: 16px; height: 16px; flex: none; }
.cmt__post { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding-inline: 4px; color: var(--ink-2); text-decoration: none; font: 600 12px/1 var(--font); }
.cmt__post .ico { width: 14px; height: 14px; }
.cmt__text { white-space: pre-line; overflow-wrap: anywhere; }
.cmt__state { font: 500 12px/1.4 var(--font); color: var(--ink-3); }
.cmt__state.is-bad { color: var(--ember-ink); }
.cmt__pub { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 12px; background: var(--card-2); font: 400 13px/1.5 var(--font); overflow-wrap: anywhere; }
.cmt__pub b { font: 600 11px/1.4 var(--font); color: var(--ink-3); }
.msg__over { align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; margin: 6px 6px 0; font: 500 11px/1.4 var(--font); color: var(--saffron-ink); }
.msg__over .ico { width: 14px; height: 14px; }
.msg__over--staff { color: var(--ink-3); }

.coin { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--saffron); color: #16161D; box-shadow: inset 0 0 0 1.5px var(--saffron-edge);
  font: 700 11px/1 var(--font); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.coin--ghost { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line-input); text-decoration: line-through; }
.coins { display: flex; align-items: center; padding-inline-start: 8px; }
.coins .coin { width: 26px; height: 26px; font-size: 10px; margin-inline-start: -8px; box-shadow: 0 0 0 2px var(--card), inset 0 0 0 1.5px var(--saffron-edge); }

.typing { display: inline-flex; gap: 5px; align-items: center; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .16s; } .typing i:nth-child(3) { animation-delay: .32s; }
.bubble--typing { align-self: flex-end; background: var(--saffron); color: #16161D; padding: 13px 15px; border-radius: var(--shape-bot-bubble); }

/* ---------- the mark (bot health) ---------- */
.mark { width: 44px; height: 44px; flex: none; border-radius: 15px 15px 15px 5px; background: var(--saffron); display: flex; align-items: center; justify-content: center; gap: 3px; transition: background-color .4s; }
.mark i { width: 6px; height: 6px; border-radius: 50%; background: #16161D; animation: mark-type 1.2s ease-in-out infinite; transition: transform .4s var(--ease-out), background-color .4s; }
.mark i:nth-child(2) { animation-delay: .16s; } .mark i:nth-child(3) { animation-delay: .32s; }
.mark--sm { width: 28px; height: 28px; border-radius: 9px 9px 9px 3px; gap: 2px; } .mark--sm i { width: 4px; height: 4px; }
.mark--low { background: #FFD9A8; } .mark--low i { animation-duration: 2.6s; }
.mark--zero { background: var(--line); } .mark--zero i { animation: none; transform: scaleY(.35); background: #8E909B; }
/* the wordmark (29 Nov): DeemIQ, Latin, the IQ is the wink (Iraq + smart). Markup: <x class="wm" dir="ltr">Deem<span class="wm__iq">IQ</span></x> */
.wm { unicode-bidi: isolate; letter-spacing: -.01em; }
.wm__iq { color: var(--saffron-ink); }

/* ---------- alerts, toast, empty, skeleton ---------- */
.alert { margin: 0; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-m); font: var(--t-small); }
.alert--info { background: var(--card-2); color: var(--ink-2); }
.alert--done { background: var(--leaf-tint); color: var(--leaf-ink); }
.alert--low { background: var(--ember-tint); color: var(--ember-ink); }
.alert--zero { background: var(--alarm); color: #fff; }
.alert .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.toast { position: fixed; bottom: calc(96px + env(safe-area-inset-bottom)); inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 40px);
  display: flex; align-items: center; gap: 8px; background: #16161D; color: #fff; border-radius: var(--r-pill); padding: 10px 18px; box-shadow: var(--shadow-float);
  animation: toast-in var(--t-base) var(--ease-out) both; z-index: 40; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: var(--s5); border-radius: 20px; background: var(--card-2); }
.empty__art { width: 72px; height: 56px; border-radius: var(--shape-bot-bubble); border: 2px dashed var(--line-input); display: flex; align-items: center; justify-content: center; gap: 5px; }
.empty__art i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-input); }
.sk { background: var(--line); border-radius: 8px; animation: sk 1.6s ease-in-out infinite; }

/* ---------- bottom tab bar (phone) ---------- */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--ink-2); text-decoration: none; font-size: 12px; }
.tabbar a > span:first-child { width: 56px; height: 32px; display: grid; place-items: center; border-radius: var(--r-pill); position: relative; }
.tabbar a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabbar a[aria-current="page"] > span:first-child { background: var(--saffron-tint); }
.badge { position: absolute; top: -2px; inset-inline-end: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--alarm); color: #fff; font: 700 11px/18px var(--font); text-align: center; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- the dial ---------- */
.dial { position: relative; height: 60px; container-type: inline-size; touch-action: none; }
.dial__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 3; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent; }
.dial__input::-webkit-slider-thumb { -webkit-appearance: none; width: 52px; height: 52px; }
.dial__input::-moz-range-thumb { width: 52px; height: 52px; border: 0; background: transparent; }
.dial__track, .dial__fill { position: absolute; top: 27px; height: 6px; border-radius: 3px; }
.dial__track { inset-inline: 26px; background: var(--line); }
.dial__fill { inset-inline-start: 26px; width: calc(100% - 52px); background: var(--saffron); transform-origin: right center; transform: scaleX(var(--p, 0)); transition: transform 220ms var(--ease-out); }
[dir="ltr"] .dial__fill { transform-origin: left center; }
.dial__bead { position: absolute; top: 23px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px #C9CAD2;
  inset-inline-start: calc(19px + (100% - 52px) * var(--b)); transition: background-color var(--t-quick), box-shadow var(--t-quick); }
.dial__bead.on { background: var(--saffron); box-shadow: none; }
.dial__thumb { position: absolute; top: 4px; inset-inline-start: 0; width: 52px; height: 52px; border-radius: 26px 26px 26px 8px; background: var(--saffron); color: #16161D;
  box-shadow: 0 10px 22px -8px rgba(22, 22, 29, .45), inset 0 0 0 2.5px #16161D; display: grid; place-items: center; font: 700 20px/1 var(--font);
  transform: translateX(calc(-1 * var(--p, 0) * (100cqw - 52px))); transition: transform 220ms var(--ease-out); pointer-events: none; }
[dir="ltr"] .dial__thumb { transform: translateX(calc(var(--p, 0) * (100cqw - 52px))); }
.dial__input:focus-visible ~ .dial__thumb { outline: 3px solid var(--focus); outline-offset: 3px; }
.dial__tip { position: absolute; top: 15px; inset-inline-start: 62px; z-index: 2; background: #16161D; color: #fff; font: 600 13px/1.4 var(--font); padding: 6px 12px; border-radius: var(--r-pill); white-space: nowrap; pointer-events: none; animation: nudge 1.6s ease-in-out infinite; }
.dial__labels { position: relative; height: 28px; }
.dial__labels button { position: absolute; top: 0; inset-inline-start: calc(26px + (100% - 52px) * var(--b)); transform: translateX(50%); min-width: 36px; height: 28px; font: 13px/28px var(--font); color: var(--ink-3); }
[dir="ltr"] .dial__labels button { transform: translateX(-50%); }
.dial__labels button.now { color: var(--ink); font-weight: 700; }
.vibe { font: 600 13px/1.5 var(--font); padding: 5px 12px; border-radius: var(--r-pill); background: var(--saffron-tint); color: var(--saffron-ink); }

.stepper { display: flex; align-items: center; gap: 2px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--card); color: var(--ink); font: 400 22px/1 var(--font); }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 40px; text-align: center; font: 700 18px/1 var(--font); }

/* ---------- odometer (rolling numbers) ---------- */
.odo { display: inline-flex; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; line-height: 1; }
.odo__col { display: inline-block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transition: transform var(--t-roll) var(--ease-out); }
.odo__strip > span { height: 1em; display: block; }

/* ---------- receipt rows ---------- */
.rrow { display: flex; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--line); }
.rrow__dots { flex: 1; border-bottom: 2px dotted #C9CAD2; margin-inline: 10px; transform: translateY(-6px); }
.amt { font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.amt--in { color: var(--leaf); }

/* ---------- motion classes ---------- */
.is-born { animation: born var(--t-split) var(--ease-spring) both; }
.is-leaving { animation: leave var(--t-base) var(--ease-out) forwards; }
.is-pinch-a { animation: pinch-a 320ms var(--ease-out); }
.is-pinch-b { animation: pinch-b 320ms var(--ease-out); }
.drop { animation: drop var(--t-split) var(--ease-spring) both; }
.enter { animation: enter 320ms var(--ease-out) both; }

@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes mark-type { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@keyframes born { from { opacity: 0; transform: translateY(-14px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-14px) scale(.9); } }
@keyframes pinch-a { 35% { transform: scale(.96, .9); } }
@keyframes pinch-b { 35% { transform: scale(.96, .9); } }
@keyframes drop { from { opacity: 0; transform: translateY(-16px) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes enter { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes flood { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes sk { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .typing i, .mark i, .sk, .dial__tip, .hero.is-low .hero__num { animation: none; }
  .is-born, .is-pinch-a, .is-pinch-b, .drop, .enter, .toast { animation: none; }
  .is-leaving { animation: none; opacity: 0; }
  .flood.is-on { animation: none; opacity: 0; }
  .odo__strip, .dial__thumb, .dial__fill, .switch::after { transition: none; }
}

/* ---------- the mascot (UI.mascot builds the SVG) ---------- */
.mascot { display: block; width: 100%; height: 100%; overflow: visible; }
.mascot__tile { fill: var(--saffron); }
.mascot__f { stroke: #16161D; }

/* ---------- admin acting as a shop ---------- */
.acting-strip { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px var(--page-x); background: #16161D; color: #fff; font: 500 13px/1.45 var(--font); }
.acting-strip span { flex: 1; }
.acting-strip button { flex: none; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); background: var(--saffron); color: #16161D; font: 600 13px/1 var(--font); }
