/* FUBER — black and white, map first. */
:root {
  --bg: #ffffff;
  --page: #ffffff;
  --card: #ffffff;
  --ink: #000000;
  --ink-2: #5e5e5e;
  --ink-3: #8a8a8a;
  --line: #e8e8e8;
  --fill: #f3f3f3;
  --fill-2: #e8e8e8;
  --btn: #000000;
  --btn-ink: #ffffff;
  --brand: #ffc531;          /* the taxi light: icon and small touches only */
  --ok: #0e8345; --ok-bg: #e6f4ec;
  --warn: #a15c00; --warn-bg: #fff3dc;
  --bad: #d0221b; --bad-bg: #fde8e7;
  --live: #276ef1; --live-bg: #e7efff;
  --shadow: 0 -2px 16px rgba(0,0,0,.10);
  --float-shadow: 0 2px 10px rgba(0,0,0,.18);
  --radius: 14px;
  --tabs-h: 58px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --page: #000000;
    --card: #141414;
    --ink: #ffffff;
    --ink-2: #ababab;
    --ink-3: #7a7a7a;
    --line: #2a2a2a;
    --fill: #1f1f1f;
    --fill-2: #2b2b2b;
    --btn: #ffffff;
    --btn-ink: #000000;
    --ok: #4fcf87; --ok-bg: #11291b;
    --warn: #f3b44d; --warn-bg: #33270f;
    --bad: #ff7b6e; --bad-bg: #3a1a17;
    --live: #7aa7ff; --live-bg: #16223d;
    --shadow: 0 -2px 16px rgba(0,0,0,.6);
    --float-shadow: 0 2px 10px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--page); }
