/* Ride — mobile-first styles. Dark forest theme with a lime accent. */

:root {
  --page: #e6eadf;
  --bg: #0b1711;
  --surface: #12231a;
  --surface-2: #182d21;
  --surface-3: #21392b;
  --line: #29402f;
  --line-2: #3a5643;
  --text: #eef3ea;
  --muted: #a9baa4;
  --faint: #81947d;
  --accent: #b4f28a;
  --accent-hover: #c4f8a0;
  --accent-ink: #10291a;
  --from: #b4f28a;
  --to: #f4a7a2;
  --warn: #f3d27d;
  --danger: #f4a7a2;
  --blue: #6ab0ff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px rgb(16 40 24 / 28%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg); /* phones: dark behind Safari's bars and when the page bounces (the light page is desktop only) */
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Page layout ---------- */

.intro { display: none; }
.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: radial-gradient(120% 60% at 100% 0, #1d3726 0, var(--bg) 60%);
}
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 20px 12px;
  border-bottom: 1px solid transparent;
}
/* Once the page scrolls (or on inner pages): a solid bar with a line, so nothing shows through it */
body.scrolled .top, body.has-back .top { background: var(--bg); border-bottom-color: var(--line); }
.brand { font-size: 28px; font-weight: 850; letter-spacing: -1.5px; }
/* Inner pages: "‹ Back" in the top bar instead of the logo; the bar stays while scrolling */
.top-back:empty { display: none; }
.top-back { min-width: 0; }
.top-back .back { margin: 0; min-height: 44px; padding: 4px 14px 4px 0; font-size: 17px; color: var(--text); max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-back .back .ic { width: 26px; height: 26px; stroke-width: 2.4; margin-left: -6px; }
body.has-back .brand { display: none; }
body.has-back .top { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
/* iPhone Safari draws the page under its address bar too: fill the space above the bar, so
   nothing scrolls through a gap over it. */
.top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--bg); pointer-events: none; }
.brand span { color: var(--accent); }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 10px; }
/* Top right: the badge and the person's circle (→ Profile & settings) */
.top-right { display: flex; align-items: center; gap: 8px; }
.me-btn { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 16px; display: grid; place-items: center; border: 2px solid transparent; }
.me-btn.on { border-color: var(--text); }
.me-dot { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: #ff6b5e; border: 2px solid var(--bg); }
#screen { flex: 1; padding: 4px 18px 120px; outline: none; }

#nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex;
  padding: 8px 8px max(10px, env(safe-area-inset-bottom));
  background: rgb(14 28 20 / 94%);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
/* Under the bottom bar (behind Safari's toolbar): the same colour, not the page scrolling past */
#nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgb(14 28 20); pointer-events: none; }
#nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--faint); border-radius: 12px; }
#nav button .ic { width: 22px; height: 22px; }
#nav button.on { color: var(--accent); }
#nav button.on .ic { stroke-width: 2.4; }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 92px; transform: translateX(-50%); /* above sheets: a refusal is never hidden */
  width: min(92%, 380px);
  background: var(--accent); color: var(--accent-ink);
  padding: 13px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px rgb(0 0 0 / 35%);
  animation: rise .2s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (min-width: 720px) {
  body { display: flex; align-items: center; justify-content: center; gap: 72px; padding: 24px; background: var(--page); }
  .phone {
    width: 400px; height: min(880px, calc(100vh - 48px)); min-height: 0;
    border-radius: 36px; overflow: hidden; box-shadow: var(--shadow);
    border: 8px solid #0a140f;
  }
  .top { position: relative; padding-top: 18px; } /* relative: the fill above stays inside the phone frame */
  #screen { overflow-y: auto; padding-bottom: 28px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  #nav { position: relative; } /* relative: the fill under it stays inside the phone frame */
  .toast { position: absolute; bottom: 86px; }
}
@media (min-width: 1000px) {
  .intro { display: block; max-width: 380px; color: #17301f; }
  .intro .brand { font-size: 34px; }
  .intro .brand span { color: #4c9b2a; }
  .intro h1 { font-size: 54px; line-height: 1.04; letter-spacing: -2.4px; margin: 26px 0 16px; }
  .intro h1 em { font-style: normal; color: #3f8a22; }
  .intro p { font-size: 18px; color: #4f6249; }
  .steps { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 16px; }
  .steps li { display: flex; gap: 14px; align-items: flex-start; }
  .steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #17301f; color: var(--accent); font-size: 13px; }
  .steps strong { display: block; color: #17301f; }
  .steps span { color: #5c6f56; font-size: 15px; }
  .intro .fine { text-align: left; color: #6b7d65; margin: 0; }
}

/* ---------- Type ---------- */

h1 { font-size: 34px; line-height: 1.06; letter-spacing: -1.4px; margin: 22px 0 10px; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: 27px; line-height: 1.1; letter-spacing: -.8px; margin: 10px 0 14px; }
.lead { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.lead.small { font-size: 14px; margin-top: -6px; }
/* Main screen: a one-line heading, so the form and the button fit without scrolling */
h1.h-compact { font-size: 26px; letter-spacing: -0.8px; margin: 12px 0 2px; }
.lead.compact { font-size: 14px; margin-bottom: 12px; }
.stepper-card.compact { padding-top: 12px; padding-bottom: 12px; }
.stepper-card.compact .card-title { font-size: 15px; }
/* The search button stays in reach while scrolling the form */
.sticky-go { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 4; box-shadow: 0 8px 24px rgb(0 0 0 / 45%); }
@media (min-width: 720px) { .sticky-go { bottom: 12px; } }
.recent { margin: 14px 0 4px; }
.recent-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: left; color: inherit; font-size: 15px; }
.recent-row svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.recent-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: inherit; text-decoration: none; }
.help-row > svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.help-row span { flex: 1; min-width: 0; }
.help-row strong { display: block; font-size: 16px; }
.help-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--faint); margin: 24px 0 4px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.hint.ok, .ok { color: var(--accent); }
.hint.center { text-align: center; margin: 12px 0; }
.fine { color: var(--faint); font-size: 12px; text-align: center; margin: 18px 6px 0; line-height: 1.5; }
.label { font-size: 13px; color: var(--muted); margin: 14px 0 8px; }
.eyebrow { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.muted { color: var(--muted); }

/* ---------- Building blocks ---------- */

.card {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin: 12px 0;
}
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }

.field {
  display: block; position: relative;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 9px 12px 8px; margin: 10px 0 0;
  transition: border-color .15s, box-shadow .15s;
}
.field > span { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.field input, .field select {
  width: 100%; min-width: 0; border: 0; outline: none; background: transparent;
  padding: 3px 0; font-size: 16px; color: var(--text);
}
.field select option { background: var(--surface-2); }
.field input::placeholder { color: var(--faint); }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(180 242 138 / 15%); }
.field.range output { color: var(--accent); font-weight: 700; }
input[type="range"] { accent-color: var(--accent); padding: 8px 0 4px !important; }
input[type="date"], input[type="time"] { min-height: 26px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 12px 16px; margin: 10px 0;
  border-radius: 14px; font-weight: 700; font-size: 15px;
  transition: background .15s, transform .1s;
}
.btn:active:not(:disabled) { transform: scale(.985); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.big { min-height: 56px; font-size: 16px; margin-top: 18px; }
.btn.ghost { border: 1px solid var(--line-2); color: #d7ecca; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); font-weight: 600; }
.btn.sm { min-height: 40px; width: auto; padding: 8px 14px; font-size: 14px; margin: 0; }
.link { color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.link.danger { color: var(--danger); }

.back { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 4px 8px 4px 0; margin: 4px 0 0; color: #cfe5c2; font-weight: 600; font-size: 14px; }

.seg { display: flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: 12px; font-weight: 650; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg.small { background: var(--surface-2); border-color: var(--line-2); border-radius: 13px; }
.seg.small button { min-height: 38px; font-size: 13px; border-radius: 10px; padding: 0 4px; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { min-height: 36px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: #d7ecca; }
.pill[aria-pressed="true"] { background: var(--surface-3); border-color: var(--accent); color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 12px; font-weight: 600; color: #d3e5c8; background: var(--surface-3); padding: 5px 10px; border-radius: 8px; }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 12px 0; border-radius: 14px; font-size: 13px; line-height: 1.45; background: var(--surface-2); border: 1px solid var(--line-2); color: #d6e6cc; }
.banner .ic { margin-top: 1px; color: var(--accent); }
.banner strong { color: var(--text); }
.banner.warn { border-color: #6b5a2c; background: #2a2716; }
.banner.warn .ic { color: var(--warn); }
/* "Still ready to go?" on a Now posting: the one button under the text. */
.live-ask .btn { display: flex; margin-top: 8px; }
.banner.demo { border-color: #4c6b3c; background: linear-gradient(135deg, #22391f, #172a1c); }
.banner.lock { border-color: #4f7a3d; }
.banner.ok { align-items: center; border-color: #4f7a3d; background: linear-gradient(135deg, #22391f, #172a1c); }
.banner.ok .link { flex: none; margin-left: auto; }

.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #d6e3c4; color: #1f3e22; font-weight: 800; font-size: 17px; }
.avatar.lg { width: 54px; height: 54px; font-size: 21px; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #ff6b5e; color: #fff; font: 700 11px/20px var(--font); font-style: normal; flex: none; }
.row-card .count-badge { margin-left: auto; margin-right: 6px; }
.trip-bookings { margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.trip-bookings .label { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; }
.req { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.req-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.req-who .who { min-width: 0; }
.req-who .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-actions { display: flex; gap: 6px; flex: none; }
.req .btn.sm { width: auto; margin: 0; }
.person { display: flex; align-items: center; gap: 12px; }
.person > .status-stack { margin-left: auto; }
.person strong, .who strong { display: block; font-size: 16px; }
.person small, .who small { display: block; color: var(--muted); font-size: 13px; }

.empty { text-align: center; padding: 28px 18px; margin: 14px 0; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-ic { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--accent); }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 14px; }
.empty .btn { width: auto; display: inline-flex; margin-top: 16px; padding: 10px 20px; min-height: 44px; }

.skeleton { height: 118px; position: relative; overflow: hidden; }
.skeleton i { display: block; height: 12px; border-radius: 6px; background: var(--surface-3); margin: 6px 0 14px; }
.skeleton i:nth-child(1) { width: 55%; height: 16px; }
.skeleton i:nth-child(3) { width: 35%; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 5%) 50%, transparent 70%); animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.line { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: #d3e2ca; margin: 9px 0; }
.line.total { font-size: 19px; font-weight: 800; color: var(--text); border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 12px; }
.card .hint { margin-top: 8px; }

details.more > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 20px; color: var(--accent); line-height: 1; }
details.more[open] > summary::after { content: "−"; }
details.more > summary .hint { margin-left: auto; }
details.more[open] > summary { margin-bottom: 4px; }

/* ---------- Address rows ---------- */

.route-card { padding: 6px 14px; position: relative; }
.addr { display: flex; align-items: center; gap: 12px; padding: 10px 0; position: relative; }
.route-card .addr + .swap + .addr { border-top: 1px solid var(--line); }
.addr-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--from); box-shadow: 0 0 0 4px rgb(180 242 138 / 16%); }
.addr-dot.dropoff { background: var(--to); border-radius: 3px; box-shadow: 0 0 0 4px rgb(244 167 162 / 16%); }
.route-card::before { content: ""; position: absolute; left: 19.5px; top: 42px; bottom: 42px; border-left: 2px dotted var(--line-2); }
.addr-body { flex: 1; min-width: 0; }
.addr-body label { display: block; font-size: 12px; color: var(--muted); }
.addr-body input { width: 100%; border: 0; outline: none; background: transparent; padding: 2px 0; font-size: 16px; font-weight: 600; text-overflow: ellipsis; }
.addr-body input::placeholder { color: var(--faint); font-weight: 500; }
.addr-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; }
.addr-meta:empty { display: none; }
.addr-meta .ok { display: inline-flex; gap: 4px; align-items: center; }
.addr-meta .ok .ic { width: 14px; height: 14px; }
.addr-meta .link { font-size: 12px; padding: 2px 0; }
.icon-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: var(--surface-2); border: 1px solid var(--line-2); }
.icon-btn:hover { background: var(--surface-3); }
.swap { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--muted); }
.swap .ic { width: 16px; height: 16px; }
.swap:hover { color: var(--accent); }
.addr.solo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-top: 4px; }
.addr.solo:focus-within, .route-card:focus-within { border-color: var(--line-2); }

.suggest { display: grid; gap: 2px; }
.suggest:empty { display: none; }
.route-card .suggest { margin: 0 -8px 8px; }
.addr.solo + .suggest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 6px; padding: 4px; }
.suggest-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 10px; border-radius: 10px; min-height: 48px; }
.suggest-item:hover, .suggest-item:focus-visible { background: var(--surface-3); outline: none; }
.suggest-item .ic { margin-top: 2px; color: var(--muted); width: 18px; height: 18px; }
.suggest-item strong { display: block; font-size: 15px; font-weight: 600; }
.suggest-item small { display: block; font-size: 12px; color: var(--muted); }
.suggest-msg { font-size: 13px; color: var(--muted); padding: 8px 10px; }

/* ---------- Home ---------- */

.stepper-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper-card .card-title { margin-bottom: 2px; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px; }
.stepper button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); }
.stepper button:hover { background: var(--surface-3); }
.stepper output { min-width: 26px; text-align: center; font-size: 18px; font-weight: 800; }
.card .pills { margin-bottom: 2px; }
.card .row .field { margin-top: 10px; }

/* ---------- Map ---------- */

.map-wrap { margin: 12px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map { height: 210px; background: #dfe4da; color: #172319; }
.map.tall { height: 340px; }
.map.failed { display: grid; place-items: center; }
.map.failed::after { content: "Map unavailable right now"; color: #4b5a47; font-size: 13px; }
.map-info { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; color: #d3e2ca; }
.map-info .ic { color: var(--accent); }
.maplibregl-ctrl-attrib { font-size: 10px !important; }
.maplibregl-ctrl-group { border-radius: 10px !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 36px !important; height: 36px !important; }
.maplibregl-popup-content { background: var(--surface); color: var(--text); border-radius: 10px; padding: 8px 11px; font: 13px var(--font); box-shadow: 0 6px 20px rgb(0 0 0 / 30%); }
.maplibregl-popup-tip { border-top-color: var(--surface) !important; border-bottom-color: var(--surface) !important; }
.map-marker { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 45%); cursor: pointer; }
.map-marker.from { background: #4fb328; }
.map-marker.to { background: #e0605a; border-radius: 5px; }
.map-marker.driver { background: var(--blue); }
.map-marker.pin { width: 34px; height: 34px; border: 0; box-shadow: none; background: none; cursor: grab; }
.map-marker.pin::before { content: ""; position: absolute; left: 3px; top: 0; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #4fb328; border: 3px solid #fff; box-shadow: 0 4px 10px rgb(0 0 0 / 40%); }
.map-marker.pin::after { content: ""; position: absolute; left: 13px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* ---------- Pin page ---------- */

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 60px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.quick button span { font-size: 12px; font-weight: 600; color: #d7e4cf; }
.quick button:hover:not(:disabled) { background: var(--surface-2); }
.pin-card strong { display: block; font-size: 16px; margin: 4px 0; overflow-wrap: anywhere; }
.pin-card .hint { margin-top: 2px; }

/* ---------- Matches ---------- */

.summary { padding: 14px 16px; }
.route-lines { display: grid; gap: 10px; position: relative; font-size: 14px; }
.route-lines::before { content: ""; position: absolute; left: 4.5px; top: 14px; bottom: 14px; border-left: 2px dotted var(--line-2); }
.rl { display: flex; gap: 12px; align-items: baseline; overflow-wrap: anywhere; }
.rl i { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--from); position: relative; top: 1px; }
.rl.to i { background: var(--to); border-radius: 3px; }
.card .route-lines { margin-top: 12px; }
.summary .route-lines, .trip .route-lines { margin-top: 0; }

.live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgb(180 242 138 / 50%); }
.live.busy .dot { animation: pulse 1.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(180 242 138 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(180 242 138 / 0%); } }
/* "Live": posted with Now — ready to go right now (a pulsing dot, still when motion is reduced). */
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.live-tag i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgb(180 242 138 / 50%); animation: pulse 1.4s infinite; }
.count { font-size: 13px; color: var(--faint); margin: 10px 0 0; }

.match { transition: border-color .15s, transform .1s; }
.match:hover { border-color: var(--line-2); }
.match:active { transform: scale(.99); }
.match-top { display: flex; align-items: center; gap: 12px; }
.match .who { flex: 1; min-width: 0; }
.match .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { text-align: right; }
.price strong { display: block; font-size: 20px; font-weight: 800; color: var(--accent); }
.price small { display: block; font-size: 11px; color: var(--muted); }
.match-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.match-times small { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .6px; }
.match-times strong { display: block; font-size: 15px; }
.time-note { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--faint); }
.time-note.inline { display: inline; font-size: 11px; margin-left: 4px; }
.flex-note { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent); }
.hero-time .flex-note { display: inline; font-size: .45em; vertical-align: middle; }
.match-times .match-date { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.match-times .match-date .ic { width: 15px; height: 15px; color: var(--accent); }
.tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--warn); }
.tag .ic { width: 15px; height: 15px; }

.hero-time { margin: 6px 0 4px; }
.hero-time small { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--faint); font-weight: 700; }
.hero-time strong { display: block; font-size: 46px; line-height: 1.05; letter-spacing: -1.6px; color: var(--accent); margin: 4px 0; }
.hero-time strong.range { font-size: 34px; letter-spacing: -1px; }
.hero-time span { color: var(--muted); font-size: 14px; }
.person-card { display: flex; align-items: center; gap: 14px; }
.person-card strong { display: block; font-size: 17px; }
.person-card small { color: var(--muted); font-size: 13px; }

.timeline { list-style: none; padding: 0; margin: 4px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 79px; top: 12px; bottom: 12px; border-left: 2px solid var(--line-2); }
.timeline li { display: flex; gap: 26px; align-items: flex-start; padding: 8px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 75px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); border: 2px solid var(--surface); }
.timeline li.from::before { background: var(--from); }
.timeline li.to::before { background: var(--to); border-radius: 3px; }
.timeline .t { flex: none; width: 66px; font-weight: 700; font-size: 14px; text-align: right; padding-top: 1px; }
.timeline .d strong { display: block; font-size: 14px; }
.timeline .d small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* ---------- Payment & chat ---------- */

.hero { text-align: center; padding: 26px 18px 22px; margin: 8px 0 12px; border-radius: 22px; background: linear-gradient(150deg, #2d4c2b, #15271b); border: 1px solid #4e7240; }
.hero.muted { background: var(--surface); border-color: var(--line); }
.hero-ic { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.hero.muted .hero-ic { background: var(--surface-3); color: var(--muted); }
.hero h2 { font-size: 30px; margin: 14px 0 8px; }
.hero p { color: #c4d6ba; font-size: 14px; max-width: 290px; margin: 0 auto; }

.row-card { display: flex; align-items: center; gap: 12px; }
.row-card .who { flex: 1; min-width: 0; }
.row-card .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { flex: none; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 8px; background: var(--surface-3); color: var(--muted); }
.status.ok { color: var(--accent-ink); background: var(--accent); }
.status.warn { color: #2c2410; background: var(--warn); }
.status-stack { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.chat-head { padding: 10px 12px; }
.chat-top { display: flex; align-items: center; gap: 10px; }
.chat-who { flex: 1; min-width: 0; }
.chat-who strong { display: block; font-size: 16px; }
.chat-who small { display: block; color: var(--muted); }
.chat-head details { margin-top: 8px; }
.chat-head details[open] > *:not(summary) { margin-top: 8px; }
.chat-head details { padding-top: 8px; border-top: 1px solid var(--line); }
.chat-head details summary { font-size: 14px; color: var(--muted); }
.chat-head .btn.danger { margin-top: 10px; padding-left: 0; justify-content: flex-start; }
.msgs { display: flex; flex-direction: column; gap: 8px; min-height: 200px; max-height: 46vh; overflow-y: auto; padding: 8px 2px; }
.msgs-empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; max-width: 240px; }
.msgs-empty .ic { width: 34px; height: 34px; color: var(--accent); margin-bottom: 6px; }
.bubble { max-width: 82%; padding: 9px 13px 7px; border-radius: 18px 18px 18px 5px; background: var(--surface-3); font-size: 15px; overflow-wrap: anywhere; }
.bubble span { display: block; }
.bubble small { display: block; margin-top: 2px; font-size: 11px; color: var(--faint); }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-radius: 18px 18px 5px 18px; }
.bubble.me small { color: #3c6a35; text-align: right; }
.quick-replies { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 2px; scrollbar-width: none; }
.quick-replies .pill { flex: none; }
.composer { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.composer input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--line-2); outline: none; font-size: 16px; }
.composer input:focus { border-color: var(--accent); }
.send { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }

/* ---------- Trips & profile ---------- */

.trip.past { opacity: .6; }
.route-cap { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 10px; font-size: 14px; color: var(--text); }
.route-cap svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.ended-card { border-color: var(--warn); }
.ended-head { display: flex; align-items: center; gap: 8px; color: var(--warn); font-size: 16px; }
.ended-head svg { width: 20px; height: 20px; }
.ended-route { margin: 6px 0; font-weight: 600; }
.ended-card .decide { margin-top: 12px; }
.trip-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.tag.driver, .tag.rider { margin: 0; padding: 4px 9px; border-radius: 8px; background: var(--surface-3); }
.tag.driver { color: var(--blue); }
.row-card .who .tag { padding: 1px 7px; margin-right: 4px; font-size: 11px; vertical-align: 1px; }
.row-card .who .tag .ic { width: 12px; height: 12px; }
.tag.rider { color: var(--accent); }
.when { font-size: 13px; font-weight: 600; color: #d3e2ca; text-align: right; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trip .actions .btn { flex: 1 1 30%; }
.actions .btn { flex: 1; }

.place-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.place-row:first-of-type { border-top: 0; }
.place-row > .ic { color: var(--accent); }
.place-row span { flex: 1; min-width: 0; }
.place-row strong { display: block; font-size: 15px; }
.place-row small { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 14px; color: #d3e2ca; }
.checks .ic { color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Route card details that depend on open suggestions. */
.route-card .swap + .addr { border-top: 1px solid var(--line); }
.route-card:has(.suggest:not(:empty)) .swap,
.route-card:has(.suggest:not(:empty))::before { display: none; }
.next-day { font-size: 10px; font-weight: 700; color: var(--warn); vertical-align: super; margin-left: 2px; white-space: nowrap; }
.hero-time .next-day { font-size: 14px; }
.timeline .next-day, .match-times .next-day { display: block; margin: 0; vertical-align: baseline; }

/* ---------- Location help sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; background: rgb(0 0 0 / 55%); animation: fade .15s ease-out; }
.sheet[hidden] { display: none; }
/* The dimmed backdrop and the card reach the screen edges, under Safari's bars too */
.sheet::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: rgb(0 0 0 / 55%); pointer-events: none; }
.sheet::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: var(--surface); pointer-events: none; }
.sheet-card { position: relative; width: 100%; max-height: 88%; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 24px 24px 0 0; padding: 22px 18px max(18px, env(safe-area-inset-bottom)); animation: slide .2s ease-out; }
.sheet-card h3 { font-size: 21px; margin: 12px 0 6px; }
.sheet-card .btn { margin: 8px 0 0; }
.sheet-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--accent); }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--muted); }
.sheet-close:hover { background: var(--surface-2); }
.sheet-ic.warn { color: var(--warn); }
.sheet-people { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.sheet-people li { display: flex; align-items: center; gap: 10px; }
.sheet-people small { display: block; color: var(--muted); font-size: 13px; }
.sheet-steps { margin: 14px 0 10px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.sheet-steps li { counter-increment: s; display: flex; gap: 10px; font-size: 14px; color: #d3e2ca; line-height: 1.45; }
.sheet-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); font-size: 12px; font-weight: 800; }
.sheet-steps b { color: var(--text); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateY(30px); } }
@media (min-width: 720px) { .sheet { position: absolute; } }

/* ---------- Sign-in, sign-up, driver setup ---------- */
body.bare #nav { display: none; }
body.bare #screen { padding-bottom: 32px; }
/* Pin page: Back and "Use this …" stay at the bottom while the map page scrolls. */
.pin-bar { position: sticky; bottom: 0; z-index: 6; display: flex; gap: 10px; margin: 14px -18px -32px; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.pin-bar .btn { margin: 0; min-height: 52px; }
.pin-bar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: var(--bg); pointer-events: none; }
.pin-bar .btn.ghost { flex: 0 0 auto; width: auto; padding: 12px 16px; }
.pin-bar .btn.primary { flex: 1; }
@media (min-width: 720px) { .pin-bar { bottom: -32px; } } /* #screen scrolls there: skip its bottom padding */
.splash { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.splash .brand { font-size: 44px; }
.splash .ic { width: 40px; height: 40px; color: var(--warn); }
.splash .btn { width: auto; padding: 10px 24px; }
.onboard h1 { margin-top: 16px; }
.onboard .checks { margin: 6px 0 8px; }
.onboard > .checks li { font-size: 15px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.45; color: #d3e2ca; padding: 10px 0; }
.check.card { padding: 14px 16px; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.card .check + .check { border-top: 1px solid var(--line); }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 8px 0 14px; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.setup-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.setup-list li { display: flex; gap: 12px; align-items: flex-start; }
.setup-list b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); font-size: 13px; }
.setup-list strong { display: block; font-size: 15px; }
.setup-list small { display: block; color: var(--muted); font-size: 13px; }
.card.place-row { border-top: 1px solid var(--line); padding: 12px 14px; }
.field select { appearance: auto; }
a.btn { text-align: center; }

/* ---------- Extra-driving diagram & example ---------- */
.loop { display: block; width: 100%; height: auto; margin: 12px 0 4px; }
.loop text { fill: var(--muted); font: 600 11px var(--font); }
.loop text.small { font-size: 10px; font-weight: 500; }
.loop text.accent { fill: var(--accent); font-weight: 700; }
.loop .usual, .loop .via { fill: none; stroke: var(--line-2); stroke-width: 4; stroke-linecap: round; }
.loop .extra { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.loop .end { fill: var(--text); }
.loop .pick { fill: var(--from); stroke: var(--surface); stroke-width: 2; }
.loop .drop { fill: var(--to); stroke: var(--surface); stroke-width: 2; }
.loop .badge-bg { fill: var(--accent); }
.loop text.badge-text { fill: var(--accent-ink); font: 800 14px var(--font); }
.example-wrap { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.example-wrap > summary { font-size: 14px; color: var(--muted); }
.example { margin-top: 6px; }
.example .line.total { font-size: 16px; }
.hint .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; }
.warn-text { color: var(--warn); }
/* A booked seat whose payment isn't held yet (the driver's view). */
.unsecured { color: var(--warn); font-weight: 600; }

/* ---------- Notifications ---------- */
#nav button { position: relative; }
.nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff6b5e; color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center; }
.banner.notify { align-items: center; border-color: #4f7a3d; }
.banner.notify .btn { flex: none; width: auto; margin: 0 0 0 auto; }
.fine.left { text-align: left; margin: 10px 0 0; }

/* ---------- Off-route limits & extra pay ---------- */
.loop .measure { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.loop text { font-size: 12px; }
.banner.money { border-color: #4f7a3d; background: linear-gradient(135deg, #22391f, #172a1c); }
.banner.money .ic { color: var(--accent); }
.earn { margin-top: 10px; padding: 4px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.line.bonus { color: var(--accent); font-weight: 700; }
.line.bonus .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; stroke-width: 3; }
.card .label + .seg { margin-bottom: 4px; }

/* ---------- Browse & ride requests ---------- */
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0; }
.day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.day small { font-size: 11px; color: var(--muted); }
.day strong { font-size: 17px; }
.day i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); min-height: 14px; }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] i { color: var(--accent-ink); }
.time-box { flex: none; width: 66px; text-align: center; padding: 6px 0; border-radius: 12px; background: var(--surface-2); }
.time-box strong { display: block; font-size: 17px; line-height: 1.1; }
.time-box small { display: block; font-size: 10px; color: var(--muted); }
.row-card.offer .who strong { font-size: 15px; }
.decide { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 16px; }
.decide .btn { margin: 0; min-height: 54px; }
.card.fit { border-color: #4f7a3d; }
.card.fit .card-title { display: flex; align-items: center; gap: 6px; color: var(--accent); }
@media (max-width: 360px) { .day strong { font-size: 15px; } .day small { font-size: 10px; } }
.toast.tappable { cursor: pointer; } .toast.tappable:hover { background: var(--accent-hover); }

/* ---------- Neighbouring houses ("Not exactly? 104 · 108 …") ---------- */
.nearby { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.pill.sm { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.hn-input { width: 76px; min-height: 32px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--accent); background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 700; outline: none; }
.pin-card .nearby { margin: 4px 0 6px; }
.route-card:has(.nearby) .swap { display: none; } /* the house chips need the room */

/* ---------- "You are here" dot ---------- */
.map-marker.me { width: 18px; height: 18px; border-radius: 50%; background: #3f8cff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(63 140 255 / 25%), 0 2px 6px rgb(0 0 0 / 35%); z-index: 1; }
.map-marker.pin { z-index: 3; }
.locate-me { display: grid; place-items: center; color: #1a6fff; }

/* Browse: time range */
.time-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.time-filter .field { margin-top: 0; }
.time-filter .link { grid-column: 1 / -1; justify-self: start; }
.time-filter .link[hidden] { display: none; }

/* Browse v2 */
.day.now small { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; }
.day.now .dot { width: 6px; height: 6px; animation: pulse 1.4s infinite; }
.day.now[aria-pressed="true"] small { color: var(--accent-ink); }
.day.now[aria-pressed="true"] .dot { background: var(--accent-ink); }
#radiusBox[hidden] { display: none; }
#radiusBox .label { margin-top: 4px; }
details.time-more { margin: 4px 0 8px; padding: 10px 14px; }
details.time-more > summary { font-size: 14px; justify-content: flex-start; gap: 8px; }
details.time-more > summary .ic { width: 16px; height: 16px; color: var(--muted); }
details.time-more > summary .hint { margin-left: auto; }
details.time-more .time-filter { margin-top: 10px; }
.hint.center .ic { margin-right: 4px; }
.row-card.offer .who small { white-space: normal; overflow: visible; }

/* ---------- Address privacy: approximate areas ---------- */
.map-marker.area { width: 24px; height: 24px; display: grid; place-items: center; background: #f2a33a; color: #1d1405; font: 800 14px/1 system-ui, sans-serif; }
.approx { display: block; margin-top: 2px; color: #f2a33a; font-size: 0.78em; font-weight: 600; }
.map-note { margin: -4px 2px 12px; }
.privacy-hint { opacity: 0.85; }
.nav-link { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; }
/* Tappable addresses: open directions in the maps app */
.nav-lines .rl { color: inherit; text-decoration: none; align-items: center; padding: 2px 0; }
.nav-lines .rl span { flex: 1; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.nav-lines .rl .ic, .addr-link .ic { flex: none; width: 15px; height: 15px; color: var(--accent); }
.nav-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.nav-buttons .btn { width: 100%; margin: 0; display: inline-flex; justify-content: center; gap: 6px; text-decoration: none; }
.req { flex-wrap: wrap; }
.req-addr { flex-basis: 100%; display: grid; gap: 6px; padding: 2px 0 4px 42px; }
.addr-link { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; text-decoration: none; min-width: 0; }
.addr-link i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--from); }
.addr-link.to i { background: var(--to); }
.addr-link span { flex: 1; min-width: 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- "Now" on the Search form ---------- */
.pill.now-pill { display: inline-flex; align-items: center; gap: 6px; }
.pill.now-pill .ic { width: 15px; height: 15px; }
.now-hint { display: flex; gap: 8px; align-items: center; margin-top: 12px; }

/* ---------- Cancellation policy + chat rule ---------- */
.policy { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.policy li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9em; }
.policy li span { color: var(--muted, #9fb3a3); text-align: right; }
.chat-rule { font-size: 0.82em; margin: 8px 0 0; }
.chat-closed { margin: 10px 0 4px; }
.chat-closed .btn { margin-top: 8px; }

/* ---------- Card payments (Stripe) ---------- */
.pay-card .card-title { display: flex; align-items: center; gap: 8px; }
.pay-element { margin: 14px 0; padding: 12px; border-radius: 14px; background: rgb(255 255 255 / 4%); }
.pay-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }

/* ---------- Sign-in by phone or email ---------- */
.login-card { margin-top: 18px; text-align: left; }
.code-input { font-size: 1.6rem; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; }
.dev-code { display: flex; gap: 8px; align-items: center; color: #f2a33a; }
.link.center { display: block; margin: 12px auto 0; }

/* ---------- End of the ride: stars, rating, problem ---------- */
.stars { color: #f5c542; font-weight: 700; }
.new-member { color: var(--muted); }
small.inline { font-weight: 500; font-size: 0.78em; margin-left: 4px; }
.star-row { display: flex; gap: 6px; justify-content: center; margin: 6px 0 14px; }
.star { font-size: 2.1rem; line-height: 1; background: none; border: 0; color: rgb(255 255 255 / 22%); cursor: pointer; padding: 4px; }
.star.on { color: #f5c542; }
.pills.wrap { flex-wrap: wrap; }
.problem-card textarea, .rate-card textarea { width: 100%; resize: vertical; }
.problem-card .sos { display: flex; gap: 8px; margin: 4px 0 6px; }
.problem-card .sos .btn { flex: 1; margin: 0; }
.problem-group { margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: none; }
.problem-group.safety { color: var(--danger); }
.problem-what.safety { color: var(--danger); }
.problem-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.problem-link svg { width: 16px; height: 16px; }
.admin-card .urgent { display: inline-flex; align-items: center; gap: 4px; color: var(--danger); }
.admin-card .urgent svg { width: 16px; height: 16px; }
.problem-group.lost { color: var(--text); }
.problem-tip { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); font-size: 14px; }
.problem-tip svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.problem-tip p { margin: 0; }
.drive-safe { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.drive-safe svg { flex: none; width: 16px; height: 16px; }
.warn-text { display: flex; align-items: center; gap: 6px; color: var(--danger); }
.warn-text svg { flex: none; width: 16px; height: 16px; }
.problem-sent { display: flex; gap: 10px; align-items: flex-start; }
.problem-sent > svg { flex: none; width: 22px; height: 22px; color: var(--accent-ink); background: var(--accent); border-radius: 50%; padding: 3px; }
.problem-sent .hint { margin: 4px 0 8px; }
/* My requests */
.my-requests { position: relative; }
.nav-badge.inline { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.ticket-row { display: block; cursor: pointer; }
.ticket-row .trip-top { gap: 8px; }
.ticket-row .card-title { flex: 1; min-width: 0; }
.ticket-badge { position: static; flex: none; }
.ticket-last { margin: 6px 0 0; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.thread .msgs-empty { margin: 12px auto; }
.bubble.ride { align-self: flex-start; }
/* The admin side of a request */
.admin-thread { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.tmsg { padding: 8px 10px; border-radius: 10px; background: var(--surface-3); font-size: 14px; overflow-wrap: anywhere; }
.tmsg small { display: block; margin-bottom: 2px; font-size: 11px; color: var(--muted); text-transform: capitalize; }
.tmsg.admin { background: var(--accent); color: var(--accent-ink); }
.tmsg.admin small { color: inherit; opacity: .75; }
.tmsg.note { background: transparent; border: 1px dashed var(--line); font-style: italic; }
.admin-reply { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.admin-reply textarea { width: 100%; resize: vertical; }
.admin-reply .btn { align-self: flex-start; margin: 0; }
/* Admin: four tabs fit a phone */
.seg.four button { font-size: 13px; padding: 0 4px; min-width: 0; }
.twofa .card-title, .block-card .card-title { display: flex; align-items: center; gap: 8px; }
.twofa .card-title svg, .block-card .card-title svg { width: 20px; height: 20px; }
.twofa .steps { margin: 6px 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.twofa .steps li { margin-bottom: 8px; }
.twofa .secret { display: block; margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-3); font: 600 15px/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; overflow-wrap: anywhere; user-select: all; }
.twofa input { letter-spacing: 4px; font-size: 20px; }
.member-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.member-links .link, .admin-card > .link { display: inline-flex; align-items: center; gap: 4px; }
.member-links svg, .admin-card > .link svg { width: 15px; height: 15px; }
.log-row { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.log-row:last-child { border-bottom: 0; }
.log-row small { display: block; color: var(--muted); font-size: 12px; }
.blocked-bar { margin-bottom: 12px; }
.no-show-card { border-color: var(--warn); }
/* Admin: tap a value to copy it */
.copy { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 6px; margin: 1px 0; border-radius: 6px; background: var(--surface-3); color: inherit; font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.copy svg { flex: none; width: 13px; height: 13px; opacity: .6; }
.copy:active { background: var(--accent); color: var(--accent-ink); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.copy-row .link { display: inline-flex; align-items: center; gap: 4px; }
.copy-row .link svg { width: 14px; height: 14px; }
.block-kinds { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.block-kinds .check { margin: 4px 0; }
.evidence { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; padding: 10px; border-radius: 10px; background: var(--surface-3); font: 13px/1.45 var(--font); user-select: all; }
/* Admin front: 2 columns of tiles */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px; }
.dash-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; color: inherit; min-width: 0; }
.dash-tile strong { font-size: 20px; line-height: 1.2; }
.dash-tile span { font-size: 13px; font-weight: 600; }
.dash-tile small { font-size: 11px; color: var(--muted); }
.dash-tile.hot { border-color: var(--warn); }
.dash-tile.hot strong { color: var(--warn); }
.dash-tile:disabled { opacity: 1; cursor: default; }
.queue-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: end; margin-bottom: 10px; }
.queue-bar .pills { grid-column: 1 / -1; }
.queue-bar .field { margin: 0; }
.queue-bar .btn { margin: 0; }
.wait { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.wait svg { width: 13px; height: 13px; }
.wait.late { color: var(--danger); }
.templates { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.templates .pill { flex: none; font-size: 12px; padding: 5px 10px; }
.line-btn { width: 100%; text-align: left; color: inherit; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.rating-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rating-row:last-child { border-bottom: 0; }
.rating-row em { display: block; color: var(--muted); }
.rating-row small { display: block; color: var(--danger); font-size: 12px; }
.rating-row.hidden-rating strong { opacity: .5; }
.field textarea { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; padding: 3px 0; font: inherit; font-size: 16px; color: var(--text); }
.field textarea::placeholder { color: var(--faint); }

/* ---------- Driver documents + admin page ---------- */
.doc-upload { display: flex; gap: 12px; align-items: center; padding: 14px; margin-top: 12px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.doc-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.doc-upload.done { border-style: solid; border-color: var(--accent); }
.doc-upload span small { display: block; color: var(--muted); font-size: 0.85em; }
.doc-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / 6%); flex: none; }
.doc-upload.done .doc-ic { background: var(--accent); color: #10200f; }
.doc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.doc-thumb { display: block; border-radius: 12px; overflow: hidden; background: rgb(255 255 255 / 4%); text-decoration: none; color: var(--muted); }
.doc-thumb img { display: block; width: 100%; height: 120px; object-fit: cover; }
.doc-thumb small { display: block; padding: 6px 8px; font-size: 0.78em; }
.doc-thumb.missing { display: grid; place-items: center; height: 120px; border: 1px dashed var(--line-2); }
.admin-card.resolved { opacity: 0.75; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.report-text { margin: 8px 0; padding: 10px 12px; border-left: 3px solid #f2a33a; background: rgb(255 255 255 / 4%); border-radius: 0 10px 10px 0; }

.doc-row.three { grid-template-columns: 1fr 1fr 1fr; }
.doc-row.three .doc-thumb img, .doc-row.three .doc-thumb.missing { height: 96px; }

.admin-badge { cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; background: transparent; }
.admin-badge.has { background: #f2a33a; color: #1d1405; border-color: #f2a33a; }

/* Browse results: the next step on each card */
.result-cta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--accent); }
.result-cta .ic { width: 16px; height: 16px; }

/* Requests waiting for my answer: the full screen and the bar on top */
.sheet.full { align-items: stretch; }
.sheet.full .sheet-card { max-height: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; padding-top: max(22px, env(safe-area-inset-top)); }
.q-head { display: flex; justify-content: space-between; align-items: center; min-height: 18px; }
.q-kick { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.q-dots { display: flex; gap: 6px; }
.q-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.q-dots i.on { background: var(--accent); }
.q-title { font-size: 24px; margin: 14px 0 4px; }
.q-who { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; }
.q-who strong { display: block; font-size: 22px; }
.q-who small { color: var(--muted); }
.q-money { font-size: 38px; font-weight: 800; color: var(--accent); margin: 14px 0 0; line-height: 1.1; }
.q-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
/* "Wants a ride now": the rider is waiting — when to leave, and the 10-minute answer limit. */
.q-now { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft, rgba(184, 240, 140, .12)); color: var(--text); font-size: 13px; line-height: 1.45; }
.q-now svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.q-now-big { display: inline-block; margin-bottom: 2px; font-size: 20px; line-height: 1.2; color: var(--accent, #b8f08c); }
/* The driver picks the pickup time on a seat request. */
.pick { margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: center; }
.card > .pick { margin: 0; padding: 0; border: 0; background: none; }
.pick > small { display: block; color: var(--muted); font-size: 13px; }
.pick-time { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 2px; }
.pick-time strong { font-size: 34px; letter-spacing: -1px; min-width: 150px; }
.pick-step { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-3); font-size: 22px; line-height: 1; color: var(--text); cursor: pointer; }
.pick-step:disabled { opacity: .35; cursor: default; }
.pick-leave { margin: 2px 0 10px; font-size: 14px; font-weight: 600; color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 6px; }
.pick-leave svg { width: 16px; height: 16px; }
.pick-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pick-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--text); font-size: 13px; cursor: pointer; }
.pick-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.move .btn.ghost { margin-top: 10px; }
.move-chips { justify-content: flex-start; margin: 4px 0 10px; }
.pick-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
/* Before sending a seat request: how it works. */
.how .line.total { margin-bottom: 14px; }
.how .card-title { margin: 4px 0 8px; }
.how-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; color: var(--text); }
.how-steps li::marker { color: var(--accent); font-weight: 700; }
.q-route { margin: 16px 0 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); display: grid; gap: 10px; }
.q-route > div { display: flex; gap: 10px; align-items: flex-start; }
.q-route small { display: block; color: var(--muted); }
.q-route > div > span:not(.q-tools) { flex: 1; min-width: 0; }
.q-tools { flex: none; display: flex; align-items: center; margin: -6px -6px -6px 0; }
.q-map { display: grid; place-items: center; width: 40px; height: 40px; color: var(--accent); }
.q-map .ic { width: 20px; height: 20px; }
.q-route .d1, .q-route .d2 { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.q-route .d1 { background: var(--accent); }
.q-route .d2 { background: #f0a8a0; }
.q-card .chip { align-self: flex-start; }
.q-actions { margin-top: auto; padding-top: 14px; display: grid; gap: 4px; }
.q-actions .btn.big { font-size: 18px; padding: 16px; }
.q-later { justify-self: center; margin-top: 8px; color: var(--muted); }
.wait-bar { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin: 0 0 14px; padding: 11px 12px; border-radius: 14px; background: #2a2716; border: 1px solid #6b5a2c; color: var(--text); }
.wait-bar > .ic { color: var(--warn); flex: none; }
.wait-bar span { flex: 1; min-width: 0; }
.wait-bar strong { display: block; }
.wait-bar small { display: block; color: #d9c98f; font-size: 12px; }
.wait-bar .go { flex: none; background: var(--accent); color: #10291a; border-radius: 10px; padding: 7px 12px; font-weight: 700; }
.q-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); align-self: flex-start; }
.q-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 6px; }
.q-facts > div { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.q-facts small { display: block; font-size: 11px; color: var(--muted); }
.q-facts strong { font-size: 16px; }
.q-links { display: flex; justify-content: space-between; margin-top: 8px; }
.q-links .link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.q-rows { display: grid; gap: 10px; margin: 6px 0; overflow-y: auto; }
.q-row { border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }
.q-row-top { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.q-row-who { flex: 1; min-width: 0; }
.q-row-who strong { display: block; }
.q-row-who small { color: var(--muted); }
.q-row-price { text-align: right; font-size: 18px; font-weight: 800; color: var(--accent); }
.q-row-price small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.q-row-line { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.q-row-buttons { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.q-row-buttons .btn { flex: 1; margin: 0; }
.q-full { flex: 1; color: var(--warn); font-weight: 700; font-size: 13px; }
.q-ask { margin-top: 12px; }
.q-ask em { font-style: normal; color: var(--accent); }
.seat-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 8px; border-radius: 8px; background: var(--accent); color: #10291a; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.seat-chip .ic { width: 13px; height: 13px; }

/* Seat request: how far off the driver's way, and where on the drive the rider rides. */
.way { margin: 10px 0 2px; }
.way-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 8px; background: rgb(180 242 138 / 16%); color: var(--accent); font-size: 13px; font-weight: 700; }
.way-pill.far { background: rgb(243 210 125 / 16%); color: var(--warn); }
.way-pill .ic { width: 15px; height: 15px; }
.way-bar { position: relative; height: 6px; margin: 16px 6px 6px; border-radius: 3px; background: var(--line-2); }
.way-seg { position: absolute; top: 0; height: 6px; border-radius: 3px; background: var(--accent); }
.way-dot { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.way-dot.on { border-color: var(--accent); background: var(--accent); }
.way-ends { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--faint); }
.way-who { margin: 6px 0 0; font-size: 13px; color: var(--text); }

/* My trips: the driver said yes (or offered) and waits for the rider — a box that stands out. */
.wait-box { margin: 10px 0; padding: 12px 14px; border: 1px solid rgb(243 210 125 / 45%); border-radius: 14px; background: rgb(243 210 125 / 7%); }
.wait-top { display: flex; align-items: center; gap: 8px; color: var(--warn); font-size: 15px; }
.wait-top .ic { width: 18px; height: 18px; }
.wait-sub { margin: 4px 0 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.wait-box .req-who { width: 100%; }
.wait-actions { display: flex; gap: 8px; margin-top: 10px; }
.wait-actions .btn { flex: 1; }
.on-trip .trip-bookings { margin-top: 4px; }
/* The driver's car rules, as riders see them, and the editor in Profile */
.car-rules .rule-lug { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 12px; }
.car-rules .rule-lug > .ic { width: 26px; height: 26px; color: var(--accent); flex: none; }
.car-rules .rule-lug strong { display: block; font-size: 15px; }
.car-rules .rule-lug small { display: block; font-size: 12px; color: var(--muted); }
.rule-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rule-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
.rule-head .ic { width: 14px; height: 14px; }
.rule-head.ok { color: var(--accent); }
.rule-head.no { color: var(--to); }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rule-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.rule-list li .ic { width: 18px; height: 18px; flex: none; }
.rule-list li.ok .ic { color: var(--accent); }
.rule-list li.no { color: var(--muted); }
.rule-list li.no .ic { color: var(--to); }
.rule-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.rule-row > .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.rule-row > span { flex: 1; font-size: 14px; }
.rule-row .seg.yn { width: auto; margin: 0; }
.rule-row .seg.yn button { min-width: 52px; }
/* The ride day: live bar on every screen and the countdown pill */
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgb(180 242 138 / 55%); } 70% { box-shadow: 0 0 0 8px rgb(180 242 138 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(180 242 138 / 0%); } }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; animation: livePulse 1.8s ease-out infinite; }
.live-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 8px 8px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.live-bar.now { background: #2a2716; border-color: #6b5a2c; }
.live-bar.ride { border-color: var(--accent); }
.live-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.live-main > span:last-child { min-width: 0; }
.live-main strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-main small { display: block; font-size: 12px; font-weight: 600; color: var(--accent); }
.live-bar.now small, .live-bar.now .live-dot { color: var(--warn); }
.live-bar.now .live-dot, .count-pill.now .live-dot { background: var(--warn); }
.live-btn { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.live-btn .ic { width: 19px; height: 19px; }
button.live-btn { border: 0; cursor: pointer; }
/* The ride on now, first on the main screen. */
.ride-now { border-color: var(--accent); }
.ride-now.now { border-color: var(--warn); }
.ride-now-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ride-now-head .live-dot { margin-top: 7px; }
.ride-now-head small { display: block; color: var(--muted); }
.ride-now-head strong { display: block; font-size: 20px; line-height: 1.25; }
.ride-now-actions { display: flex; gap: 8px; margin-top: 12px; }
.ride-now-actions .btn { flex: 1; margin: 0; padding-left: 8px; padding-right: 8px; }
/* The driver's earnings on the ride card */
.status-btn { width: 100%; margin: 12px 0 4px; }
.about-card .field { margin: 0; }
.about-shown .label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.about-shown .label .ic { width: 16px; height: 16px; }
.about-text { margin: 0; font-size: 15px; line-height: 1.45; }
.safe-first { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 8px; }
.safe-first .ic { flex: none; color: #ff8a7a; margin-top: 2px; }
/* Under the live ride: a quiet row, not a big button */
.more-riders { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 0; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 14px; background: transparent; color: inherit; text-align: left; }
.more-riders > .ic { flex: none; width: 20px; height: 20px; color: var(--accent); }
.more-riders > .ic:last-child { width: 16px; height: 16px; color: var(--muted); }
.more-riders span { flex: 1; min-width: 0; }
.more-riders strong { display: block; font-size: 14px; }
.more-riders small { display: block; color: var(--muted); font-size: 13px; }
.status-told { display: flex; gap: 8px; align-items: center; color: var(--accent); margin: 10px 0 2px; }
.ride-now.here { border-color: var(--accent); box-shadow: 0 0 0 2px rgb(180 242 138 / 35%); }
.drive-earn { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.drive-earn .ic { flex: none; color: var(--accent); margin-top: 1px; }
/* Several riders: one route, numbered stops, each rider with chat / call / pay */
.drive-sum { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.drive-sum .ic { width: 18px; height: 18px; }
.drive-stops { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.drive-stop { display: flex; align-items: center; min-width: 0; border-radius: 14px; background: var(--surface-2); }
.drive-stop .drive-stop-link { flex: 1; min-width: 0; background: transparent; padding-right: 4px; }
.drive-stop .addr-copy { margin-right: 4px; }
.drive-done { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.drive-done .ic { flex: none; width: 16px; height: 16px; color: var(--accent); }
.addr-copy { flex: none; display: grid; place-items: center; width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.addr-copy .ic { width: 17px; height: 17px; }
.addr-copy:active { color: var(--accent); }
.rl-row { display: flex; align-items: center; gap: 6px; }
.rl-row .rl { flex: 1; min-width: 0; }
.rl-row .addr-copy { width: 34px; min-height: 34px; background: transparent; }
.drive-stop-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: inherit; text-decoration: none; }
.drive-stop-link > .ic { flex: none; width: 20px; height: 20px; color: var(--accent); }
.drive-stop .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--surface-3); color: var(--text); }
.drive-stop.pick .n { background: var(--accent); color: var(--accent-ink); }
.drive-stop.drop .n { background: #f2a59d; color: #2a0f0c; }
.drive-stop .n .ic { width: 16px; height: 16px; }
.drive-stop .what { flex: 1; min-width: 0; }
.drive-stop .what > strong { display: block; font-size: 15px; }
.drive-stop .what small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-stop.next { outline: 2px solid var(--accent); }
.drive-stop.done { opacity: .55; }
.drive-riders { display: grid; gap: 8px; margin-top: 12px; }
.drive-rider { display: flex; align-items: center; gap: 10px; }
.drive-rider .who { flex: 1; min-width: 0; }
.drive-rider .who > strong { display: block; font-size: 15px; }
.drive-rider .who small strong { display: inline; font-size: inherit; color: var(--text); }
.drive-rider .who small { display: block; color: var(--muted); font-size: 13px; }
.drive-total { margin-top: 10px; }
.count-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: rgb(180 242 138 / 14%); color: var(--accent); font-size: 13px; font-weight: 700; }
.count-pill.now { background: rgb(243 210 125 / 16%); color: var(--warn); }
.trip-cd { color: var(--accent); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* Chats list: the newest message under the name */
.row-card .who small.last-msg { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-card .who small.last-msg.unread { color: var(--text); font-weight: 700; }
/* The other person's phone, once booked */
.call-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.call-row > .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.call-row > span { flex: 1; min-width: 0; }
.call-row strong { display: block; font-size: 15px; }
.call-row small { display: block; font-size: 12px; color: var(--muted); }
.call-row .btn.sm { width: auto; margin: 0; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.call-row .btn .ic { width: 15px; height: 15px; }
.call-row.soon > .ic { color: var(--faint); }
/* "Send my location" in the chat */
.quick-replies .loc-pill { display: inline-flex; align-items: center; gap: 6px; border-color: var(--accent); color: var(--accent); }
.quick-replies .loc-pill .ic { width: 15px; height: 15px; }
.bubble.loc { padding: 6px; }
.loc-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); color: var(--text); text-decoration: none; }
.bubble.me .loc-card { background: rgb(16 41 26 / 18%); color: inherit; }
.loc-card > .ic { width: 22px; height: 22px; flex: none; color: var(--to); }
.loc-card strong { display: block; font-size: 14px; }
.loc-card small { display: block; font-size: 12px; opacity: .8; text-decoration: underline; text-underline-offset: 2px; }
/* The driver's car, for the rider: the plate stands out to check before getting in */
.car-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.car-row > .ic { width: 22px; height: 22px; color: var(--accent); flex: none; }
.car-row strong { display: block; font-size: 14px; }
.car-row small { display: block; font-size: 12px; color: var(--muted); }
.plate { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--text); color: var(--bg); font: 800 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px; }
.sound-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.sound-row > .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.sound-row > span { flex: 1; min-width: 0; }
.sound-row strong { display: block; font-size: 14px; }
.sound-row small { display: block; font-size: 12px; color: var(--muted); }
.sound-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 12px; }
.sound-picks .chip { border: 1px solid var(--line-2); font-size: 13px; padding: 8px 12px; cursor: pointer; font-family: inherit; }
.sound-picks .chip.on { background: var(--accent); border-color: var(--accent); color: #10291a; }
.danger-text { color: var(--danger); }
/* Admin Problems: an inbox (one line each), then one request at a time */
.inbox-row { display: block; cursor: pointer; padding-top: 12px; padding-bottom: 12px; }
.inbox-row.urgent-row { border-color: var(--danger); }
.inbox-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inbox-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-who { margin: 3px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.inbox-last { margin: 4px 0 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status.danger { color: #fff; background: var(--danger); }
.convo { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.convo .bubble small { display: block; margin: 0 0 2px; font-size: 11px; opacity: .75; }
.convo .bubble.note { align-self: center; background: transparent; border: 1px dashed var(--line); font-style: italic; border-radius: 12px; }
.composer { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.composer textarea { width: 100%; resize: vertical; }
.composer .btn { margin: 0; }
.decide-box .admin-actions { margin-top: 8px; }
/* Who reported it */
.who-chip { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--text); vertical-align: 1px; }
.who-chip.rider { background: #2f5d8a; color: #fff; }
.who-chip.driver { background: #7a4fb0; color: #fff; }
.who-chip.bank { background: var(--danger); color: #fff; }
.group-row .inbox-who { margin-top: 4px; }
.report-part.rider { border-left: 3px solid #2f5d8a; }
.report-part.driver { border-left: 3px solid #7a4fb0; }

/* Earnings & payouts (drivers) */
.earn-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 14px; }
.earn-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; min-width: 0; }
.earn-tile small { display: block; color: var(--muted); font-size: 12px; }
.earn-tile strong { display: block; font-size: 17px; margin-top: 2px; }
.earn-list { list-style: none; margin: 0; padding: 0; }
.earn-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.earn-row:first-child, .earn-list li:first-child .earn-row { border-top: 0; }
button.earn-row { width: 100%; text-align: left; font: inherit; color: inherit; background: none; }
.pay-lines .line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pay-lines .line:first-child { border-top: 0; }
.pay-lines .line.total { font-weight: 700; }
.statement { width: 100%; border-collapse: collapse; font-size: 14px; }
.statement td { padding: 8px 4px; border-top: 1px solid var(--line); text-align: right; }
.statement td:first-child { text-align: left; }
.statement tr.head td { color: var(--muted); font-size: 12px; border-top: 0; }
.statement tr.sum td { font-weight: 700; border-top: 2px solid var(--line-2); }
@media print {
  .top, #nav, #toast, #sheet, .no-print, .back, #waitBar, .preview-badge { display: none !important; }
  body, #screen, .card { background: #fff !important; color: #000 !important; border-color: #ccc !important; }
  .statement td, .fine, .lead, h2 em { color: #000 !important; }
}
.earn-what, .earn-amt { display: flex; flex-direction: column; min-width: 0; }
.earn-what small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earn-amt { text-align: right; flex: none; }
.earn-amt small { color: var(--muted); font-size: 12px; }
.earn-amt small.ok { color: var(--accent); }
.earn-amt small.warn { color: var(--warn); }
.earn-amt small.bad { color: var(--danger); }
.plan-seg button { min-height: 58px; }
.plan-opt { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.plan-opt small { font-size: 12px; font-weight: 500; opacity: .85; }

/* Profile: name and phone locked until Edit */
.details-set { border: 0; margin: 0; padding: 0; min-width: 0; }
#profileForm.locked .details-set { opacity: .55; }
#profileForm.locked input { pointer-events: none; }
.earn-sum { display: flex; gap: 8px; width: 100%; margin: 2px 0 10px; padding: 0; text-align: left; }
.earn-sum span { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 10px; }
.earn-sum small { display: block; color: var(--muted); font-size: 12px; }
.earn-sum strong { display: block; font-size: 17px; margin-top: 2px; }
.earn-sum span:first-child strong { color: var(--accent); }
.need-list { list-style: none; margin: 8px 0 10px; padding: 0; font-size: 14px; }
.need-list li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; color: var(--muted); }
.need-list .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; opacity: .6; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.next-payout { display: flex; gap: 10px; align-items: flex-start; margin: -4px 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; }
.next-payout .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }
.next-payout small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 3px; }
.st-note { display: block; color: var(--muted); font-size: 11px; }
.statement .link { font: inherit; padding: 0; }
/* Profile photos */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-queue { list-style: none; margin: 0; padding: 0; }
.photo-queue li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.photo-queue li:first-child { border-top: 0; }
.photo-queue img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.photo-queue li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.photo-queue small { color: var(--muted); font-size: 12px; }
.photo-btns { display: flex; flex-direction: column; gap: 6px; }
/* Ontario's one trip a day: the notice on the trip form */
.day-rule { border-color: var(--warn, #f3d27d); }
.day-rule .card-title { display: flex; align-items: center; gap: 8px; }
.day-rule p { margin: 6px 0 0; }
/* Profile photo: a selfie or a photo from the album */
.photo-btns-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.photo-btns-row .btn { margin: 0; min-height: 52px; padding-inline: 10px; white-space: nowrap; gap: 6px; }
.photo-card .link.danger { margin-top: 12px; }
/* Ridenelo look (design variant 5 "Bold"): black and lime — the default. */
:root {
  --page: #e9e9e6;
  --bg: #111111;
  --surface: #1a1a1a;
  --surface-2: #212121;
  --surface-3: #2a2a2a;
  --line: #2f2f2f;
  --line-2: #3f3f3f;
  --text: #f4f4f2;
  --muted: #ababab;
  --faint: #868686;
  --accent-ink: #111111;
  --shadow: 0 30px 80px rgb(0 0 0 / 30%);
}
.brand { font-weight: 800; letter-spacing: -1px; }
.phone { background: radial-gradient(120% 60% at 100% 0, #1f2a17 0, var(--bg) 60%); }
#nav { background: rgb(20 20 20 / 94%); }
#nav::after { background: rgb(20 20 20); }
.banner.demo, .banner.ok, .banner.money { background: linear-gradient(135deg, #1f2a17, #171a14); border-color: #3e5230; }
.hero { background: linear-gradient(150deg, #24331b, #161814); border-color: #3e5230; }
/* Light appearance (Profile → Appearance → Light; ride.html adds .light to <html>). */
:root.light {
  color-scheme: light;
  --page: #e9e9e6;
  --bg: #ffffff;
  --surface: #f5f6f3;
  --surface-2: #eceee9;
  --surface-3: #e3e6df;
  --line: #e0e3dc;
  --line-2: #c9cec3;
  --text: #111111;
  --muted: #5d6459;
  --faint: #868c82;
  --accent: #3f8a1f;
  --accent-hover: #357519;
  --accent-ink: #ffffff;
  --from: #3f8a1f;
  --to: #d9534a;
  --warn: #9a6b00;
  --danger: #c0392b;
  --shadow: 0 20px 50px rgb(0 0 0 / 10%);
}
.light .phone { background: #ffffff; }
.light #nav { background: rgb(255 255 255 / 94%); border-top: 1px solid var(--line); }
.light #nav::after { background: #ffffff; }
.light .btn.ghost, .light .back, .light .pill, .light .chip, .light .line, .light .map-info, .light .quick button span,
.light .hero p, .light .when, .light .checks li, .light .sheet-steps li, .light .check { color: var(--text); }
.light .banner.warn, .light .live-bar.now, .light .wait-bar { background: #fdf6e3; border-color: #e8d49a; }
.light .wait-bar small { color: #7a5a00; }
.light .banner.demo, .light .banner.ok, .light .banner.money, .light .hero { background: #eef6e8; border-color: #c5ddb3; }
.light .banner.lock, .light .banner.notify, .light .card.fit { border-color: #9cc77f; }
.light .status.warn { color: #ffffff; }
.light .wait-bar .go, .light .seat-chip, .light .sound-picks .chip.on, .light .doc-upload.done .doc-ic { color: var(--accent-ink); }
.light .way-pill, .light .count-pill { background: rgb(63 138 31 / 12%); }
.light .way-pill.far, .light .count-pill.now { background: rgb(154 107 0 / 12%); }
.light .pay-element, .light .doc-thumb, .light .report-text { background: rgb(0 0 0 / 4%); }
.light .doc-ic { background: rgb(0 0 0 / 6%); }
.light .star { color: rgb(0 0 0 / 18%); }
.light .star.on { color: #e0a800; }
.light .bubble.me small { color: #dff0d2; }
.light .bubble.me .loc-card { background: rgb(255 255 255 / 18%); }
.light .skeleton::after { background: linear-gradient(100deg, transparent 30%, rgb(0 0 0 / 5%) 50%, transparent 70%); }
.light .banner { color: var(--text); }
:root.light { --blue: #1f6fd1; }
/* Profile photo on the whole screen */
.avatar-btn { padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; flex: none; }
.photo-view { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgb(0 0 0 / 92%); animation: fade .15s ease-out; cursor: zoom-out; }
.photo-view img { width: min(100%, 560px); height: auto; max-height: 82vh; border-radius: 18px; object-fit: contain; }
.photo-close { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 14%); color: #fff; border: 0; }
/* A chosen photo before it's sent: Flip mirrors it */
.photo-draft { display: grid; place-items: center; margin-top: 12px; }
.photo-draft img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.photo-draft img.flipped { transform: scaleX(-1); }
.photo-card > .link { margin-top: 12px; }
