:root {
  --map-canvas: #0c0c0c;
  --map-land: #1e1e1e;
  --map-road: #2f2f2f;
  --map-road-hi: #454545;
  --map-water: #0f1b2a;
  --chrome: #1a1a1a;
  --chrome-2: #2f2f2f;
  --hairline: #3a3a3a;

  --brand: #ffdd00;
  --brand-ink: #0c0c0c;
  --cta: #ff5a00;
  --cta-ink: #ffffff;
  --cta-press: #e24e00;

  --sheet: #ffffff;
  --sheet-muted: #f6f6f6;
  --ink: #0c0c0c;
  --ink-2: #545454;
  --ink-3: #757575;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;

  --ok: #05a357;
  --ok-soft: #22c77a;
  --danger: #d72113;
  --info: #0a47ff;
  --warn: #ffcb00;

  --radius-sheet: 28px;
  --radius-btn: 14px;
  --radius-card: 18px;
  --cta-h: 56px;
  --shadow-sheet: 0 -12px 40px rgba(0, 0, 0, 0.32);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.22);
  --font: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--map-canvas); }
body {
  font-family: var(--font);
  background: var(--map-canvas);
  color: var(--ink);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
body.ride-app {
  height: 100dvh;
  overflow: hidden;
  color: var(--ink);
}

a { color: var(--cta); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  font-weight: 800;
}
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.05; }
h2 { font-size: 22px; line-height: 1.15; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.buyer-dock {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--sheet);
  padding: 2px 0 4px;
}
.addr-chip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: var(--sheet-muted);
  border-radius: 16px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 10px;
}
.addr-chip:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}
.addr-pin {
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--cta);
  flex: 0 0 auto;
}
.addr-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.addr-copy b {
  font-size: 14px;
  letter-spacing: -0.02em;
}
.addr-copy small {
  color: var(--ink-3);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.addr-fold {
  margin: 0 0 10px;
  padding: 12px;
  background: var(--sheet-muted);
  border-radius: 16px;
}
.addr-fold:not([open]) { display: none; }
.addr-fold[open] { display: block; }
.sheet-buyer .chip-row { padding-bottom: 6px; }
.lede { color: var(--ink-2); font-size: 15px; line-height: 1.45; max-width: 52ch; margin: 0; }
.muted, .role-card small { color: var(--ink-3); }
.notice { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.space { height: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* —— Map chrome (Uber dark cartography) —— */
.map-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 48% 70% at 88% 42%, var(--map-water) 0%, transparent 62%),
    radial-gradient(ellipse 22% 28% at 72% 58%, rgba(15, 27, 42, 0.85), transparent 70%),
    linear-gradient(180deg, #141414 0%, var(--map-canvas) 100%);
  overflow: hidden;
  pointer-events: none;
}
.map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 42px 42px;
  mask-image: radial-gradient(circle at 40% 50%, #000 20%, transparent 78%);
}
.map-water {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a3350, var(--map-water));
  opacity: 0.9;
}
.map-water.atlantic { width: 58vmax; height: 90vmax; right: -28vmax; top: -10vmax; }
.map-water.lagoon { width: 22vmax; height: 16vmax; right: 14%; top: 38%; border-radius: 40% 60% 50% 50%; }
.map-route-line {
  position: absolute;
  left: 18%;
  top: 46%;
  width: 58%;
  height: 6px;
  background: linear-gradient(90deg, var(--cta), var(--brand));
  border-radius: 999px;
  transform: rotate(-16deg);
  box-shadow: 0 0 0 4px rgba(12, 12, 12, 0.7);
}
.map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #afafaf;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px #000;
  white-space: nowrap;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  width: 16px;
  height: 16px;
}
.map-pin i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--cta);
  box-shadow: 0 6px 12px rgba(255, 90, 0, 0.35);
}
.map-pin.you i { background: var(--ok-soft); box-shadow: 0 0 0 8px rgba(5, 163, 87, 0.22); }
.map-pin.you::after,
.map-pin.driver.approaching::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 2px solid rgba(34, 199, 122, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
.map-pin.driver i { background: var(--cta); box-shadow: 0 0 0 8px rgba(255, 90, 0, 0.28); }
.map-pin.driver.approaching i {
  background: var(--brand);
  box-shadow: 0 0 0 10px rgba(255, 221, 0, 0.35);
}
.map-pin.driver.approaching::after { border-color: rgba(255, 221, 0, 0.7); }
.map-pin span {
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  background: var(--chrome);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.eta-float {
  position: absolute;
  left: 34%;
  top: 30%;
  background: #000;
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow-float);
}
.map-fab {
  position: absolute;
  right: 18px;
  bottom: 38%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.map-stage.has-live-map { pointer-events: none; }
.map-stage.has-live-map::before { display: none; }
.map-canvas {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  z-index: 1;
}
.map-canvas.osm-live {
  filter: grayscale(0.35) brightness(0.72) contrast(1.15);
}
.map-banner {
  position: absolute;
  left: 16px;
  top: 72px;
  z-index: 6;
  pointer-events: none;
  max-width: 160px;
  background: rgba(12, 12, 12, 0.82);
  color: #f3f3f3;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-float);
}
.map-banner.warn { border: 1px solid rgba(255, 203, 0, 0.35); }
.approach-banner {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 128px;
  z-index: 7;
  pointer-events: none;
  max-width: min(420px, 42vw);
  background: var(--cta);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  animation: pulse 1.6s ease-out infinite;
}
.approach-banner[hidden] { display: none; }
.map-stage.driver-approaching .eta-float {
  background: var(--cta);
}
.eta-float, .map-fab { pointer-events: auto; z-index: 6; }
body.nav-mode .sheet { max-height: min(38dvh, 360px); }
body.nav-mode .map-fab { bottom: calc(min(38dvh, 360px) + 16px); }
body.nav-mode .eta-float {
  left: 16px;
  top: 72px;
  right: auto;
}

/* —— Floating top chrome —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 30;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-float);
}
.brand span { color: var(--cta); }
.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cart-btn:hover { background: var(--sheet-muted); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--cta);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  background: var(--sheet);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  box-shadow: var(--shadow-float);
  max-width: min(100%, 520px);
}
.nav-actions .muted { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
button.user-chip.profile-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 2px 4px 2px 2px;
  border-radius: 999px;
  font: inherit;
  color: inherit;
}
button.user-chip.profile-trigger:hover,
button.user-chip.profile-trigger:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.avatar.lg {
  width: 56px;
  height: 56px;
  font-size: 22px;
}
.profile-sheet .profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 8px 0 16px;
}
.profile-sheet .profile-head h2 {
  margin: 2px 0 4px;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.profile-edit label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 13px;
}
.profile-edit input,
.profile-edit select {
  width: 100%;
}
.profile-block {
  margin-top: 14px;
}
.profile-block h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.profile-vehicles {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}
.compat-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--sheet-muted);
  color: var(--ink-2);
}
.compat-pill.match,
.compat-pill.universal { background: #e8f6ee; color: #146c3a; }
.compat-pill.mismatch { background: #fdecec; color: #9b1c1c; }
.compat-pill.unknown { background: #f4f1e8; color: #6b5a2a; }
.search-mode .chip { min-width: 140px; justify-content: center; font-weight: 700; }
.signup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.signup-actions .btn { flex: 1 1 140px; text-align: center; text-decoration: none; }
.statement-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.statement-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.statement-list small {
  display: block;
  color: var(--ink-2);
  font-weight: 500;
  margin-top: 2px;
}
.pill-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

/* —— Bottom sheet (99/Uber primary container) —— */
.sheet {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72dvh, 780px);
  overflow: auto;
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  box-shadow: var(--shadow-sheet);
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
  animation: sheet-in 0.48s cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet.sheet-buyer { max-height: min(80dvh, 860px); }
@keyframes sheet-in {
  from { transform: translateY(28px); opacity: 0.55; }
  to { transform: none; opacity: 1; }
}
.grabber {
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: #cfcfcf;
  margin: 12px auto 6px;
}
.wrap {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 8px 20px 28px;
}
.hero-copy {
  position: fixed;
  z-index: 10;
  left: 20px;
  right: 20px;
  top: 72px;
  color: #fff;
  pointer-events: none;
  max-width: 520px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.hero-copy .lede { color: #cfcfcf; }
.hero-copy .kicker { color: var(--brand); }
.signup-fold {
  margin: 8px 0 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sheet-muted);
}
.signup-fold summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  list-style: none;
}
.signup-fold summary::-webkit-details-marker { display: none; }
.signup-fold[open] summary { border-bottom: 1px solid var(--line); }
.signup-fold form { padding: 12px 14px 16px; }
.login-page .sheet { max-height: min(84dvh, 920px); }
.or-line {
  margin: 14px 0 10px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn.google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--line);
  gap: 10px;
}
.btn.google:hover { background: #f4f4f4; }
.btn.google::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}
.google-gis {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
#googleBuyer { margin-bottom: 4px; }

.panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
}
.where-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  background: var(--sheet-muted);
  border-radius: 14px;
  padding: 14px 16px;
}
.route-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--ink);
}
.dot.dest { border-radius: 50%; background: var(--cta); }
.route-dots .dash {
  flex: 1;
  width: 0;
  border-left: 1.5px dashed #afafaf;
  margin: 4px 0;
  min-height: 18px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  background: var(--sheet-muted);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 14px;
  outline: none;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
  background: #fff;
}
input[type="range"] { accent-color: var(--cta); padding: 0; background: transparent; }
input[type="file"] { padding: 10px; }