body {
  margin: 0; color: var(--ink); background: var(--page);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body:not(.no-tabs) { --tabs-total: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
body.no-tabs { --tabs-total: 0px; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
button { font-family: inherit; }

/* ---- modes ---------------------------------------------------------- */
#map { position: fixed; inset: 0; z-index: 0; background: var(--fill); }
#sheet, #topbar { display: none; }
body[data-mode="map"] #sheet, body[data-mode="map"] #topbar { display: flex; }
body[data-mode="map"] #page { display: none; }
body[data-mode="page"] #map { visibility: hidden; pointer-events: none; }
#page {
  position: relative; z-index: 1; min-height: 100vh; background: var(--page);
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(var(--tabs-total) + 32px);
  max-width: 640px; margin: 0 auto;
}
.map-fail { position: absolute; top: 40%; width: 100%; text-align: center; color: var(--ink-2); }

/* ---- map look ------------------------------------------------------- */
.mono-tiles { filter: grayscale(1) contrast(.9) brightness(1.06); }
@media (prefers-color-scheme: dark) { .mono-tiles { filter: grayscale(1) invert(1) contrast(.85) brightness(.9); } }
.leaflet-container { font: inherit; background: var(--fill); }
#map .leaflet-bottom { bottom: calc(var(--sheet-h, 40vh) + var(--tabs-total)); transition: bottom .22s ease-out; }
.leaflet-control-attribution { font-size: 10px; background: color-mix(in srgb, var(--bg) 75%, transparent) !important; color: var(--ink-2); }
.leaflet-control-attribution a { color: var(--ink-2); }
.route-casing { stroke: var(--bg); stroke-opacity: 1; fill: none; }
.route-line { stroke: var(--ink); stroke-opacity: 1; fill: none; }
.route-line.dashed { stroke-dasharray: 2 9; stroke-linecap: round; stroke-width: 5px; }

.pin-wrap { background: none; border: 0; }
.pin { display: grid; place-items: center; font: 700 13px/1 -apple-system, system-ui, sans-serif; }
.pin-stop { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); border: 2.5px solid var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin-stop.dim { opacity: .45; }
.pin-home { width: 28px; height: 28px; border-radius: 8px; background: var(--bg); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.pin-from { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 5px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.pin-to { width: 18px; height: 18px; border-radius: 3px; background: var(--bg); border: 5px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.pin-place { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--ink); border: 1.5px solid var(--fill-2); box-shadow: 0 1px 5px rgba(0,0,0,.25); font-size: 15px; }
.pin-me { width: 18px; height: 18px; border-radius: 50%; background: var(--live); border: 3px solid #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--live) 22%, transparent); }
.pin-name {
  position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%);
  white-space: nowrap; font: 600 12px/1 -apple-system, system-ui, sans-serif; color: var(--ink);
  background: var(--bg); padding: 4px 7px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* ---- floating top bar ---------------------------------------------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; pointer-events: none;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px;
}
#topbar > * { pointer-events: auto; }
.float-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--bg); color: var(--ink); box-shadow: var(--float-shadow);
}
.float-btn .avatar { width: 44px; height: 44px; font-size: 17px; }
#tb-left[hidden] + #tb-center { margin-left: 56px; }
#tb-center { background: var(--bg); padding: 9px 14px; border-radius: 999px; box-shadow: var(--float-shadow); }
#tb-right[hidden] { display: block !important; visibility: hidden; }

.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.wordmark.xl { font-size: 54px; letter-spacing: -0.04em; }

/* ---- bottom sheet --------------------------------------------------- */
#sheet {
  position: fixed; left: 0; right: 0; bottom: var(--tabs-total); z-index: 10;
  height: var(--sheet-h, 45vh); max-width: 680px; margin: 0 auto;
  flex-direction: column; background: var(--card); border-radius: 18px 18px 0 0; box-shadow: var(--shadow);
  touch-action: none;
}
#sheet.animate { transition: height .22s ease-out; }
.grip { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.grip span { width: 38px; height: 5px; border-radius: 3px; background: var(--fill-2); }
#sheet-body {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.sheet-head { position: sticky; top: 0; z-index: 2; background: var(--card); padding: 2px 0 10px; touch-action: none; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sheet-actions.sticky { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: var(--card); padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); margin-top: 8px; }

/* ---- tabs ----------------------------------------------------------- */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  height: var(--tabs-total); padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg); border-top: 1px solid var(--line);
}
body.no-tabs #tabs { display: none; }
.tab {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 600;
}
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--ink); }
.badge {
  position: absolute; top: 5px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

/* ---- building blocks ------------------------------------------------ */
.card { display: block; background: var(--card); border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); margin-bottom: 12px; text-decoration: none; color: inherit; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; }
.row.gap { gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.col-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.one-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section { font-size: 18px; margin: 22px 0 8px; }
.page-title { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 14px; }
.empty { color: var(--ink-2); padding: 12px 0; }
.empty a { color: var(--ink); font-weight: 600; }
.hint { color: var(--ink-2); font-size: 13px; }
.error { color: var(--bad); font-size: 14px; }
.note { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.note.driver { color: var(--warn); }
.center-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 10px; text-align: center; }
.center-msg.small { padding: 18px 10px; flex-direction: row; font-size: 14px; color: var(--ink-2); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--fill-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { font-size: 14px; font-weight: 600; }
.arrow { color: var(--ink-3); padding: 0 2px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 18px; border-radius: 10px;
  border: 0; background: var(--fill); color: var(--ink);
  font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .45; }
.btn.primary { background: var(--btn); color: var(--btn-ink); }
.btn.danger { color: var(--bad); }
.btn.danger:not(.ghost) { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; }
.btn.big { min-height: 56px; font-size: 18px; border-radius: 12px; width: 100%; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
.btn.tiny { min-height: 28px; padding: 0 10px; font-size: 13px; border-radius: 999px; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn svg { flex: none; }

/* pills & chips */
.pill { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--fill); color: var(--ink); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.wait { background: var(--fill); color: var(--ink-2); }
.pill.offer, .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.no { background: var(--bad-bg); color: var(--bad); }
.pill.live { background: var(--live-bg); color: var(--live); }
.pill.muted { background: var(--fill); color: var(--ink-2); }
.pill.best { background: var(--btn); color: var(--btn-ink); }
.chip {
  display: inline-block; padding: 2px 8px; margin: 3px 4px 0 0; border-radius: 6px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--c) 15%, transparent); color: color-mix(in srgb, var(--c) 75%, var(--ink));
}
.chip.errand { --c: #8a8780; }
.plate { margin-left: auto; padding: 3px 8px; border-radius: 5px; border: 1.5px solid var(--ink); font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; background: var(--bg); }

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 17px;
}
.avatar.sm { width: 32px; height: 32px; font-size: 14px; }
.avatar.xs { width: 22px; height: 22px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.avatar.errand { background: var(--fill); color: var(--ink); }
.avatar.errand svg { width: 22px; height: 22px; }

/* ---- home ----------------------------------------------------------- */
.where {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--fill); border-radius: 999px; padding: 6px 6px 6px 18px; min-height: 56px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
}
.where > span:first-of-type { flex: 1; }
.where-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 999px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.trip-card { display: block; text-decoration: none; color: inherit; background: var(--fill); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 12px; }
.trip-big { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0; }
.trip-route { font-size: 15px; color: var(--ink); }
.trip-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.trip-foot svg { width: 20px; height: 20px; color: var(--ink); }
.sheet-head .trip-big { font-size: 30px; }
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none;
  background: var(--btn); color: var(--btn-ink); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 12px;
}
.cta-card small { opacity: .75; font-size: 13px; }
.cta-card.warn { background: var(--warn-bg); color: var(--warn); }
.offer-card p + p { margin-top: 4px; }
.offer-card .actions { margin-top: 12px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.row-link {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0;
  background: none; border: 0; text-align: left; font: inherit; color: inherit; text-decoration: none; cursor: pointer;
}
.row-link b { font-weight: 600; }
.row-link > svg { color: var(--ink-3); flex: none; }
.row-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; flex: none; font-size: 19px; color: var(--ink); }
.card-rows { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; margin-bottom: 12px; }

/* ---- booking -------------------------------------------------------- */
.route-box { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.rb-icons { display: flex; flex-direction: column; align-items: center; width: 14px; padding: 18px 0; align-self: stretch; }
.rb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: none; }
.rb-line { width: 2px; flex: 1; background: var(--ink); margin: 4px 0; }
.rb-sq { width: 10px; height: 10px; background: var(--ink); flex: none; }
.rb-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rb-input { background: var(--fill); border: 2px solid transparent; font-weight: 500; }
.rb-input.active { background: var(--bg); border-color: var(--ink); }
.rb-swap { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink); display: grid; place-items: center; cursor: pointer; }

