/* Centred floating passenger navigation, above the device safe area. */
.v4-body:not(.v4-ride-options) {
  padding-bottom: calc(110px + var(--v4-safe-bottom));
}
.v4-body nav.v4-bottom-nav {
  position: fixed;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  box-sizing: border-box;
  left: 50%;
  right: auto;
  bottom: calc(34px + var(--v4-safe-bottom));
  width: min(82vw, 340px);
  height: 60px;
  padding: 5px;
  gap: 4px;
  transform: translateX(-50%);
  border: 1px solid #e3e7ed;
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.v4-body nav.v4-bottom-nav .v4-bottom-nav__item {
  position: relative;
  min-width: 0;
  min-height: 48px;
  gap: 3px;
  padding: 3px 1px;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  font-size: .66rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  touch-action: manipulation;
  transition: background-color .16s ease, color .16s ease;
}
.v4-body nav.v4-bottom-nav .v4-bottom-nav__item i {
  font-size: 1.12rem;
  line-height: 1;
}
.v4-body nav.v4-bottom-nav .v4-bottom-nav__item.is-active,
html[data-theme="light"] .v4-body nav.v4-bottom-nav .v4-bottom-nav__item.is-active {
  background: #edf0f4 !important;
  color: #111827 !important;
  font-weight: 750;
  box-shadow: none;
}
.v4-body nav.v4-bottom-nav .v4-bottom-nav__item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
html[data-theme="dark"] .v4-body nav.v4-bottom-nav {
  border-color: #353535;
  background: rgba(20, 20, 20, .97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .34);
}
html[data-theme="dark"] .v4-body nav.v4-bottom-nav .v4-bottom-nav__item {
  color: #b7b7ba;
}
html[data-theme="dark"] .v4-body nav.v4-bottom-nav .v4-bottom-nav__item.is-active {
  background: #303030 !important;
  color: #fff !important;
}
/* The Home map continues underneath the floating navigation. Leave the
   provider's own logo and attribution at the unobstructed map edge. */
.v4-body.v4-home {
  padding-bottom: 0;
}
.v4-body.v4-home .v4-page--home {
  min-height: calc(100dvh - 70px - var(--v4-safe-top));
}
.v4-home:not(.v4-planner-open) #v4JourneyMap .gm-bundled-control-on-bottom {
  translate: 0 calc(-84px - var(--v4-safe-bottom));
}
@media (max-width: 520px) {
  .v4-body.v4-home .v4-page--home {
    min-height: calc(100dvh - 50px - var(--v4-safe-top));
  }
  .v4-body.v4-embedded.v4-home .v4-page--home {
    min-height: calc(100dvh);
  }
}
@media (prefers-reduced-motion: reduce) {
  .v4-body nav.v4-bottom-nav .v4-bottom-nav__item { transition: none; }
}

/* Passenger-only contrast tokens. Filled controls retain a paired foreground;
   semantic safety/status colours and map markers keep their own colours. */
