/* SVRides brand overrides — from Corporate Booking Office.dc.html (Midnight & Brass) */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300..700&family=Instrument+Serif:ital@0;1&display=swap');

@font-face {
  font-family: 'PP Fragment';
  src: url('../fonts/PPFragment-GlareRegular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PP Fragment';
  src: url('../fonts/PPFragment-GlareMedium.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

:root, .pal-brass {
  --font-heading: 'PP Fragment', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-heading-weight: 600;

  --color-bg: #f7f4ee;
  --color-surface: #ece7dc;
  --color-text: #1a1c20;
  --color-divider: color-mix(in srgb, #1a1c20 16%, transparent);

  --color-neutral-100: #faf8f4;
  --color-neutral-200: #f0ede5;
  --color-neutral-300: #e0dbcf;
  --color-neutral-400: #c5bfae;
  --color-neutral-500: #a29b89;
  --color-neutral-600: #7f7867;
  --color-neutral-700: #5f594b;
  --color-neutral-800: #3c3a34;
  --color-neutral-900: #1f2126;

  --color-accent: #0d54a5;
  --color-accent-100: #e8f0f9;
  --color-accent-200: #c8dcf2;
  --color-accent-300: #96bce6;
  --color-accent-400: #5793d4;
  --color-accent-500: #2470c0;
  --color-accent-600: #0d54a5;
  --color-accent-700: #0a4384;
  --color-accent-800: #073163;
  --color-accent-900: #052041;

  --color-accent-2: #3a6f62;
  --color-accent-2-100: #e9f3f0;
  --color-accent-2-200: #cde4dd;
  --color-accent-2-300: #a6ccc2;
  --color-accent-2-400: #76ac9e;
  --color-accent-2-500: #4d8a7b;
  --color-accent-2-600: #3a6f62;
  --color-accent-2-700: #2c564b;
  --color-accent-2-800: #1f3d35;
  --color-accent-2-900: #142722;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--color-neutral-100);
  color: var(--color-text);
  font-family: var(--font-body);
}

body, .input, .btn, .table, button, input, select, textarea {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.022em;
}
h1 { font-weight: 650; letter-spacing: -0.03em; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--color-neutral-300); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-600); text-decoration: underline; }
/*
 * Interactive chrome is not body copy: never inherit a:hover underline/color.
 * a:hover (0,1,1) beats .btn-primary (0,1,0) and turns primary label blue-on-blue.
 */
a.btn,
a.btn:hover,
a.btn:focus-visible,
a.pill,
a.pill:hover,
a.pill:focus-visible,
a.rail-brand,
a.rail-brand:hover,
a.rail-brand:focus-visible,
a.login-brand,
a.login-brand:hover,
a.login-brand:focus-visible,
a.rail-nav,
a.rail-nav:hover,
a.rail-nav:focus-visible,
a.rail-link,
a.rail-link:hover,
a.rail-link:focus-visible,
a.ride-tab,
a.ride-tab:hover,
a.ride-tab:focus-visible,
a.ride-card,
a.ride-card:hover,
a.ride-card:focus-visible,
.pagination a,
.pagination a:hover,
.pagination a:focus-visible {
  text-decoration: none;
}
/* Links styled as buttons also keep their own text colour on hover (Jazeb 15 Oct), and primary buttons darken. */
a.btn-primary:hover { color: var(--color-neutral-100); }
.btn-primary:hover { background: var(--color-accent-700); } /* accent and accent-600 are the same blue, so hover showed no change */
a.btn-secondary:hover { color: var(--color-text); }

.sheet {
  background: var(--color-neutral-100);
  border: 1px solid var(--color-divider);
  border-radius: 24px;
}

.rowline { border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail, 330px);
  gap: 20px;
  align-items: start;
}
@media (max-width: 1180px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.kick {
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
}

/* Organic btn uses heading font — design sets body font on .btn */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  color: var(--color-neutral-100);
}
/* Brand accent == accent-600, so organic's darken hover is invisible — lighten instead */
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-500);
  color: var(--color-neutral-100);
}
.btn-primary:active {
  background: var(--color-accent-700);
  color: var(--color-neutral-100);
}
a.btn.btn-primary,
a.btn.btn-primary:hover,
a.btn.btn-primary:focus-visible,
a.btn.btn-primary:active {
  color: var(--color-neutral-100);
  text-decoration: none;
}
a.btn.btn-secondary,
a.btn.btn-secondary:hover,
a.btn.btn-secondary:focus-visible,
a.btn.btn-secondary:active {
  color: var(--color-text);
  text-decoration: none;
}
a.btn.btn-ghost,
a.btn.btn-ghost:hover,
a.btn.btn-ghost:focus-visible {
  color: var(--color-accent);
  text-decoration: none;
}
.btn-block { margin-top: 0; }
.btn-sm { height: 30px; padding-inline: 12px; font-size: 12.5px; }
.btn-md { height: 36px; padding-inline: 16px; font-size: 13.5px; }
.btn-primary:disabled,
.btn-primary[disabled],
.btn-primary:disabled:hover,
.btn-primary[disabled]:hover {
  background: var(--color-neutral-300);
  color: var(--color-neutral-600);
  cursor: not-allowed;
  opacity: 1;
}
.btn-secondary:disabled,
.btn-secondary[disabled],
.btn-secondary:disabled:hover,
.btn-secondary[disabled]:hover {
  background: transparent;
  color: var(--color-text);
}

