/* tokens:begin */
/* generated from design/tokens.json by scripts/design_tokens.py: edit there */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-pill: 999px;
  --fs-xs: 12px; --fs-s: 13px; --fs-m: 15px; --fs-l: 17px; --fs-xl: 22px;
  --chip-h: 36px; --control-h: 48px; --sheet-max: 85vh;
  --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 1px 3px rgb(16 24 40 / .08);
  --warm: #ffb703; --on-warm: #1f1600; --warm-bg: #fff5d6; --note-bg: #fff6e0; --note-fg: #6b4e00;
  --brand-navy: #0b2a5e; --brand-yellow: #ffb703; --homes-accent: #1660e8; --jobs-accent: #0a3a6e; --taxi-accent: #ffc107; --taxi-ink: #1a1400; --taxi-action: #0d7ff2;
}
@media (prefers-color-scheme: dark) { :root { --note-bg: #3a2f10; --note-fg: #f3d98b; --warm-bg: #33290d; --shadow: none; } }
:root[data-scheme="light"] { --note-bg: #fff6e0; --note-fg: #6b4e00; --warm-bg: #fff5d6; --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 1px 3px rgb(16 24 40 / .08); }
:root[data-scheme="dark"] { --note-bg: #3a2f10; --note-fg: #f3d98b; --warm-bg: #33290d; --shadow: none; }
/* tokens:end */
/* Arotaxi Mini App (T-4505, docs/47). Same tokens as the homes and jobs Mini Apps (docs/14-DESIGN-SYSTEM.md);
   surfaces follow Telegram's theme, the brand is the taxi yellow (--taxi-accent) on its own dark ink. */
:root {
  --bg: var(--tg-theme-secondary-bg-color, #f2f3f5);
  --surface: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #ffffff));
  --text: var(--tg-theme-text-color, #111418);
  /* Telegram's hint is 2.85:1 on white, and this app is used in the street: pulled towards the text colour */
  --muted: color-mix(in srgb, var(--tg-theme-hint-color, #6b7280) 72%, var(--text));
  --link: var(--tg-theme-link-color, #2a7ae2);
  --brand: var(--taxi-accent, #ffc107);      /* the yellow "A" of the logo */
  --on-brand: var(--taxi-ink, #1a1400);
  /* D217: what people press says who they are. A passenger's is the logo's yellow, always with dark ink on it */
  --action: var(--brand);
  --on-action: var(--on-brand);
  --action-ink: #8a6100;                     /* yellow as text or a thin line: unreadable on white, so this */
  --action-soft: color-mix(in srgb, var(--action) 20%, transparent);
  --line: color-mix(in srgb, var(--muted) 20%, transparent);
  --fill: color-mix(in srgb, var(--muted) 11%, transparent);
  --brand-soft: color-mix(in srgb, var(--brand) 22%, transparent);
  --good: #12a150; --good-soft: color-mix(in srgb, #12a150 14%, transparent);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--tg-theme-secondary-bg-color, #0e1621);
    --surface: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #17212b));
    --text: var(--tg-theme-text-color, #f5f5f5);
    --muted: color-mix(in srgb, var(--tg-theme-hint-color, #8b98a5) 72%, var(--text));
    --good: #3ccf7a;
    --action-ink: var(--brand);
  }
}
/* Telegram's theme and the phone's may differ: everything that has two shades follows Telegram's, not the media query */
:root[data-scheme="light"] { --action-ink: #8a6100; --good: #0a7a3c; }
:root[data-scheme="dark"] { --action-ink: var(--brand); --good: #3ccf7a; }
:root[data-role="driver"] {                  /* the old Arotaxi's blue: a driver's, in either theme */
  --action: var(--taxi-action, #0d7ff2);
  --on-action: #ffffff;
  --action-ink: var(--action);
  --action-soft: color-mix(in srgb, var(--action) 12%, transparent);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: var(--fs-m)/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.icon.s { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-s); }

main { max-width: 560px; margin: 0 auto; padding: var(--s4) var(--s4) calc(var(--s6) + 72px + var(--safe-b)); }
.boot { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--fill);
  border-top-color: var(--action-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); }
  70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.screen { animation: rise .18s ease-out; }
@media (prefers-reduced-motion: reduce) { .screen, .dot.live { animation: none; } }

/* brand head */
.brand { display: flex; align-items: center; gap: var(--s3); margin: var(--s1) 0 var(--s4); }
.logo { width: 32px; height: 32px; flex: none; display: block; }
.hello { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; margin: var(--s2) 0 var(--s4); }
.brand h1 { font-size: var(--fs-l); font-weight: 750; letter-spacing: -.01em; line-height: 1.2; }
.brand p { font-size: var(--fs-s); color: var(--muted); }

/* search card: from / to with the route line and the swap button */
.search { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--s2) var(--s4) var(--s4); }
.ends { position: relative; }
.end { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 60px; padding: var(--s2) 52px var(--s2) 0; }
.end + .end { border-top: 1px solid var(--line); }
.end .pin { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--action-ink); flex: none; }
.end.to .pin { border-color: var(--action-ink); background: var(--action-ink); }
.end .lbl { display: block; font-size: var(--fs-xs); color: var(--muted); }
.end .val { display: block; font-size: var(--fs-l); font-weight: 650; }
.end .val.unset { color: var(--muted); font-weight: 500; }
.ends::before { content: ""; position: absolute; left: 5px; top: 40px; bottom: 40px; border-left: 2px dotted var(--line); }
.swap { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: var(--fill); display: grid; place-items: center; }
.swap:active { transform: translateY(-50%) rotate(180deg); transition: transform .2s; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--fill); border-radius: var(--r-m); padding: 3px; margin-top: var(--s3); }
.seg button { height: 38px; border-radius: 11px; font-weight: 600; color: var(--muted); text-align: center; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.cta { display: flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; height: var(--control-h);
  border-radius: var(--r-m); background: var(--action); color: var(--on-action); font-weight: 700; font-size: var(--fs-l); margin-top: var(--s3); }
.cta:active { transform: scale(.985); }
.cta[disabled] { opacity: .45; }
.ghost { display: flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; height: var(--control-h);
  border-radius: var(--r-m); background: var(--action-soft); color: color-mix(in srgb, var(--action-ink) 78%, var(--text)); font-weight: 650; }

/* section and list */
.sec { margin: var(--s6) 0 var(--s2); font-size: var(--fs-s); font-weight: 650; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; }
.list { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 56px; padding: var(--s3) var(--s4); }
.row + .row { border-top: 1px solid var(--line); }
.row:active { background: var(--fill); }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: var(--fs-s); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .5; flex: none; }
.dot.live { background: var(--good); opacity: 1; animation: pulse 2s infinite; }
.chev { color: var(--muted); }

/* results */
.bar { position: sticky; top: 0; z-index: 5; margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s3);
  padding: var(--s3) var(--s4); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.bar .route { display: flex; align-items: center; gap: var(--s2); }
.bar h2 { font-size: var(--fs-l); line-height: 1.25; font-weight: 700; flex: 1; min-width: 0; } /* wraps: the destination is never cut */
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center; flex: none; }
.bar .seg { margin-top: var(--s2); }
.count { font-size: var(--fs-s); color: var(--muted); margin: var(--s1) 2px var(--s2); }

.ride { display: grid; grid-template-columns: 76px 1fr auto; gap: var(--s3); width: 100%; background: var(--surface);
  border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--s4); margin-bottom: var(--s3); animation: rise .2s ease-out both; }
.ride:active { transform: scale(.99); }
.ride .when { font-size: 20px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ride .when.word { font-size: var(--fs-s); font-weight: 700; line-height: 1.25; padding-top: 3px; overflow-wrap: anywhere; }
.ride .when small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ride .what { min-width: 0; }
.ride .path { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ride .via { font-size: var(--fs-s); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ride .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-pill);
  background: var(--fill); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.brand { background: var(--brand-soft); }
.count-pill { min-width: 28px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); background: var(--good-soft);
  color: var(--good); font-size: var(--fs-xs); font-weight: 700; display: inline-grid; place-items: center; }
.chip .icon { width: 14px; height: 14px; }
.ride .price { text-align: right; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ride .price small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.ride .foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  border-top: 1px solid var(--line); padding-top: var(--s3); font-size: var(--fs-s); color: var(--muted); }
.ride .call { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--action); color: var(--on-action); font-weight: 700; }

/* empty and off */
.empty { text-align: center; padding: var(--s6) var(--s4); background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); }
.empty .art { width: 96px; height: 96px; margin: 0 auto var(--s3); border-radius: 50%; background: var(--brand-soft);
  display: grid; place-items: center; color: var(--text); }
.empty .art .icon { width: 44px; height: 44px; stroke-width: 1.6; }
.empty h3 { font-size: var(--fs-l); margin-bottom: var(--s1); }
.empty p { color: var(--muted); margin-bottom: var(--s4); }

/* the watch dock under the results */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-b));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); }
.dock > * { max-width: 528px; margin: 0 auto; }
.watching { display: flex; align-items: center; gap: var(--s3); min-height: var(--control-h); padding: 0 var(--s4);
  border-radius: var(--r-m); background: var(--good-soft); color: var(--good); font-weight: 600; }
.watching span { flex: 1; }
.watching button { color: var(--text); font-weight: 600; font-size: var(--fs-s); opacity: .75; }

/* sheets */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / .4); animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: var(--sheet-max); display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0; padding: var(--s2) var(--s4) calc(var(--s4) + var(--safe-b));
  animation: up .22s cubic-bezier(.2, .8, .2, 1); max-width: 560px; margin: 0 auto; }
@keyframes up { from { transform: translateY(100%); } }
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto var(--s3); flex: none; }
.sheet h3 { font-size: var(--fs-l); margin-bottom: var(--s3); }
.sheet h3.sec { font-size: var(--fs-s); margin: var(--s4) 0 var(--s2); }
.reach-wait { display: grid; gap: var(--s3); margin-top: var(--s4); min-height: 172px; align-content: start; }
.reach-wait > i { display: block; height: 48px; border-radius: var(--r-m); background: var(--fill); animation: wait 1.2s ease-in-out infinite; }
.reach-wait > i:first-child { width: 62%; height: 32px; }
.reach-wait > .center { text-align: center; }
@keyframes wait { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .reach-wait > i { animation: none; } }
.find { display: flex; align-items: center; gap: var(--s2); height: 44px; padding: 0 var(--s3); border-radius: var(--r-m);
  background: var(--fill); margin-bottom: var(--s2); flex: none; }
.find input { flex: 1; border: 0; background: none; outline: none; font-size: var(--fs-l); min-width: 0; }
.picks { overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(-1 * var(--s4)); }
.more-row .title { color: var(--action-ink); }
.car-row { margin-bottom: var(--s3); }
.picks .grp { font-size: var(--fs-xs); font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  padding: var(--s3) var(--s4) var(--s1); }
.picks .row { min-height: 48px; padding: 0 var(--s4); }
.picks .row[aria-current="true"] .title { color: var(--action-ink); }
.big-phone { font-size: 26px; font-weight: 750; letter-spacing: .01em; text-align: center; margin: var(--s2) 0 var(--s1);
  font-variant-numeric: tabular-nums; }
.note { display: flex; gap: var(--s2); padding: var(--s3); border-radius: var(--r-m); background: var(--note-bg); color: var(--note-fg);
  font-size: var(--fs-s); margin: var(--s3) 0; }
.stack { display: grid; gap: var(--s2); }
a.cta, a.ghost { text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 30; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-pill); font-size: var(--fs-s);
  font-weight: 600; animation: rise .18s ease-out; white-space: nowrap; }

/* bottom menu (the old Arotaxi's tab bar, three honest tabs) */
body.with-nav main { padding-bottom: calc(84px + var(--safe-b)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 6px var(--s2) calc(6px + var(--safe-b)); background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar:empty { display: none; }
.tab { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.tab .icon { width: 24px; height: 24px; }
.tab[aria-current="true"] { color: var(--action-ink); }

/* watch tab */
.row .main { display: block; text-align: left; }
.row .stop { flex: none; height: 44px; padding: 0 12px; border-radius: var(--r-pill); background: var(--fill);
  font-size: var(--fs-s); font-weight: 600; }

/* drivers' tab */
.lead { color: var(--muted); margin: calc(-1 * var(--s2)) 0 var(--s4); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-bottom: var(--s4); }
.stat { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--s4); }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--action-ink);
  font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-s); color: var(--muted); }
