/* ============================================================
   Pages — hero, home, order, tracking, driver console, admin
   ============================================================ */

/* ============================================================
   HERO
   The image is already graded and scrimmed at build time (see
   scripts/build_hero_images.py), so the CSS overlay here is a light
   top-up only — enough to hold the headline at AA on any viewport
   without washing the car out.
   ============================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

/* Top-up scrim: strongest on the left where the copy sits */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(15, 16, 18, 0.72) 0%,
      rgba(15, 16, 18, 0.46) 38%,
      rgba(15, 16, 18, 0.10) 68%,
      rgba(15, 16, 18, 0.24) 100%),
    linear-gradient(to top,
      rgba(15, 16, 18, 0.55) 0%,
      rgba(15, 16, 18, 0) 42%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(3rem, 8vh, 5rem);
}

.hero__content { max-width: 40rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.hero__title {
  color: var(--on-dark);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.hero__lede {
  color: rgba(243, 243, 244, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero__note {
  margin-top: 1.6rem;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(243, 243, 244, 0.72);
}
.hero__note li { display: flex; align-items: center; gap: 0.45rem; }
.hero__note svg { color: var(--green); flex: none; }

@media (max-width: 720px) {
  .hero { min-height: 100svh; }
  .hero__media img { object-position: 58% center; }
  .hero__inner { padding-block: clamp(5.5rem, 16vh, 7rem) 2.5rem; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---- How it works ---- */
.steps { counter-reset: step; }
.step__num {
  counter-increment: step;
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--green);
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 0.9rem;
}
.step__num::before { content: counter(step, decimal-leading-zero); }

/* ---- Feature strip ---- */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}
.strip__item {
  background: var(--ink);
  padding: 1.5rem clamp(1rem, 2vw, 1.75rem);
}
.strip__value {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green);
}
.strip__label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
  margin-top: 0.25rem;
}

/* ---- Pricing table ---- */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.price-row:last-child { border-bottom: 0; }
.price-row__label { color: var(--text-soft); }
.price-row__value {
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============================================================
   ORDER FORM
   ============================================================ */
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}
@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; }
  /* Map first on mobile so the pins are set before the fields */
  .order-layout__aside { order: -1; }
}

.order-aside { position: sticky; top: 1.5rem; }

/* Quote panel — a plain summary card, no animated flourishes */
.quote {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  margin-top: 1rem;
}
.quote__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}
.quote__price {
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-block: 0.3rem 0.5rem;
}
.quote__meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.86rem;
  color: var(--on-dark-mut);
  flex-wrap: wrap;
}
.quote__breakdown {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: var(--on-dark-mut);
  line-height: 1.5;
}
.quote__pending { color: var(--on-dark-mut); font-size: 0.92rem; }
.quote.is-loading .quote__price { opacity: 0.45; }

/* ============================================================
   TRACKING
   ============================================================ */