.input {
  background: var(--color-neutral-100);
  border-radius: 16px;
  min-height: 44px;
}
.input:disabled,
.input[disabled],
select.input:disabled,
textarea.input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: var(--color-neutral-200);
}
.input:disabled:hover,
.input[disabled]:hover {
  border-color: var(--color-divider);
}

/* —— App chrome —— */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--color-neutral-100);
}

.rail {
  width: 258px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 14px;
  background: var(--color-bg);
  border-right: 1px solid var(--color-divider);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 20px;
  color: var(--color-text);
  text-decoration: none;
}
a.rail-brand:hover,
a.rail-brand:focus-visible {
  color: var(--color-text);
  text-decoration: none;
}
a.rail-brand:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 12px;
}
.rail-mark {
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--color-divider);
  display: grid;
  place-items: center;
}
.rail-brand span {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
}

.rail-nav {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--color-neutral-700);
  text-decoration: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.rail-nav:hover {
  color: var(--color-accent-800);
  text-decoration: none;
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}
.rail-nav:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.rail-nav.is-active {
  background: var(--color-neutral-100);
  color: var(--color-accent-800);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.rail-nav.is-active:hover {
  background: var(--color-neutral-100);
}

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail-foot-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 10px;
  border-top: 1px solid var(--color-divider);
}
.rail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--color-neutral-700);
  text-decoration: none;
}
.rail-link:hover {
  color: var(--color-accent-800);
  text-decoration: none;
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}
.rail-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.rail-signout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--color-accent-800);
  background: var(--color-neutral-100);
  box-shadow: inset 0 0 0 1px var(--color-divider);
  border: 0;
  width: 100%;
  font-family: var(--font-body);
}
.rail-signout:hover {
  background: var(--color-neutral-200);
}
.rail-signout:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--color-divider);
}
.company-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--color-divider);
}
.company-chip .initials {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--color-accent-2-600);
  color: var(--color-neutral-100);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.search-pill {
  flex: 1 1 0;
  min-width: 0;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  height: 36px;
  border-radius: 999px;
  background: var(--color-bg);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-pill:hover {
  border-color: color-mix(in srgb, var(--color-text) 20%, transparent);
}
.search-pill:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.search-pill input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--color-text);
  min-height: 0;
  padding: 0;
}
.search-pill input:focus-visible { outline: none; }
.search-pill input::placeholder { color: var(--color-neutral-600); }

.content {
  flex: 1;
  overflow-y: auto;
  padding: 26px 30px 60px;
}