.points { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); }
.point { display: flex; gap: var(--s3); padding: var(--s4); }
.point + .point { border-top: 1px solid var(--line); }
.point-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.point h3 { font-size: var(--fs-m); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.point p { font-size: var(--fs-s); color: var(--muted); margin-top: 2px; }

/* driver panel (T-4519, docs/49): profile, my rides, the steps of putting a ride up */
.join { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--s4); margin-bottom: var(--s4);
  border: 1.5px solid color-mix(in srgb, var(--action) 35%, transparent); }
.join h3 { font-size: var(--fs-l); margin-bottom: var(--s1); }
.join p { color: var(--muted); font-size: var(--fs-s); margin-bottom: var(--s2); }
.profile { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--s4); margin-bottom: var(--s3); }
.person { display: flex; align-items: center; gap: var(--s3); }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 22px;
  font-weight: 800; background: var(--brand); color: var(--on-brand); }
.who { flex: 1; min-width: 0; }
.who h3 { font-size: var(--fs-l); overflow-wrap: anywhere; }
.who p { font-size: var(--fs-s); color: var(--muted); overflow-wrap: anywhere; }
.who-name { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; text-align: left; }
.who-name .icon { flex: none; width: 15px; height: 15px; color: var(--muted); }
.who-share { display: block; min-height: 28px; font-size: var(--fs-s); font-weight: 600; color: var(--action-ink); }
.who .who-phone { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.who > .chip { margin-top: var(--s1); }
.prof-car { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.prof-car .car-tile { flex: none; }
.prof-car-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.prof-car-info > .muted { font-size: var(--fs-s); }
.prof-car-info > .plate { display: inline-flex; align-items: center; height: 26px; margin-top: 2px; }
.prof-stats { display: grid; grid-auto-flow: column; grid-auto-columns: auto; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.prof-stat { display: grid; gap: 1px; min-width: 0; }
.prof-stat + .prof-stat { padding-left: var(--s3); border-left: 1px solid var(--line); }
.prof-stat b { font-size: var(--fs-m); font-weight: 750; }
.prof-stat span { font-size: var(--fs-xs); color: var(--muted); }
.prof-pay { text-align: left; min-height: 44px; }
.prof-pay b { display: inline-flex; align-items: center; gap: 2px; color: var(--action-ink); }
.prof-pay .icon { width: 15px; height: 15px; }
.mine { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--s4); margin-bottom: var(--s3);
  animation: rise .2s ease-out both; }
.mine-top { display: flex; justify-content: space-between; gap: var(--s3); }
.mine-top h3 { font-size: var(--fs-l); }
.mine-price { font-size: var(--fs-l); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mine .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s2) 0 var(--s3); }
.mine-foot { display: flex; align-items: center; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); }
.mine-foot > span { flex: 1; }
.mine-foot .stop { flex: none; height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: var(--fill);
  font-size: var(--fs-s); font-weight: 600; }