.btn, .chip, .role-card { touch-action: manipulation; }
.btn {
  border: 0;
  border-radius: var(--radius-btn);
  min-height: 48px;
  padding: 12px 18px;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s cubic-bezier(0.32, 0.72, 0, 1), background 0.16s ease;
}
.btn:hover { background: var(--cta-press); }
.btn:active { transform: scale(0.98); }
.btn.block { width: 100%; min-height: var(--cta-h); font-size: 17px; }
.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-row .btn { min-height: 44px; width: 100%; text-align: center; }
.btn.secondary {
  background: var(--sheet-muted);
  color: var(--ink);
  border: 0;
}
.btn.secondary:hover { background: var(--line); }
.btn.ghost { background: transparent; color: var(--ink-2); min-height: 40px; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.teal, .btn.ok { background: var(--ok); color: #fff; }
.btn.dark { background: #000; color: #fff; }
.btn.sm, .topbar .btn, .table .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 999px;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn:focus-visible,
.chip:focus-visible,
.role-card:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.chip, .role-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--sheet);
  cursor: pointer;
  text-align: left;
}
.role-card {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
}
.role-card .role-title { font-weight: 800; letter-spacing: -0.02em; }
.role-card .role-headline {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}
.role-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.role-benefits li {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--sheet-muted);
  padding: 3px 7px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}