.v4-body {
  --v4-control-ink: #182335;
  --v4-control-fill: #182335;
  --v4-control-on-fill: #fff;
  --v4-control-hover: #29384e;
  --v4-brand: var(--v4-control-ink);
  --v4-brand2: var(--v4-control-hover);
  --st-link: var(--v4-control-ink);
  --st-brand: var(--v4-control-fill);
  --st-hover: var(--v4-control-hover);
  --st-on-brand: var(--v4-control-on-fill);
}
html[data-theme="dark"] .v4-body {
  --v4-control-ink: #f5f7fa;
  --v4-control-fill: #f5f7fa;
  --v4-control-on-fill: #141414;
  --v4-control-hover: #dbe1e8;
}
.v4-body :is(.v4-list-item, .v4-link, .v4-login-link, .v4-safety,
  .v4-fare-breakdown summary, .btn-link, .link-primary, .text-primary) {
  color: var(--v4-control-ink) !important;
}
.v4-body :is(.v4-list-icon, .v4-hero-title__icon, .v4-notification__icon,
  .v4-theme-options button > i) {
  color: var(--v4-control-ink);
  background: var(--v4-surface2);
  border-color: var(--v4-border);
}
.v4-body .v4-date i { color: var(--v4-muted); }
.v4-body .v4-status:not(.v4-status--green):not(.v4-status--red):not(.v4-status--slate) {
  background: var(--v4-surface2);
  color: var(--v4-control-ink);
}
.v4-body :is(.v4-primary-btn, .v4-find-btn, .v4-book-small,
  .v4-action--primary, .v4-vehicle__buttons a:first-child, .btn-primary) {
  background: var(--v4-control-fill) !important;
  border-color: var(--v4-control-fill) !important;
  color: var(--v4-control-on-fill) !important;
}
html .v4-body .v4-danger-btn {
  background: var(--v4-red) !important;
  border-color: var(--v4-red) !important;
  color: #fff !important;
}
.v4-body .v4-theme-options button.is-active > i {
  background: var(--v4-control-fill) !important;
  color: var(--v4-control-on-fill) !important;
}
.v4-body .btn-outline-primary {
  color: var(--v4-control-ink) !important;
  border-color: var(--v4-border) !important;
}
.v4-body :is(a, button, input, select, textarea, summary):focus-visible {
  outline-color: var(--v4-control-ink) !important;
}
/* The pill needs the same clearance on long account, trip and checkout pages. */
.v4-body:not(.v4-home):not(.v4-ride-options) > main {
  padding-bottom: calc(120px + var(--v4-safe-bottom));
}
/* Only cards paint a solid surface on the journey maps. */
.v4-body.v4-home .v4-page--home,
.v4-body.v4-home .v4-page--home > form,
.v4-body.v4-ride-options .v4-ride-page {
  background: transparent;
}
.v4-body.v4-ride-options .v4-ride-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
}
.v4-body.v4-ride-options .v4-ride-map-frame {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-home-hero {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
}

/* Home is a map canvas. Account/alerts stay in the bottom navigation. */
.v4-body.v4-home .v4-topbar { display: none; }
.v4-body.v4-home { padding-top: 0; }
.v4-body.v4-home .v4-page--home {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}
.v4-body.v4-home .v4-home-entry {
  padding-top: calc(10px + var(--v4-safe-top));
}

/* The Android wrapper already applies the system-bar inset. */
.v4-body.v4-home:is(.v4-embedded, .v4-host-insets) .v4-home-entry { padding-top: 10px; }

/* Full-screen iOS maps extend behind the system bars; sheet controls remain
   within the available viewport, including when the keyboard is open. */
.v4-home.v4-planner-open #frmCabookie {
  top: calc(var(--v4-planner-top, 24px) + var(--v4-safe-top));
  height: calc(var(--v4-planner-height, calc(100dvh - 24px)) - var(--v4-safe-top));
}