.banner {
  padding: 26px 30px;
  border-radius: 26px;
  background: var(--color-accent-2-100);
  border: 1px solid var(--color-accent-2-200);
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--color-neutral-100);
  border: 1px solid var(--color-accent-2-300);
  color: var(--color-accent-2-800);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pill:hover {
  text-decoration: none;
  color: var(--color-accent-2-900);
  background: var(--color-accent-2-100);
  border-color: var(--color-accent-2-400);
}
.pill:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Segmented choice (Jazeb 14 Oct design): radios shown as pills, the checked one filled; .choice-note explains it. */
.choice-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pill { position: relative; cursor: pointer; }
.choice-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  color: var(--color-neutral-800);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s, border-color .15s, color .15s;
}
.choice-pill:hover span { border-color: var(--color-accent-300); }
.choice-pill input:checked + span { background: var(--color-accent-700); border-color: var(--color-accent-700); color: #fff; }
.choice-pill input:focus-visible + span { outline: 2px solid var(--color-accent-500); outline-offset: 2px; }
.choice-pill input:disabled + span { opacity: .5; cursor: not-allowed; }
.choice-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--color-accent-100);
  color: var(--color-accent-800);
  font-size: 13px;
  line-height: 1.5;
}
.choice-note svg { flex: none; margin-top: 1px; }

/* Assigned bookers (R12.5 design): chosen bookers as removable chips. */
.booker-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.booker-chips:not(:has(.booker-chip)) { display: none; }
.booker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  background: var(--color-accent-2-100);
  color: var(--color-text);
  font-size: 14px;
}
.booker-chip button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--color-accent-2-800);
  cursor: pointer;
}
.booker-chip button:hover { background: var(--color-accent-2-200); }
.booker-chip button:focus-visible { outline: 2px solid var(--color-accent-500); outline-offset: 1px; }
.booker-picker { position: relative; }
.booker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 264px;
  overflow-y: auto;
  background: var(--color-neutral-100);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  box-shadow: 0 12px 32px color-mix(in srgb, #1a1c20 14%, transparent);
}
.booker-menu li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 14px; }
.booker-menu li small { font-size: 12px; color: var(--color-neutral-600); overflow-wrap: anywhere; }
.booker-menu li:hover, .booker-menu li[aria-selected="true"] { background: var(--color-accent-100); }
.booker-menu .booker-menu-empty { cursor: default; color: var(--color-neutral-700); background: none; }
.booker-menu [hidden] { display: none; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.ride-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  border-bottom: 1px solid var(--color-divider);
}
.ride-tab {
  padding: 0 0 10px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-neutral-600);
  text-decoration: none;
  border: 0;
  background: transparent;
}
.ride-tab:hover { text-decoration: none; color: var(--color-accent-800); }
.ride-tab.is-active {
  color: var(--color-accent-800);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.ride-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
  color: inherit;
}
a.ride-card {
  cursor: pointer;
  text-decoration: none;
}
.ride-card:hover,
a.ride-card:focus-visible {
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
a.ride-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.ride-card-map {
  background: var(--color-surface);
  min-height: 168px;
  height: 100%;
  position: relative;
}
.ride-card-map .js-ride-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 168px;
}
.ride-card-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.ride-card-body:hover,
.ride-card-body:focus-visible {
  text-decoration: none;
  color: inherit;
}

.vehicle-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-divider);
  background: transparent;
  width: 100%;
  text-align: left;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  font-family: var(--font-body);
  color: inherit;
}
.vehicle-row:last-child { border-bottom: 0; }
/* Phones (QA 29 Oct): a smaller photo and the price on its own line under the name, so the specs are not squeezed. */
@media (max-width: 600px) {
  .vehicle-row { flex-wrap: wrap; gap: 6px 14px; padding: 14px 16px; }
  button.vehicle-row > img { width: 84px; height: 46px; }
  .vehicle-row > :last-child { flex-basis: 100%; padding-left: 98px; text-align: left !important; font-size: 19px !important; }
}
.vehicle-row:hover:not(.is-selected) {
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}
.vehicle-row:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.vehicle-row.is-selected {
  background: var(--color-accent-100);
  box-shadow: inset 3px 0 0 var(--color-accent);
}
.vehicle-note {
  padding: 22px;
  font-size: 13.5px;
  color: var(--color-neutral-600);
}
.who-panel[disabled] { display: none !important; }
/* Loader for prices and flight lookups. */
.spinner {
  display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
  border-top-color: var(--color-accent);
  animation: spin .8s linear infinite;
}
.spinner[hidden] { display: none; }
.btn-primary .btn-spinner {
  border-color: color-mix(in srgb, var(--color-neutral-100) 35%, transparent);
  border-top-color: var(--color-neutral-100);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
/* Native <dialog> with the design-system .dialog look; .dialog's display:flex must not show it while closed. */
dialog.dialog:not([open]) { display: none; }
dialog.dialog { border: 0; color: inherit; }
dialog.dialog::backdrop { background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent); }
.vehicle-row img {
  width: 120px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--color-surface);
}