.empty.slim { padding: var(--s4); color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: var(--s2); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; background: var(--action-soft); color: var(--action-ink);
  display: grid; place-items: center; }
.step-val { min-width: 22px; text-align: center; font-size: var(--fs-l); font-variant-numeric: tabular-nums; }
.steps { display: flex; align-items: center; gap: var(--s3); margin: var(--s1) 0 var(--s3); min-height: 24px; }
.q { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: var(--s2) 0 var(--s4); }
.time-box, .money-box { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); padding: 0 var(--s4); height: 64px;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); }
.time-box input, .money-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 28px;
  font-weight: 750; font-variant-numeric: tabular-nums; }
.money-box span { color: var(--muted); font-weight: 600; }
.hint { margin: var(--s2) 2px 0; }
.picks-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pick { height: var(--chip-h); padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow);
  font-weight: 600; font-size: var(--fs-s); }
.pick[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.toggle { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); padding: var(--s3) var(--s4);
  background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow); font-weight: 600; }
.toggle input { width: 22px; height: 22px; accent-color: var(--action); }
.kvs { padding: var(--s1) 0; }
.kv { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); }
.kv + .kv { border-top: 1px solid var(--line); }
.kv b { text-align: right; }
.done { text-align: center; padding: var(--s2) 0 var(--s2); }
.done .art { width: 72px; height: 72px; margin: 0 auto var(--s3); border-radius: 50%; background: var(--good-soft); color: var(--good);
  display: grid; place-items: center; }