.role-card.active .role-headline { color: var(--ink); }
.role-card.active .role-benefits li { background: #fff; }
.role-card .muted { font-weight: 500; font-size: 12px; }

#roles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.role-card.role-buyer {
  min-height: 88px;
  padding: 16px 18px 16px 20px;
  gap: 4px;
  background: #fff;
  border-color: transparent;
  box-shadow: inset 4px 0 0 var(--cta);
}
.role-card.role-buyer.active {
  border-color: transparent;
  background: #fff;
  box-shadow: inset 4px 0 0 var(--cta), inset 0 0 0 1.5px var(--ink);
}
.role-card.role-buyer .role-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cta);
}
.role-card.role-buyer .role-title {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.role-card.role-buyer .role-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  max-width: 36ch;
}
.buyer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.buyer-cta {
  display: inline-flex;
  align-items: center;
  background: var(--cta);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: -0.02em;
}
.role-card.role-buyer .role-benefits li {
  font-size: 11px;
  padding: 5px 9px;
  background: var(--sheet-muted);
  border: 0;
}
.partners-fold {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sheet-muted);
}
.partners-fold summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 12px 14px;
}
.partners-fold summary::-webkit-details-marker { display: none; }
.partners-fold summary::after {
  content: "▸";
  float: right;
  color: var(--ink-3);
  font-size: 12px;
}
.partners-fold[open] summary::after { content: "▾"; }
.partner-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}
.role-card.role-partner {
  min-height: 0;
  padding: 10px 12px;
  font-size: 12px;
  gap: 2px;
  background: #fff;
  font-weight: 600;
}
.role-card.role-partner .role-title {
  font-size: 13px;
  font-weight: 700;
}
.role-card.role-partner .role-headline {
  font-size: 11px;
  font-weight: 600;
}
.promo-banner {
  background: var(--sheet-muted);
  border: 0;
  border-radius: 16px;
  padding: 12px 14px 12px 16px;
  margin: 0 0 14px;
  box-shadow: inset 4px 0 0 var(--cta);
}
.promo-banner .promo-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cta);
}
.promo-banner h3 {
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.promo-banner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promo-banner li {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  line-height: 1.25;
}
.driver-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 12px;
}
.stat-pill {
  background: var(--sheet-muted);
  border-radius: 14px;
  padding: 10px 12px;
}
.stat-pill b {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: -0.04em;
}
#roles.grid-2 .role-card:last-child { grid-column: 1 / -1; }
#roles .role-card.role-buyer { grid-column: 1 / -1; }
.role-card.active, .chip.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  background: var(--sheet-muted);
}
.chip {
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--sheet-muted);
  border: 0;
  transition: transform 0.16s cubic-bezier(0.32, 0.72, 0, 1), background 0.16s ease, color 0.16s ease;
}
.chip:active { transform: scale(0.96); }
.chip b { font-family: var(--mono); font-size: 13px; }
.chip.active {
  background: #000;
  color: #fff;
  box-shadow: none;
  border-color: #000;
}
.chip.active .muted { color: #cfcfcf; }
.vehicle-pick {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 4px 0 8px;
}
.vehicle-pick label {
  display: grid;
  gap: 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}
.vehicle-pick select { width: 100%; }
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip.choice {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 14px;
}
.chip.plate {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  min-width: 118px;
}
.search-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--sheet-muted);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
}
.search-icon {
  width: 18px;
  height: 18px;
  opacity: 0.45;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}