.booking-rail {
  padding: 20px;
  border-radius: 24px;
  background: var(--color-neutral-900);
  color: var(--color-neutral-100);
  /* Not sticky: the Driver card, policy and history sit under it in the same column, and a sticky rail covered them on scroll. */
}

.alert {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-success {
  background: var(--color-accent-2-100);
  border: 1px solid var(--color-accent-2-200);
  color: var(--color-accent-2-800);
}
.alert-error {
  background: #fdeeee;
  border: 1px solid #f0c4c4;
  color: #8a2e2e;
}
.alert-info {
  background: var(--color-accent-100);
  border: 1px solid var(--color-accent-200);
  color: var(--color-accent-800);
}
.alert-info.alert-row,
.alert.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
}

/* Checkboxes that reuse .radio markup stay square, not round */
.radio input[type="checkbox"] + .dot {
  border-radius: 4px;
}
.radio input[type="checkbox"]:checked + .dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: inset 0 0 0 3px var(--color-bg);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--color-accent-200);
  color: var(--color-accent-800);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

/* Avatar menu (Jazeb 15 Oct): My profile and Sign out under the avatar in the topbar. */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { box-shadow: 0 0 0 3px var(--color-accent-100); }
.user-menu > summary:focus-visible { outline: 2px solid var(--color-accent-500); outline-offset: 2px; }
.user-menu-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  background: var(--color-neutral-100);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  box-shadow: 0 12px 32px color-mix(in srgb, #1a1c20 14%, transparent);
}
.user-menu-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--color-divider); }
.user-menu-who strong { font-size: 14px; }
.user-menu-who span { font-size: 12px; color: var(--color-neutral-600); overflow-wrap: anywhere; }
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.user-menu-item:hover, .user-menu-item.is-active { background: var(--color-accent-100); color: var(--color-accent-800); text-decoration: none; }

.map-box {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  background: var(--color-surface);
  overflow: hidden;
}

.StripeElement {
  background: var(--color-neutral-100);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--color-divider);
  transition: border-color 0.15s ease;
}
.StripeElement:hover {
  border-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.StripeElement--focus,
.StripeElement:focus-within {
  border-color: var(--color-accent);
}

.pagination {
  display: flex;
  justify-content: center; /* Jazeb 15 Oct: centred under the list */
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.pagination a, .pagination span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-divider);
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
}
.pagination a:hover,
.pagination a:focus-visible {
  text-decoration: none;
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
  border-color: color-mix(in srgb, var(--color-text) 28%, transparent);
}
.pagination .is-current {
  background: var(--color-accent);
  color: var(--color-neutral-100);
  border-color: var(--color-accent);
}

.login-card .alert { margin: 0; }
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* —— Login —— */
.login-page {
  min-height: 100vh;
  background: var(--color-neutral-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.login-header {
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 0;
}
.login-header .mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--color-divider);
  display: grid;
  place-items: center;
}
.login-header .brand {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}
.login-header .login-aside {
  margin-left: auto;
}
.login-header .help {
  font-size: 13px;
}
a.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
a.login-brand:hover,
a.login-brand:focus-visible {
  color: inherit;
  text-decoration: none;
}
a.login-brand:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 12px;
}
.login-body {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0 48px;
}
.login-card {
  width: 100%;
  max-width: 404px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.password-field {
  position: relative;
}
.password-field .input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-neutral-600);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.password-toggle svg {
  grid-area: 1 / 1;
  display: none;
}
.password-toggle[aria-pressed="false"] .icon-show,
.password-toggle[aria-pressed="true"] .icon-hide {
  display: block;
}
.password-toggle:hover {
  color: var(--color-accent-800);
  background: color-mix(in srgb, var(--color-text) 5%, transparent);
}
.password-toggle:active {
  color: var(--color-accent-900);
  background: color-mix(in srgb, var(--color-text) 9%, transparent);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .password-toggle { transition: none; }
}
.password-match-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
}
.password-match-hint.is-match { color: var(--color-accent-2-700); }
.password-match-hint.is-mismatch { color: #8a2e2e; }
#password_confirmation.is-match {
  border-color: var(--color-accent-2-500);
}
#password_confirmation.is-mismatch {
  border-color: #d47a7a;
}
.login-footer {
  width: 100%;
  max-width: 404px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  color: var(--color-neutral-600);
  padding-bottom: 32px;
}