.done .art .icon { width: 36px; height: 36px; stroke-width: 2.2; }
.done h3 { margin-bottom: var(--s1); }

/* the ride card v3 (D195, T-4534): calm and exact. The time leads, the car and its seats under it, the post's
   facts as quiet labels; freshness is a dot and a few words in the footer, colour only where it means something */
/* T-5663: small text, so at least 4.5:1 on the card in either theme; Telegram's theme beats the phone's */
:root { --lv-g: #0a7a3c; --lv-y: #8f5c00; --lv-r: #c4262e; --lv-n: var(--muted); }
@media (prefers-color-scheme: dark) { :root { --lv-g: #3ccf7a; --lv-y: #f5c542; --lv-r: #ff6b6b; } }
:root[data-scheme="light"] { --lv-g: #0a7a3c; --lv-y: #8f5c00; --lv-r: #c4262e; }
:root[data-scheme="dark"] { --lv-g: #3ccf7a; --lv-y: #f5c542; --lv-r: #ff6b6b; }
.ride { display: block; position: relative; padding: var(--s4); border-radius: 20px; text-align: left;
  border: 1px solid color-mix(in srgb, var(--muted) 12%, transparent);
  box-shadow: 0 1px 2px rgb(16 24 40 / .04), 0 10px 24px -18px rgb(16 24 40 / .28);
  transition: transform .12s ease, border-color .12s ease; }
.ride:active { transform: scale(.985); border-color: color-mix(in srgb, var(--action) 40%, transparent); }
.ride-main { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--s3); align-items: start; }
/* A picture is 400+ px wide: whichever screen shows it and whatever class it forgets, it never breaks the layout */
.car { display: block; flex: none; max-width: 96px; max-height: 64px; object-fit: contain; }
/* Quiet grey: a white car keeps its edge on it in both themes, and blue stays for what can be tapped */
.car-tile { display: grid; place-items: center; width: 80px; height: 60px; border-radius: 14px; overflow: hidden;
  background: var(--fill); color: var(--muted); }
.car-tile .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.car-tile .car { width: 100%; height: 100%; padding: 3px; box-sizing: border-box; }
.car-tile.s { flex: none; width: 52px; height: 36px; border-radius: 10px; }
.car-tile.s .icon { width: 22px; height: 22px; }
.ride-info { display: grid; gap: 3px; min-width: 0; align-self: center; }
.ride-info b { font-size: var(--fs-l); font-weight: 750; letter-spacing: -.015em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ride-car { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); margin-top: 1px; }
.ride-model { font-size: var(--fs-m); font-weight: 650; color: var(--text); }
.seats-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px;
  font-size: var(--fs-xs); font-weight: 650; white-space: nowrap;
  color: var(--action); background: color-mix(in srgb, var(--action) 12%, transparent); }
.seats-pill .icon { width: 13px; height: 13px; }
.seats-pill.last { color: var(--lv-y); background: color-mix(in srgb, var(--lv-y) 16%, transparent); }
.ride-route { font-size: var(--fs-s); color: var(--muted); }
.ride .foot { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
/* Soft labels on a card: many cards in a list, so outlines would turn into noise */
.ride .facts { margin-top: var(--s3); }
.ride .fact, .ride .trust { height: 24px; padding: 0 9px; border: 0; border-radius: 7px; background: var(--fill); }
.ride .fact.hot { background: color-mix(in srgb, var(--lv-r) 11%, transparent); }
.ride .fact.more { color: var(--muted); }
.ride .trust.good { background: color-mix(in srgb, var(--lv-g) 12%, transparent); }
.ride .fresh { font-weight: 600; min-width: 0; white-space: normal; line-height: 1.25; }
.ride .call { height: 36px; padding: 0 16px; font-weight: 650; font-size: var(--fs-s); flex: none; }
.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-s); font-weight: 650; color: var(--lv-n);
  white-space: nowrap; }
.fresh .dot { width: 7px; height: 7px; border-radius: 50%; opacity: 1; background: currentColor; flex: none; }
.fresh.lv-g { color: var(--lv-g); }
.fresh.lv-g .dot { animation: pulse 2s infinite; }
.fresh.lv-y { color: var(--lv-y); }
.fresh.lv-r { color: var(--lv-r); }
.trust { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.trust.good { color: var(--lv-g); font-weight: 600; }
.trust .icon { width: 14px; height: 14px; flex: none; }
.note.warn { background: color-mix(in srgb, var(--lv-y) 14%, transparent); color: var(--text); }

/* driver panel v2 */
.mine { position: relative; overflow: hidden; }
.mine-top .mine-car { width: 84px; height: auto; max-height: 36px; object-fit: contain; flex: none; }
.mine-fresh { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.mine-fresh > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ghost.slim::after { content: ""; position: absolute; inset: -5px 0; } /* 34 px to the eye, 44 px to the thumb */
.ghost.slim { position: relative; width: auto; height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--fs-s); flex: none; white-space: nowrap; }
.pick { display: inline-flex; align-items: center; gap: 6px; }
.pick .pick-car { width: 44px; height: 20px; object-fit: contain; }

/* "Men ham ketaman" (T-4512) and the drivers' board (T-4513) */
.waiting { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--good); font-size: var(--fs-s);
  font-weight: 600; margin: var(--s2) 0; }
.waiting .icon { width: 16px; height: 16px; }
.empty .stack { margin-top: var(--s4); width: 100%; }
.other-time { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); width: 100%;
  margin: var(--s3) 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-m); background: var(--surface);
  box-shadow: var(--shadow); text-align: left; }