/* Keep the map provider's original credits clear of the home indicator. */
:is(.v4-home:not(.v4-planner-open), .v4-live-trip) :is(#v4JourneyMap, .icabs-live-trip__map) .gm-style > div > div:has(> a img[alt="Google"]),
:is(.v4-home:not(.v4-planner-open), .v4-live-trip) :is(#v4JourneyMap, .icabs-live-trip__map) .gm-style > div > div:has(> .gmnoprint > .gm-style-cc) {
  translate: 0 calc(0px - var(--v4-safe-bottom));
}

/* Consistent compact Passenger pages; navigation lives in the bottom pill. */
.v4-body > .v4-topbar { display: none; }
.v4-body { padding-top: 0; }
.v4-body:not(.v4-home):not(.v4-ride-options) > .v4-page {
  max-width: 800px;
  padding-top: 12px;
}
.v4-body .v4-hero-title { gap: 10px; margin: 2px 0 12px; }
.v4-body .v4-hero-title__copy { gap: 10px; min-width: 0; }
.v4-body .v4-hero-title__icon { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
.v4-body .v4-hero-title h1 { font-size: 1.18rem; line-height: 1.25; }
.v4-body .v4-hero-title p { font-size: .78rem; line-height: 1.4; margin-top: 3px; }
.v4-body .v4-book-small { min-height: 44px; padding: 0 13px; border-radius: 13px; font-size: .78rem; }
.v4-body .v4-list { gap: 8px; }
.v4-body .v4-list-item { min-height: 56px; padding: 9px 11px; gap: 10px; border-radius: 15px; }
.v4-body .v4-list-item > div { min-width: 0; }
.v4-body .v4-list-icon { width: 34px; height: 34px; border-radius: 11px; font-size: .95rem; }
.v4-body .v4-list-item strong { font-size: .86rem; line-height: 1.3; }
.v4-body .v4-list-item small { font-size: .74rem; line-height: 1.35; margin-top: 2px; }
.v4-body .v4-trip-list { gap: 10px; }
.v4-body .v4-trip-card { padding: 12px 12px 11px 16px; border-radius: 18px; }
.v4-body .v4-trip-card .v4-date { margin: 9px 0; font-size: .84rem; }
.v4-body .v4-trip-card .v4-route { gap: 7px; }
.v4-body .v4-trip-card .v4-route p { font-size: .82rem; }
.v4-body .v4-trip-card__foot { margin-top: 9px; padding-top: 9px; }
.v4-body .v4-tabs { padding: 4px; margin-bottom: 12px; border-radius: 16px; }
.v4-body .v4-notification { padding: 11px 12px; border-radius: 16px; }
.v4-body .v4-notification__top { gap: 10px; }
.v4-body .v4-notification__icon { width: 34px; height: 34px; border-radius: 11px; }
.v4-body .v4-notification p { font-size: .82rem; }
.v4-body .v4-empty { padding: 24px 16px; border-radius: 18px; }
.v4-body.v4-account > .v4-page { max-width: 620px; }
.v4-body.v4-account .v4-account-head { padding: 11px 12px; gap: 11px; margin-bottom: 10px; border-radius: 17px; }
.v4-body.v4-account .v4-account-head img { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px; }
.v4-body.v4-account .v4-account-head > div { min-width: 0; }
.v4-body.v4-account .v4-account-head h1 { font-size: 1rem; line-height: 1.3; margin: 0 0 3px; }
.v4-body.v4-account .v4-account-head p { font-size: .73rem; line-height: 1.4; overflow-wrap: anywhere; }
.v4-body .v4-account-logout {
  min-height: 44px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 14px;
  background: #b42332 !important;
  border-color: #b42332 !important;
  color: #fff !important;
  font-size: .84rem;
}
html[data-theme="dark"] .v4-body .v4-account-logout { background: #cb3045 !important; border-color: #cb3045 !important; }
.v4-body .v4-account-logout:focus-visible { outline: 2px solid var(--v4-text); outline-offset: 3px; }

/* A shared badge does not change the pill's grid or touch target size. */
.v4-body nav.v4-bottom-nav .v4-nav-badge {
  position: absolute;
  top: 0;
  left: calc(50% + 5px);
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--v4-surface);
  border-radius: 999px;
  background: #d51e42;
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}
.v4-body nav.v4-bottom-nav .v4-nav-badge[hidden] { display: none; }
.v4-alert-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.v4-alert-toolbar form { margin: 0; }
.v4-body .v4-alert-tool {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 7px 13px;
  border: 1px solid var(--v4-border); border-radius: 999px;
  background: var(--v4-surface); color: var(--v4-text);
  font: inherit; font-size: .78rem; font-weight: 650;
}
.v4-alert-tool:disabled { opacity: .45; }
.v4-alert-tool:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.v4-body .v4-notification { display: block; text-decoration: none; color: var(--v4-text); }
.v4-body .v4-notification.is-unread { border-color: var(--v4-border); background: var(--v4-surface2); }
.v4-alert-unread-label { display: inline-block; margin-top: 5px; color: var(--v4-muted); font-size: .67rem; font-weight: 700; }
.v4-alert-notice { padding: 10px 12px; border-radius: 12px; background: var(--v4-surface2); font-size: .8rem; }
.v4-privacy-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 0 10px; font-size: .82rem; text-decoration: none; }
.v4-privacy-policy { padding: 15px; border: 1px solid var(--v4-border); border-radius: 18px; background: var(--v4-surface); font-size: .83rem; line-height: 1.65; overflow-wrap: anywhere; }
.v4-privacy-policy h2 { font-size: 1rem; margin: 20px 0 9px; line-height: 1.4; }
.v4-privacy-policy p, .v4-privacy-policy ul { margin: 0 0 12px; }
.v4-privacy-policy ul { padding-left: 20px; }
.v4-privacy-policy a { color: var(--v4-control-ink); text-decoration: underline; text-underline-offset: 2px; }

/* Compact lists: one page surface, text-aligned hairline dividers. */
.v4-body {
  min-height: 100dvh;
  background: var(--v4-bg);
  color: var(--v4-text);
  --v4-bg: #fff; --v4-surface: #fff; --v4-surface2: #f3f3f3;
  --v4-text: #1b1b1b; --v4-muted: #686868; --v4-border: #e4e4e4;
  --st-bg: #fff; --st-surface: #fff; --st-surface2: #f3f3f3;
  --st-ink: #1b1b1b; --st-muted: #686868; --st-border: #e4e4e4;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: -.012em;
  text-rendering: optimizeLegibility;
}
html[data-theme="dark"] .v4-body {
  --v4-bg: #1c1c1c; --v4-surface: #1c1c1c; --v4-surface2: #292929;
  --v4-text: #f2f2f2; --v4-muted: #adadad; --v4-border: #393939;
  --st-bg: #1c1c1c; --st-surface: #1c1c1c; --st-surface2: #292929;
  --st-ink: #f2f2f2; --st-muted: #adadad; --st-border: #393939;
}
.v4-body :is(button, input, select, textarea) { font-family: inherit; letter-spacing: inherit; }
.v4-body .v4-list, .v4-body .v4-trip-list { gap: 0; }
html .v4-body :is(.v4-list-item, .v4-notification, .v4-trip-card, .v4-account-head, .v4-summary-card, .v4-panel) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
}
.v4-body .v4-list-item {
  position: relative; min-height: 58px;
  padding: 10px 0; gap: 12px;
}
.v4-body .v4-list-item:not(:last-child)::after,
.v4-body .v4-notification:not(:last-child)::after {
  content: ''; position: absolute; left: 44px; right: 0; bottom: 0;
  height: 1px; background: var(--v4-border); pointer-events: none;
}
.v4-body .v4-list-icon, .v4-body .v4-notification__icon {
  width: 32px; height: 34px; flex: 0 0 32px;
  border: 0 !important; border-radius: 0; background: transparent !important;
  box-shadow: none !important;
  color: var(--v4-text); font-size: 1.12rem;
}
.v4-body .v4-list-item strong { font-size: .94rem; line-height: 1.3; font-weight: 500; }
.v4-body .v4-list-item small { font-size: .8rem; line-height: 1.35; margin-top: 3px; font-weight: 400; }
.v4-body .v4-list-item > i { font-size: .75rem; }
.v4-body .v4-notification, .v4-body .v4-notification.is-unread {
  position: relative; padding: 12px 0; background: transparent;
}
.v4-body .v4-notification__top { gap: 12px; }
.v4-body .v4-notification p { font-size: .88rem; line-height: 1.45; font-weight: 400; }
.v4-body .v4-notification.is-unread p { font-weight: 550; }
.v4-body .v4-notification time { font-size: .73rem; margin-top: 5px; }
.v4-body .v4-alert-unread-label { font-weight: 500; }
.v4-body.v4-account .v4-account-head { padding: 5px 0 16px; margin-bottom: 2px; gap: 12px; }
.v4-body.v4-account .v4-account-head h1 { font-size: 1.05rem; font-weight: 600; }
.v4-body.v4-account .v4-account-head p { font-size: .78rem; }
.v4-body .v4-account-logout { margin-top: 18px; font-weight: 550; }
.v4-body .v4-trip-card { padding: 14px 0; }
.v4-body .v4-trip-card:not(:last-child) { border-bottom: 1px solid var(--v4-border) !important; }
.v4-body .v4-trip-card::before { display: none; }
.v4-body .v4-trip-card .v4-date { font-size: .94rem; font-weight: 550; }
.v4-body .v4-trip-card .v4-route p { font-size: .88rem; }
.v4-body .v4-hero-title h1 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
.v4-body .v4-hero-title__icon { border: 0; background: transparent; border-radius: 0; width: 30px; height: 36px; }
.v4-body .v4-hero-title p { font-size: .8rem; }
.v4-body .v4-empty { border: 0; background: transparent; box-shadow: none; }
.v4-body .v4-privacy-policy { border: 0; border-radius: 0; background: transparent; padding: 4px 0; font-size: .9rem; line-height: 1.6; }
.v4-body .v4-privacy-policy h2 { font-size: 1rem; font-weight: 600; }
.v4-body .v4-panel + .v4-panel { border-top: 1px solid var(--v4-border) !important; }
.v4-body .v4-home-place { min-height: 64px; padding-top: 9px; padding-bottom: 9px; }
.v4-body .v4-home-place__icon { width: 32px; height: 34px; flex-basis: 32px; border-radius: 0; background: transparent; font-size: 1.15rem; }
.v4-body .v4-home-place + .v4-home-place::before { left: 56px; }
.v4-body .v4-home-place__copy { gap: 3px; }
.v4-body .v4-home-place__copy strong { font-size: .94rem; font-weight: 550; }
.v4-body .v4-home-place__copy small { font-size: .79rem; font-weight: 400; }
.v4-body.v4-home.v4-planner-open .v4-location-menu__item { position: relative; min-height: 58px; padding: 9px 0; border-bottom: 0; }
.v4-body.v4-home.v4-planner-open .v4-location-menu__item:not(:last-child)::after { content: ''; position: absolute; left: 38px; right: 0; bottom: 0; height: 1px; background: var(--v4-border); }
.v4-body.v4-home.v4-planner-open .v4-location input { border: 0 !important; border-radius: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; }
html[data-theme="dark"] .v4-body.v4-home.v4-planner-open #frmCabookie { --v4-surface: #1c1c1c; --v4-surface2: #292929; --v4-border: #393939; --v4-text: #f2f2f2; --v4-muted: #adadad; }
.v4-body.v4-home.v4-planner-open .v4-location-menu__copy strong { font-size: .95rem; line-height: 1.3; font-weight: 500; }
.v4-body.v4-home.v4-planner-open .v4-location-menu__copy small { font-size: .82rem; line-height: 1.35; }
.v4-body.v4-home.v4-planner-open .v4-planner-heading h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
.v4-body .v4-theme-options { gap: 0; }
.v4-body .v4-theme-options button { border: 0; border-bottom: 1px solid var(--v4-border); border-radius: 0; background: transparent; box-shadow: none; padding: 9px 0; min-height: 58px; }
.v4-body .v4-theme-options button:last-child { border-bottom: 0; }
.v4-body .v4-theme-options button > i { background: transparent; }
.v4-body .v4-theme-options strong { font-size: .94rem; font-weight: 500; }
.v4-body .v4-theme-options button.is-active { box-shadow: none; }
.v4-body .v4-trip-options { gap: 0; }
.v4-body .v4-trip-option { border: 0; border-radius: 0; border-bottom: 1px solid var(--v4-border); }
.v4-body .v4-trip-option:has(input:checked) { border-color: var(--v4-border); background: var(--v4-surface2); }
.v4-body .v4-trip-option label { min-height: 62px; }
.v4-body .v4-trip-option__copy > strong, .v4-body .v4-trip-option__fare { font-weight: 550; }
.v4-body .v4-payment-row { min-height: 58px; }
/* The address group supplies the field boundary; no extra tap ring. */
.v4-body.v4-home .v4-where-button:focus-visible { outline: 0 !important; text-decoration: underline; text-underline-offset: 4px; }
.v4-body.v4-home.v4-planner-open .v4-location input:focus { outline: 0 !important; box-shadow: none !important; }
.v4-body .v4-place-shortcuts { display: none; }
.v4-body.v4-planner-open:not(.v4-stops-open) .v4-place-shortcuts,
.v4-body.v4-stop-search-open .v4-place-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.v4-place-shortcuts button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--v4-border); border-radius: 999px; background: transparent; color: var(--v4-text); font: inherit; font-size: .8rem; white-space: nowrap; }
.v4-place-shortcuts button i { font-size: 1rem; }
.v4-body.v4-home.v4-planner-open .v4-location-menu__item { grid-template-columns: 42px minmax(0,1fr); gap: 10px; min-height: 62px; }
.v4-body.v4-home.v4-planner-open .v4-location-menu__icon { display: flex; flex-direction: column; gap: 5px; width: 42px; height: auto; min-height: 40px; justify-content: center; background: transparent; }
.v4-body.v4-home.v4-planner-open .v4-location-menu__item:not(:last-child)::after { left: 52px; }
.v4-location-menu__distance { color: var(--v4-muted); font-size: .7rem; line-height: 1; font-weight: 400; white-space: nowrap; }
.v4-body .v4-saved-note { color: var(--v4-muted); font-size: .78rem; line-height: 1.4; margin: 8px 0 14px; }
.v4-saved-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--v4-border); }
.v4-saved-row button { min-height: 58px; padding: 10px 0; border: 0; background: transparent; color: var(--v4-text); text-align: left; }
.v4-saved-row button:first-child { flex: 1; min-width: 0; }
.v4-saved-row strong, .v4-saved-row small { display: block; }
.v4-saved-row strong { font-size: .94rem; font-weight: 500; }
.v4-saved-row small { color: var(--v4-muted); font-size: .78rem; line-height: 1.4; margin-top: 3px; }
.v4-saved-row .v4-saved-remove { flex: 0 0 44px; width: 44px; text-align: center; font-size: 1.4rem; }
.v4-saved-add { margin: 16px 0; }
.v4-saved-add > label { display: block; margin-bottom: 7px; font-size: .8rem; }