@media (max-width: 900px) {
  .app { flex-direction: column; height: auto; min-height: 100vh; overflow: visible; }
  .rail {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--color-divider);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
  }
  .rail-brand { padding: 0 8px 0 0; width: 100%; }
  .rail-foot { width: 100%; margin-top: 8px; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .content { padding: 18px 16px 48px; }
  .ride-card { grid-template-columns: 1fr; }
  .search-pill { max-width: none; width: 100%; order: 3; }
}

/* Book a Ride, Airport pick-up / drop-off: direction cards, and the address and time the flight fills in. */
.air-dir { display: block; padding: 15px 17px; border-radius: 20px; cursor: pointer; background: var(--color-neutral-100); box-shadow: inset 0 0 0 1px var(--color-divider); }
.air-dir:has(input:checked) { background: var(--color-accent-100); box-shadow: inset 0 0 0 2px var(--color-accent); }
.air-dir:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.air-dir input { position: absolute; opacity: 0; pointer-events: none; }
.input-from-flight { background: var(--color-accent-100) !important; box-shadow: inset 0 0 0 1px var(--color-accent-300); }
.air-hint { font-size: 12px; color: var(--color-neutral-600); margin-top: 6px; }
.air-hint.from-flight { color: var(--color-accent-800); }

/* Book a Ride review dialog: bright card on a light backdrop, price highlighted. */
#review { background: var(--color-neutral-100); box-shadow: 0 24px 60px color-mix(in srgb, var(--color-accent-900) 18%, transparent); }
#review::backdrop { background: color-mix(in srgb, var(--color-neutral-900) 30%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.review-head { display: flex; align-items: center; gap: 14px; }
.review-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--color-accent-100); color: var(--color-accent); }
.review-rows { flex-shrink: 0; margin: 0; background: #fff; border: 1px solid var(--color-divider); border-radius: 20px; overflow: hidden; }
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 18px; font-size: 14px; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.review-row:last-child { border-bottom: 0; }
.review-row dt { color: var(--color-neutral-600); }
.review-row dd { margin: 0; font-weight: 600; text-align: right; color: var(--color-text); }
.review-row dd.is-empty { color: var(--color-neutral-400); font-weight: 400; }
.review-row.is-price { align-items: center; background: var(--color-accent-100); }
.review-row.is-price dt { color: var(--color-accent-800); font-weight: 600; }
.review-row.is-price dd { font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-800); }
.review-note { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; margin: 0; padding: 9px 14px; border-radius: 999px; background: var(--color-accent-2-100); color: var(--color-accent-2-800); font-size: 12.5px; }

/* E4.8 card link: the "Card saved" state. */
.card-saved { display: flex; flex-direction: column; gap: 18px; }
.card-saved[hidden] { display: none; }
.card-saved-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--color-accent-2-100); color: var(--color-accent-2-700); }
.card-saved-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--color-neutral-100); border: 1px solid var(--color-divider); font-size: 14px; }
.card-saved-card [data-card-expiry] { margin-left: auto; font-size: 12.5px; color: var(--color-neutral-600); }

/* A card network's logo on a white tile (partials/card-brand). */
.card-brand { display: inline-grid; place-items: center; flex: none; width: 48px; height: 32px; border-radius: 7px; background: #fff; border: 1px solid var(--color-divider); color: var(--color-neutral-600); }
.card-brand svg { display: block; }

/* Book a Ride payment notes (E5.16): no traveller chosen yet, or a traveller without a saved card. */
.pay-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--color-accent-100); color: var(--color-accent-800); font-size: 13px; line-height: 1.5; }
.pay-note > svg { flex: none; margin-top: 1px; }