.other-time span { color: var(--muted); font-size: var(--fs-s); }
.other-time b { color: var(--action-ink); white-space: nowrap; }
.watching.asked { align-items: center; }
.watching.asked > span { display: grid; flex: 1; min-width: 0; }
.watching.asked small { color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-people { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s4) 0 var(--s3); }
.center { text-align: center; margin-top: var(--s2); }
.waiting-sub { color: var(--good); font-weight: 600; }
.board { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--s4); margin: var(--s4) 0; }
.board h3 { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-l); }
.board h3 .icon { color: var(--good); }
.board > p { margin: 2px 0 var(--s2); }
.board-row { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) 0; border-top: 1px solid var(--line); }
.board-row > div { display: grid; flex: 1; min-width: 0; }
.board-row small { font-size: var(--fs-xs); }
.ghost.slim.center-btn { align-self: center; margin-top: var(--s2); }

/* trust (T-4515) */
.sheet-links { display: flex; align-items: center; justify-content: center; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s2); }
.relay-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s2); color: var(--action-ink); font-weight: 650; font-size: var(--fs-s); }
.other-time.fewer { margin-bottom: var(--s3); }
.report-link { display: block; min-height: 44px; margin: 0; padding: var(--s2); color: var(--muted); font-size: var(--fs-s);
  text-decoration: underline; background: none; }
.reasons { display: grid; gap: var(--s2); margin-top: var(--s3); }
.reason { width: 100%; padding: var(--s3) var(--s4); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow);
  text-align: left; font-weight: 600; }