.track-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.track-ref {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.track-status {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.track-status__step {
  flex: 1 1 90px;
  padding: 0.65rem 0.75rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.track-status__step.is-done { background: var(--green-tint); border-color: #f0dcaa; color: var(--green-deep); }
.track-status__step.is-current { background: var(--ink); border-color: var(--ink); color: var(--green); }

.track-eta {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.driver-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--r-lg);
}
.driver-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.driver-card__plate {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.86rem;
}

/* ============================================================
   DRIVER CONSOLE — built for a phone in a windscreen mount
   ============================================================ */
.page-driver { background: var(--ink); color: var(--on-dark); }
.page-driver .topbar { background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.page-driver .topbar__brand, .page-driver .menu-trigger { color: var(--on-dark); }

/* The bare driver layout has no topbar and no footer, so the shell owns all of
   its own spacing, including the notch and home-indicator insets. */
.page-driver--bare { min-height: 100dvh; }

.driver-main {
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
}

.driver-shell {
  max-width: 640px;
  margin-inline: auto;
  padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
}

/* ---- Overflow menu ----
   Bottom-left, deliberately small and away from the primary action at the
   bottom of the card: sign-out must be reachable but never mistaken for
   Accept. <details> so it works with no JavaScript. */
.driver-more {
  position: fixed;
  left: calc(0.75rem + env(safe-area-inset-left));
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 60;
}
.driver-more > summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: var(--ink-raised);
  color: var(--on-dark-mut);
  font-size: 1.1rem;
  cursor: pointer;
}
.driver-more > summary::-webkit-details-marker { display: none; }
.driver-more[open] > summary { color: var(--on-dark); border-color: var(--on-dark); }

.driver-more__panel {
  position: absolute;
  bottom: 48px;
  left: 0;
  min-width: 190px;
  display: grid;
  padding: 0.35rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: var(--ink-raised);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.driver-more__panel a,
.driver-more__panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--on-dark);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.driver-more__panel a:active,
.driver-more__panel button:active { background: rgba(243, 243, 244, 0.1); }

/* ---- Top bar: identity, rotate, GPS, all on one line ----
   The console is used at arm's length in a mount, so the job has to be the
   first thing on screen. Everything that is not the job lives up here. */
.driver-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.driver-bar__id {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  overflow: hidden;
}
.driver-bar__id strong {
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.driver-bar__plate {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-mut);
  white-space: nowrap;
}
.driver-bar__btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--on-dark);
}
.driver-bar__btn:active { background: rgba(243, 243, 244, 0.1); }
/* Fullscreen is a latching control, not a momentary one: the driver needs to
   see at a glance whether the console will come back fullscreen. */
.driver-bar__btn.is-on {
  border-color: var(--green);
  color: var(--green);
  background: rgba(92, 201, 138, 0.12);
}
/* Alert sound wanted but not yet unlocked by a tap — outlined rather than lit,
   so it never looks like a working alarm when it is not one yet. */
.driver-bar__btn.is-pending {
  border-color: var(--green);
  color: var(--green);
  border-style: dashed;
}

/* ---- Idle: one sentence, one button ---- */
.driver-idle {
  text-align: center;
  padding: 2.5rem 0 1rem;
}
.driver-idle__state {
  color: var(--on-dark-mut);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.driver-shift-btn { min-height: 64px; font-size: 1rem; }
.driver-shift-secondary { min-height: 48px; margin-top: 0.6rem; opacity: 0.75; }

/* ---- The two legs. The one being driven to is highlighted; the other
        stays legible but recedes, so a glance lands on the right address. ---- */
.driver-leg {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0.55;
}
.driver-leg:last-of-type { border-bottom: 0; }
.driver-leg.is-current { opacity: 1; }
.driver-leg__body { flex: 1; min-width: 0; }
.driver-leg__pin {
  width: 11px; height: 11px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex: none;
}
.driver-leg__pin--from { background: var(--green); }
.driver-leg__pin--to { background: var(--on-dark); }
.driver-leg__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
  margin-bottom: 0.15rem;
}
.driver-leg__addr {
  color: var(--on-dark);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
}
.driver-leg.is-current .driver-leg__addr { font-size: 1.3rem; }

/* ---- Facts: one wrapping row, no labels ---- */
.driver-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.95rem;
  color: var(--on-dark-mut);
}
.driver-facts strong { color: var(--green); font-size: 1.05rem; }

.driver-note {
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  background: rgba(92, 201, 138, 0.1);
  color: var(--on-dark);
  font-size: 0.92rem;
}

.driver-waiting { margin-bottom: 0.7rem; }

/* ---- Secondary actions: present, but never mistaken for the main one ---- */
.driver-secondary {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.driver-secondary__btn {
  flex: 1;
  text-align: center;
  padding: 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  color: var(--on-dark-mut);
  font-size: 0.85rem;
  font-weight: 600;
}
.driver-secondary__btn:active { background: rgba(243, 243, 244, 0.08); }

/* The navigation button carries an icon, so it centres its contents rather
   than relying on text-align alone. */
.driver-secondary__btn--nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--green);
  border-color: rgba(92, 201, 138, 0.35);
}

/* Route preview: deliberately the quietest thing on the card. Turn-by-turn
   starts from where the car is, so a whole-route link is reference, not the
   action, and must not compete with the button above it. */
.driver-secondary__link {
  display: block;
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--on-dark-mut);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.driver-job {
  background: var(--ink-raised);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 1.35rem;
}
.driver-job__ref {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--green);
  font-size: 0.9rem;
}
.driver-job__addr {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.driver-job__addr:last-of-type { border-bottom: 0; }
.driver-job__pin {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 0.45rem;
  flex: none;
}
.driver-job__pin--from { background: var(--green); }
.driver-job__pin--to { background: var(--on-dark); }
.driver-job__label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-mut); }
.driver-job__value { color: var(--on-dark); font-weight: 500; }

/* Big tap targets — thumb-reachable, and the primary action is unmistakably
   the biggest thing on the screen. */
.driver-actions { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.driver-actions .btn { min-height: 56px; font-size: 0.95rem; }
.driver-btn-xl { min-height: 76px; font-size: 1.15rem; font-weight: 800; }

/* Offer countdown — a draining bar, not a flashing alarm. It shrinks once and
   stops; there is no looping animation to distract someone who is driving. */
/* Sticks under the top inset so the remaining time is legible no matter how
   far the driver has scrolled. */
.offer-timer {
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: var(--ink-raised);
}
.offer-timer[hidden] { display: none; }

.offer-timer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
}
.offer-timer__head strong {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0;
}