.route-summary { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--fill); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rs-icons { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.rs-icons .rb-dot, .rs-icons .rb-sq { width: 8px; height: 8px; }
.for-pill { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin-top: 10px; padding: 0 4px 0 12px; background: var(--fill); border-radius: 999px; }
.for-pill svg { width: 18px; height: 18px; }
.for-pill select { background-color: transparent; border: 0; min-height: 38px; padding: 6px 30px 6px 0; font-weight: 600; width: auto; }

.ride-opts { display: flex; flex-direction: column; gap: 4px; }
.ride-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; text-align: left;
  border: 2px solid transparent; border-radius: 12px; background: none; color: inherit; font: inherit; cursor: pointer;
}
.ride-opt.sel { border-color: var(--ink); }
.ro-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--fill); display: grid; place-items: center; flex: none; }
.ro-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ro-main b { font-size: 17px; }
.ro-main small { font-size: 13px; color: var(--ink-2); }
.ro-price { text-align: right; font-size: 16px; }
.when { display: flex; gap: 10px; margin-top: 14px; }
.when label { flex: 1; }
.more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.more summary { cursor: pointer; padding: 10px 0; font-weight: 600; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " ▾"; color: var(--ink-3); }
.more[open] summary::after { content: " ▴"; }
.pay-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 12px; font-weight: 600; }
.pay-icon { width: 34px; height: 24px; border-radius: 5px; background: var(--fill); display: grid; place-items: center; }
.pay-icon svg { width: 18px; height: 18px; }