/* home (T-4514): alive, personal, honest */
.cta.soft { background: var(--action-soft); color: var(--action-ink); }
.pulse { display: flex; align-items: center; gap: var(--s2); margin: calc(-1 * var(--s2)) 2px var(--s3); font-size: var(--fs-s); }
.pulse b { font-weight: 700; }
.pulse.quiet { color: var(--muted); }
.active { display: grid; gap: var(--s2); margin-top: var(--s3); }
.active-item { display: flex; align-items: center; gap: var(--s3); width: 100%; padding: var(--s3) var(--s4); border-radius: var(--r-l);
  background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.active-item:active { transform: scale(.99); }
.active-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--action-soft); color: var(--action-ink); }
.active-ic.ask { background: var(--good-soft); color: var(--good); }
.active-main { display: grid; flex: 1; min-width: 0; }
.active-main b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-main small { color: var(--muted); font-size: var(--fs-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon.chev, .active-item .chev { color: var(--muted); }
.recent { display: grid; gap: var(--s2); }
.recent-item { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; padding: var(--s3) var(--s4);
  border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.recent-item:active { transform: scale(.99); }
.recent-route { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-m); }
.recent-route b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-route .arrow { color: var(--muted); }
.recent-n { display: flex; align-items: center; gap: 6px; flex: none; font-size: var(--fs-s); color: var(--muted); }
.recent-n.has { color: var(--good); font-weight: 650; }
.how-list { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--s2) var(--s4); }
.how-step { display: flex; gap: var(--s3); padding: var(--s3) 0; }
.how-step + .how-step { border-top: 1px solid var(--line); }
.how-step b { display: block; font-weight: 650; }
.how-step small { color: var(--muted); font-size: var(--fs-s); }
.how-n { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 750;
  font-size: var(--fs-s); background: var(--brand); color: var(--on-brand); }
.ghost.tomorrow { margin-top: var(--s3); }

/* "Qachon?" (T-4527) */
.end.when { border-top: 1px solid var(--line); }
.end .pin.clock { width: 12px; height: 12px; border: 0; display: grid; place-items: center; color: var(--action-ink); }
.end .pin.clock .icon { width: 16px; height: 16px; }
.when-picker { display: grid; gap: var(--s3); margin-top: var(--s2); }
.hour-group { display: grid; gap: 6px; }
.hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.hour { height: 44px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); font-weight: 650;
  font-variant-numeric: tabular-nums; text-align: center; border: 1.5px solid transparent; }
.hour.wide { height: auto; padding: var(--s3) var(--s4); text-align: left; display: grid; gap: 2px; }
.hour.wide small { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.hour[aria-pressed="true"] { border-color: var(--action-ink); background: var(--action-soft); color: var(--action-ink); }
.live-slot:empty { display: none; }
.live-count { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); font-size: var(--fs-s); color: var(--muted); }
.when-chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; margin-top: var(--s2); padding: 0 var(--s3);
  border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow); font-weight: 650; font-size: var(--fs-s); }
.bar-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.when-chip .chev-down { color: var(--muted); font-size: var(--fs-xs); }
.ask-when { display: flex; align-items: center; gap: var(--s2); width: 100%; padding: var(--s3) var(--s4); border-radius: var(--r-m);
  background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.ask-when b { flex: 1; }
.ask-when .link { color: var(--action-ink); font-size: var(--fs-s); font-weight: 600; }

/* T-4534: the post's facts. Quiet outlined labels with line icons; only "Srochno" carries colour */
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s2); }
.fact { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--muted) 22%, transparent); font-size: var(--fs-xs); font-weight: 550;
  color: var(--text); white-space: nowrap; }
.fact .icon { width: 14px; height: 14px; color: var(--muted); flex: none; }
.fact.hot { color: var(--lv-r); border-color: color-mix(in srgb, var(--lv-r) 35%, transparent);
  background: color-mix(in srgb, var(--lv-r) 7%, transparent); }
.fact.hot .icon { color: currentColor; }
.fact.more { border-style: dashed; color: var(--muted); }

/* the ride's detail (the contact sheet): a scrolling page of its own */
.sheet { overflow-y: auto; overscroll-behavior: contain; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.detail-when { display: grid; gap: 2px; }
.detail-when b { font-size: 28px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.detail-when small { color: var(--muted); font-size: var(--fs-s); }
.detail-head .fresh { margin-top: 8px; }
.detail-route { margin-top: var(--s2); font-size: var(--fs-l); font-weight: 650; }
.detail-car { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s3); padding: var(--s3);
  border-radius: var(--r-m); background: var(--fill); font-weight: 600; }
.detail-car .trust { margin-left: auto; }
.detail-pic { width: 64px; height: auto; max-height: 30px; object-fit: contain; }
.fact-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); margin: var(--s4) 0 0;
  padding: 0; }
.fact-list .fact { border: 0; padding: 0; height: auto; font-size: var(--fs-s); white-space: normal; background: none; }
.fact-list .fact .icon { width: 16px; height: 16px; }
.phone-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s4) 0 var(--s3);
  padding: var(--s3) var(--s3) var(--s3) var(--s4); border-radius: var(--r-m); border: 1px solid var(--line); }