/* Phone with its country code (partials/phone-field): a flag + code button that opens a searchable list, then the number. */
.phone-input { display: flex; gap: 8px; }
.phone-input > .input { flex: 1; min-width: 0; }
.phone-code-picker { position: relative; flex: none; }
.phone-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 16px;
  background: var(--color-neutral-100);
  border: 1px solid var(--color-divider);
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.phone-code:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.phone-code:focus-visible, .phone-code[aria-expanded="true"] { border-color: var(--color-accent); outline: none; }
.phone-code svg { color: var(--color-neutral-600); }
.phone-code:disabled { opacity: .6; cursor: not-allowed; }
.phone-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  max-width: calc(100vw - 48px);
  padding: 8px;
  background: var(--color-neutral-100);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  box-shadow: 0 12px 32px color-mix(in srgb, #1a1c20 14%, transparent);
}
.phone-menu ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 264px; overflow-y: auto; }
.phone-menu li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; font-size: 14px; }
.phone-menu li[hidden] { display: none; }
.phone-menu li small { margin-left: auto; font-size: 13px; color: var(--color-neutral-600); }
.phone-menu li:hover, .phone-menu li.is-active { background: var(--color-accent-100); }
.phone-menu li[aria-selected="true"] { font-weight: 600; }
.phone-menu p { margin: 10px 4px 4px; font-size: 13px; color: var(--color-neutral-700); }

/* Book a Ride: the Existing cards picker (Jazeb 15 Oct) — each card with its logo, expiry and Default; searchable. */
.card-picker { position: relative; }
.card-picker-button { display: flex; align-items: center; gap: 12px; min-height: 56px; text-align: left; cursor: pointer; }
.card-picker-button > svg { margin-left: auto; flex: none; color: var(--color-neutral-600); }
.card-picker-current { flex: 1; min-width: 0; }
.card-picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 8px;
  background: var(--color-neutral-100);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  box-shadow: 0 12px 32px color-mix(in srgb, #1a1c20 14%, transparent);
}
.card-picker-menu ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 264px; overflow-y: auto; }
.card-picker-menu li { padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.card-picker-menu li:hover, .card-picker-menu li.is-active { background: var(--color-accent-100); }
.card-picker-menu li[aria-selected="true"] strong { color: var(--color-accent-700); }
.card-picker-menu p { margin: 10px 4px 4px; font-size: 13px; color: var(--color-neutral-700); }
.card-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-row-text { display: flex; flex-direction: column; min-width: 0; }
.card-row-text strong { font-size: 14px; }
.card-row-text small { font-size: 12px; color: var(--color-neutral-600); }
.card-row .tag { margin-left: auto; }
/* Pages and sheets are the same colour as a neutral tag (Cancelled, Guest, Inactive), so give it an edge. */
.tag-neutral { box-shadow: inset 0 0 0 1px var(--color-neutral-300); }
/* Booked for myself — brand blue fill, white label (listing + booking rail). */
.tag-myself {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
}
.booking-rail .tag-myself {
  background: var(--color-accent);
  color: #fff;
}

/* On/off switch — settings row: title left, pill right, hint under (booker profile). */
.switch-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--color-divider);
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.switch-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-neutral-900);
  line-height: 1.25;
  padding-block: 2px;
}
.switch-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-neutral-600);
}
.switch {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  /* Beat .field > label { display:block; font-size:12px; … } if ever nested there. */
  font-size: 0;
  color: inherit;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.switch-track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  /* Off = greyed-out track (readable on cream sheets). */
  background: var(--color-neutral-400);
  position: relative;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
  transition: background .15s ease, box-shadow .15s ease, opacity .15s ease;
  opacity: .85;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .22);
  transition: transform .15s ease, background .15s ease;
}
.switch input:checked + .switch-track {
  background: var(--color-accent);
  box-shadow: none;
  opacity: 1;
}
.switch input:checked + .switch-track::after {
  transform: translateX(18px);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
}
.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.switch:hover .switch-track {
  opacity: 1;
  background: var(--color-neutral-500);
}
.switch:has(input:checked):hover .switch-track {
  background: var(--color-accent-600);
  opacity: 1;
}

