/* BBUber app styles. Dark, map first, bourbon amber accents. */
:root {
  --bg: #0b0b0c;
  --surface: #151518;
  --surface-2: #1f1f24;
  --surface-3: #2c2c33;
  --line: #2a2a30;
  --text: #f4f1ea;
  --muted: #a39f96;
  --amber: #e8a33d;
  --amber-2: #c9822b;
  --amber-ink: #1a1206;
  --amber-soft: rgba(232, 163, 61, 0.1);
  --good: #3ecf8e;
  --danger: #ff6b5e;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --sheet-h: 0px;
}

/* Inside the landing page's phone mockup: leave room for its fake status bar and home bar. */
html.embed { --safe-top: 40px; --safe-bottom: 16px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

button { font-family: inherit; color: inherit; }
button, a { -webkit-user-select: none; user-select: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.pad { padding: 10px 2px; margin: 0; }
.center { text-align: center; }
.ellipsis { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fade { animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ map */
#map {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0e0e10;
}
.leaflet-container { background: #0e0e10; font-family: var(--font); }
/* Night mode for the standard OpenStreetMap tiles. */
.bb-tiles { filter: invert(1) hue-rotate(185deg) brightness(0.92) contrast(0.88) saturate(0.45); }
.leaflet-bottom { bottom: var(--sheet-h); transition: bottom 0.2s ease; }
.leaflet-control-attribution {
  background: rgba(11, 11, 12, 0.72) !important;
  color: #8d8a83 !important;
  font-size: 10px !important;
  border-radius: 6px 0 0 0;
}
.leaflet-control-attribution a { color: #bdb8ad !important; }

/* Cars, drawn as whiskey bottles */
.bb-car { background: none; border: 0; }
.bb-car-rot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transition: transform 0.3s linear;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}
.bb-car-mine .bb-car-rot { filter: drop-shadow(0 0 6px rgba(232, 163, 61, 0.75)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7)); }

/* Pins */
.bb-pin-wrap { background: none; border: 0; }
.bb-pin { position: relative; width: 16px; height: 16px; }
.bb-pin-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.bb-pin-dropoff .bb-pin-dot { border-radius: 3px; border-color: var(--amber); }
.bb-pin-label {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--text);
  color: var(--bg);
  font: 600 12px/1 var(--font);
  padding: 6px 9px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.bb-pulse-wrap, .bb-user-wrap { background: none; border: 0; }
.bb-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: rgba(232, 163, 61, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
.bb-pulse.two { animation-delay: 1.1s; }
@keyframes pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(9); opacity: 0; } }
.bb-user {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4c8dff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(76, 141, 255, 0.25);
}

/* Center pin for "Set location on map" */
.center-pin {
  position: fixed;
  z-index: 400;
  display: none;
  transform: translate(-50%, -100%);
  pointer-events: none;
  transition: transform 0.15s ease;
}
body[data-view="pin"] .center-pin { display: block; }
.center-pin.lift { transform: translate(-50%, calc(-100% - 10px)); }

/* -------------------------------------------------------- floating bits */
.fab {
  position: fixed;
  z-index: 300;
  top: calc(14px + var(--safe-top));
  left: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.brandchip {
  position: fixed;
  z-index: 300;
  top: calc(18px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 11, 12, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 15px;
  white-space: nowrap;
  pointer-events: none;
}
.brandchip span { color: var(--amber); }
.brandchip small { font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; font-size: 12px; }
body:not([data-view="home"]) .brandchip { display: none; }

/* ------------------------------------------------------------ the sheet */
.sheet {
  position: fixed;
  z-index: 200;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 68vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(16px + var(--safe-bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}
body[data-view="choose"] .sheet { max-height: 64vh; }
body[data-view="receipt"] .sheet { max-height: 86vh; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 2px auto 12px; }

@media (min-width: 900px) {
  .sheet {
    left: 16px;
    top: 16px;
    bottom: 16px;
    right: auto;
    width: 400px;
    max-height: none !important;
    border-radius: 18px;
    padding: 20px;
  }
  .grab { display: none; }
  .fab { left: 432px; top: 16px; }
  .brandchip { left: calc(50% + 216px); }
}

/* ----------------------------------------------------------------- home */
.greet { margin: 0 0 12px; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.where-row { display: flex; gap: 8px; }
.where {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 0;
  border-radius: 14px;
  padding: 16px;
  font: 700 18px var(--font);
  text-align: left;
  cursor: pointer;
}
.where-sq { width: 10px; height: 10px; background: var(--amber); flex: 0 0 auto; }
.now-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-3);
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  font: 600 14px var(--font);
  cursor: pointer;
}
.pickup-line, .pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--muted);
  font: 14px var(--font);
  padding: 12px 2px 4px;
  text-align: left;
  cursor: pointer;
}
.pickup-line b, .pay-row span { color: var(--text); }
.pay-row { border-top: 1px solid var(--line); margin-top: 4px; padding: 14px 2px 2px; font-weight: 600; }
.dot-pickup { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--text); flex: 0 0 auto; }
.chev { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; padding-left: 8px; }
.proof-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--amber-soft);
  border: 1px solid rgba(232, 163, 61, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 13px;
}
.proof-chip {
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
  font-size: 12px;
}
.proof-note { margin: 0 0 8px; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- lists */
.list { list-style: none; margin: 4px 0 0; padding: 0; }
.list-head {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 16px 2px 4px;
  margin: 0;
  font-weight: 600;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 11px 2px;
  font: inherit;
  cursor: pointer;
}
.row-ic {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-text b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-text small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-text small.wrap { white-space: normal; }

/* --------------------------------------------------- search and pages */
.search-panel, .page {
  position: fixed;
  z-index: 600;
  inset: 0;
  background: var(--bg);
  overflow-y: auto;
  padding: calc(10px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
  animation: slideUp 0.22s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) {
  .search-panel, .page {
    inset: 16px auto 16px 16px;
    width: 400px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }
}
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 48px; }
.panel-head h2 { margin: 0; font-size: 19px; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.fields { display: flex; gap: 12px; background: var(--surface); border-radius: 16px; padding: 12px; }
@media (min-width: 900px) { .fields { background: var(--surface-2); } .fields input { background: var(--surface-3) !important; } }
.rail { display: flex; flex-direction: column; align-items: center; padding: 18px 0; }
.rail-dot { width: 11px; height: 11px; border-radius: 50%; border: 3px solid var(--text); flex: 0 0 auto; }
.rail-line { flex: 1; width: 2px; background: var(--surface-3); margin: 4px 0; min-height: 10px; }
.rail-sq { width: 10px; height: 10px; background: var(--amber); flex: 0 0 auto; }
.rail.small { padding: 4px 0; }
.inputs { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.inputs input {
  width: 100%;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px;
  color: var(--text);
  font: 500 16px var(--font);
}
.inputs input::placeholder { color: var(--muted); }
.inputs input:focus { outline: none; border-color: var(--amber); }
.results .row { border-bottom-color: var(--surface-2); }

/* ---------------------------------------------------------------- pin */
.pin-addr { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 14px; padding: 12px; margin: 12px 0 4px; }

/* --------------------------------------------------------------- choose */
.trip-summary {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  background: var(--surface-2);
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.ts-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; font-weight: 600; font-size: 14px; }
.trip-summary .chev { align-self: center; color: var(--amber); }
.choose-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 6px; }
.choose-head h3 { margin: 0; font-size: 18px; }
.tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tier {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 2px solid transparent;
  background: none;
  border-radius: 14px;
  padding: 8px 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.tier.sel { border-color: var(--amber); background: var(--amber-soft); }
.tier.off { opacity: 0.5; }
.tier-ic { flex: 0 0 46px; height: 46px; font-size: 30px; display: grid; place-items: center; }
.tier-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tier-main b { font-size: 16px; }
.tier-main small { color: var(--muted); font-size: 12.5px; }
.tier-main .blurb { color: var(--text); opacity: 0.85; }
.seats { font-weight: 500; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; }
.tier-price { text-align: right; display: flex; flex-direction: column; flex: 0 0 auto; }
.tier-price b { font-size: 16px; font-variant-numeric: tabular-nums; }
.tier-price small { font-size: 12px; color: var(--muted); }
.tier-price s { color: var(--muted); font-size: 13px; }
.link { background: none; border: 0; color: var(--amber); font: 600 13px var(--font); padding: 10px 2px 4px; cursor: pointer; }
.pouring { display: flex; align-items: center; gap: 12px; padding: 28px 4px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--amber); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------- buttons */
.btn {
  appearance: none;
  border: 0;
  font: 700 16px var(--font);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--text);
  background: var(--surface-2);
}
.btn.primary { background: var(--amber); color: var(--amber-ink); }
.btn.primary:active { background: var(--amber-2); }
.btn.ghost { background: transparent; border: 1px solid var(--surface-3); }
.btn.block { display: block; width: 100%; margin-top: 12px; }
.btn.big { padding: 16px; font-size: 17px; }
.btn small { font-weight: 600; opacity: 0.75; font-size: 14px; }

/* --------------------------------------------------------- ride status */
.status-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.status-row > div:first-child { min-width: 0; }
.status-title { margin: 0 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.status-sub { margin: 0; color: var(--muted); font-size: 14px; }
.eta-badge {
  background: var(--amber);
  color: var(--amber-ink);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
  min-width: 70px;
  flex: 0 0 auto;
}
.eta-badge b { display: block; font-size: 18px; line-height: 1.1; }
.eta-badge small { font-size: 11px; font-weight: 600; }
.ticker {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 14px;
  min-height: 42px;
}
.bar { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; margin: 12px 0; }
.bar span { display: block; height: 100%; width: 0; background: var(--amber); border-radius: 2px; transition: width 0.25s linear; }
.bar.indeterminate span { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.req-summary { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }

.driver-card { background: var(--surface-2); border-radius: 16px; padding: 14px; }
.dc-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 28px;
  overflow: hidden;
  flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dc-who { flex: 1; min-width: 0; }
.dc-who b { display: block; font-size: 16px; }
.dc-who small { color: var(--muted); font-size: 13px; }
.dc-car { text-align: right; flex: 0 0 auto; max-width: 45%; }
.plate {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  font: 800 14px/1 var(--font);
  letter-spacing: 0.06em;
  padding: 6px 8px;
  border-radius: 6px;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--text);
  white-space: nowrap;
}
.dc-car small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.dc-about { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.dc-about b { color: var(--text); font-weight: 600; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; margin-top: 14px; }
.act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font: 600 12px var(--font);
  cursor: pointer;
  padding: 4px 0;
}
.act-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.act.danger .act-ic { color: var(--danger); }
.pin-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  font-weight: 600;
}
.pin-code small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.pin-digits { font-size: 24px; font-weight: 800; letter-spacing: 0.3em; color: var(--amber); }

/* -------------------------------------------------------------- receipt */
.receipt-head { display: flex; gap: 14px; align-items: center; padding: 2px 0 14px; border-bottom: 1px solid var(--line); }
.receipt-head h2 { margin: 2px 0; font-size: 20px; }
.check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--good);
  color: #04301c;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex: 0 0 auto;
}
.rate-box { text-align: center; padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.rate-box .avatar { margin: 0 auto 8px; }
.rate-box p { margin: 0; }
.stars { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.star { background: none; border: 0; font-size: 38px; color: var(--surface-3); cursor: pointer; line-height: 1; padding: 2px 4px; }
.star.on { color: var(--amber); }
.rate-note { min-height: 20px; color: var(--muted); font-size: 13px; margin-top: 8px !important; }
.tip-box { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tip-box > p { margin: 0 0 10px; font-weight: 600; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip {
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 10px 4px;
  font: 700 14px var(--font);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.chip small { font-weight: 500; color: var(--muted); font-size: 12px; }
.chip.on { border-color: var(--amber); background: var(--amber-soft); }
.fare { padding: 14px 0 4px; }
.fare h4 { margin: 0 0 8px; font-size: 15px; }
.fare-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); padding: 4px 0; }
.fare-line span:last-child { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fare-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.fine { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ---------------------------------------------------------------- trips */
.trip { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.trip .tier-ic { flex-basis: 40px; font-size: 26px; }
.trip-total { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trip-total.canceled { color: var(--muted); font-weight: 600; font-size: 13px; }
.empty { text-align: center; padding: 60px 0 30px; }
.empty p { margin: 4px 0; }
.big-emoji { font-size: 54px; }

/* ----------------------------------------------------------------- chat */
.page.chat { display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
.page.chat .panel-head .avatar { width: 40px; height: 40px; font-size: 22px; }
.chat-who { min-width: 0; }
.chat-who b { display: block; }
.chat-who small { color: var(--muted); font-size: 12px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.msg { max-width: 80%; margin: 0; padding: 10px 13px; border-radius: 18px; font-size: 15px; line-height: 1.35; }
.msg.me { align-self: flex-end; background: var(--amber); color: var(--amber-ink); border-bottom-right-radius: 5px; }
.msg.driver { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.typing { display: flex; gap: 4px; padding: 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.chat-quick { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; flex: 0 0 auto; }
.chat-quick::-webkit-scrollbar { display: none; }
.qr {
  flex: 0 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 999px;
  padding: 8px 13px;
  font: 500 13px var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.chat-form { display: flex; gap: 8px; padding: 8px 0 calc(14px + var(--safe-bottom)); flex: 0 0 auto; }
.chat-form input {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  font: 500 16px var(--font);
}
.chat-form input:focus { outline: none; border-color: var(--amber); }

/* --------------------------------------------------------------- drawer */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 800; animation: fadeIn 0.2s ease; }
.drawer {
  position: fixed;
  z-index: 850;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(320px, 86vw);
  background: var(--surface);
  overflow-y: auto;
  padding-bottom: calc(20px + var(--safe-bottom));
  animation: slideIn 0.22s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-head { display: flex; gap: 12px; align-items: center; padding: calc(28px + var(--safe-top)) 20px 20px; background: var(--bg); margin-bottom: 8px; }
.drawer-head b { display: block; font-size: 18px; }
.drawer-head small { color: var(--muted); }
.dr {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  color: var(--text);
  text-decoration: none;
  font: 600 16px var(--font);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.dr span { width: 24px; text-align: center; }
.no-install .install-item { display: none; }
.drawer-fine { color: var(--muted); font-size: 12px; padding: 16px 20px 0; margin: 0; }

/* ---------------------------------------------------------------- modal */
.modal-wrap { display: grid; place-items: center; padding: 16px; z-index: 900; }
.modal {
  width: min(420px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface-2);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.2s ease;
}
.modal h3 { margin: 0 0 10px; font-size: 19px; }
.modal-body p { margin: 0 0 10px; color: #d8d4cb; }
.modal-body .fare-line { color: var(--muted); }
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.modal-actions .btn { width: 100%; }
.safety-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.safety-item .row-ic { background: var(--surface-3); }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed;
  z-index: 1000;
  top: calc(72px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
  background: var(--text);
  color: var(--bg);
  padding: 11px 15px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.toast.show { animation: toastIn 0.25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------------------------------------------------------------- about */
.about { padding: 10px 4px; }
.about-mark { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 0; }
.about-mark span { color: var(--amber); }
.about-tag { color: var(--muted); margin: 0 0 18px; }
.about-box { background: var(--surface-2); border-left: 3px solid var(--amber); border-radius: 10px; padding: 14px; line-height: 1.5; }

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