.phone-row .big-phone { margin: 0; font-size: 22px; text-align: left; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--fill);
  color: var(--text); flex: none; }

/* T-5653, T-5655: passengers' phones, the pass, signing up */
.verify h3 { display: flex; align-items: center; gap: var(--s2); }
.text-in { width: 100%; height: var(--control-h); padding: 0 var(--s3); margin: var(--s3) 0; border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.plate-row { padding: var(--s2) 0; align-items: center; }
.fit-none { margin: var(--s1) 2px var(--s2); font-weight: 650; }
.plate { padding: 2px 8px; border: 1.5px solid var(--text); border-radius: 6px; letter-spacing: .04em; white-space: nowrap; }
.verified-note { margin: var(--s1) 0 var(--s2); }
.people .lock { padding: var(--s3); margin: var(--s2) 0; border-radius: var(--r-m); background: var(--brand-soft); }
.people .lock p { font-size: var(--fs-s); margin: 2px 0 var(--s3); }
.people .boot { min-height: 0; padding: var(--s3) 0; }
.people > .ghost.slim { margin: var(--s1) 0 var(--s2); }
.people a.ghost.slim { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: inherit; }
.plans { display: grid; gap: var(--s2); margin: var(--s3) 0; }
.pick.plan { width: 100%; height: var(--control-h); font-weight: 650; font-size: var(--fs-m); }
.offer { display: flex; align-items: flex-start; gap: var(--s2); font-size: var(--fs-s); }
.offer input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.offer-read { display: block; margin: var(--s1) 0 var(--s3) 28px; font-size: var(--fs-s); color: var(--link, var(--brand-strong, inherit)); text-decoration: underline; }
.sheet .ghost:not(.slim) { margin-top: var(--s2); width: 100%; }
.pay-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: var(--s3); margin-bottom: var(--s2);
  border-radius: var(--r-m); background: var(--fill); text-align: left; }
.pay-row b { font-size: var(--fs-l); font-variant-numeric: tabular-nums; }
.sheet .note { margin: var(--s2) 0 var(--s3); }
.join-seats { display: flex; align-items: center; justify-content: space-between; margin: var(--s3) 0; }
.join-car { font-size: var(--fs-s); margin-bottom: var(--s2); }
.join > .cta { margin-top: var(--s4); }
.join .pick:not([aria-pressed="true"]) { background: var(--fill); box-shadow: none; }

/* --- the driver's flows (T-5657, docs/57): one frame for the application and for putting a ride up --- */
.screen.still { animation: none; }
.segs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s1); }
.segs span { height: 4px; border-radius: 2px; background: var(--fill); transition: background .2s; }
.segs span.on { background: var(--action-ink); }
.flow-space { height: calc(var(--control-h) + var(--s6) + var(--safe-b)); }
.field { margin-top: var(--s4); }
.field .sec, .usual .sec { margin: 0 0 var(--s2); }
.field .text-in { margin: var(--s2) 0 0; }
.field-err { display: flex; align-items: flex-start; gap: 6px; margin: var(--s2) 2px 0; color: var(--lv-r); font-size: var(--fs-s); font-weight: 600; }
.field-err .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.flow-note { display: flex; align-items: flex-start; gap: var(--s2); margin: var(--s4) 2px 0; }
.flow-note .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.usual { margin-bottom: var(--s4); }
.usual-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: var(--control-h); padding: var(--s2) var(--s4); text-align: left; }
.usual-row + .usual-row { border-top: 1px solid var(--line); }
.usual-row .icon { width: 16px; height: 16px; color: var(--muted); }
.kv-edit { align-items: center; width: 100%; text-align: left; min-height: var(--control-h); }
.kv-edit > .muted { flex: 1; }
.kv-edit > .icon { flex: none; width: 16px; height: 16px; margin-left: calc(var(--s1) * -1); color: var(--muted); }
.field-head { display: flex; align-items: center; gap: var(--s2); width: 100%; min-height: 40px; }
.field-head .sec { flex: 1; text-align: left; margin: 0; }
.field-head .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.field-head[aria-expanded="true"] .icon { transform: rotate(90deg); }
.pick.has-check .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.seat-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.seat-pick button { height: var(--control-h); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); font-size: var(--fs-l); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.seat-pick button[aria-pressed="true"] { background: var(--action); color: var(--on-action); }