/* ---- runs & timeline ------------------------------------------------ */
.run-head { display: flex; justify-content: space-between; gap: 10px; }
.run-time { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.driver-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0 4px; }
.timeline { list-style: none; margin: 12px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 71px; top: 12px; bottom: 12px; width: 2px; background: var(--ink); }
.timeline li { position: relative; display: grid; grid-template-columns: 60px 1fr; column-gap: 26px; padding: 7px 0; }
.timeline li::before { content: ""; position: absolute; left: 66px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--ink); }
.timeline li.home::before { border-radius: 2px; background: var(--ink); }
.timeline time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 2px; text-align: right; white-space: nowrap; }
.timeline .stop-name { font-weight: 600; }
.timeline li.home .stop-name { color: var(--ink-2); font-weight: 500; }
.timeline .acts { grid-column: 2; }
.timeline.compact li { padding: 4px 0; }
.timeline .num { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 11.5px; margin-right: 7px; padding: 0 5px; vertical-align: 1px; }

/* ---- planner -------------------------------------------------------- */
.group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.picks { list-style: none; margin: 0 0 6px; padding: 0; }
.pick { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pick:last-child { border-bottom: 0; }
.check { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; flex: 1; font-size: 14px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.check b { margin-right: 4px; }
.option { border: 2px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; cursor: pointer; }
.option.on { border-color: var(--ink); }
.option-head { display: flex; align-items: center; gap: 8px; }
.option-head .small { flex: 1; }
.show-map { font-weight: 600; color: var(--ink-3); }
.option.on .show-map { color: var(--ink); }
.option.on .show-map::before { content: "● "; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.stats b { color: var(--ink); }
.stats .bad, .stats .bad b { color: var(--bad); }
.warnings { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.warnings li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 10px; }
.warnings .warn { background: var(--warn-bg); color: var(--warn); }
.warnings .bad { background: var(--bad-bg); color: var(--bad); }
.warnings .muted { background: var(--fill); }
.warnings .btn { background: var(--bg); color: var(--ink); }
.planned { margin-bottom: 14px; }
.planned > .card { margin-bottom: 8px; }
.planned .planner:not(:empty) { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.callout { padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); margin: 8px 0; }

/* request cards */
.req-top { display: flex; gap: 12px; align-items: flex-start; }
.req-title { font-weight: 700; }
.req-route { font-size: 15px; margin-top: 1px; }
.req-when { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.req-when b { color: var(--ink); }
.req-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.req .actions { margin-top: 10px; }
.req.cancelled, .req.done { opacity: .55; }

/* day strip */
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.daystrip::-webkit-scrollbar { display: none; }
.day {
  position: relative; flex: none; min-width: 54px; height: 60px; border-radius: 12px; border: 0;
  background: var(--fill); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: inherit; cursor: pointer; padding: 0 8px;
}
.day span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.day b { font-size: 19px; }
.day.on { background: var(--btn); color: var(--btn-ink); }
.day.on span { color: color-mix(in srgb, var(--btn-ink) 70%, transparent); }
.day .dot { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.day.pick { overflow: hidden; }
.day.pick input { position: absolute; inset: 0; opacity: 0; }

/* forms */
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
label .muted { font-weight: 400; }
input, select, textarea {
  font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.3; color: var(--ink);
  background: var(--fill); border: 2px solid transparent; border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 48px;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background-color: var(--bg); }
input[type=range] { padding: 0; min-height: 30px; border: 0; background: none; accent-color: var(--ink); -webkit-appearance: auto; appearance: auto; }
input[type=checkbox] { -webkit-appearance: auto; appearance: auto; min-height: 0; width: auto; }
output { font-weight: 700; color: var(--ink-2); }
.icon-field { width: 72px; }
.icon-field input { text-align: center; font-size: 22px; padding: 8px; }
.results { list-style: none; padding: 0; margin: 0; }
.result { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 2px; font: inherit; color: inherit; cursor: pointer; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid var(--card); box-shadow: 0 0 0 2px transparent; cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }

/* account */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.account-head .page-title { margin-bottom: 2px; }
.credits { margin-top: 18px; }

/* small map inside the place editor */
.map { height: 240px; border-radius: 12px; overflow: hidden; background: var(--fill); }
.map.small { height: 220px; margin: 4px 0; }

/* modal sheet (confirmations, editors) */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  background: var(--card); border-radius: 18px 18px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px; transform: translateY(100%); transition: transform .22s ease-out;
  max-width: 680px; margin: 0 auto;
}
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--fill-2); align-self: center; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }

/* toast */
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 66px); z-index: 60;
  transform: translate(-50%, -10px); opacity: 0; pointer-events: none; transition: all .2s;
  background: var(--btn); color: var(--btn-ink); padding: 11px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; max-width: 90vw;
  box-shadow: var(--float-shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }

/* login */
.login { min-height: 100vh; margin: calc(-16px - env(safe-area-inset-top)) -16px 0; display: flex; flex-direction: column; }
.login-hero { background: #000; color: #fff; padding: calc(env(safe-area-inset-top) + 80px) 24px 48px; }
.login-hero p { margin-top: 10px; color: #bdbdbd; font-size: 17px; }
.login-hero .wordmark .dot { color: var(--brand); }
.login-form { padding: 28px 24px; max-width: 480px; }
.login-form h2 { font-size: 26px; }

/* ---- batch 2 --------------------------------------------------------- */
.update-bar { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--live-bg); color: var(--live); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.req-meta { display: inline-flex; align-items: center; gap: 10px; }
.fare { font-weight: 700; font-variant-numeric: tabular-nums; }
.tag { display: inline-grid; place-items: center; color: var(--ink-2); }
.ro-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ro-price .surge { font-size: 11.5px; font-weight: 700; color: var(--warn); white-space: nowrap; }
.timeline li.busy .stop-name { color: var(--ink-2); font-weight: 500; }
.pick-addr { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 600; }
#pick-pin { position: fixed; z-index: 5; transform: translate(-50%, -100%); pointer-events: none; display: flex; flex-direction: column; align-items: center; }
#pick-pin .pin-from { width: 22px; height: 22px; border-width: 6px; }
#pick-pin i { width: 3px; height: 16px; background: var(--ink); border-radius: 0 0 2px 2px; }
#pick-pin[hidden] { display: none; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px -6px; padding: 6px; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.back-link svg { width: 20px; height: 20px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
.kv span { color: var(--ink-2); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.howto { margin: 4px 0 0; padding-left: 20px; }
.howto li { margin: 3px 0; }
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.dt-grid span { display: block; font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.dt-grid .v { font-size: 24px; font-variant-numeric: tabular-nums; }
.dt-verdict { font-size: 18px; font-weight: 800; }
.dt-log { font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); max-height: 220px; overflow-y: auto; white-space: pre-wrap; margin: 8px 0 0; }
#dt .btn.big { margin-bottom: 12px; }
.about .btn { flex: none; }

/* ---- notifications & drive mode ----------------------------------------- */
.pin-car { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #141414; border: 2.5px solid #141414; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.trip-sub { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.trip-card.live { box-shadow: inset 0 0 0 2px var(--ink); }
.drive-acts { font-size: 16px; margin: 4px 0 6px; }
.notif-prompt p { font-size: 15px; }
.notif-prompt .actions { margin-top: 10px; }