.search-bar input {
  background: transparent;
  border: 0;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
}
.search-bar input:focus { background: transparent; border-color: transparent; }
.search-bar .btn { min-height: 44px; padding: 0 18px; border-radius: 999px; }
.filters-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}
.filters-inline .radius {
  flex: 1;
  min-width: 140px;
  margin: 0;
}
.filters-inline .radius span { font-family: var(--mono); color: var(--ink); }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cta);
}
.terms-check { white-space: normal; align-items: flex-start; }
.terms-check .linkish {
  background: none;
  border: 0;
  color: var(--cta);
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.terms-box {
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.45;
  padding: 10px;
  border-radius: 12px;
  background: #111;
  color: #ddd;
}
.garage-more, .more-filters { margin-top: 8px; }
.garage-more summary, .more-filters summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  list-style: none;
}
.garage-more summary::-webkit-details-marker,
.more-filters summary::-webkit-details-marker { display: none; }
.profile-switch {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.profile-switch .chip { flex: 1; text-align: center; align-items: center; }

.badge, .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--sheet-muted);
  color: var(--ink);
}
.badge.ok, .status-pill.ok { background: rgba(5, 163, 87, 0.12); color: var(--ok); }
.badge.teal, .status-pill.live { background: rgba(10, 71, 255, 0.1); color: var(--info); }
.badge.rose, .status-pill.flash { background: rgba(255, 90, 0, 0.14); color: var(--cta); }
.badge.warn, .status-pill.warn { background: rgba(255, 203, 0, 0.24); color: #8a6a00; }
.status-pill.done { background: rgba(5, 163, 87, 0.12); color: var(--ok); }
.status-pill.transit { background: #000; color: #fff; }

.card-list { display: grid; gap: 8px; }
.offer, .part, .trip-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-card);
  border: 0;
  background: var(--sheet-muted);
}
.part {
  min-height: 88px;
  grid-template-columns: 76px 1fr auto;
  cursor: pointer;
}
.part-thumb {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  background: #1a1a1a;
}
.part.best {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--cta);
}
.part-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.2;
}
.part-meta {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.35;
}
.hours-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.3;
}
.hours-banner {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 203, 0, 0.28);
  color: #5c4700;
  font-size: 14px;
  line-height: 1.4;
}
.hours-banner.open {
  background: rgba(5, 163, 87, 0.12);
  color: var(--ok);
}
.card-list.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.part-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 76px;
}
.part .price { text-align: right; font-size: 18px; }
.part .btn.pedir,
.part .btn.cart-add {
  min-height: 36px;
  min-width: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
}
.part:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}
.offer-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  background: #111;
  margin: 8px 0 12px;
  border: 1px solid var(--line);
}
.offer-facts {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.offer-facts .lede { max-width: none; }
.offer-facts .fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--sheet-muted);
  border-radius: 12px;
}
.offer-facts .fact span { color: var(--ink-3); font-size: 13px; }
.offer-facts .fact b { font-size: 14px; text-align: right; }
.offer-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 12px;
}
.offer-totals div {
  background: var(--sheet-muted);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.offer-totals span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.offer-totals b {
  font-family: var(--mono);
  font-size: 15px;
}
.leaflet-driver-pin { background: transparent; border: 0; }
.trip-side { display: grid; gap: 8px; justify-items: end; align-content: center; }
.trip-side .btn { min-width: 96px; }
.trip-card.approaching { border-color: var(--cta); box-shadow: inset 0 0 0 1px var(--cta); }
.approach-pulse {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 0, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(255, 90, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 0, 0); }
}
.price {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: right;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--cta);
}

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }

.empty, .error, .flash, .state {
  padding: 22px 16px;
  border-radius: var(--radius-card);
  background: var(--sheet-muted);
  color: var(--ink-2);
  text-align: center;
}
.state h3 { margin-top: 8px; }
.state p { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.error { background: #fff1ef; color: var(--danger); border: 1px solid #ffd4ce; }
.flash { background: #e9f8ef; color: var(--ok); }
.loading-beacon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: var(--ok-soft);
  box-shadow: 0 0 0 8px rgba(5, 163, 87, 0.16);
  animation: pulse 1.4s ease-out infinite;
}
.loading-beacon.idle {
  animation: none;
  background: #d4d4d4;
  box-shadow: none;
}
.skeleton-stack { display: grid; gap: 10px; }
.skeleton {
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eee, #f7f7f7, #eee);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.error-state p { margin: 8px 0 12px; color: inherit; }
.error-state .btn { min-height: 40px; }
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.kpi {
  padding: 16px;
  border-radius: 16px;
  background: var(--sheet);
  border: 1px solid var(--line);
}
.kpi b {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  margin-top: 6px;
  letter-spacing: -0.04em;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
}
.modal-bg.open { display: flex; }
.modal {
  width: min(560px, 100%);
  background: var(--sheet);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding: 8px 22px 28px;
  box-shadow: var(--shadow-sheet);
  animation: sheet-in 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal.profile-sheet {
  max-height: min(88dvh, 820px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.pix-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--sheet-muted);
}
.pix-box textarea {
  width: 100%;
  min-height: 88px;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
}

.map {
  height: 140px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, #1e1e1e, #0c0c0c);
  position: relative;
  overflow: hidden;
}
.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 0 8px rgba(255, 90, 0, 0.2);
}
.route {
  position: absolute;
  left: 18%;
  top: 40%;
  width: 64%;
  height: 0;
  border-top: 4px solid #fff;
  transform: rotate(-12deg);
}

.trip-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trip-head .avatar { width: 48px; height: 48px; font-size: 18px; background: var(--cta); }
.plate-pill {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  background: var(--sheet-muted);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

@media (min-width: 900px) {
  .sheet {
    top: 16px;
    right: 16px;
    left: auto;
    bottom: 16px;
    width: min(440px, 40vw);
    max-height: none;
    border-radius: 24px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
    animation: sheet-in-desk 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  }
  @keyframes sheet-in-desk {
    from { transform: translateX(24px); opacity: 0.5; }
    to { transform: none; opacity: 1; }
  }
  .login-page .sheet {
    width: min(460px, 42vw);
  }
  .hero-copy {
    left: 40px;
    top: 28%;
    right: auto;
    max-width: min(42vw, 560px);
  }
  .hero-copy h1 { font-size: clamp(44px, 5vw, 64px); }
  .wrap { width: 100%; padding: 4px 22px 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .map-fab { right: calc(min(440px, 40vw) + 32px); bottom: 28px; }
  .topbar { left: 20px; right: calc(min(440px, 40vw) + 36px); }
  .ops-panel .sheet {
    width: min(520px, 48vw);
  }
  .ops-panel .sheet .grid-2 { grid-template-columns: 1fr; }
  .ops-panel .topbar { right: calc(min(520px, 48vw) + 36px); }
  .ops-panel .map-fab { right: calc(min(520px, 48vw) + 32px); }
  .modal { border-radius: 20px; margin-bottom: 24px; }
  .modal-bg { align-items: center; }
  .chip-row { flex-wrap: wrap; overflow: visible; }
}

@media (max-width: 899px) {
  .map-banner { max-width: 140px; top: 62px; left: 8px; right: auto; }
  .approach-banner { max-width: none; top: 118px; left: 8px; right: 8px; }
  .hero, .grid-2, .grid-3, .offer, .trip-card { grid-template-columns: 1fr; }
  .part { grid-template-columns: 72px 1fr auto; }
  .part .btn.pedir { grid-column: auto; width: auto; }
  #roles.grid-2 { grid-template-columns: 1fr 1fr; }
  .role-card { min-height: 0; padding: 10px; font-size: 13px; }
  .role-card .role-headline { font-size: 11px; }
  .role-card.role-buyer {
    min-height: 80px;
    padding: 14px 16px;
    font-size: 16px;
  }
  .role-card.role-buyer .role-title { font-size: 20px; }
  .role-card.role-buyer .role-headline { font-size: 13px; }
  .role-card.role-partner { padding: 8px 10px; font-size: 12px; }
  .role-card.role-partner .role-headline { font-size: 11px; }
  .promo-banner { padding: 10px 12px; }
  .promo-banner h3 { font-size: 14px; }
  .promo-banner li { font-size: 11px; padding: 4px 8px; }
  .login-page .sheet { max-height: min(84dvh, 900px); }
  .hero-copy h1 { font-size: 28px; }
  .hero-copy { top: 70px; }
  .login-page .hero-copy .lede { display: none; }
  .nav-actions { padding: 5px 6px 5px 10px; }
  .part .btn.pedir { width: auto; min-height: 36px; }
  .sheet-buyer h1 { font-size: 26px; }
  .sheet-buyer .lede { font-size: 13px; }
}

@media (max-width: 430px) {
  .topbar { top: 8px; left: 8px; right: 8px; }
  .wrap { padding: 4px 16px 28px; }
  .btn.block { min-height: 56px; }
  .sheet.sheet-buyer { max-height: min(84dvh, 920px); }
  .chip.plate {
    min-width: 136px;
    min-height: 58px;
    padding: 10px 14px;
  }
  .chip.choice { min-height: 40px; padding: 10px 16px; }
  .search-bar { padding: 4px 4px 4px 14px; }
  .search-bar input { font-size: 16px; }
  .part .price { font-size: 16px; }
}

@media (max-width: 390px) {
  .topbar { top: 6px; left: 6px; right: 6px; }
  .wrap { padding: 4px 14px 24px; }
  .hero-copy h1 { font-size: 24px; }
  .btn.block { min-height: 52px; }
  .sheet.sheet-buyer { max-height: min(86dvh, 920px); }
  .chip.plate { min-width: 120px; min-height: 54px; }
  .search-bar input { font-size: 16px; }
  .role-card.role-buyer {
    min-height: 76px;
    padding: 14px;
    gap: 4px;
  }
  .role-card.role-buyer .role-title { font-size: 18px; }
  .role-card.role-buyer .role-headline { font-size: 12px; }
  .role-card.role-buyer .role-benefits li { font-size: 10px; padding: 4px 8px; }
  .partners-fold summary { padding: 10px 12px; font-size: 12px; }
  .partner-row { gap: 6px; padding: 0 8px 8px; }
  .role-card.role-partner { padding: 8px; font-size: 11px; }
  .role-card.role-partner .role-title { font-size: 12px; }
  .role-card.role-partner .role-headline { font-size: 10px; }
}

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