/* Numbered destinations append downwards; the last row is the destination. */
.v4-final-drag, .v4-final-remove { display: none; }
.v4-stop-number { display: grid; place-items: center; width: 18px; height: 18px; margin: auto; background: var(--v4-text); color: var(--v4-surface); font-size: .73rem; line-height: 1; font-weight: 550; }
.v4-home:not(.v4-stops-open) .v4-location--drop .v4-stop-number { font-size: 0; }
.v4-body.v4-home.v4-planner-open .v4-location--stop { grid-template-columns: 24px minmax(0,1fr) 28px 30px 28px; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-planner-options { order: 1; gap: 8px; margin: 4px 0 12px; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-planner-addresses { order: 2; width: calc(100% - 32px); margin-right: 32px; border-radius: 14px; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-location { position: relative; grid-template-columns: 24px minmax(0,1fr) 28px; gap: 6px; min-height: 46px; padding: 3px 0; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-location input { font-size: .9rem !important; font-weight: 400; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-location__dot.v4-stop-number { border: 0; border-radius: 1px; box-shadow: none; width: 18px; height: 18px; background: var(--v4-text); color: var(--v4-surface); font-size: .73rem; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) :is(.v4-location--stop,.v4-location--drop) > .v4-pin-btn { display: none; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-drag-stop { display: grid; place-items: center; width: 28px; height: 40px; min-height: 40px; border: 0; padding: 0; background: transparent; color: var(--v4-text); font-size: 1.05rem; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-drag-stop:disabled { opacity: .3; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-remove-stop { display: grid; place-items: center; position: absolute; right: -34px; top: 0; width: 32px; height: 46px; border: 0; border-radius: 0; background: transparent; color: var(--v4-text); font-size: 1.1rem; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-add-stop { min-height: 44px; padding: 0 14px; gap: 16px; font-size: 1rem; border-radius: 0 0 14px 14px; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-location-helper { order: 3; margin: 7px 0; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-location-helper:not(.is-error) { display: none; }
.v4-body.v4-home.v4-stops-open:not(.v4-stop-search-open) .v4-stops-done { order: 4; margin-top: 16px; min-height: 46px; border-radius: 10px; font-size: .96rem; font-weight: 500; }
.v4-body.v4-home.v4-stop-search-open .v4-drag-stop { display: none; }
.v4-body.v4-home.v4-stop-search-open .v4-location--stop { grid-template-columns: 24px minmax(0,1fr) 32px; }
/* Vehicle checkout owns its bottom payment/confirmation bar. */
.v4-body.v4-ride-options nav.v4-bottom-nav,
.v4-body.v4-checkout nav.v4-bottom-nav { display: none; }
.v4-body.v4-planner-open nav.v4-bottom-nav { visibility: hidden; }
.v4-body.v4-keyboard-open nav.v4-bottom-nav { display: none; }

/* Keep address results above the keyboard while selecting a scheduled trip. */
.v4-body.v4-home.v4-planner-open:has(.v4-location input:focus) :is(.v4-schedule,.v4-location-helper) { display: none; }

/* Linked trip rows keep their text contrast before and after visiting. */
html .v4-body a.v4-trip-card, html .v4-body a.v4-trip-card:visited { color: var(--v4-text) !important; }

/* History payment pages remain in the Passenger shell. */
.v4-body.v4-payment .ns-main { max-width: 900px; margin: auto; }
.v4-body.v4-payment .container { margin: 12px auto !important; padding: 12px; }
.v4-body.v4-payment :is(.succFailContainer,.succFailBody,.payFail) { background: transparent; color: var(--v4-text); box-shadow: none; border: 0; padding: 0; }
.v4-body.v4-payment :is(.text-muted,.text-primary) { color: var(--v4-muted) !important; }
.v4-body.v4-payment :is(.form-control,.form-select,.table) { background: var(--v4-surface); color: var(--v4-text); border-color: var(--v4-border); }
.v4-body.v4-payment .v4-page { padding-bottom: calc(120px + var(--v4-safe-bottom)); }
.v4-body [data-trip-chat][hidden], .v4-body [data-trip-track][hidden] { display: none !important; }

/* The iPhone app owns the Home map. Forms and the floating menu remain web
   controls, while uncovered areas pass gestures to MapKit underneath. */
html:has(body.v4-native-map),
html body.v4-body.v4-native-map,
html .v4-native-map .v4-page--home,
html .v4-native-map .v4-home-hero { background: transparent !important; }
.v4-native-map #v4JourneyMap { visibility: hidden !important; pointer-events: none; }

html .v4-native-map.v4-ride-options .v4-ride-page,
html .v4-native-map.v4-ride-options .v4-ride-map-frame { background: transparent !important; }
.v4-native-map #v4RideMap { visibility: hidden !important; pointer-events: none; }

/* Native presentation keeps the server fields as an authoritative fallback. */
.v4-native-nav-ready .v4-bottom-nav { opacity: 0 !important; pointer-events: none !important; }
.v4-native-ride-ready:not(.v4-native-extra-open) #v4RidePanel { opacity: 0 !important; pointer-events: none !important; }
.v4-native-address-open .v4-place-shortcuts { display: none !important; }
.v4-native-editing, .v4-native-editing::placeholder { color: transparent !important; -webkit-text-fill-color: transparent !important; caret-color: transparent !important; }
html .v4-native-controls.v4-home.v4-planner-open:not(.v4-native-address-open):not(.v4-stop-search-open) #frmCabookie {
  top: auto !important; bottom: 0; height: auto !important; max-height: min(60dvh, 480px);
}
html .v4-native-controls.v4-home.v4-native-address-open #frmCabookie {
  top: auto !important; bottom: 0; height: calc(100% - env(safe-area-inset-top, 0px) - 8px) !important;
}
.v4-native-address-open .v4-book-card { padding-bottom: 6px !important; }
html .v4-native-controls.v4-home.v4-planner-open .v4-planner-suggestions { margin-bottom: 0; }
html body #frmCabookie.v4-user-sized:not([hidden]),
html body #v4RidePanel.v4-user-sized,
html body .v4-time-sheet > section.v4-user-sized,
html body .v4-theme-sheet > section.v4-user-sized,
html body #v4ReturnPlanner > section.v4-user-sized { top: auto !important; bottom: 0; height: var(--v4-user-panel-height) !important; max-height: calc(100dvh - 90px); overflow-y: auto; }
html body.v4-native-address-open #frmCabookie.v4-user-sized { height: calc(100% - env(safe-area-inset-top,0px) - 8px) !important; }
#v4RidePaymentNotice:empty { display: none; }

/* Unread is identifiable by shape, label, weight and contrast in both themes. */
.v4-body.v4-alerts .v4-notification { padding: 12px 10px; color: var(--v4-muted); }
.v4-body.v4-alerts .v4-notification.is-unread { background: #edf3fc; border-radius: 12px; color: #172033; }
.v4-body.v4-alerts .v4-notification.is-unread p { font-weight: 650; }
.v4-body.v4-alerts .v4-notification.is-unread .v4-notification__icon { position: relative; }
.v4-body.v4-alerts .v4-notification.is-unread .v4-notification__icon::after { content: ''; position: absolute; right: -1px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: #d82042; }
.v4-body.v4-alerts .v4-alert-unread-label { margin-top: 6px; padding: 2px 7px; border-radius: 8px; background: #dce7f8; color: #203854; font-size: .65rem; font-weight: 700; }
html[data-theme="dark"] .v4-body.v4-alerts .v4-notification.is-unread { background: #303945; color: #fff; }
html[data-theme="dark"] .v4-body.v4-alerts .v4-alert-unread-label { background: #465363; color: #fff; }

.v4-native-sheet-source { opacity: 0 !important; pointer-events: none !important; }

/* Home entry is local after the versioned native renderer acknowledges it. */
.v4-native-home-ready #v4HomeEntry { opacity: 0 !important; pointer-events: none !important; }

/* Use the same local iOS typeface as the UIKit panels. */
html .v4-native-controls { font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }

/* Fixed dialogs reserve their own actions; navigation never covers them. */
.v4-overlay-open .v4-bottom-nav { display: none !important; }
html .v4-body :is(.v4-time-sheet,.v4-theme-sheet,.v4-return-planner,.v4-ride-payment-sheet) { bottom: var(--v4-keyboard-inset,0px); }
html .v4-body :is(.v4-time-sheet,.v4-theme-sheet,.v4-return-planner,.v4-ride-payment-sheet) > section { max-height: calc(var(--v4-visible-height,100dvh) - 20px); overflow-y: auto; }
html .v4-cancel-sheet > section { padding-bottom: max(18px,env(safe-area-inset-bottom,0px)); }

/* The native handoff reveals an opaque planner in one frame. */
.v4-native-controls.v4-planner-open .v4-book-card { animation: none !important; }

/* A settled planner hugs its fields and actions, leaving the route in view. */
html .v4-native-controls.v4-home.v4-planner-open:not(.v4-native-address-open):not(.v4-stop-search-open) #frmCabookie:not(.v4-user-sized) .v4-book-card { height: auto; max-height: min(60dvh,480px); padding-bottom: calc(12px + var(--v4-safe-bottom)); }
html .v4-native-controls.v4-home.v4-planner-open .v4-journey-ready:not(.v4-user-sized) .v4-location-helper { display: none; }
html .v4-body .v4-account-logout { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
html .v4-body .v4-trip-option:has(input:checked) label { min-height: 70px; }
html .v4-body .v4-trip-option:has(input:checked) img { width: 60px; height: 46px; }

html .v4-native-controls.v4-home.v4-planner-open:not(.v4-native-address-open):not(.v4-stop-search-open) .v4-journey-ready .v4-planner-suggestions { display: none !important; }