.swatch { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); }
.sw-white { background: #fff; } .sw-black { background: #15171a; } .sw-silver { background: #c7ccd1; } .sw-grey { background: #7d848b; }
.sw-blue { background: #2463c9; } .sw-red { background: #cf2e2e; } .sw-green { background: #2c8a4b; } .sw-beige { background: #dcc9a3; }
.sw-brown { background: #6e4a2c; } .sw-other { background: conic-gradient(#cf2e2e, #ffb703, #2c8a4b, #2463c9, #cf2e2e); }

/* A plate looks like the plate on the car, in either theme */
.plate { position: relative; display: flex; align-items: center; height: 56px; padding: 0 var(--s3); border: 2px solid #15171a; border-radius: var(--r-s); background: #fff; color: #15171a; }
.plate-in { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: none; color: inherit; font: inherit; font-size: 22px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.plate-in::placeholder { color: #9aa1a8; font-weight: 600; }
.plate:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 45%, transparent); }
.plate-hint { margin-top: var(--s2); font-size: var(--fs-s); color: var(--muted); }
.plate-ok { display: grid; place-items: center; width: 24px; color: #12a150; }
.plate-ok .icon { stroke-width: 2.8; }
.plate-uz { margin-left: var(--s2); padding-left: var(--s2); border-left: 1px solid #c9ced3; color: #1660e8; font-size: var(--fs-xs); font-weight: 800; }
.plate.plate-s { height: 30px; padding: 0 var(--s2); border-width: 1.5px; border-radius: 6px; font-size: var(--fs-s); font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
.plate-s .plate-uz { font-size: 9px; margin-left: 6px; padding-left: 6px; }

.doc-slots { display: grid; gap: var(--s3); }
.doc-slot { position: relative; display: flex; gap: var(--s3); padding: var(--s3); border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); border-radius: var(--r-l); background: var(--surface); cursor: pointer; }
.doc-slot.done { border-style: solid; border-color: var(--good); }
.doc-slot.bad { border-style: solid; border-color: var(--lv-r); }
.doc-pic { position: relative; flex: none; display: grid; place-items: center; width: 104px; height: 78px; border-radius: var(--r-m); background: var(--fill); overflow: hidden; }
.doc-pic img { width: 100%; height: 100%; object-fit: cover; }
.doc-art { width: 84px; height: 63px; color: var(--muted); stroke-width: 1.6; }
.doc-hi { fill: var(--brand-soft); stroke: var(--brand); }
.doc-ok { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--good); color: #fff; }
.doc-ok .icon { width: 14px; height: 14px; stroke-width: 3; }
.doc-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; }
.doc-text small { font-size: var(--fs-xs); line-height: 1.35; }
.doc-err { color: var(--lv-r); font-weight: 600; }
.doc-act { margin-top: auto; padding-top: var(--s1); color: var(--action-ink); font-size: var(--fs-s); font-weight: 700; }
.doc-input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.kv-thumbs { display: flex; gap: var(--s1); }
.kv-thumbs img { width: 44px; height: 33px; border-radius: 6px; object-fit: cover; }
.offer-box { align-items: center; margin-top: var(--s4); padding: var(--s3); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.offer-box.bad { box-shadow: 0 0 0 1.5px var(--lv-r); }
.offer-box input { width: 22px; height: 22px; accent-color: var(--action); }
.offer-link { color: var(--link); text-decoration: underline; white-space: nowrap; }

.panel-cta { margin-bottom: var(--s4); }
.join.verify .verify-need { display: flex; align-items: center; gap: 6px; margin-bottom: var(--s3); color: var(--text); font-weight: 600; }
.verify-need .icon { flex: none; width: 16px; height: 16px; color: var(--muted); }
.join.verify .field-err { margin: 0 0 var(--s3); }
.returning { margin-bottom: var(--s3); }
.returning .back-q { margin: var(--s3) 0 var(--s1); font-weight: 650; color: var(--text); }
.returning .back-car { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.returning .cta { margin-top: var(--s3); }
.returning .ghost { width: 100%; margin-top: var(--s2); min-height: 44px; }
.stages { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: var(--s3) 0; padding: 0; font-size: var(--fs-xs); color: var(--muted); }
.stages li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.stages li + li::before { content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.stages li.now::before { background: var(--action); }
.dot-s { position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); color: #fff; }
.stages .past .dot-s { background: var(--good); box-shadow: none; }
.stages .now .dot-s { background: var(--action); box-shadow: 0 0 0 4px var(--action-soft); }
.dot-s .icon { width: 14px; height: 14px; stroke-width: 3; }
.stages .now { color: var(--text); font-weight: 650; }

.wait-group { border-top: 1px solid var(--line); padding: var(--s1) 0; }
.wait-group .board-row { border-top: 0; }
.wait-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 6px 0 6px var(--s3); border-left: 2px solid var(--line); margin-bottom: var(--s1); }
.wait-row small { font-size: var(--fs-xs); }
.wait-more { margin: var(--s2) auto 0; }

.mine > .chip { margin-top: var(--s2); }
.mine-stats { margin-top: var(--s2); }
.mine-seen { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 var(--s3); }
.mine-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s3); }
.mine-actions.one { grid-template-columns: 1fr; }
.mine-actions .ghost.slim { width: 100%; height: 40px; }
