/* Parkly design system.
   Taxi yellow on subway black, on a plain white page. Station signs, line bullets
   and countdown boards are lifted from the street. The status colors are the MTA
   line colors, so the only hues in the app are ones a New Yorker already knows. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --taxi: #FFC800;
  --taxi-deep: #C99700;
  --taxi-soft: #FFF4CC;

  --paper: #FFFFFF;
  --paper-2: #F3F4F2;
  --card: #FFFFFF;
  --card-2: #F1F2F0;
  --ink: #15171A;
  --ink-2: #565C65;
  --muted: #747B85;
  --faint: #C4C8CE;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .16);

  --go: #00793A;
  --go-soft: #DBF2E3;
  --warn: #B4480A;
  --warn-soft: #FFE8DA;
  --bad: #C9231B;
  --bad-soft: #FDE3E1;
  --info: #0039A6;
  --info-soft: #E3EAF8;

  --on-chip: #FFFFFF;
  --chip-on: #000000;

  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .05);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .1);
  --sh-3: 0 -4px 24px rgba(0, 0, 0, .14);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabh: calc(62px + env(safe-area-inset-bottom));
  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-resolved="dark"] {
  color-scheme: dark;
  --taxi-deep: #FFC800;
  --taxi-soft: #3A2F05;
  --paper: #111316;
  --paper-2: #181B1F;
  --card: #1B1E23;
  --card-2: #24282E;
  --ink: #F2F3F4;
  --ink-2: #B3B9C1;
  --muted: #8F96A0;
  --faint: #4C525A;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .2);
  --go: #5AD78E;
  --go-soft: #0F3020;
  --warn: #FFA671;
  --warn-soft: #3A2010;
  --bad: #FF8A82;
  --bad-soft: #3B1513;
  --info: #9DB8F2;
  --info-soft: #17233F;
  --on-chip: #000000;
  --chip-on: #FFC800;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 4px 18px rgba(0, 0, 0, .5);
  --sh-3: 0 -6px 26px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: #000; color: var(--ink); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
b { font-weight: 800; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--info); outline-offset: 2px; }
:root[data-resolved="dark"] :focus-visible { outline-color: var(--taxi); }

/* ---- Frame ---- */
.device { position: fixed; inset: 0; overflow: hidden; background: var(--paper); isolation: isolate; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.device input, .device textarea { -webkit-user-select: text; user-select: text; }
#app { position: absolute; inset: 0; }
@media (min-width: 720px) and (min-height: 560px) {
  body {
    background-color: #E9E8E2;
    background-image:
      linear-gradient(rgba(0, 0, 0, .07) 2px, transparent 2px),
      linear-gradient(90deg, rgba(0, 0, 0, .07) 2px, transparent 2px);
    background-size: 84px 42px;
  }
  :root[data-resolved="dark"] body { background-color: #0B0C0E; background-image: linear-gradient(rgba(255, 255, 255, .05) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .05) 2px, transparent 2px); }
  .device {
    inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 402px; height: min(868px, calc(100dvh - 36px));
    border-radius: 42px; box-shadow: 0 0 0 9px #000, 0 30px 70px rgba(0, 0, 0, .35);
  }
}

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper); padding-top: env(safe-area-inset-top); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll::-webkit-scrollbar, .hscroll::-webkit-scrollbar, .rail::-webkit-scrollbar, .ds-chips::-webkit-scrollbar, .g-track::-webkit-scrollbar { display: none; }
.has-tabs .scroll { padding-bottom: calc(var(--tabh) + 14px); }
.with-dock { padding-bottom: 116px; }
.pad { padding: 18px 18px 0; }
.pad-x { padding-left: 18px; padding-right: 18px; }

.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-xs { gap: 6px; } .gap-sm { gap: 10px; } .gap { gap: 16px; } .gap-lg { gap: 24px; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center-text { text-align: center; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- Type ---- */
.h1 { font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.h2 { font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.022em; }
.h3 { font-size: 16.5px; line-height: 1.25; font-weight: 800; letter-spacing: -.012em; }
.body { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.lead { margin: 8px 0 22px; }
.cap { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.muted { color: var(--muted); }
.section-title { font-size: 18px; font-weight: 800; letter-spacing: -.016em; margin: 26px 0 10px; }
.link { color: var(--info); font-weight: 700; font-size: 14px; }
.label { font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: 15px; letter-spacing: -.005em; transition: transform .1s var(--ease), opacity .2s; user-select: none; white-space: nowrap; }
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--taxi); color: #000; }
.btn-dark { background: #000; color: #fff; }
:root[data-resolved="dark"] .btn-dark { background: #fff; color: #000; }
.btn-secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost { color: var(--ink-2); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-on-dark { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); }
.btn-block { width: 100%; }
.btn-lg { height: 56px; font-size: 16px; }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14px; }

.icon-btn { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn[disabled] { opacity: .4; }
.icon-btn.on-art { background: #fff; color: #000; box-shadow: var(--sh-1); }
.icon-btn.send { background: var(--taxi); color: #000; width: 46px; height: 46px; }

.badge { position: absolute; top: -3px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #EE352E; color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--paper); }
.badge.inline { position: static; box-shadow: none; }

/* ---- Chips and controls ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; flex: none; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); white-space: nowrap; }
.chip.active { background: var(--chip-on); color: var(--on-chip); box-shadow: none; }
.chip-sm { height: 34px; }
.chip .count { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--taxi); color: #000; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.tag { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--card-2); font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.tag-taxi { background: var(--taxi); color: #000; }

.status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status.ok { background: var(--go-soft); color: var(--go); }
.status.live { background: var(--go); color: #fff; }
:root[data-resolved="dark"] .status.live { color: #000; }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.status.neutral { background: var(--card-2); color: var(--ink-2); }

.seg { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--card-2); }
.seg button { flex: 1; min-width: 0; height: 38px; padding: 0 6px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: background .16s, color .16s; }
.seg button.active { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.seg-wrap { padding-bottom: 12px; }

.switch { width: 48px; height: 28px; padding: 3px; flex: none; border-radius: 999px; background: var(--line-2); transition: background .18s; }
.switch.on { background: var(--go); }
.switch .knob { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .18s var(--ease); }
.switch.on .knob { transform: translateX(20px); }

.field { display: flex; flex-direction: column; gap: 7px; }
.input { width: 100%; height: 52px; padding: 0 14px; border-radius: var(--r); background: var(--card); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 16px; font-weight: 600; }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
textarea.input { height: auto; padding: 13px 14px; line-height: 1.45; resize: none; font-weight: 500; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 19px) 24px, calc(100% - 14px) 24px; background-size: 5px 5px; background-repeat: no-repeat; }
.range { width: 100%; accent-color: var(--ink); height: 30px; }
:root[data-resolved="dark"] .range { accent-color: var(--taxi); }

.hscroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 4px; scrollbar-width: none; }
.day { flex: none; width: 62px; height: 66px; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.day b { font-size: 19px; color: var(--ink); }
.day.active { background: var(--chip-on); color: var(--on-chip); box-shadow: none; }
.day.active b { color: var(--on-chip); }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper b { min-width: 44px; text-align: center; font-size: 17px; }

.notice { display: flex; gap: 8px; align-items: flex-start; padding: 11px 13px; margin: 12px 0; border-radius: var(--r); background: var(--info-soft); color: var(--info); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.notice svg { flex: none; margin-top: 1px; }
.notice.taxi { background: var(--taxi-soft); color: var(--ink); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }

.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 0, .25); border-top-color: #000; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Top bar, tab bar, dock ---- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 18px 10px; flex: none; }
.topbar-title { font-size: 24px; font-weight: 800; letter-spacing: -.028em; line-height: 1.1; margin: 0; }
.topbar .icon-btn + .grow .topbar-title { font-size: 19px; }

.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--tabh); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tab.active { color: var(--ink); }
.tab-ic { position: relative; display: grid; place-items: center; width: 48px; height: 28px; border-radius: 999px; }
.tab.active .tab-ic { background: var(--taxi); color: #000; }

.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
.dock.split { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dock-price { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.dock-price small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* ---- Brand and transit pieces ---- */
.logo { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--taxi); color: #000; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.bullet { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 700; line-height: 1; }
.lines { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.rail-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--card-2); color: var(--ink-2); font-size: 11px; font-weight: 800; }
.rail-tag.on-dark { background: #fff; color: #000; }

.sign { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 18px 14px 12px; background: #000; color: #fff; border-radius: 6px; }
.sign::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: #fff; }
.sign-name { font-size: 20px; font-weight: 700; letter-spacing: -.012em; line-height: 1.15; flex: 1 1 auto; min-width: 55%; }
.sign.small { padding: 14px 11px 9px; }
.sign.small::before { top: 5px; height: 1.5px; }
.sign.small .sign-name { font-size: 15px; }
.sign-walk { flex-basis: 100%; display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--taxi); }

.stars { display: inline-flex; gap: 2px; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; }
.rating b { font-weight: 800; }
.rating .new { font-weight: 700; color: var(--ink-2); }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 800; }

/* ---- Rows ---- */
.row-btn, .st-row, .thread, .note { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 0; text-align: left; }
.row-btn + .row-btn, .st-row + .st-row, .thread + .thread, .note + .note { border-top: 1px solid var(--line); }
.row-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; }
.row-title { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.008em; line-height: 1.25; }
.row-sub { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.35; margin-top: 1px; }
.row-btn.danger .row-title { color: var(--bad); }
.st-row .lines { margin-top: 5px; }

.lrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; text-align: left; content-visibility: auto; contain-intrinsic-size: auto 98px; }
.lrow + .lrow { border-top: 1px solid var(--line); }
.lthumb { width: 76px; height: 76px; flex: none; border-radius: 12px; overflow: hidden; background: var(--card-2); }
.scene { display: block; width: 100%; height: 100%; object-fit: cover; }
.lbody { flex: 1; min-width: 0; }
.ltitle { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.lwalk { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.lmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 5px; }
.lprice { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.lprice b { font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.lprice small { font-size: 12px; color: var(--muted); }

.menu { margin-top: 16px; padding: 2px 14px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }

/* ---- Mode switch ---- */
.mode-chip { position: relative; pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; flex: none; border-radius: 999px; background: #000; color: #fff; font-size: 13px; font-weight: 800; box-shadow: var(--sh-1); }
:root[data-resolved="dark"] .mode-chip { background: #fff; color: #000; }
.seller .hero .mode-chip { background: var(--taxi); color: #000; }
.mode-dot { position: absolute; top: -1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #EE352E; box-shadow: 0 0 0 2px var(--paper); }

.wipe { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: #000; color: #fff; animation: wipe 1.05s var(--ease) both; }
.wipe.renter { background: var(--taxi); color: #000; }
.wipe.renter .logo { background: #000; color: var(--taxi); }
.wipe-in { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.wipe-title { font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin-top: 6px; }
.wipe-sub { font-size: 14.5px; font-weight: 600; opacity: .72; }
@keyframes wipe {
  0% { clip-path: circle(0 at 86% 7%); }
  42% { clip-path: circle(150% at 86% 7%); opacity: 1; }
  82% { opacity: 1; }
  100% { clip-path: circle(150% at 86% 7%); opacity: 0; }
}

/* ---- Welcome ---- */
.welcome { background: #000; color: #fff; padding-bottom: env(safe-area-inset-bottom); }
.w-brand { padding: 34px 26px 0; flex: none; }
.w-title { margin-top: 18px; font-size: 41px; line-height: 1.02; font-weight: 800; letter-spacing: -.04em; }
.w-sub { margin-top: 12px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .72); max-width: 30ch; }
.wscene { flex: 1; min-height: 0; width: 100%; display: block; overflow: visible; }
.w-actions { flex: none; padding: 6px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.w-note { font-size: 12.5px; text-align: center; color: rgba(255, 255, 255, .58); }
.w-train { animation: w-train 4.6s linear both; }
.w-car { animation: w-car 3s var(--ease) .4s both; }
.w-pin { animation: w-pin .36s var(--ease) 3.3s both; }
@keyframes w-train { from { transform: translateX(-500px); } to { transform: translateX(420px); } }
@keyframes w-car {
  0% { transform: translate(-60px, 304px); }
  58% { transform: translate(228px, 304px) scale(1); }
  100% { transform: translate(228px, 234px) scale(.72); }
}
@keyframes w-pin { from { opacity: 0; } to { opacity: 1; } }

/* ---- Sign-up flow ---- */
.flow-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; flex: none; }
.flow-body { padding: 10px 22px 120px; }
.linesteps { flex: 1; display: flex; align-items: center; justify-content: space-between; position: relative; }
.linesteps::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--card-2); border-radius: 2px; }
.linesteps .stop { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 3px var(--faint); }
.linesteps .stop.done { background: #000; box-shadow: 0 0 0 3px #000; }
.linesteps .stop.now { background: var(--taxi); box-shadow: 0 0 0 3px #000; }
:root[data-resolved="dark"] .linesteps .stop.done { background: var(--taxi); box-shadow: 0 0 0 3px var(--taxi); }
:root[data-resolved="dark"] .linesteps .stop.now { box-shadow: 0 0 0 3px #fff; }

.role-card { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px; text-align: left; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.role-card.active { box-shadow: inset 0 0 0 2.5px var(--ink); }
.role-ic { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); }
.role-card.active .role-ic { background: var(--taxi); color: #000; }
.role-title { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.012em; margin-bottom: 2px; }
.radio { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); }
.active > .radio { box-shadow: inset 0 0 0 7px var(--ink); }

.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-cell { height: 62px; display: grid; place-items: center; border-radius: var(--r); font-size: 24px; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.otp-cell.on { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---- Home map ---- */
.home { padding-top: 0; }
.map-host { position: absolute; inset: 0 0 var(--tabh); background: var(--paper-2); }
.map-canvas { position: absolute; inset: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px 24px 50%; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); }
.home-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: calc(env(safe-area-inset-top) + 10px) 12px 0; pointer-events: none; }
.search-row { display: flex; align-items: center; gap: 8px; }
.search-pill { pointer-events: auto; flex: 1; min-width: 0; display: flex; align-items: center; height: 50px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-2); }
.sp-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; height: 100%; padding: 0 0 0 9px; text-align: left; }
.sp-text { font-size: 15px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.sp-text.set { color: var(--ink); }
.sp-x { width: 42px; height: 100%; display: grid; place-items: center; flex: none; }

.rail { pointer-events: auto; display: flex; align-items: center; gap: 5px; margin: 8px -12px 0; padding: 2px 12px 6px; overflow-x: auto; scrollbar-width: none; }
.when-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); font-size: 13px; font-weight: 700; white-space: nowrap; }
.rail-b { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--card); box-shadow: var(--sh-1); }
.rail-b.active { box-shadow: 0 0 0 2.5px var(--ink); }
.rail-t { flex: none; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.rail-t.active { background: var(--chip-on); color: var(--on-chip); }

.sheet-zone { position: absolute; inset: 0 0 var(--tabh); z-index: 6; overflow: hidden; pointer-events: none; }
.dsheet { position: absolute; top: 0; left: 0; right: 0; height: 100%; display: flex; flex-direction: column; background: var(--paper); border-radius: 22px 22px 0 0; box-shadow: var(--sh-3); pointer-events: auto; transition: transform .3s var(--ease); will-change: transform; }
.ds-head { flex: none; padding: 7px 16px 8px; touch-action: none; cursor: grab; user-select: none; }
.grab { width: 38px; height: 4.5px; margin: 0 auto 9px; border-radius: 3px; background: var(--line-2); }
.ds-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ds-chips { display: flex; gap: 7px; margin: 9px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.ds-body { flex: none; overflow-y: auto; padding: 0 16px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ds-body::-webkit-scrollbar { display: none; }
.group { padding-top: 12px; }
.group-sign { display: block; width: 100%; text-align: left; }
.group-note { margin: 7px 2px 0; font-size: 12.5px; color: var(--muted); }
.pin-card { position: absolute; left: 10px; right: 10px; bottom: calc(var(--tabh) + 126px); z-index: 7; padding: 0 12px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-2); }

/* Map markers. MapLibre owns `transform` on these, so nothing here may set it. */
.pin { display: none; height: 28px; padding: 0 9px; border-radius: 999px; background: #000; color: #fff; font: 800 13px var(--font); box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; line-height: 28px; }
.z-hi .pin, .pin.static { display: block; }
.pin.active, .pin.mine { background: var(--taxi); color: #000; box-shadow: 0 0 0 2px #000, 0 2px 8px rgba(0, 0, 0, .3); }
.pin.static { width: 28px; padding: 0; text-align: center; border-radius: 50%; }
.hub { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.hub-dot { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--taxi); color: #000; font: 800 12px var(--font); box-shadow: 0 0 0 2px #000; }
.hub-from, .hub-name { display: none; }
.z-mid .hub { padding: 2px 9px 2px 2px; border-radius: 999px; background: #000; color: #fff; box-shadow: 0 0 0 1.5px #fff, 0 2px 6px rgba(0, 0, 0, .3); }
.z-mid .hub-dot { box-shadow: none; }
.z-mid .hub-from { display: inline; font: 800 12px var(--font); white-space: nowrap; }
.z-hi .hub-dot, .z-hi .hub-from { display: none; }
.z-hi .hub-name { display: block; padding: 4px 8px; border-radius: 4px; background: #000; color: #fff; font: 700 11.5px var(--font); white-space: nowrap; }
.hub.active .hub-dot { background: #000; color: var(--taxi); box-shadow: 0 0 0 2px var(--taxi); }
.station-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #000; }

.mini-map { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.mini-map .map-fallback { padding: 20px; }
.map-note { margin-top: 7px; }
.maplibregl-ctrl-attrib { font: 500 10px var(--font) !important; }
.maplibregl-canvas:focus-visible { outline: none; }

/* ---- Search screen ---- */
.search-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px 6px; flex: none; }
.search-bar .input { height: 46px; border-radius: 999px; }

/* ---- Listing ---- */
.listing { padding-top: 0; }
.float-top { position: absolute; top: calc(env(safe-area-inset-top) + 10px); left: 14px; right: 14px; z-index: 5; display: flex; justify-content: space-between; }
.gallery { position: relative; aspect-ratio: 16 / 11; background: var(--card-2); }
.g-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.g-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.g-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 2px rgba(0, 0, 0, .4); }
.g-dots span.on { background: #fff; }
.listing .sign { border-radius: 0; }
.meta-line { margin: 7px 0 12px; font-size: 13.5px; }

.trip { list-style: none; margin: 0; padding: 0; }
.t-stop { display: flex; align-items: flex-start; gap: 12px; }
.t-stop > span:last-child { min-width: 0; }
.t-stop b { display: block; font-size: 15px; letter-spacing: -.01em; line-height: 1.3; }
.t-stop small { display: block; font-size: 13px; color: var(--ink-2); }
.t-lines { display: block; margin-top: 4px; }
.t-mark { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 5px var(--trip); }
.t-mark.p { display: grid; place-items: center; background: var(--taxi); color: #000; box-shadow: none; font-size: 13px; font-weight: 800; }
.t-leg { display: flex; align-items: center; gap: 6px; margin-left: 9.5px; padding: 8px 0 8px 21px; font-size: 13px; font-weight: 600; color: var(--ink-2); border-left: 3px solid var(--trip); }
.t-leg.walk { border-left: 3px dotted var(--muted); }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.spec { display: flex; align-items: center; gap: 10px; min-width: 0; }
.spec svg { flex: none; }
.spec b { display: block; font-size: 13.5px; line-height: 1.25; font-weight: 700; }
.spec small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.25; }

.feats { margin-top: 14px; }
.feat { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; background: var(--card-2); font-size: 13px; font-weight: 700; }

.seller-row { display: flex; align-items: center; gap: 12px; }
.review { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .body { margin: 4px 0; }
.review-stars { display: flex; justify-content: center; padding: 22px 0; }
.review-stars button { padding: 3px; }

/* ---- Checkout ---- */
.check-spot { display: flex; align-items: center; gap: 12px; width: 100%; padding: 4px 0 2px; text-align: left; }
.hours-note { margin-top: 10px; }
.price { padding: 2px 0; }
.price > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.price dd { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; white-space: nowrap; }
.price .total { margin-top: 5px; padding-top: 11px; border-top: 1.5px solid var(--ink); font-size: 16.5px; color: var(--ink); font-weight: 800; }
.price .total dd { font-weight: 800; }

/* ---- Pass ---- */
.pass { margin: 2px 0 14px; border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--sh-2); }
.pass .sign { border-radius: 0; }
.pass-body { padding: 16px 16px 14px; }
.pass-body .body { margin-top: 5px; }
.pass-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 8px; margin-top: 14px; }
.pass-grid small { display: block; font-size: 12px; color: var(--muted); }
.pass-grid b { display: block; font-size: 13.5px; letter-spacing: -.01em; line-height: 1.25; }
.pass-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 14px; border-top: 2px dashed var(--line-2); }
.pass-code small { display: block; font-size: 12px; color: var(--muted); }
.pass-code b { font-size: 29px; letter-spacing: .09em; line-height: 1.1; }
.pass-links { margin-top: 12px; }
.meter { margin-top: 13px; }
.meter-row, .perf-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.meter-row b, .perf-row b { color: var(--ink); }
.meter-bar { height: 8px; margin: 7px 0 6px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.meter-bar span { display: block; height: 100%; border-radius: 4px; background: var(--taxi); transition: width .6s linear; }

.board { padding: 13px 14px 11px; border-radius: var(--r); background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.board-title { font-size: 13.5px; font-weight: 700; color: var(--taxi); margin-bottom: 6px; }
.board-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; text-align: left; color: #fff; font-size: 14.5px; font-weight: 600; border-top: 1px solid rgba(255, 255, 255, .14); }
.board-row b { color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.board-row b.on { color: var(--taxi); }
.board-car { display: block; font-weight: 700; }
.board-plate { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .62); font-weight: 600; }
.board-line { width: 46px; flex: none; }
.board-note { margin-top: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .56); }

.bcard { display: block; width: 100%; text-align: left; border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.bcard .sign { border-radius: 0; }
.bcard-body { display: block; padding: 11px 13px 12px; }
.bcard-foot { margin-top: 9px; }

/* ---- Seller ---- */
.hero { display: flex; flex-direction: column; padding: 10px 18px 16px; background: #000; color: #fff; }
.seller .scroll { padding-top: 0; }
.seller { background: var(--paper); padding-top: 0; }
.seller .hero { padding-top: calc(env(safe-area-inset-top) + 12px); }
.hero-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero-hi { font-size: 15px; font-weight: 700; }
.hero .icon-btn { background: rgba(255, 255, 255, .13); color: #fff; }
.hero .badge { box-shadow: 0 0 0 2px #000; }
.hero-sum { display: block; text-align: left; color: #fff; }
.hero-num { display: block; font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.hero-label { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 76px; margin-top: 16px; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar-fill { display: block; width: 100%; background: rgba(255, 200, 0, .4); border-radius: 4px 4px 0 0; transition: background .12s; }
.bar.active .bar-fill { background: var(--taxi); }
.hero-week { display: flex; justify-content: space-between; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .78); border-top: 1px solid rgba(255, 255, 255, .24); }
.hero-week b { color: #fff; }
.card-hero { margin-top: 2px; padding: 18px; border-radius: var(--r-lg); }

.req { padding: 13px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.req-top { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; }
.req-when { display: flex; align-items: center; gap: 6px; margin: 10px 0 11px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.perf { display: block; width: 100%; padding: 14px; text-align: left; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.renter-card { display: flex; align-items: center; gap: 13px; padding: 6px 0 2px; }
.plate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plate { padding: 5px 10px; border-radius: 6px; background: var(--taxi); color: #000; font-size: 14px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-day { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.cal-day.booked { background: var(--card-2); }
.cal-day.pending { background: var(--taxi); color: #000; }
.cal-day.off { color: var(--muted); background: repeating-linear-gradient(135deg, var(--card-2), var(--card-2) 3px, transparent 3px, transparent 6px); }
.cal-day.today { box-shadow: inset 0 -2.5px 0 var(--ink); border-radius: 50%; }
.cal-day.active { background: var(--ink); color: var(--paper); box-shadow: none; }
.cal-key { display: flex; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.cal-key span { display: inline-flex; align-items: center; gap: 5px; }
.k { width: 12px; height: 12px; border-radius: 50%; }
.k.booked { background: var(--faint); }
.k.pending { background: var(--taxi); }
.k.off { background: repeating-linear-gradient(135deg, var(--faint), var(--faint) 2px, transparent 2px, transparent 4px); }
.cal-block { margin-top: 14px; }

.mylist { border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.mylist-art { display: block; width: 100%; height: 148px; }
.mylist .sign { border-radius: 0; }
.mylist-body { padding: 11px 13px 13px; }
.review-card { margin: 14px 0; }
.preview-btn { margin-top: 18px; }
.price-step { padding: 10px 0; }
.price-step + .price-step { border-top: 1px solid var(--line); }

.ledger { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ledger th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 0 0 6px; }
.ledger th:last-child, .ledger td:last-child { text-align: right; }
.ledger td { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 600; }
.ledger-note { margin-top: 10px; }

/* Wizard */
.chips-row { margin-bottom: 8px; }
.near { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.near + .near { border-top: 1px solid var(--line); }
.near .lines { display: flex; margin-top: 4px; }
.near.top b { color: var(--go); }
.kind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.kind { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 78px; border-radius: var(--r); font-size: 12.5px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.kind.active { background: var(--taxi); color: #000; box-shadow: none; }
.fit { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 8px; text-align: left; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.fit.active { box-shadow: inset 0 0 0 2.5px var(--ink); }
.big-price { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 18px 0; }
.big-price b { font-size: 58px; letter-spacing: -.04em; line-height: 1; min-width: 118px; text-align: center; }
.estimate { padding: 14px; margin-bottom: 14px; border-radius: var(--r-lg); background: #000; color: #fff; }
.est-num { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--taxi); }
.estimate .cap { color: rgba(255, 255, 255, .72); margin-top: 3px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--card-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .icon-btn { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; }
.photo.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line-2); background: none; }
.done-pad { padding-top: 34px; }
.done-pad .h1 { margin-top: 16px; }

/* ---- Inbox ---- */
.thread-text { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-text.unread { color: var(--ink); font-weight: 700; }
.chat { display: flex; flex-direction: column; gap: 7px; padding: 8px 16px 14px; background: var(--paper-2); }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.38; }
.bubble.them { align-self: flex-start; background: var(--card); box-shadow: var(--sh-1); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--taxi); color: #000; border-bottom-right-radius: 5px; }
.bubble.sys { align-self: center; max-width: 90%; padding: 4px 11px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.bubble-time { display: block; margin-top: 2px; font-size: 11px; opacity: .6; }
.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { flex: none; display: flex; gap: 9px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
.composer .input { height: 46px; border-radius: 999px; }

.note { align-items: flex-start; }
.note-dot { width: 9px; height: 9px; flex: none; margin-top: 6px; border-radius: 50%; }
.note-dot.on { background: #EE352E; }
.note .small { display: block; margin-top: 3px; }

.me-card { display: flex; align-items: center; gap: 13px; padding: 4px 0 14px; }
.switch-card { padding: 14px; border-radius: var(--r-lg); background: #000; color: #fff; }
.switch-copy { margin-bottom: 11px; }
.switch-copy b { display: block; font-size: 16px; letter-spacing: -.012em; }
.switch-copy .small { color: rgba(255, 255, 255, .72); }
.switch-card .seg { background: rgba(255, 255, 255, .16); }
.switch-card .seg button { color: #fff; }
.switch-card .seg button.active { background: var(--taxi); color: #000; box-shadow: none; }
.signout { margin-top: 12px; color: var(--bad); }
.add-btn { margin-top: 14px; }

.faq details { padding: 13px 0; border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .body { margin-top: 8px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 22px; text-align: center; }
.empty-ic { width: 56px; height: 56px; margin-bottom: 4px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); }
.empty .btn { margin-top: 10px; }

/* ---- Overlays ---- */
.scrim { position: absolute; inset: 0; z-index: 60; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .45); animation: fade .18s; }
.sheet { display: flex; flex-direction: column; width: 100%; max-height: 88%; background: var(--paper); border-radius: 22px 22px 0 0; animation: rise .26s var(--ease); }
.sheet .grab { margin: 8px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 18px 12px; flex: none; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 18px 18px; scrollbar-width: none; }
.sheet-foot { flex: none; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(100%); } }

.toast { position: absolute; left: 14px; right: 14px; top: calc(env(safe-area-inset-top) + 12px); z-index: 80; display: flex; align-items: center; gap: 9px; padding: 13px 15px; border-radius: var(--r); background: #000; color: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--sh-2); animation: drop .24s var(--ease); }
.toast svg { flex: none; color: var(--taxi); }
:root[data-resolved="dark"] .toast { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), var(--sh-2); }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }

.install { position: absolute; left: 10px; right: 10px; bottom: calc(var(--tabh) + 10px); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-2); font-size: 14px; }
.install b { display: block; line-height: 1.25; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