.offer-timer__bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(243, 243, 244, 0.14);
  overflow: hidden;
}
.offer-timer__bar > span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--green);
  transition: width 0.25s linear, background 0.3s var(--ease);
}
.offer-timer.is-urgent { border-color: var(--danger); }
.offer-timer.is-urgent .offer-timer__bar > span { background: var(--danger); }
.offer-timer.is-urgent .offer-timer__head strong { color: #ff6b62; }

.driver-gps {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  font-size: 0.82rem;
  color: var(--on-dark-mut);
}
.driver-gps__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.driver-gps.is-live .driver-gps__dot { background: var(--ok); }
.driver-gps.is-error .driver-gps__dot { background: var(--danger); }

/* ---- Forced landscape ----
   iOS Safari implements no Screen Orientation lock, so the rotate button falls
   back to turning the shell itself. The viewport units are swapped deliberately:
   after a 90° rotation the element's width runs down the screen. */
body.force-landscape .driver-shell {
  transform: rotate(90deg);
  transform-origin: bottom left;
  position: absolute;
  top: -100vw;
  left: 0;
  width: 100vh;
  height: 100vw;
  max-width: none;
  overflow-y: auto;
}
body.force-landscape { overflow: hidden; }

/* In real landscape the two legs sit side by side, so the action button stays
   above the fold instead of being pushed off a 400px-tall viewport. */
@media (orientation: landscape) and (max-height: 520px) {
  .driver-shell { padding-top: 0.6rem; }
  .driver-leg { padding: 0.5rem 0; }
  .driver-leg__addr { font-size: 1rem; }
  .driver-leg.is-current .driver-leg__addr { font-size: 1.1rem; }
  .driver-btn-xl { min-height: 60px; }
  .driver-idle { padding-top: 1rem; }
}

/* ============================================================
   ADMIN
   ============================================================ */
.page-admin { background: var(--surface); }

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
@media (max-width: 1000px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; }
  .admin-nav__list { flex-direction: row; overflow-x: auto; }
}

.admin-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--ink);
  color: var(--on-dark);
  padding: 1.35rem 1rem;
  overflow-y: auto;
}
.admin-nav__brand {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.84rem;
  color: var(--on-dark);
  padding-inline: 0.65rem;
  margin-bottom: 1.5rem;
  display: block;
}
.admin-nav__group {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.9rem 0.65rem 0.4rem;
  font-weight: 700;
}
.admin-nav__list { display: flex; flex-direction: column; gap: 2px; }
.admin-nav__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.58rem 0.65rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--on-dark-mut);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.admin-nav__link:hover { background: rgba(243, 243, 244, 0.07); color: var(--on-dark); }
.admin-nav__link.is-active { background: var(--green); color: var(--ink); font-weight: 600; }

.admin-main { padding: clamp(1.25rem, 3vw, 2.25rem); min-width: 0; }

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.admin-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

/* ---- Dispatch board ---- */
.dispatch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1200px) {
  .dispatch { grid-template-columns: 1fr; }
}

.dispatch-col__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.dispatch-col__count {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

.ride-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.ride-card:hover { box-shadow: var(--shadow-sm); border-left-color: var(--green); }

/* Status is carried by the left rule — one quiet colour cue, no flashing */
.ride-card--requested  { border-left-color: var(--warn); }
.ride-card--assigned   { border-left-color: var(--info); }
.ride-card--accepted,
.ride-card--arrived    { border-left-color: var(--green-deep); }
.ride-card--inprogress { border-left-color: var(--ok); }

.ride-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.ride-card__ref {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ride-card__route { font-size: 0.9rem; line-height: 1.45; }
.ride-card__route strong { font-weight: 600; }
.ride-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.driver-list__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
}
.driver-list__item:last-child { border-bottom: 0; }
.driver-list__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: none;
}
/* Available stays the semantic success green; on-ride takes the bright brand
   green. Same reasoning as badge--green: at 8px these two dots were separated
   by hue when the accent was gold, and the accent going green left them nearly
   the same colour. Light-versus-dark is what tells them apart now. */
.driver-list__dot--available { background: var(--ok); }
.driver-list__dot--onride    { background: var(--green); }
.driver-list__dot--break     { background: var(--muted); }
.driver-list__dot--stale     { background: var(--danger); }
.driver-list__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Auth pages ---- */
.auth {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vh, 4rem) var(--gutter);
  background: var(--surface);
}
.auth__card {
  width: 100%;
  max-width: 430px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.65rem, 4vw, 2.4rem);
}
.auth__brand {
  display: block;
  margin-bottom: 1.35rem;
}
.auth__brand img {
  display: block;
  width: 168px;
  height: auto;
  margin: 0 auto;
}
.auth__title { font-size: 1.5rem; margin-bottom: 0.35rem; }
.auth__sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.auth__foot {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.auth__foot a { color: var(--green-deep); font-weight: 600; }
.auth__foot a:hover { text-decoration: underline; }

/* ---- Error / 404 ---- */
.status-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
}
.status-page__code {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--green);
}