/* Ride page itinerary (Jazeb 15 Oct): the map's markers beside each point, joined by a line. */
.itinerary { list-style: none; margin: 0; padding: 0; }
.itinerary > li { position: relative; padding: 0 0 18px 34px; }
.itinerary > li:last-child { padding-bottom: 0; }
.itinerary > li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--color-neutral-300); }
.itinerary-mark { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; }
.itinerary-mark.is-pickup::after { content: ""; width: 12px; height: 12px; border-radius: 999px; background: var(--color-neutral-900); }
.itinerary-mark.is-stop { border-radius: 999px; background: #fff; border: 2px solid var(--color-accent-600); color: var(--color-accent-600); font-size: 11px; font-weight: 700; }
.itinerary-mark.is-dropoff::after { content: ""; width: 12px; height: 12px; border-radius: 2px; background: var(--color-accent-600); }

/* Ride audit (bookings/partials/history): collapsed by default; click the header to expand. */
.ride-audit > summary { list-style: none; }
.ride-audit > summary::-webkit-details-marker { display: none; }
.ride-audit-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.ride-audit-summary:focus-visible { outline: 2px solid var(--color-accent-500); outline-offset: 2px; border-radius: 6px; }
.ride-audit-chevron { flex: none; color: var(--color-neutral-600); transition: transform .15s ease; }
.ride-audit[open] > .ride-audit-summary .ride-audit-chevron { transform: rotate(180deg); }
.ride-audit-body { margin-top: 6px; }

/* Ride audit list: newest first, one row per action. More than 10: 10 show and the rest
   scroll in place (the script fits the height to the 10th row; 620px until it runs). */
.history-list { list-style: none; margin: 0; padding: 0; position: relative; }
.history-list.is-long { max-height: 620px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.history-item { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--color-divider); }
.history-item:first-child { border-top: 0; }
/* Fixed badge column so every detail line starts in the same place (longest label: Trip Status). */
.history-item > .tag {
  flex: none;
  box-sizing: border-box;
  width: 6.75rem;
  max-width: 6.75rem;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.history-text strong { font-weight: 600; overflow-wrap: anywhere; }
.history-text span { font-size: 12px; color: var(--color-neutral-600); }
.history-rows { display: flex; flex-direction: column; margin: 14px 0 4px; max-height: 60vh; overflow-y: auto; }
.history-change { display: grid; grid-template-columns: 160px 1fr; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--color-divider); font-size: 13.5px; }
.history-change dt { color: var(--color-neutral-600); }
.history-change dd { margin: 0; overflow-wrap: anywhere; }
.history-from { color: var(--color-neutral-600); text-decoration: line-through; }
.history-arrow { color: var(--color-neutral-600); }
@media (max-width: 600px) {
  .history-item { flex-wrap: wrap; }
  .history-change { grid-template-columns: 1fr; }
}

/* A field label with a small action on its right: "Saved addresses" beside Pickup / Drop-off (Jazeb 29 Oct). */
.field > .label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.label-row > label { font-size: 12px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.saved-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--color-accent); cursor: pointer; white-space: nowrap; }
.saved-link:hover { text-decoration: underline; }
.saved-link[hidden] { display: none; }
#saved-dialog, #saved-dialog .saved-option, #saved-search { background: #fff; } /* white, as asked (Jazeb 29 Oct) */
.saved-list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; overscroll-behavior: contain; }
.saved-option { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border: 1px solid var(--color-divider); border-radius: 12px; background: var(--color-surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
#saved-dialog .saved-option:focus-visible { border-color: var(--color-accent); background: var(--color-accent-100); }
@media (hover: hover) { #saved-dialog .saved-option:hover { border-color: var(--color-accent); background: var(--color-accent-100); } } /* a tap leaves no false "selected" look */
.saved-option strong { font-size: 13.5px; }
.saved-option span { font-size: 12.5px; color: var(--color-neutral-600); overflow-wrap: anywhere; }
.place-note { margin: 6px 0 0; font-size: 12.5px; color: #8a2e2e; } /* a saved address Google cannot place */

.seg-opt:has(input:disabled) { opacity: .45; cursor: not-allowed; } /* By the hour on a Booking API company: it cannot be booked online (QA 4 Nov) */
.radio:has(input:disabled) { cursor: not-allowed; } /* Change ride's Book for, as booked: the choice stays readable, the others fade */
.radio:has(input:disabled:not(:checked)) { opacity: .45; }

/* Company form, LimoConnect Booking API (Jazeb 29 Oct): fields two per row (one on a phone), the environment as a small switch. */
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.env-seg { align-self: flex-start; width: fit-content; }
.env-seg .seg-opt { padding: 9px 22px; font-size: 13.5px; font-weight: 600; }
#env-host { word-break: break-all; } /* the Booking API address wraps on a phone */

/* Company page: the four Booking API keys, hidden until their eye is pressed (Jazeb 29 Oct). */
.key-list { margin-top: 6px; border: 1px solid var(--color-divider); border-radius: 12px; }
.key-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 2px 6px 2px 14px; }
.key-row + .key-row { border-top: 1px solid var(--color-divider); }
.key-label { font-size: 12.5px; color: var(--color-neutral-600); }
.key-value { font-size: 13px; word-break: break-all; }
.key-row .password-toggle { position: static; transform: none; width: 36px; height: 36px; }
@media (max-width: 600px) {
  .key-row { grid-template-columns: minmax(0, 1fr) auto; padding-top: 8px; }
  .key-label { grid-column: 1 / -1; }
}

/* Ride page: badge, Status, Driver and Audit load live (js/ride-live.js). While loading, grey bars
   cover the stored values; body min-height is locked in JS so nothing jerks. */
.live-checked { font-weight: 400; font-size: 11.5px; color: var(--color-neutral-400); }
.live-region .live-body { display: block; position: relative; }
.live-region.is-loading .live-body > :not(.live-skeleton) { visibility: hidden; }
.live-skeleton {
  visibility: visible !important;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow: hidden;
  pointer-events: none;
}
.live-skeleton-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--color-neutral-200);
  animation: live-pulse 1.4s ease-in-out infinite;
}
.live-skeleton-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.live-skeleton-driver { align-items: center; }
.live-skeleton-driver-lines { gap: 8px; padding-top: 2px; }
#ride-live-status .live-skeleton-lines,
.ride-status-live .live-skeleton-lines { align-items: flex-end; }
.live-skeleton-bar {
  display: block;
  width: 70%;
  max-width: 160px;
  height: 12px;
  border-radius: 6px;
  background: var(--color-neutral-200);
  animation: live-pulse 1.4s ease-in-out infinite;
}
.live-skeleton-bar-name { width: 42%; max-width: 140px; height: 14px; }
.live-skeleton-bar-phone { width: 34%; max-width: 110px; height: 12px; }
.live-skeleton-bar-car { width: 48%; max-width: 160px; height: 12px; }
.live-skeleton-bar-reg { width: 28%; max-width: 90px; height: 11px; }
.live-skeleton-bar-tag {
  width: 6.75rem;
  max-width: 6.75rem;
  height: 24px;
  flex: none;
  border-radius: 999px;
}
.live-skeleton-bar-detail {
  width: 34px;
  max-width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  margin-left: auto;
}
.live-skeleton-bar-badge {
  width: 5.5rem;
  max-width: 5.5rem;
  height: 22px;
  border-radius: 999px;
}
.live-skeleton-bar-audit-title { width: 58%; max-width: 280px; height: 13px; }
.live-skeleton-bar-audit-meta { width: 36%; max-width: 180px; height: 11px; }
.ride-badge-live { display: inline-flex; vertical-align: middle; min-height: 24px; min-width: 5.5rem; }
.ride-badge-live .live-body { display: inline-flex; align-items: center; min-height: 24px; }
.ride-status-live {
  display: inline-block;
  min-width: 5.25rem;
  text-align: right;
  vertical-align: baseline;
}
.ride-status-live .live-body {
  display: block;
  position: relative;
  min-height: 1.15em;
  min-width: 5.25rem;
}
.live-skeleton-status {
  justify-content: flex-end;
  align-items: center;
}
.live-skeleton-bar-status {
  width: 5rem;
  max-width: 5rem;
  height: 13px;
  border-radius: 6px;
}
.live-skeleton-audit {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.live-skeleton-audit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 2px;
  border-top: 1px solid var(--color-divider);
  box-sizing: border-box;
}
.live-skeleton-audit-row:first-child { border-top: 0; }
.live-skeleton-audit-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Dark Booking rail: light pulse so the Status bar is visible on neutral-900. */
.booking-rail .live-skeleton-bar { background: rgba(249, 244, 237, 0.28); }
@keyframes live-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  .live-skeleton-bar,
  .live-skeleton-avatar { animation: none; }
}
.ride-live-note { font-size: 12.5px; line-height: 1.4; color: var(--color-neutral-300); }
.ride-live-action {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent-400);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.ride-live-action:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 2px; }
