@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

:root {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --ink: #12161A;
  --ink-2: #575F6E;
  --ink-3: #8C94A0;
  --line: #E4E1D9;
  --line-strong: #D1CDC2;
  --accent: #0B5D2E;
  --accent-deep: #084924;
  --accent-soft: #EEF6F0;
  --amber: #92400E;
  --amber-soft: #FEF3C7;
  --red: #B91C1C;
  --red-soft: #FEE2E2;
  --radius-lg: 0px;
  --radius-md: 0px;
  --radius-pill: 0px;
  --nav-h: 56px;
  --shell-w: 100%;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

a { color: inherit; }

/* Fixed Application Shell: responsive, stable, zero shaking */
.app-shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .corporate-shell,
  .admin-shell,
  .driver-shell {
    max-width: 1140px;
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

.app-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 16px 20px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Corporate ride view: no top gutter so the sticky header sits flush at y=0 */
.app-scroll.app-scroll--flush { padding-top: 0; }

/* ═══════════════════════════════════════════════
   SITE HEADER / FOOTER (legacy marketing chrome)
   ═══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell-w);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-right: auto;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--ink); }

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.header-right a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}

.header-right a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }

/* ═══════════════════════════════════════════════
   SURFACES & CARDS
   ═══════════════════════════════════════════════ */
.card, .card-white {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.hero-title { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.12; }
.hero-sub { font-size: 15px; font-weight: 500; color: var(--ink-2); line-height: 1.55; }
.step-title { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 6px; }
.step-sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn, .apple-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent);
  cursor: pointer;
  outline: none;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  text-decoration: none;
  box-sizing: border-box;
}

.btn:hover, .apple-btn:hover { background: var(--accent-deep); }
.btn:active, .apple-btn:active { transform: scale(0.99); opacity: 0.92; }
.btn:disabled, .apple-btn:disabled { opacity: 0.5; cursor: default; }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { background: var(--bg); border-color: var(--line-strong); }

.btn-danger {
  background: var(--surface);
  color: var(--red);
  border: 1px solid #F3C6C7;
}
.btn-danger:hover { background: var(--red-soft); }

.btn-sm { min-height: 42px; padding: 10px 16px; font-size: 13px; border-radius: 10px; width: auto; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  outline: none;
}

.link-btn.quiet { color: var(--ink-3); }

/* ═══════════════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════════════ */
.input, .apple-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.input::placeholder, .apple-input::placeholder { color: var(--ink-3); }

.input:focus, .apple-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

input[type="file"].input, input[type="file"].apple-input { padding: 10px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-error {
  display: none;
  background: var(--red-soft);
  border: 1px solid rgba(229, 72, 77, 0.25);
  color: var(--red);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

/* Bottom Navigation: anchored solidly at bottom */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  justify-content: center;
}

.bottom-nav-inner {
  width: 100%;
  max-width: 1140px;
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 4px 10px;
}

.nav-tab-btn {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-3);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 4px 0;
  border-radius: 0 !important;
  transition: color 0.15s, background 0.15s;
}

.nav-tab-btn svg { stroke: currentColor; width: 20px; height: 20px; }

.nav-tab-btn.active-tab {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ═══════════════════════════════════════════════
   STATUS CHIPS
   ═══════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.chip-grey { background: #EEF0F4; color: var(--ink-2); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-green { background: var(--accent-soft); color: var(--accent-deep); }
.chip-red { background: var(--red-soft); color: var(--red); }

/* ═══════════════════════════════════════════════
   PANELS / TABS
   ═══════════════════════════════════════════════ */
.dash-panel { display: none; flex-direction: column; gap: 14px; animation: panelFade 0.2s ease-out forwards; }
.dash-panel[style*="flex"] { display: flex; }

@keyframes panelFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.segmented {
  display: flex;
  background: #EDEFF3;
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.segmented .tab-btn {
  flex: 1;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  outline: none;
  transition: all 0.15s;
}

.segmented .tab-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 19, 24, 0.08); }
.segmented .tab-btn.inactive { color: var(--ink-3); }

/* ═══════════════════════════════════════════════
   AUTH: role cards, tabs, phone-frame drop
   ═══════════════════════════════════════════════ */
.auth-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px 40px;
}

.auth-inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }

.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; padding: 10px 0 6px; }

.monogram {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  border-radius: 12px;
  letter-spacing: -1px;
}

.auth-brand-name { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

.role-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, transform 0.1s;
  font-family: var(--font);
}

.role-card:active { transform: scale(0.99); border-color: var(--accent); }

.role-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-icon svg { width: 21px; height: 21px; stroke: currentColor; }

.tab-row { display: flex; border-bottom: 1px solid var(--line); gap: 8px; }

.tab-choice {
  flex: 1;
  padding: 12px 2px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--ink-3);
  outline: none;
  transition: color 0.15s, border-color 0.15s;
}

.tab-choice.active { color: var(--ink); border-bottom-color: var(--accent); }

.role-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 13px;
}

/* ═══════════════════════════════════════════════
   HOME HERO
   ═══════════════════════════════════════════════ */
.home-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: var(--shell-w);
  background: var(--surface);
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
}

.home-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 2px 18px; }

.home-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 8px 10px; gap: 14px; }

.home-hero h1 { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -0.035em; line-height: 1.1; }

.home-hero p { font-size: 15px; font-weight: 500; color: var(--ink-2); line-height: 1.55; max-width: 420px; }

.avatar-cluster { display: flex; justify-content: center; align-items: center; padding: 10px 0 14px; }

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.10);
  background-color: #E7EAEF;
  object-fit: cover;
}

.avatar.left { margin-right: -20px; z-index: 1; width: 74px; height: 74px; }
.avatar.center { z-index: 3; width: 96px; height: 96px; }
.avatar.right { margin-left: -20px; z-index: 2; width: 74px; height: 74px; }

.cta-stack { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 12px; }

/* ═══════════════════════════════════════════════
   DASHBOARD BITS
   ═══════════════════════════════════════════════ */
.quick-chip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
}

.quick-chip:hover { background: var(--accent-soft); color: var(--accent-deep); border-color: rgba(22, 163, 74, 0.35); }

.map-frame { border-radius: var(--radius-md); border: 1px solid var(--line); overflow: hidden; background: #F5F7F9; z-index: 1; }

.map-instructions {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.map-instructions svg { width: 15px; height: 15px; stroke: currentColor; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.stat-card { padding: 12px 10px; text-align: center; }
.stat-label { font-size: 9.5px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; letter-spacing: 0.04em; }
.stat-value { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.stat-value.green { color: var(--accent-deep); }

.fare-num { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }

.route-line { display: flex; flex-direction: column; gap: 5px; padding: 2px 0; }

.route-line .stop { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }

.route-line .stop svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.route-line .stop.start svg { color: var(--accent); }
.route-line .stop.end svg { color: var(--red); }

/* iOS-style toggle (accent) */
.ios-toggle { position: relative; display: inline-block; width: 44px; height: 25px; flex-shrink: 0; }
.ios-toggle input { opacity: 0; width: 0; height: 0; }
.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--line-strong);
  transition: 0.2s;
  border-radius: 25px;
}
.ios-slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(16, 19, 24, 0.25);
}
input:checked + .ios-slider { background-color: var(--accent); }
input:checked + .ios-slider:before { transform: translateX(19px); }

/* ═══════════════════════════════════════════════
   ADMIN: document audit bottom sheet
   ═══════════════════════════════════════════════ */
.doc-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 19, 24, 0.55);
  z-index: 10000;
  align-items: flex-end;
  justify-content: center;
}

.modal-content {
  background: var(--surface);
  width: 100%;
  max-width: 460px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92dvh;
  animation: sheetUp 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 10px auto 0; }

.doc-stage {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

@media (min-width: 520px) {
  .doc-modal { align-items: center; padding: 20px; }
  .modal-content { border-radius: 20px; max-height: 84dvh; }
  .modal-handle { display: none; }
}

/* ═══════════════════════════════════════════════
   UTIL
   ═══════════════════════════════════════════════ */
.spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  padding: 28px 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.6;
}

.empty-state .icon-tile {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.empty-state .icon-tile svg { width: 21px; height: 21px; stroke: currentColor; }
.empty-state strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 3px; }

.divider { border-top: 1px solid var(--line); }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.muted { color: var(--ink-3); }
.small { font-size: 12px; }

/* ═══════════════════════════════════════════════
   RIDE-HAILING REQUEST PANEL (corporate dashboard)
   ═══════════════════════════════════════════════ */
.ride-root {
  margin: 0 -20px 0;
}

/* Floating sticky pill top bar */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 600;
  padding: 10px 12px 8px;
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(16, 19, 24, 0.12);
  max-width: 560px;
  margin: 0 auto;
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border: none;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}
.topbar-action:hover { background: #0E7434; }
.topbar-action svg { width: 15px; height: 15px; stroke: currentColor; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.topbar-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F5F7FA;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.topbar-icon-btn:hover { background: #EDF1F5; border-color: var(--ink-3); }
.topbar-icon-btn svg { width: 18px; height: 18px; stroke: currentColor; }

.bell-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E5484D;
  border: 2px solid #FFFFFF;
  display: none;
}
.bell-dot.show { display: block; }

.topbar-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  outline: none;
}

.topbar-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 48px);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(16, 19, 24, 0.16);
  padding: 16px;
  display: none;
  z-index: 70;
  text-align: left;
}
.topbar-popover.open { display: block; animation: popIn 0.16s ease-out; }

.ride-stage {
  position: relative;
  min-height: 520px;
  min-height: calc(100dvh - 141px);
}

.ride-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #E8EDF2;
}

.ride-instructions {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 505;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.ride-instructions svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }

.ride-instructions.state-pickup { background: rgba(16, 19, 24, 0.88); color: #FFFFFF; }
.ride-instructions.state-pickup svg { color: var(--accent); }

.ride-instructions.state-drop { background: rgba(16, 19, 24, 0.88); color: #FFFFFF; }
.ride-instructions.state-drop svg { color: #F87171; }

.ride-instructions.state-done { background: rgba(22, 163, 74, 0.92); color: #FFFFFF; }
.ride-instructions.state-done svg { color: #FFFFFF; }

/* Solid flat booking console: docked firmly, zero radius, zero shaking */
.ride-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 510;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0 !important;
  box-shadow: 0 -2px 10px rgba(16, 19, 24, 0.08);
  display: flex;
  flex-direction: column;
  max-height: calc(88dvh - 56px);
  overflow: hidden;
  animation: none;
}

.ride-card::-webkit-scrollbar { display: none; }

/* Interactive Peek Handle Bar: always visible, non-intrusive on mobile */
.sheet-handle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 10px;
  background: #FFFFFF;
  border: none;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  width: 100%;
}

.sheet-handle .handle-bar {
  width: 36px;
  height: 4px;
  background: #D8DDE3;
}

.sheet-peek-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.sheet-peek-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.sheet-peek-pin {
  width: 14px;
  height: 14px;
  color: var(--accent);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sheet-peek-pin svg { width: 14px; height: 14px; stroke: currentColor; }

.sheet-peek-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.sheet-peek-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.sheet-peek-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sheet-handle .handle-chev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.sheet-handle .handle-chev svg { width: 14px; height: 14px; stroke: currentColor; }

.ride-card.expanded .sheet-handle {
  border-bottom: 1px solid var(--line);
}

.ride-card.expanded .sheet-handle .handle-chev {
  transform: rotate(180deg);
}

/* Collapsible Content Area: hidden when collapsed, full access when expanded */
.sheet-content {
  display: none;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 12px 18px 20px;
}

.sheet-content-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ride-card.expanded .sheet-content {
  display: flex;
}

.sheet-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
}

.sheet-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.sheet-minimize-btn {
  background: none;
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  outline: none;
  transition: background 0.15s, color 0.15s;
}

.sheet-minimize-btn:hover {
  background: var(--bg);
  color: var(--ink);
}

@media (min-width: 860px) {
  #view-request.dash-panel {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  .ride-stage {
    display: grid !important;
    grid-template-columns: 1fr 390px !important;
    height: calc(100dvh - 56px) !important;
    min-height: 540px !important;
    position: relative !important;
  }
  .ride-map {
    position: relative !important;
    inset: auto !important;
    height: 100% !important;
    width: 100% !important;
  }
  .ride-card {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-left: 1px solid var(--line) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    animation: none !important;
    overflow-y: auto !important;
  }
  .sheet-handle { display: none !important; }
  .sheet-content {
    display: flex !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 18px 20px 24px !important;
    height: 100% !important;
  }
  .sheet-minimize-btn { display: none !important; }
}

.ride-card .form-label { color: var(--ink-3); }
.ride-card .reset-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  cursor: pointer;
  outline: none;
}

.field { position: relative; }

.field .pin {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--accent);
  pointer-events: none;
  z-index: 1;
}

.field .pin.pin-flag { color: #F87171; }

.sheet-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px 12px 42px;
  background: #F4F6F8;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.sheet-input::placeholder { color: var(--ink-3); }

.sheet-input:focus {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

/* Address autocomplete dropdown */
.ac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 560;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 19, 24, 0.14);
  overflow: hidden;
  display: none;
  text-align: left;
}
.ac-list.open { display: block; animation: popIn 0.14s ease-out; }

.ac-item {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-item + .ac-item { border-top: 1px solid var(--line); }
.ac-item:hover { background: var(--accent-soft); }

.chip-gps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-deep);
  cursor: pointer;
  outline: none;
  transition: background 0.15s;
}

.chip-gps:hover { background: #DDF1E5; }

.chip-gps .gps-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chip-gps .gps-ic svg { width: 15px; height: 15px; stroke: currentColor; }

.tag-chip {
  background: #EEF0F4;
  color: var(--ink-2);
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: background 0.15s;
}

.tag-chip:hover { background: #E0E4EA; }

.segmented-sheet {
  display: flex;
  background: #F1F3F6;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.segmented-sheet .seg-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.18s;
}

.segmented-sheet .seg-btn.active {
  background: var(--accent);
  color: #FFFFFF;
}

.fare-box {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(22, 163, 74, 0.3);
  transition: max-height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
}

.fare-box.open { max-height: 140px; opacity: 1; }

/* Map pin drop animation */
.pin-drop {
  transform-origin: bottom center;
  animation: pinBounce 0.5s cubic-bezier(0.25, 1.2, 0.45, 1.2);
  filter: drop-shadow(0 6px 10px rgba(16, 19, 24, 0.35));
}

@keyframes pinBounce {
  0% { transform: scale(0.4) translateY(-22px); opacity: 0; }
  55% { transform: scale(1.12) translateY(2px); opacity: 1; }
  75% { transform: scale(0.96) translateY(-1px); }
  100% { transform: scale(1) translateY(0); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE: the phone frame is gone
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .home-hero h1 { font-size: 29px; }
}

/* Narrow phones: keep the header from overflowing */
@media (max-width: 360px) {
  .topbar { gap: 6px; padding-left: 6px; }
  .topbar-action { padding: 8px 10px; font-size: 12px; }
  .topbar-actions { gap: 6px; }
  .topbar-icon-btn, .topbar-avatar { width: 36px; height: 36px; }
}

@media (min-width: 768px) {
  .app-scroll { padding: 20px 24px calc(var(--nav-h) + 32px); }
  .ride-root { margin: 0; }
  .topbar-wrap { padding: 0; }
}

/* ═══════════════════════════════════════════════
   AUTH V2: Sign In / Sign Up redesign
   White canvas, soft light green gradient accents,
   dark green primary buttons, gray inputs
   ═══════════════════════════════════════════════ */
.auth-shell.auth-v2 {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 40px;
  background:
    radial-gradient(900px 540px at 6% -12%, rgba(22, 163, 74, 0.11), transparent 62%),
    radial-gradient(840px 500px at 106% 110%, rgba(22, 163, 74, 0.11), transparent 58%),
    #FFFFFF;
}

.auth-v2 .auth-inner { gap: 0; }

.auth-v2 .auth-brand { padding: 4px 0 2px; }

.auth-v2 .monogram {
  width: 46px;
  height: 46px;
  background: #0B5D2E;
  border-radius: 14px;
  font-size: 21px;
  box-shadow: 0 10px 22px -10px rgba(11, 93, 46, 0.55);
}

.auth-v2 .auth-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 26px 60px -28px rgba(16, 19, 24, 0.22);
  padding: 30px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.auth-title {
  font-size: 25px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 6px;
}

.auth-sub {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

/* Bold dark labels (overrides the uppercase gray .form-label) */
.auth-v2 .form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

/* Light gray inputs */
.auth-v2 .input {
  background: #F3F5F4;
  border: 1.5px solid transparent;
  border-radius: 12px;
  min-height: 50px;
  padding: 13px 15px;
  color: var(--ink);
}

.auth-v2 .input::placeholder { color: #9AA1AD; }

.auth-v2 .input:focus {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.auth-v2 .input.code-input {
  font-size: 21px !important;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 700;
}

/* "I am a" select with chevron */
.auth-v2 select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6270' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
  cursor: pointer;
}

/* Solid dark green primary button */
.auth-v2 .btn-primary {
  background: #0B5D2E;
  min-height: 52px;
  border-radius: 12px;
  font-size: 15.5px;
  color: #FFFFFF;
}

.auth-v2 .btn-primary:hover { background: #0A5027; }
.auth-v2 .btn-primary:disabled { background: #0B5D2E; opacity: 0.55; }

/* Rows: Remember me + Forgot password, resend rows */
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.auth-v2 .link-btn { color: var(--accent-deep); font-size: 13px; font-weight: 600; }
.auth-v2 .link-btn.quiet { color: var(--ink-3); }

/* Checkboxes */
.auth-v2 .check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  user-select: none;
}

.auth-v2 .check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-v2 .terms-check {
  align-items: flex-start;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-2);
}

/* "Or with" divider */
.auth-v2 .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-v2 .divider::before,
.auth-v2 .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Outlined pill social buttons */
.auth-v2 .social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-v2 .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 10px;
  background: #FFFFFF;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.auth-v2 .social-btn:hover { border-color: #AEB8C4; background: #FAFBFC; }
.auth-v2 .social-btn:active { transform: scale(0.98); }

.auth-v2 .social-btn svg { flex-shrink: 0; }

.auth-v2 .social-btn.is-loading {
  opacity: 0.8;
  cursor: wait;
  pointer-events: none;
}

.auth-v2 .social-spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid rgba(20, 25, 32, 0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  display: inline-block;
  animation: social-btn-spin 0.7s linear infinite;
}

@keyframes social-btn-spin {
  to { transform: rotate(360deg); }
}

/* Switch row (Sign In <-> Sign Up) */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin: 2px 0 0;
}

.auth-link {
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
}

.auth-link:hover { text-decoration: underline; }

.auth-v2 .form-error { border-radius: 12px; }

/* ═══════════════════════════════════════════════
   CLIENT DASH V2: established, rigid, no wobble
   Typography, stability and anti-clipping pass
   ═══════════════════════════════════════════════ */

/* Numbers never shift width while loading or updating */
.tabular-nums,
.stat-value,
.fare-num,
#est-fare,
#est-dist,
#stat-total-amount,
#stat-total-spend {
  font-variant-numeric: tabular-nums;
}

/* Stable panels: instant or subtle static fade */
.dash-panel { animation: panelFade 0.12s ease-out forwards; }
@keyframes panelFade { from { opacity: 0.85; } to { opacity: 1; } }

/* Sturdier press feedback: no scale wobble */
.btn:active, .apple-btn:active, .social-btn:active, .nav-tab-btn:active { transform: none; }

/* Anchored top bar: fixed header across viewport */
.topbar-wrap {
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 600;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar {
  max-width: none;
  border: none;
  border-radius: 0 !important;
  box-shadow: none;
  padding: 10px 18px;
}

.topbar-action {
  background: #0B5D2E;
  border-radius: 0 !important;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13.5px;
  letter-spacing: 0;
}

.topbar-icon-btn, .topbar-avatar { width: 42px; height: 42px; }

/* Panel headers: clear hierarchy, no clipping */
.panel-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 2px 0;
  min-width: 0;
}

.panel-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.panel-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Section labels (table heads) */
.dash-panel .section-label {
  font-size: 11px;
  letter-spacing: 0.07em;
}

/* Stats: bigger, steadier numerals */
.stat-card { padding: 16px 12px; border-radius: 14px; }
.stat-label {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}
.stat-value { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; white-space: nowrap; }
.stat-value.green { color: #0B5D2E; }
.stat-unit { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: 0; }

.stat-card--billrun {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
}
.stat-card--billrun .stat-label { min-height: 0; }
.stat-card--billrun .stat-value { font-size: 14px; font-weight: 800; margin-top: 0; }

/* Driver header: identity card, rigid, no clipping */
.driver-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(16, 19, 24, 0.03);
  min-width: 0;
}

.driver-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.driver-head-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.driver-eyebrow { display: flex; align-items: center; gap: 8px; min-width: 0; }

.driver-eyebrow-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  white-space: nowrap;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  white-space: nowrap;
}

.verify-badge svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  flex: none;
}

.verify-badge.pending { color: #8A5A00; }

/* Profile photos: circular, cover, no distortion */
.driver-avatar img,
.topbar-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Settings: profile photo upload row */
.profile-photo-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.profile-photo-preview {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 19, 24, 0.03);
  border: 1px solid var(--line);
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-head-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.driver-head-rate { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

.driver-head-toggle { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }

/* Identity card rendered inside the avatar dropdown: no card chrome, just a header row */
.topbar-popover .driver-card-head {
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 2px 0 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.online-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.online-status.online { color: var(--accent-deep); background: rgba(11, 93, 46, 0.09); }
.online-status.offline { color: var(--ink-3); background: rgba(64, 74, 90, 0.09); }
.online-status.pending { color: #8A5A00; background: rgba(201, 139, 0, 0.12); }

/* Search bar revealed under the topbar */
.topbar-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(16, 19, 24, 0.03);
}

.topbar-searchbar svg { width: 16px; height: 16px; stroke: var(--ink-3); flex: none; }

.topbar-searchbar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.topbar-searchbar input::placeholder { color: var(--ink-3); }

/* Board empty states: identical card treatment to the identity card above */
#job-board-list .empty-state { box-shadow: 0 1px 2px rgba(16, 19, 24, 0.03); }

/* Job board: clean, centered presentation */
#view-board .panel-head { align-items: center; text-align: center; }
#view-board .panel-title { font-size: 21px; }

.job-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  font-size: 13.5px;
}

.job-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.job-meta {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.job-notes {
  text-align: center;
  font-size: 12px;
  color: var(--amber);
  font-style: italic;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.job-card .route-line {
  justify-content: center;
}

.job-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0 2px;
}

.job-card-footer .fare-num {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.job-card-footer .btn {
  width: 100%;
  min-height: 46px;
  font-size: 14.5px;
}

/* Earnings page: clean, centered presentation */
#view-runs .panel-head { align-items: center; text-align: center; }
#view-runs .panel-title { font-size: 21px; }

#view-runs .stat-card { text-align: center; }
#view-runs .stat-card--billrun { text-align: left; }

#view-runs .section-label { text-align: center; }

.run-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  font-size: 13.5px;
}

.run-card .route-line { justify-content: center; }

.run-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding: 12px 0 2px;
}

.run-card-footer .fare-num { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }

/* Rate input: $ prefix + /km suffix */
.rate-prefix, .rate-suffix {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.rate-prefix { margin-right: 2px; }
.rate-suffix { margin-left: 2px; }

/* Cards: quiet depth, established feel */
.card { box-shadow: 0 1px 2px rgba(16, 19, 24, 0.03); }
#rides-list .card, #recent-activity-list .card { padding: 14px 16px; }

/* Never clip route / passenger text */
.route-line .stop { font-size: 14px; }
.route-line .stop span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.route-line .stop-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.route-line .stop-caption { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.route-line .stop.start .stop-caption { color: var(--accent-deep); }
.row-between, .row-between > * { min-width: 0; }
#rides-list .card .small, #recent-activity-list .card .small { overflow-wrap: anywhere; word-break: break-word; }
#recent-activity-list .card > div { min-width: 0; }
#recent-activity-list .card > div:first-child > div { overflow-wrap: anywhere; word-break: break-word; }
.fare-num { white-space: nowrap; }

/* Chips: slightly larger, never clipped */
.chip { font-size: 10.5px; letter-spacing: 0.06em; }

/* Invoices table: rigid grid, period text wraps instead of cutting */
#invoices-list-container > div { min-width: 0; }
#invoices-list-container > div > div:first-child { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
#invoices-list-container [style*="grid-template-columns"] { gap: 8px; }
#view-invoices [style*="grid-template-columns"] > * { min-width: 0; }

/* Map instructions pill: never clips on narrow screens */
.ride-instructions {
  white-space: normal;
  max-width: min(92%, 460px);
  text-align: center;
  line-height: 1.4;
  padding: 10px 16px;
}

/* Calmer popover entrance */
.topbar-popover.open { animation: popIn 0.14s ease-out; }

/* Bookings footer row: driver line wraps, fare stays put */
#rides-list .row-between { flex-wrap: wrap; row-gap: 4px; }

/* Inputs: consistent height across the sheet */
.sheet-input { min-height: 52px; }

/* Tag chips: roomier */
.tag-chip { padding: 8px 13px; font-size: 12.5px; }

/* Fare box: steady expansion */
.fare-box { transition: max-height 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease; }
.fare-box.open { max-height: 150px; }

/* Ride stage: fills viewport below the new anchored bar on mobile */
@media (max-width: 859px) {
  .ride-stage { min-height: max(520px, calc(100dvh - 64px)); }
}

/* Desktop: keep the anchored bar flush */
@media (min-width: 768px) {
  .topbar-wrap { padding: 0; }
  .topbar { padding: 10px 18px; }
}

/* Immersive app views: marketing chrome never paints, never flashes.
   The class is set on <html> by an inline script in index.html before
   first paint, based on session + route. */
html.immersed .site-header,
html.immersed .site-footer {
  display: none !important;
}

/* ═══════════════════════════════════════════════
   ROLE CARDS: selectable account type tiles
   ═══════════════════════════════════════════════ */
.role-cards {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.role-cards legend { margin-bottom: 1px; }

.role-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 14px 13px;
  background: #FBFCFD;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #EEF0F4;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.role-card-icon svg { width: 21px; height: 21px; stroke: currentColor; }

.role-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.role-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.role-card-desc {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.4;
}

.role-card-check {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #FFFFFF;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.role-card-check svg { width: 11px; height: 11px; stroke: currentColor; }

.role-card:hover { border-color: #AEB8C4; }

.role-card:has(input:checked),
.role-card.is-selected {
  border-color: #0B5D2E;
  background: #EEF7F1;
  box-shadow: 0 0 0 3px rgba(11, 93, 46, 0.1);
}

.role-card:has(input:checked) .role-card-icon,
.role-card.is-selected .role-card-icon {
  background: #0B5D2E;
  color: #FFFFFF;
}

.role-card:has(input:checked) .role-card-check,
.role-card.is-selected .role-card-check {
  background: #0B5D2E;
  border-color: #0B5D2E;
  color: #FFFFFF;
}

.role-card:has(input:checked) .role-card-desc,
.role-card.is-selected .role-card-desc { color: var(--ink-2); }

@media (max-width: 360px) {
  .role-cards-grid { grid-template-columns: 1fr; }
  .role-card { flex-direction: row; align-items: center; }
}


/* Shown in place of the map if Google Maps can't load */
.map-unavailable {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--ink-3, #6B7280);
  font-size: 14px;
  line-height: 1.5;
}

.map-unavailable svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
}

/* ================================================================
   Svikai home: one full-bleed screen. The photo runs edge to edge,
   a slim bar sits over it, the words sit on its darker side.
   One radius (0), one button height (48px), medium weights only.
   ================================================================ */
.sv {
  --sv-ink: #0D1210;
  --sv-display: 'Inter Tight', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --sv-text: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --sv-gutter: 20px;
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sv-ink);
  color: #fff;
  font-family: var(--sv-text);
}

.sv-photo, .sv-shade { position: absolute; inset: 0; }
.sv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; display: block; animation: sv-settle 2.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes sv-settle { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
/* Phones: a shade at the top for the bar and a deep one at the bottom for the words. */
.sv-shade { background:
  linear-gradient(180deg, rgba(13, 18, 16, 0.55) 0%, rgba(13, 18, 16, 0) 18%),
  linear-gradient(180deg, rgba(13, 18, 16, 0) 38%, rgba(13, 18, 16, 0.55) 58%, rgba(13, 18, 16, 0.94) 86%); }

.sv-bar { position: relative; z-index: 2; height: 64px; padding: 0 var(--sv-gutter); display: flex; align-items: center; justify-content: space-between; max-width: 1280px; width: 100%; margin: 0 auto; }
.sv-wordmark { font-family: var(--sv-display); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: #fff; text-decoration: none; }
.sv-nav { display: flex; align-items: center; gap: 2px; }
.sv-nav-link { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.78); text-decoration: none; padding: 8px 12px; transition: color 200ms ease; }
.sv-nav-link:hover { color: #fff; }
.sv-nav-button { margin-left: 10px; height: 40px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 14px; font-weight: 500; color: var(--sv-ink); background: #fff; text-decoration: none; transition: background-color 200ms ease; }
.sv-nav-button:hover { background: #E8ECE9; }

.sv-hero { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--sv-gutter) 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.sv-hero h1 { font-family: var(--sv-display); font-size: clamp(44px, 12vw, 84px); font-weight: 500; line-height: 1; letter-spacing: -0.035em; margin: 0; color: #fff; }
.sv-hero h1 span { display: block; }
.sv-hero h1 .sv-rise-2 { color: rgba(255, 255, 255, 0.62); }
.sv-hero p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); margin: 22px 0 0; max-width: 26em; }
.sv-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.sv-button { height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; background: #fff; color: var(--sv-ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color 200ms ease; }
.sv-button:hover { background: #E8ECE9; }
.sv-arrow { display: inline-flex; width: 18px; height: 18px; transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.sv-arrow svg { width: 18px; height: 18px; }
.sv-button:hover .sv-arrow { transform: translateX(4px); }
.sv-link { font-size: 15px; font-weight: 500; color: #fff; text-decoration: none; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; opacity: 0.9; transition: opacity 200ms ease; }
.sv-link:hover { opacity: 1; }


/* Words rise in gently, one after another. */
.sv-rise { animation: sv-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 300ms both; }
.sv-rise-2 { animation-delay: 420ms; }
.sv-rise-3 { animation-delay: 560ms; }
.sv-rise-4 { animation-delay: 680ms; }

@keyframes sv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) { .sv-hide-sm { display: none; } }
@media (min-width: 768px) {
  .sv { --sv-gutter: 48px; }
  .sv-bar { height: 76px; }
  .sv-photo img { object-position: 72% 40%; }
  /* Desktop: the words sit on the left, where the photo is darkest. */
  .sv-shade { background:
    linear-gradient(180deg, rgba(13, 18, 16, 0.5) 0%, rgba(13, 18, 16, 0) 16%),
    linear-gradient(90deg, rgba(13, 18, 16, 0.9) 0%, rgba(13, 18, 16, 0.66) 36%, rgba(13, 18, 16, 0) 64%); }
  .sv-hero { justify-content: center; padding-bottom: 0; }
  .sv-hero p { font-size: 18px; max-width: 24em; }

}
@media (prefers-reduced-motion: reduce) {
  .sv-photo img, .sv-rise { animation: none; }
}

/* ================================================================
   Svikai sign in / sign up: matches the homepage. A photo half on
   desktop, the form on white beside it; the form alone on phones.
   Ink #0D1210, white, Inter Tight + Inter, square corners, 48px.
   ================================================================ */
.auth-shell.auth-v2.sva {
  --sva-ink: #0D1210;
  --sva-line: #D9DDDA;
  --sva-muted: #5E6762;
  min-height: 100svh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #fff;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  color: var(--sva-ink);
}
.sva-aside { display: none; }
.sva-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 28px 20px 48px; }
.sva .auth-inner { width: 100%; max-width: 400px; gap: 0; }

.sva .auth-card { background: none; border: 0; box-shadow: none; padding: 0; gap: 18px; animation: sva-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes sva-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sva .auth-brand { display: block; align-self: flex-start; padding: 0 0 28px; text-decoration: none; }
.sva .auth-brand-name { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--sva-ink); }
.sva .auth-title { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 32px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--sva-ink); margin: 0 0 8px; }
.sva .auth-sub { font-size: 15px; line-height: 1.55; color: var(--sva-muted); }
.sva .auth-form { gap: 16px; }

.sva .form-label { font-size: 13px; font-weight: 500; color: var(--sva-ink); letter-spacing: 0; text-transform: none; margin-bottom: 6px; }
.sva .input { height: 48px; padding: 0 14px; font-size: 15px; font-family: inherit; color: var(--sva-ink); background: #fff; border: 1px solid var(--sva-line); box-shadow: none; transition: border-color 160ms ease; }
.sva .input[type="file"] { height: auto; padding: 12px 14px; font-size: 14px; }
.sva .input::placeholder { color: #9AA29E; }
.sva .input:focus { outline: none; border-color: var(--sva-ink); box-shadow: 0 0 0 1px var(--sva-ink); }
.sva .input.code-input { letter-spacing: 0.4em; font-size: 20px; text-align: left; }

.sva .btn-primary { height: 48px; min-height: 48px; width: 100%; background: var(--sva-ink); color: #fff; font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0; box-shadow: none; transition: background-color 200ms ease; }
.sva .btn-primary:hover { background: #26302B; }
.sva .btn-primary:disabled { background: var(--sva-ink); opacity: 0.5; }

.sva .auth-row { font-size: 14px; }
.sva .link-btn { color: var(--sva-ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(13, 18, 16, 0.3); }
.sva .link-btn:hover { text-decoration-color: var(--sva-ink); }
.sva .link-btn.quiet { color: var(--sva-muted); }
.sva .check { font-size: 14px; color: var(--sva-ink); font-weight: 400; }
.sva .check input[type="checkbox"] { accent-color: var(--sva-ink); border-radius: 0; }
.sva .terms-check { font-size: 13.5px; color: var(--sva-muted); line-height: 1.5; }

.sva .divider { border: 0; margin: 4px 0; }
.sva .divider-label { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--sva-muted); }
.sva .divider::before, .sva .divider::after { background: var(--sva-line); }
.sva .social-row { gap: 10px; }
.sva .social-btn { height: 48px; background: #fff; border: 1px solid var(--sva-line); color: var(--sva-ink); font-family: inherit; font-size: 14px; font-weight: 500; box-shadow: none; transition: border-color 160ms ease; }
.sva .social-btn:hover { border-color: var(--sva-ink); background: #fff; }

.sva .auth-switch { font-size: 14px; color: var(--sva-muted); text-align: left; border: 0; padding: 0; margin-top: 6px; }
.sva .auth-link { color: var(--sva-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.sva .form-error { border-radius: 0; font-size: 14px; }

/* Role: a plain two-option switch. */
.sva .role-cards { gap: 0; border: 0; padding: 0; margin: 0; }
.sva .role-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--sva-line); }
.sva .role-card { flex-direction: row; align-items: center; justify-content: center; gap: 0; height: 48px; padding: 0 10px; background: #fff; border: 0; box-shadow: none; text-align: center; }
.sva .role-card + .role-card { border-left: 1px solid var(--sva-line); }
.sva .role-card-title { font-size: 14px; font-weight: 500; color: var(--sva-muted); }
.sva .role-card:hover { background: #F4F6F5; }
.sva .role-card:has(input:checked), .sva .role-card.is-selected { background: var(--sva-ink); box-shadow: none; }
.sva .role-card:has(input:checked) .role-card-title, .sva .role-card.is-selected .role-card-title { color: #fff; }
.sva .role-card:has(input:focus-visible) { outline: 2px solid var(--sva-ink); outline-offset: 2px; }

@media (min-width: 960px) {
  .sva-aside { display: block; position: relative; flex: 0 0 46%; overflow: hidden; background: var(--sva-ink); }
  .sva-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: sv-settle 2.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .sva-aside-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 18, 16, 0.45) 0%, rgba(13, 18, 16, 0) 22%, rgba(13, 18, 16, 0) 60%, rgba(13, 18, 16, 0.75) 100%); }
  .sva-aside-mark { position: absolute; top: 26px; left: 48px; font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: #fff; text-decoration: none; }
  .sva-aside-line { position: absolute; left: 48px; bottom: 44px; margin: 0; font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 36px; font-weight: 500; letter-spacing: -0.03em; color: #fff; }
  .sva-main { align-items: center; padding: 48px 64px; }
  .sva .auth-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sva .auth-card, .sva-aside img { animation: none; }
}
.sva #su-role-fields, .sva #pf-role-fields { display: flex; flex-direction: column; gap: 16px; }
.sva #su-role-fields:empty, .sva #pf-role-fields:empty { display: none; }
.sva .input[type="file"]::file-selector-button { height: 32px; margin-right: 12px; padding: 0 12px; border: 1px solid var(--sva-line); background: #F4F6F5; color: var(--sva-ink); font: 500 13px 'Inter', sans-serif; cursor: pointer; }
.sva .input[type="file"]::file-selector-button:hover { border-color: var(--sva-ink); }

/* ---- Softer, less boxy forms (overrides the square style above) ----
   Filled fields instead of outlined boxes; one 10px radius shared by
   fields, buttons and the switch, here and on the homepage. The global
   square-corner rule uses !important, so these must too. */
.sva .input { background: #F2F4F3; border: 1px solid transparent; border-radius: 10px !important; transition: background-color 160ms ease, border-color 160ms ease; }
.sva .input:hover { background: #ECEFED; }
.sva .input:focus { background: #fff; border-color: var(--sva-ink); box-shadow: 0 0 0 3px rgba(13, 18, 16, 0.08); }
.sva .input[type="file"] { background: #F2F4F3; border: 1px dashed #C9CFCB; }
.sva .input[type="file"]::file-selector-button { border-radius: 7px !important; background: #fff; border: 1px solid #D5DAD7; }
.sva .btn-primary, .sva .social-btn { border-radius: 10px !important; }
.sva .social-btn { border-color: #E2E6E3; }
.sva .form-error { border-radius: 10px !important; }
.sva .form-hint { display: block; font-size: 12.5px; line-height: 1.5; color: var(--sva-muted); margin: 6px 0 0; }
.sva p.form-hint { margin: 0; }

/* "I am": a soft switch, a white thumb on a light grey track. */
.sva .role-cards-grid { background: #F2F4F3; border: 0; padding: 4px; gap: 4px; border-radius: 12px !important; }
.sva .role-card { height: 42px; background: transparent; border-radius: 9px !important; transition: background-color 180ms ease, box-shadow 180ms ease; }
.sva .role-card + .role-card { border-left: 0; }
.sva .role-card:hover { background: rgba(255, 255, 255, 0.55); }
.sva .role-card:has(input:checked), .sva .role-card.is-selected { background: #fff; box-shadow: 0 1px 2px rgba(13, 18, 16, 0.08), 0 2px 8px rgba(13, 18, 16, 0.06); }
.sva .role-card:has(input:checked) .role-card-title, .sva .role-card.is-selected .role-card-title { color: var(--sva-ink); }

/* Homepage buttons share the same radius. */
.sv .sv-button, .sv .sv-nav-button { border-radius: 10px !important; }

/* ================================================================
   Svikai legal pages: Terms of Service and Privacy Policy.
   Same ink, white and fonts as the rest; a calm reading column.
   ================================================================ */
.lg { --lg-ink: #0D1210; --lg-muted: #5E6762; --lg-line: #E4E8E5; min-height: 100svh; background: #fff; color: var(--lg-ink); font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; }
.lg-bar { position: sticky; top: 0; z-index: 5; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; max-width: 1180px; margin: 0 auto; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(10px); }
.lg-wordmark { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--lg-ink); text-decoration: none; }
.lg-bar-nav { display: flex; gap: 4px; }
.lg-bar-nav a { font-size: 14px; font-weight: 500; color: var(--lg-muted); text-decoration: none; padding: 8px 10px; }
.lg-bar-nav a:hover { color: var(--lg-ink); }

.lg-wrap { max-width: 1180px; margin: 0 auto; padding: 32px 20px 72px; }
.lg-head { max-width: 720px; padding-bottom: 32px; border-bottom: 1px solid var(--lg-line); }
.lg-head h1 { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: clamp(36px, 8vw, 56px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.lg-updated { font-size: 14px; color: var(--lg-muted); margin: 14px 0 0; }
.lg-intro { font-size: 17px; line-height: 1.65; color: var(--lg-ink); margin: 20px 0 0; }

.lg-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
.lg-toc p { font-size: 13px; font-weight: 600; color: var(--lg-ink); margin: 0 0 12px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lg-toc a { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--lg-muted); text-decoration: none; padding: 6px 0; }
.lg-toc a span { min-width: 24px; flex-shrink: 0; color: #9AA29E; font-variant-numeric: tabular-nums; }
.lg-toc a:hover { color: var(--lg-ink); }

.lg-body { max-width: 720px; }
.lg-section { padding: 8px 0 28px; scroll-margin-top: 80px; }
.lg-section + .lg-section { border-top: 1px solid var(--lg-line); padding-top: 32px; }
.lg-section h2 { display: flex; gap: 12px; font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 14px; }
.lg-section h2 span { color: #9AA29E; font-variant-numeric: tabular-nums; }
.lg-section h3 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; }
.lg-section p, .lg-section li { font-size: 16px; line-height: 1.7; color: #2B322E; }
.lg-section p { margin: 0 0 14px; }
.lg-section ul { margin: 0 0 14px; padding-left: 20px; }
.lg-section li { margin: 0 0 8px; padding-left: 4px; }
.lg-section li::marker { color: #9AA29E; }
.lg-section strong { font-weight: 600; color: var(--lg-ink); }
.lg-section a { color: var(--lg-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(13, 18, 16, 0.3); }
.lg-section a:hover { text-decoration-color: var(--lg-ink); }

.lg-foot { max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--lg-line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--lg-muted); }
.lg-foot a { color: var(--lg-muted); text-decoration: none; }
.lg-foot a:hover { color: var(--lg-ink); }

@media (min-width: 960px) {
  .lg-bar, .lg-wrap, .lg-foot { padding-left: 48px; padding-right: 48px; }
  .lg-bar { height: 72px; }
  .lg-wrap { padding-top: 56px; }
  .lg-grid { grid-template-columns: 240px 1fr; gap: 72px; padding-top: 48px; }
  .lg-toc { position: sticky; top: 96px; align-self: start; }
}

/* Links inside the sign-up terms line. */
.sva .terms-check a { color: var(--sva-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================
   Svikai app shell: corporate dashboard (.svd).
   Ink and white, Inter Tight + Inter, soft 10-14px radii.
   Phones: top bar, map, booking sheet, bottom tabs.
   Desktop: a left sidebar, the map filling the screen, and the
   booking form as a floating card over it.
   ================================================================ */
.svd { --svd-ink: #0D1210; --svd-muted: #5E6762; --svd-faint: #9AA29E; --svd-line: #E6E9E7; --svd-fill: #F2F4F3; --nav-h: 64px; background: #fff; font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; color: var(--svd-ink); }
.svd * { font-family: inherit; }
.svd .panel-title, .svd .sheet-title, .svd-wordmark, .svd-side-brand { font-family: 'Inter Tight', 'Inter', sans-serif; }

/* Top bar: wordmark left, the page action and account right. */
.svd .topbar-wrap { padding: 10px 12px 8px; background: transparent; }
.svd .topbar { max-width: none; border-radius: 14px !important; border: 1px solid var(--svd-line); box-shadow: 0 6px 24px rgba(13, 18, 16, 0.08); padding: 6px 6px 6px 16px; gap: 8px; background: #fff; }
.svd-wordmark { order: -1; margin-right: auto; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--svd-ink); text-decoration: none; }
.svd .topbar-action { background: var(--svd-fill); color: var(--svd-ink); border: 0; border-radius: 10px !important; height: 38px; padding: 0 14px; font-size: 13.5px; font-weight: 500; box-shadow: none; }
.svd .topbar-action:hover { background: #E8EBE9; }
.svd .topbar-actions { gap: 4px; }
.svd #topbar-search { display: none; }
.svd .topbar-icon-btn { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 10px !important; color: var(--svd-ink); }
.svd .topbar-icon-btn:hover { background: var(--svd-fill); border: 0; }
.svd .bell-dot { background: var(--svd-ink); border-color: #fff; }
.svd .topbar-avatar { width: 38px; height: 38px; border-radius: 50% !important; background: var(--svd-ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: none; }
.svd .topbar-popover { border-radius: 14px !important; border: 1px solid var(--svd-line); box-shadow: 0 16px 40px rgba(13, 18, 16, 0.14); }

/* Bottom tabs on phones. */
.svd .mobile-bottom-nav { border-top: 1px solid var(--svd-line); background: #fff; }
.svd-side-brand { display: none; }
.svd .nav-tab-btn { color: var(--svd-faint); font-size: 11.5px; font-weight: 500; background: none; }
.svd .nav-tab-btn svg { width: 21px; height: 21px; stroke-width: 1.8; }
.svd .nav-tab-btn.active-tab, .svd .nav-tab-btn.active-tab:hover { color: var(--svd-ink); background: none; box-shadow: none; }
.svd .nav-tab-btn.active-tab::before, .svd .nav-tab-btn.active-tab::after { display: none; }

/* Map overlay pill. */
.svd .ride-instructions { border-radius: 999px !important; font-size: 13px; font-weight: 500; padding: 9px 16px; box-shadow: 0 6px 20px rgba(13, 18, 16, 0.18); }
.svd .ride-instructions.state-pickup, .svd .ride-instructions.state-drop { background: rgba(13, 18, 16, 0.9); color: #fff; }
.svd .ride-instructions.state-pickup svg, .svd .ride-instructions.state-drop svg { color: #fff; }
.svd .ride-instructions.state-done { background: #fff; color: var(--svd-ink); }
.svd .ride-instructions.state-done svg { color: var(--svd-ink); }

/* The booking sheet / card. */
.svd .ride-card { border-radius: 18px 18px 0 0 !important; border-top: 0; box-shadow: 0 -8px 30px rgba(13, 18, 16, 0.12); }
.svd .sheet-handle .handle-bar { background: #D5DAD7; border-radius: 3px !important; }
.svd .sheet-peek-status, .svd .sheet-peek-label { font-weight: 500; color: var(--svd-ink); }
.svd .sheet-peek-pin svg { stroke: var(--svd-ink); }
.svd .sheet-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--svd-ink); }
.svd .sheet-minimize-btn { border-radius: 8px !important; font-weight: 500; }

.svd .field .pin { color: var(--svd-ink); width: 18px; height: 18px; }
.svd .field .pin.pin-flag { color: var(--svd-muted); }
.svd .sheet-input { min-height: 48px; background: var(--svd-fill); border: 1px solid transparent; border-radius: 10px !important; font-size: 15px; color: var(--svd-ink); }
.svd .sheet-input:hover { background: #ECEFED; }
.svd .sheet-input:focus { background: #fff; border-color: var(--svd-ink); box-shadow: 0 0 0 3px rgba(13, 18, 16, 0.08); }
.svd .sheet-input::placeholder { color: var(--svd-faint); }
.svd .svd-field .sheet-input { padding: 0 14px; }

.svd .chip-gps, .svd .tag-chip { height: 32px; padding: 0 12px; border-radius: 999px !important; font-size: 13px; font-weight: 500; background: #fff; color: var(--svd-ink); border: 1px solid var(--svd-line); gap: 6px; }
.svd .chip-gps:hover, .svd .tag-chip:hover { border-color: var(--svd-ink); background: #fff; }
.svd .chip-gps .gps-ic { background: none; color: var(--svd-ink); width: auto; height: auto; }
.svd .chip-gps .gps-ic svg { width: 15px; height: 15px; stroke: currentColor; }
.svd .reset-link { color: var(--svd-muted); font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; }

.svd .segmented-sheet { background: var(--svd-fill); border: 0; padding: 4px; border-radius: 12px !important; gap: 4px; }
.svd .segmented-sheet .seg-btn { height: 40px; border-radius: 9px !important; background: transparent; color: var(--svd-muted); font-size: 14px; font-weight: 500; box-shadow: none; }
.svd .segmented-sheet .seg-btn.active { background: #fff; color: var(--svd-ink); box-shadow: 0 1px 2px rgba(13, 18, 16, 0.08), 0 2px 8px rgba(13, 18, 16, 0.06); }

.svd-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.svd-field { display: flex; flex-direction: column; gap: 6px; }
.svd-field > span { font-size: 13px; font-weight: 500; color: var(--svd-ink); }

.svd .fare-box { background: none; border: 0; border-top: 1px solid var(--svd-line); border-radius: 0 !important; padding: 0; }
.svd .fare-box.open { padding: 14px 0 2px; }
.svd-fare { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.svd-fare-label { font-size: 13px; font-weight: 500; color: var(--svd-ink); }
.svd-fare-meta { font-size: 12.5px; color: var(--svd-muted); margin-top: 3px; }
.svd-fare-amount { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--svd-ink); line-height: 1; }

.svd .btn, .svd #submit-booking-btn { min-height: 50px; height: 50px; border-radius: 12px !important; background: var(--svd-ink); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 0; box-shadow: none; text-transform: none; }
.svd .btn:hover { background: #26302B; }
.svd .btn-secondary { background: #fff; color: var(--svd-ink); border: 1px solid var(--svd-line); }
.svd .btn-secondary:hover { background: #fff; border-color: var(--svd-ink); }
.svd .btn-danger { background: #fff; color: #B42318; border: 1px solid #F1D4D1; }
.svd .btn-danger:hover { background: #FDF3F2; }
.svd .btn-sm { min-height: 40px; height: 40px; border-radius: 10px !important; font-size: 14px; }

/* Trips, billing and settings panels. */
.svd .panel-head { padding-top: 8px; }
.svd .panel-title { font-size: 28px; font-weight: 500; letter-spacing: -0.025em; color: var(--svd-ink); }
.svd .panel-sub { font-size: 14.5px; line-height: 1.55; color: var(--svd-muted); }
.svd .section-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--svd-ink); }
.svd .card { border: 1px solid var(--svd-line); border-radius: 14px !important; box-shadow: none; background: #fff; }
.svd .stat-card { text-align: left; padding: 16px; border-radius: 14px !important; }
.svd .stat-label { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--svd-muted); }
.svd .stat-value, .svd .stat-value.green { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--svd-ink); margin-top: 6px; }
.svd .stat-unit { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 400; color: var(--svd-muted); }
.svd .chip { border-radius: 999px !important; font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 4px 10px; }
.svd .chip-green { background: #EAF2EC; color: #1F5133; }
.svd .chip-amber { background: #FBF1DE; color: #7A4A0E; }
.svd .chip-grey { background: var(--svd-fill); color: var(--svd-muted); }

@media (min-width: 960px) {
  /* Full-width app with a left sidebar. */
  .svd.corporate-shell { max-width: none; border: 0; padding-left: 248px; }
  .svd .mobile-bottom-nav { top: 0; bottom: 0; right: auto; width: 248px; flex-direction: column; justify-content: flex-start; align-items: stretch; border-top: 0; border-right: 1px solid var(--svd-line); padding: 22px 14px; }
  .svd-side-brand { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--svd-ink); text-decoration: none; padding: 4px 12px 26px; }
  .svd .bottom-nav-inner { flex-direction: column; height: auto; padding: 0; gap: 2px; max-width: none; }
  .svd .nav-tab-btn { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; height: 44px; padding: 0 12px; font-size: 14.5px; color: var(--svd-muted); border-radius: 10px !important; }
  .svd .nav-tab-btn:hover { background: var(--svd-fill); color: var(--svd-ink); }
  .svd .nav-tab-btn.active-tab, .svd .nav-tab-btn.active-tab:hover { background: var(--svd-fill); color: var(--svd-ink); }
  .svd .app-scroll { padding: 0 40px 40px; }
  .svd .app-scroll.app-scroll--flush { padding: 0 32px 32px; }
  .svd .topbar-wrap { padding: 16px 0 12px; }
  .svd .topbar { box-shadow: none; border: 0; padding: 0; }
  .svd .svd-wordmark { visibility: hidden; }

  /* Booking: the map fills the area, the form floats over it on the left. */
  .svd .ride-root { margin: 0; }
  .svd .ride-stage { display: block !important; position: relative !important; height: calc(100dvh - 82px) !important; min-height: 560px !important; border-radius: 18px !important; overflow: hidden; }
  .svd .ride-map { position: absolute !important; inset: 0 !important; height: 100% !important; }
  .svd .ride-card { position: absolute !important; top: 16px !important; left: 16px !important; bottom: 16px !important; right: auto !important; width: 400px !important; height: auto !important; border-radius: 16px !important; border: 0 !important; box-shadow: 0 16px 48px rgba(13, 18, 16, 0.18) !important; }
  .svd .sheet-content { padding: 22px 22px 22px !important; }
  .svd .ride-instructions { left: calc(50% + 208px); }
  .svd .dash-panel:not(#view-request) { max-width: 980px; padding-top: 4px; }
}

/* Svikai app shell: fixes after the first screenshots. */
.svd .topbar-wrap { border-bottom: 0; }
.svd .nav-tab-btn.active-tab { border-bottom: 0; font-weight: 600; }
.svd .field .pin svg { width: 100%; height: 100%; stroke: currentColor; display: block; }
.svd .field .sheet-input { padding-left: 42px; }
.svd .sheet-peek-label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--svd-muted); }
.svd .sheet-peek-label + svg, .svd .sheet-peek-right svg { stroke: var(--svd-muted); }
.svd .sheet-minimize-btn { border: 0; background: var(--svd-fill); color: var(--svd-ink); height: 32px; padding: 0 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.svd .sheet-minimize-btn svg { stroke: currentColor; }

@media (min-width: 960px) {
  .svd .svd-wordmark { display: none; }
  .svd .topbar { justify-content: flex-end; gap: 8px; }
  .svd .topbar-action { margin-left: 0; margin-right: auto; }
  .svd .ride-card { bottom: auto !important; max-height: calc(100% - 32px) !important; overflow-y: auto; }
}
.svd #view-request.dash-panel[style*="none"] { display: none !important; }
.svd .topbar-actions { margin: 0 0 0 auto; }

/* Svikai app shell: trips and billing content. */
.svd .stat-card, .svd .stat-card > * { text-align: left; }
.svd .stat-card--billrun .stat-value { font-size: 20px; }
.svd .fare-num { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 500; font-size: 20px; color: var(--svd-ink); }
.svd #rides-list .card { padding: 18px; gap: 12px !important; }
.svd .route-line { position: relative; gap: 10px; }
.svd .route-line .stop { font-size: 14.5px; font-weight: 500; gap: 12px; align-items: center; }
.svd .route-line .stop svg { display: none; }
.svd .route-line .stop::before { content: ''; width: 8px; height: 8px; flex-shrink: 0; background: var(--svd-ink); border-radius: 50% !important; }
.svd .route-line .stop.end::before { background: #fff; border: 2px solid var(--svd-ink); border-radius: 2px !important; width: 6px; height: 6px; }
.svd .svd-note { font-size: 13px; color: var(--svd-muted); background: var(--svd-fill); border-radius: 8px !important; padding: 8px 10px; }
.svd .svd-avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50% !important; background: var(--svd-fill); color: var(--svd-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; object-fit: cover; }
.svd .chip { font-size: 12px; }
.svd .svd-inv-head { background: #fff; }
.svd .svd-inv-head .section-label { font-size: 12.5px; color: var(--svd-muted); font-weight: 500; }
.svd .svd-inv-row:last-child { border-bottom: 0 !important; }
.svd .svd-inv-row .fare-num { font-size: 15px !important; }
.svd .svd-pdf { height: 32px; padding: 0 12px; border: 1px solid var(--svd-line); border-radius: 8px !important; background: #fff; color: var(--svd-ink); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.svd .svd-pdf:hover { border-color: var(--svd-ink); }
.svd #recent-activity-list .card { padding: 14px 16px; }
@media (max-width: 520px) {
  .svd .stats-row { grid-template-columns: 1fr 1fr; }
  .svd .stats-row .stat-card:last-child { grid-column: 1 / -1; }
}
.svd { --line: #E6E9E7; --line-strong: #D5DAD7; }
.svd .stat-card { align-items: flex-start; justify-content: flex-start; }
.svd .stat-card--billrun { flex-direction: row; align-items: center; justify-content: space-between; }
.svd .route-line .stop::before { width: 10px; height: 10px; box-sizing: border-box; }
.svd .route-line .stop.end::before { width: 10px; height: 10px; }
.svd .stat-label { justify-content: flex-start; min-height: 0; }

/* Svikai app shell: native-feeling tab bar and a lighter booking sheet on phones. */
@media (max-width: 959px) {
  .svd .mobile-bottom-nav { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0.5px solid rgba(13, 18, 16, 0.12); }
  .svd .bottom-nav-inner { padding: 6px 8px 2px; gap: 0; }
  .svd .nav-tab-btn { gap: 4px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.01em; color: #8A928E; -webkit-tap-highlight-color: transparent; }
  .svd .nav-tab-btn.active-tab { font-weight: 600; }
  .svd .nav-tab-btn:active svg { transform: scale(0.9); }
  .svd .nav-tab-btn svg { transition: transform 0.12s ease; }

  /* The handle alone opens and closes the sheet; the route line only shows while collapsed. */
  .svd .sheet-minimize-btn { display: none !important; }
  .svd .sheet-handle { padding: 8px 18px 6px; }
  .svd .ride-card.expanded .sheet-peek-row { display: none; }
  .svd .ride-card:not(.expanded) .sheet-handle { padding-bottom: 12px; }
  .svd .sheet-peek-right .sheet-peek-label { display: none; }
}

.svd .svd-ic { width: 24px !important; height: 24px !important; stroke: currentColor; }
.svd .nav-tab-btn.active-tab .svd-ic .f { fill: currentColor; }
.svd .nav-tab-btn.active-tab .svd-ic .cut { stroke: #fff; }
@media (min-width: 960px) {
  .svd .svd-ic { width: 20px !important; height: 20px !important; }
  .svd .nav-tab-btn.active-tab .svd-ic .cut { stroke: var(--svd-fill); }
}
@media (max-width: 959px) {
  /* Map fills exactly the space between the top bar and the tab bar, so the sheet sits on the tabs. */
  .svd .ride-stage { min-height: 0 !important; height: calc(100dvh - 86px - var(--nav-h) - env(safe-area-inset-bottom)); }
  .svd .ride-card { max-height: calc(100% - 24px); }
}

/* Svikai app shell: picking pickup and drop-off. */
.svd .sheet-header-row .reset-link { text-decoration: none; background: var(--svd-fill); color: var(--svd-ink); height: 30px; padding: 0 12px; border-radius: 999px !important; display: inline-flex; align-items: center; font-size: 13px; }

/* Route card: dot, line, square beside the two fields, swap on the right. */
.svd-route { display: grid; grid-template-columns: 14px 1fr 36px; gap: 10px; align-items: center; }
.svd-route-rail { display: flex; flex-direction: column; align-items: center; height: 74px; }
.svd-rail-dot { width: 9px; height: 9px; background: var(--svd-ink); border-radius: 50% !important; flex-shrink: 0; }
.svd-rail-line { flex: 1; width: 1.5px; background: #C9CFCB; margin: 5px 0; }
.svd-rail-sq { width: 9px; height: 9px; background: var(--svd-ink); flex-shrink: 0; }
.svd-route-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.svd .svd-loc .sheet-input { padding: 0 40px 0 14px; font-size: 15.5px; }
.svd-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: transparent; color: var(--svd-muted); display: inline-flex; align-items: center; justify-content: center; border-radius: 50% !important; cursor: pointer; }
.svd-clear svg { width: 16px; height: 16px; stroke: currentColor; }
.svd-clear:hover { background: #E3E7E4; color: var(--svd-ink); }
.svd-clear[hidden] { display: none; }
.svd-swap { width: 36px; height: 36px; border: 1px solid var(--svd-line); background: #fff; color: var(--svd-ink); border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.svd-swap svg { width: 17px; height: 17px; stroke: currentColor; }
.svd-swap:hover { border-color: var(--svd-ink); }

/* Suggestions: while open they take over the form so the choice is the only thing on screen. */
.svd-suggest { display: none; margin: -2px -8px 0; }
.svd-suggest.open { display: block; }
.svd .sheet-content-inner:has(.svd-suggest.open) > :not(.sheet-header-row):not(.svd-route):not(.svd-suggest) { display: none !important; }
.svd-sg { display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 8px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 10px !important; color: var(--svd-ink); }
.svd-sg:hover, .svd-sg:focus-visible { background: var(--svd-fill); outline: none; }
.svd-sg-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50% !important; background: var(--svd-fill); display: inline-flex; align-items: center; justify-content: center; }
.svd-sg:hover .svd-sg-ic { background: #fff; }
.svd-sg-ic svg { width: 17px; height: 17px; stroke: currentColor; }
.svd-sg-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svd-sg-title { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svd-sg-sub { font-size: 12.5px; color: var(--svd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svd-sg-head { font-size: 12.5px; font-weight: 600; color: var(--svd-muted); padding: 14px 8px 4px; }
.svd-sg-empty { font-size: 13.5px; color: var(--svd-muted); padding: 10px 8px 4px; }

/* Choose on map: fixed centre pin and a confirm bar. */
.svd-centre-pin { display: none; position: absolute; left: 50%; top: 50%; width: 40px; height: 52px; transform: translate(-50%, -100%); z-index: 505; pointer-events: none; }
.svd-centre-pin svg { width: 40px; height: 52px; display: block; filter: drop-shadow(0 4px 8px rgba(13, 18, 16, 0.25)); }
.svd-centre-shadow { position: absolute; left: 50%; bottom: -4px; width: 10px; height: 4px; transform: translateX(-50%); background: rgba(13, 18, 16, 0.35); border-radius: 50% !important; }
.svd-pickbar { display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 520; background: #fff; padding: 18px 18px 16px; border-radius: 18px 18px 0 0 !important; box-shadow: 0 -8px 30px rgba(13, 18, 16, 0.12); }
.svd-pick-kicker { font-size: 12.5px; font-weight: 500; color: var(--svd-muted); }
.svd-pick-address { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--svd-ink); margin-top: 4px; min-height: 24px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svd-pick-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 16px; }
.svd .svd-pick-cancel { height: 50px; border: 0; background: var(--svd-fill); color: var(--svd-ink); border-radius: 12px !important; font-size: 15px; font-weight: 500; cursor: pointer; }
.svd #svd-pick-confirm:disabled { opacity: 0.45; cursor: default; }
.svd .ride-stage.svd-picking .svd-centre-pin, .svd .ride-stage.svd-picking .svd-pickbar { display: block; }
.svd .ride-stage.svd-picking .ride-card, .svd .ride-stage.svd-picking .ride-instructions { display: none !important; }

/* Locate button. */
.svd-locate { position: absolute; right: 12px; bottom: 76px; z-index: 506; width: 44px; height: 44px; border: 0; background: #fff; color: var(--svd-ink); border-radius: 50% !important; box-shadow: 0 4px 16px rgba(13, 18, 16, 0.16); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.svd-locate svg { width: 21px; height: 21px; stroke: currentColor; }
.svd-locate.busy svg { animation: svdSpin 1s linear infinite; }
@keyframes svdSpin { to { transform: rotate(360deg); } }
.svd .ride-stage.svd-picking .svd-locate { bottom: 172px; }
.svd .ride-stage:has(.ride-card.expanded) .svd-locate { display: none; }

/* Phones: the collapsed sheet reads as a search bar. */
@media (max-width: 959px) {
  .svd .ride-card:not(.expanded) .sheet-peek-left { flex: 1; height: 46px; padding: 0 14px; gap: 10px; background: var(--svd-fill); border-radius: 12px !important; }
  .svd .ride-card:not(.expanded) .sheet-peek-status { font-size: 16px; font-weight: 500; color: var(--svd-ink); }
  .svd .ride-card:not(.expanded) .sheet-peek-right { display: none; }
  .svd .ride-card:not(.expanded) .sheet-handle { padding: 8px 16px 14px; }
  .svd .sheet-header-row { padding-bottom: 2px; }
}

@media (min-width: 960px) {
  .svd-locate { right: 24px; bottom: 24px; }
  .svd .ride-stage:has(.ride-card.expanded) .svd-locate { display: inline-flex; }
  .svd .ride-stage.svd-picking .svd-locate { bottom: 24px; }
  .svd-pickbar { left: 50%; right: auto; bottom: 24px; width: 440px; transform: translateX(-50%); border-radius: 16px !important; box-shadow: 0 16px 48px rgba(13, 18, 16, 0.2); padding: 20px; }
}

/* Svikai: one clean loading circle everywhere (the global reset squares everything, so radius needs !important). */
.spinner { width: 26px; height: 26px; border: 2px solid #E6E9E7; border-top-color: #0D1210; border-radius: 50% !important; animation: spin 0.75s linear infinite; }
.auth-v2 .social-spinner { border-radius: 50% !important; }
.svd-spin { display: inline-block; width: 15px; height: 15px; flex-shrink: 0; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50% !important; animation: spin 0.7s linear infinite; vertical-align: -2px; margin-right: 9px; opacity: 0.9; }
.svd .ride-instructions .svd-spin { margin-right: 0; width: 14px; height: 14px; }

/* Busy field: a small circle where the clear button sits. */
.svd-loc.busy .svd-clear { display: none; }
.svd-loc.busy::after { content: ''; position: absolute; right: 14px; top: 50%; width: 15px; height: 15px; margin-top: -9.5px; border: 2px solid var(--svd-muted); border-right-color: transparent; border-radius: 50% !important; animation: spin 0.7s linear infinite; }
.svd-locate.busy svg { display: none; }
.svd-locate.busy::after { content: ''; width: 18px; height: 18px; border: 2px solid var(--svd-ink); border-right-color: transparent; border-radius: 50% !important; animation: spin 0.7s linear infinite; }
.svd-pick-address .svd-spin { width: 14px; height: 14px; margin-right: 10px; color: var(--svd-muted); }

/* Schedule: labelled date and time side by side. */
.svd-when { grid-template-columns: 1fr 1fr; gap: 10px; }
.svd .svd-when .sheet-input { padding: 0 12px; font-size: 15px; }

/* Trip details: one quiet grouped card instead of three boxes. */
.svd-details { border: 1px solid var(--svd-line); border-radius: 14px !important; overflow: hidden; }
.svd-detail { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 0 8px 0 16px; cursor: text; }
.svd-detail + .svd-detail { border-top: 1px solid var(--svd-line); }
.svd-detail-label { font-size: 14px; font-weight: 500; color: var(--svd-ink); white-space: nowrap; }
.svd-detail > input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; text-align: right; font-size: 14.5px; color: var(--svd-ink); padding: 0 8px; outline: none; }
.svd-detail > input::placeholder { color: var(--svd-faint); }
.svd-detail:focus-within { background: #FAFBFA; }
.svd-stepper { display: flex; align-items: center; gap: 4px; }
.svd-step { width: 34px; height: 34px; border: 1px solid var(--svd-line); background: #fff; color: var(--svd-ink); border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.svd-step:hover { border-color: var(--svd-ink); }
.svd-step svg { width: 16px; height: 16px; stroke: currentColor; }
.svd-stepper input { width: 34px; height: 34px; border: 0; background: transparent; text-align: center; font-size: 15.5px; font-weight: 500; color: var(--svd-ink); padding: 0; -moz-appearance: textfield; outline: none; }
.svd-stepper input::-webkit-outer-spin-button, .svd-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Fare card. */
.svd .svd-farecard { max-height: none; opacity: 1; overflow: visible; border: 0; border-radius: 14px !important; background: var(--svd-fill); padding: 16px; display: none; }
.svd .svd-farecard.open { display: block; padding: 16px; animation: svdFareIn 0.25s ease; }
@keyframes svdFareIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.svd-farecard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svd-farecard-label { font-size: 15px; font-weight: 600; color: var(--svd-ink); }
.svd-farecard-sub { font-size: 12.5px; color: var(--svd-muted); margin-top: 2px; }
.svd-farecard-amount { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--svd-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.svd-farecard-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #E1E5E2; font-size: 12.5px; color: var(--svd-muted); }
.svd-if-loading, .svd-skel { display: none; }
.svd-farecard.loading .svd-if-loading { display: inline; }
.svd-farecard.loading .svd-if-ready, .svd-farecard.loading .svd-amt { display: none; }
.svd-farecard.loading .svd-farecard-meta { visibility: hidden; height: 0; margin: 0; padding: 0; border: 0; }
.svd-farecard.loading .svd-skel { display: block; width: 84px; height: 26px; border-radius: 8px !important; background: linear-gradient(90deg, #E4E8E5 0%, #F4F6F5 50%, #E4E8E5 100%); background-size: 200% 100%; animation: svdShimmer 1.1s linear infinite; }
@keyframes svdShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Inline message and busy button. */
.svd-form-msg { font-size: 13.5px; color: #8A2A1F; background: #FBF0EE; border-radius: 10px !important; padding: 10px 12px; line-height: 1.45; }
.svd-form-msg[hidden] { display: none; }
.svd #submit-booking-btn { display: inline-flex; align-items: center; justify-content: center; }
.svd #submit-booking-btn:disabled { opacity: 0.7; cursor: default; }

/* Toast above the tab bar. */
.svd-toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 900; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 12px 12px 12px 18px; background: #0D1210; color: #fff; font-size: 14px; border-radius: 12px !important; box-shadow: 0 12px 32px rgba(13, 18, 16, 0.24); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity 0.2s ease, transform 0.2s ease; }
.svd-toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.svd-toast button { border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 13px; font-weight: 500; height: 32px; padding: 0 12px; border-radius: 8px !important; cursor: pointer; white-space: nowrap; }
@media (min-width: 960px) {
  .svd-toast { bottom: 28px; left: calc(50% + 124px); }
}
.svd .sheet-content-inner > * { flex-shrink: 0; }

/* Distance and fare: two separate tiles. */
.svd .svd-farecard, .svd .svd-farecard.open { background: none; padding: 0; }
.svd .svd-farecard.open { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svd-tile { background: var(--svd-fill); border-radius: 14px !important; padding: 14px 16px; min-width: 0; }
.svd-tile-label { font-size: 12.5px; font-weight: 500; color: var(--svd-muted); }
.svd-tile-value { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--svd-ink); line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svd-farecard.loading .svd-skel { width: 72px; height: 24px; }

/* ================================================================
   Svikai top bar: wordmark left, notifications and account right.
   Floats over the map on Book; a plain white bar elsewhere.
   ================================================================ */
.svd .topbar-action, .svd #topbar-search { display: none !important; }
.svd .topbar-wrap { padding: 12px 16px; background: #fff; border: 0; box-shadow: none; }
.svd .topbar { height: 44px; padding: 0; gap: 6px; border: 0; border-radius: 0 !important; box-shadow: none; background: transparent; }
.svd-wordmark { font-size: 21px; font-weight: 600; letter-spacing: -0.035em; }
.svd .topbar-actions { margin: 0 0 0 auto; gap: 6px; }
.svd .topbar-icon-btn { width: 40px; height: 40px; border-radius: 50% !important; background: transparent; color: var(--svd-ink); }
.svd .topbar-icon-btn svg { width: 20px; height: 20px; stroke-width: 1.9; }
.svd .topbar-icon-btn:hover { background: var(--svd-fill); }
.svd .bell-dot { top: 9px; right: 10px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50% !important; background: #D93A2B; }
.svd .topbar-avatar { width: 40px; height: 40px; font-size: 15px; font-weight: 600; cursor: pointer; }

/* Floating over the map (Book tab). */
.svd[data-panel="request"] .svd-wordmark { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; background: #fff; border-radius: 999px !important; box-shadow: 0 4px 18px rgba(13, 18, 16, 0.14); font-size: 18px; }
.svd[data-panel="request"] .topbar-icon-btn { background: #fff; box-shadow: 0 4px 18px rgba(13, 18, 16, 0.14); }
.svd[data-panel="request"] .topbar-icon-btn:hover { background: #fff; }
.svd[data-panel="request"] .topbar-avatar { box-shadow: 0 4px 18px rgba(13, 18, 16, 0.18); }

@media (max-width: 959px) {
  .svd[data-panel="request"] .topbar-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 600; padding: max(12px, env(safe-area-inset-top)) 12px 0; background: transparent; pointer-events: none; }
  .svd[data-panel="request"] .topbar > * { pointer-events: auto; }
  .svd .ride-stage { height: calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom)) !important; }
  .svd .ride-instructions { top: calc(66px + env(safe-area-inset-top)); }
}

@media (min-width: 960px) {
  .svd .topbar-wrap { position: sticky; top: 0; z-index: 600; padding: 16px 0 8px; background: #fff; }
  .svd .topbar { justify-content: flex-end; }
  .svd[data-panel="request"] .topbar-wrap { position: absolute; top: 32px; right: 48px; padding: 0; background: transparent; }
  .svd .app-scroll.app-scroll--flush { padding-top: 16px; }
  .svd[data-panel="request"] .app-scroll.app-scroll--flush { padding-top: 16px; }
  .svd .ride-stage { height: calc(100dvh - 32px) !important; }
  .svd .ride-instructions { top: 16px; }
}

/* Account menu and notifications. */
.svd .topbar-popover.svd-menu { top: calc(100% + 10px); right: 0; width: 300px; max-width: calc(100vw - 24px); padding: 8px; border: 1px solid var(--svd-line); border-radius: 16px !important; box-shadow: 0 18px 48px rgba(13, 18, 16, 0.16); }
.svd-menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; border-bottom: 1px solid var(--svd-line); margin-bottom: 6px; }
.svd-menu-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50% !important; background: var(--svd-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.svd-menu-id { min-width: 0; }
.svd-menu-name { font-size: 15px; font-weight: 600; color: var(--svd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svd-menu-email { font-size: 13px; color: var(--svd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.svd-menu-item { display: flex; align-items: center; width: 100%; height: 42px; padding: 0 10px; border: 0; background: transparent; border-radius: 10px !important; font-size: 14.5px; font-weight: 500; color: var(--svd-ink); text-decoration: none; text-align: left; cursor: pointer; }
.svd-menu-item:hover { background: var(--svd-fill); }
.svd-menu-sep { height: 1px; background: var(--svd-line); margin: 6px 0; }
#menu-signout { color: #B42318; }

.svd .topbar-popover.svd-notes { width: 360px; }
.svd-notes-title { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--svd-ink); padding: 10px 10px 8px; }
.svd-notes-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.svd-note { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px; border: 0; background: transparent; border-radius: 12px !important; text-align: left; cursor: pointer; }
.svd-note:hover { background: var(--svd-fill); }
.svd-note .svd-avatar { width: 36px; height: 36px; font-size: 13px; }
.svd-note-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svd-note-title { font-size: 14px; font-weight: 500; color: var(--svd-ink); }
.svd-note-sub { font-size: 12.5px; color: var(--svd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svd-notes-empty { font-size: 13.5px; color: var(--svd-muted); padding: 6px 10px 12px; line-height: 1.5; }

/* Billing header button. */
.svd-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.svd-head-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; flex-shrink: 0; border: 1px solid var(--svd-line); background: #fff; color: var(--svd-ink); border-radius: 10px !important; font-size: 14px; font-weight: 500; cursor: pointer; }
.svd-head-btn:hover { border-color: var(--svd-ink); }
.svd-head-btn svg { width: 17px; height: 17px; stroke: currentColor; }
.svd .topbar-popover .svd-note { background: transparent; box-shadow: none; }
.svd .topbar-popover .svd-note:hover { background: var(--svd-fill); }
.svd .topbar-popover .svd-note + .svd-note { margin-top: 2px; }
.svd .topbar-popover .svd-note .svd-avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--svd-fill); border-radius: 50% !important; color: var(--svd-ink); font-weight: 600; }
.svd .panel-head.svd-head-row { flex-direction: row; }
@media (max-width: 959px) {
  .svd .panel-head.svd-head-row { flex-direction: column; gap: 14px; }
}
@media (min-width: 960px) {
  .svd .topbar-wrap { position: absolute; top: 24px; right: 32px; padding: 0; background: transparent; }
  .svd .dash-panel:not(#view-request) { padding-top: 28px; }
  .svd .dash-panel:not(#view-request) .panel-head { padding-right: 112px; }
}
/* Phones, non-map tabs: the bell and avatar share a row with the page title. */
@media (max-width: 959px) {
  .svd:not([data-panel="request"]) .topbar-wrap { position: absolute; top: 0; right: 0; left: auto; width: auto; z-index: 600; padding: max(14px, env(safe-area-inset-top)) 16px 0; background: transparent; }
  .svd .dash-panel:not(#view-request) .panel-title { padding-right: 100px; min-height: 44px; display: flex; align-items: center; }
}

/* ================================================================
   Svikai: Trips, Billing and Account pages.
   ================================================================ */
.svd .dash-panel:not(#view-request) { gap: 16px; }
.svd .chip-red { background: #FBEDEB; color: #8A2A1F; }
.svd-section-title { font-size: 13px; font-weight: 600; color: var(--svd-muted); margin: 10px 0 -6px 4px; }
.svd-footnote { font-size: 12.5px; color: var(--svd-muted); margin: -6px 4px 0; line-height: 1.5; }
.svd-footnote a { color: var(--svd-ink); text-decoration: underline; text-underline-offset: 2px; }

/* Grouped list rows (Account, invoices, past trips). */
.svd-list { border: 1px solid var(--svd-line); border-radius: 14px !important; overflow: hidden; background: #fff; }
.svd-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 54px; padding: 10px 16px; border: 0; background: #fff; text-align: left; font-size: 14.5px; color: var(--svd-ink); text-decoration: none; }
.svd-row + .svd-row { border-top: 1px solid var(--svd-line); }
.svd-row > span:first-child { font-weight: 500; }
.svd-row-value { display: inline-flex; align-items: center; gap: 6px; color: var(--svd-muted); font-weight: 400; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svd-row-link { cursor: pointer; }
.svd-row-link:hover { background: #FAFBFA; }
.svd-chev { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--svd-faint); }
.svd-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.svd-row-main > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.svd-row-title { font-weight: 500; }
.svd-row-sub { font-size: 12.5px; color: var(--svd-muted); }
.svd-list > .svd-empty { border: 0; }

/* Empty states. */
.svd-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 20px; border: 1px dashed #D5DAD7; border-radius: 14px !important; color: var(--svd-muted); font-size: 13.5px; line-height: 1.5; }
.svd-empty strong { color: var(--svd-ink); font-size: 15px; font-weight: 600; }
.svd-empty-ic { width: 44px; height: 44px; border-radius: 50% !important; background: var(--svd-fill); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; color: var(--svd-ink); }
.svd-empty-ic svg { width: 20px; height: 20px; stroke: currentColor; }
.svd-empty .svd-head-btn { margin-top: 10px; }

/* Trips. */
.svd-trip-tabs { max-width: 360px; }
.svd-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 999px !important; background: var(--svd-ink); color: #fff; font-size: 11.5px; font-weight: 600; }
.svd-count:empty { display: none; }
.svd-trip-list { display: flex; flex-direction: column; gap: 12px; }
.svd-trip-list[hidden], #recent-activity-section[hidden] { display: none; }
.svd-trip { border: 1px solid var(--svd-line); border-radius: 16px !important; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.svd-trip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svd-trip-when { font-size: 13.5px; font-weight: 500; color: var(--svd-ink); }
.svd-trip-route { display: grid; grid-template-columns: 14px 1fr; gap: 12px; }
.svd-trip-route .svd-route-rail { height: auto; padding: 6px 0; }
.svd-trip-stops { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.svd-trip-stop { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.svd-trip-place { font-size: 15px; font-weight: 500; color: var(--svd-ink); }
.svd-trip-area { font-size: 12.5px; color: var(--svd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svd-trip-meta { font-size: 13px; color: var(--svd-muted); }
.svd-trip-note { font-size: 13px; color: var(--svd-ink); background: var(--svd-fill); border-radius: 10px !important; padding: 9px 12px; }
.svd-trip-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--svd-line); }
.svd-trip-driver { display: flex; align-items: center; gap: 12px; min-width: 0; }
.svd-trip-driver-txt { min-width: 0; }
.svd-trip-driver-name { font-size: 14px; font-weight: 600; color: var(--svd-ink); }
.svd-trip-driver-car { font-size: 12.5px; color: var(--svd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svd-trip-waiting { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--svd-muted); }
.svd-pulse { width: 8px; height: 8px; border-radius: 50% !important; background: #C9871A; box-shadow: 0 0 0 0 rgba(201, 135, 26, 0.45); animation: svdPulse 1.6s ease-out infinite; }
@keyframes svdPulse { to { box-shadow: 0 0 0 9px rgba(201, 135, 26, 0); } }
.svd-trip-fare { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--svd-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.svd-trip-cancel { align-self: flex-start; height: 36px; padding: 0 14px; border: 1px solid var(--svd-line); background: #fff; color: #8A2A1F; border-radius: 10px !important; font-size: 13.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; }
.svd-trip-cancel:hover { border-color: #E3B5AE; }
.svd-trip-cancel.confirm { background: #8A2A1F; border-color: #8A2A1F; color: #fff; }
.svd-trip-cancel:disabled { opacity: 0.8; cursor: default; }

.svd-past { min-height: 62px; }
.svd-past-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 400 !important; }
.svd-past-route { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svd-past-sub { font-size: 12.5px; color: var(--svd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svd-past-end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.svd-past-fare { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.svd-past-status { font-size: 12px; color: var(--svd-muted); }

/* Billing. */
.svd-balance { background: var(--svd-ink); color: #fff; border-radius: 18px !important; padding: 22px 22px 20px; }
.svd-balance-label { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.svd-balance-amount { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.svd-balance-sub { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: 10px; }
.svd-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svd-inv { min-height: 64px; }
.svd-inv-main { display: flex; flex-direction: column; gap: 2px; font-weight: 400 !important; }
.svd-inv-period { font-size: 14.5px; font-weight: 500; }
.svd-inv-sub { font-size: 12.5px; color: var(--svd-muted); }
.svd-inv-end { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.svd-inv-amount { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }

/* Account. */
.svd-profile { display: flex; align-items: center; gap: 16px; padding: 4px 4px 6px; }
.svd-profile-avatar { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50% !important; background: var(--svd-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 24px; font-weight: 600; }
.svd-profile-id { min-width: 0; }
.svd-profile-name { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--svd-ink); }
.svd-profile-sub { font-size: 14px; color: var(--svd-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.svd-signout { height: 50px; margin-top: 10px; border: 1px solid var(--svd-line); background: #fff; color: #B42318; border-radius: 12px !important; font-size: 15px; font-weight: 500; cursor: pointer; }
.svd-signout:hover { border-color: #E3B5AE; }
.svd-version { text-align: center; font-size: 12px; color: var(--svd-faint); margin: 0 0 8px; }
@media (min-width: 960px) {
  .svd #view-settings, .svd #view-invoices { max-width: 720px; }
  .svd #view-active { max-width: 760px; }
}
@media (min-width: 960px) {
  .svd .dash-panel#view-settings, .svd .dash-panel#view-invoices { max-width: 720px; }
  .svd .dash-panel#view-active { max-width: 760px; }
  .svd .dash-panel:not(#view-request) .panel-head { padding-right: 0; }
}
@media (max-width: 959px) {
  .svd:not([data-panel="request"]) .app-scroll { position: relative; }
}

/* Billing and Account, second pass: one rhythm, flush alignment, quiet balance card. */
.svd-section { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.svd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.svd .svd-section-title { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--svd-ink); margin: 0; }
.svd-text-btn { border: 0; background: none; padding: 0; color: var(--svd-ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #C9CFCB; cursor: pointer; }
.svd-text-btn:hover { text-decoration-color: var(--svd-ink); }

.svd .svd-balance { background: #fff; color: var(--svd-ink); border: 1px solid var(--svd-line); border-radius: 16px !important; padding: 20px 20px 6px; }
.svd .svd-balance-label { color: var(--svd-muted); font-size: 13.5px; }
.svd .svd-balance-amount { font-size: 38px; margin-top: 4px; color: var(--svd-ink); }
.svd-balance-rows { margin-top: 16px; border-top: 1px solid var(--svd-line); }
.svd-balance-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; font-size: 14px; color: var(--svd-muted); }
.svd-balance-row + .svd-balance-row { border-top: 1px solid var(--svd-line); }
.svd-balance-row > span:last-child { color: var(--svd-ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.svd-inv-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.svd .svd-inv-amount { min-width: 0; }
.svd .svd-inv-end { gap: 10px; }
.svd .svd-row { min-height: 56px; }
.svd .svd-row-link > .svd-chev { margin-left: auto; }

.svd .svd-profile { padding: 4px 0 4px; }
.svd .svd-profile-avatar { width: 56px; height: 56px; font-size: 22px; }
.svd .svd-signout { margin-top: 12px; }
.svd #view-settings, .svd #view-invoices { padding-bottom: 12px; }
.svd-row[hidden] { display: none; }

/* ================================================================
   Svikai driver app (shares the .svd shell with the corporate app).
   ================================================================ */
.svd.driver-shell { max-width: none; border: 0; }
@media (min-width: 960px) {
  .svd.driver-shell { padding-left: 248px; }
  .svd.driver-shell .dash-panel { max-width: 720px; }
}
.svd .topbar-avatar img, .svd-menu-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% !important; }
.svd .topbar-avatar { overflow: hidden; padding: 0; }
.svd-stack { display: flex; flex-direction: column; gap: 16px; }
.svd-section-meta { font-size: 13px; color: var(--svd-muted); font-variant-numeric: tabular-nums; }
.svd-note .svd-avatar svg { width: 16px; height: 16px; stroke: currentColor; }

/* Online card and switch. */
.svd-online, .svd-review { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--svd-line); border-radius: 16px !important; background: #fff; }
.svd-online-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50% !important; background: #B8BFBB; }
.svd-online.is-online .svd-online-dot { background: #1F8A4C; box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.4); animation: svdOnline 1.8s ease-out infinite; }
@keyframes svdOnline { to { box-shadow: 0 0 0 10px rgba(31, 138, 76, 0); } }
.svd-online-txt { flex: 1; min-width: 0; }
.svd-online-title { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--svd-ink); }
.svd-online-sub { font-size: 13px; color: var(--svd-muted); margin-top: 2px; }
.svd-switch { position: relative; width: 52px; height: 32px; flex-shrink: 0; cursor: pointer; }
.svd-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.svd-switch span { position: absolute; inset: 0; background: #D5DAD7; border-radius: 999px !important; transition: background 0.2s ease; }
.svd-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; background: #fff; border-radius: 50% !important; box-shadow: 0 1px 3px rgba(13, 18, 16, 0.25); transition: transform 0.2s ease; }
.svd-switch input:checked + span { background: var(--svd-ink); }
.svd-switch input:checked + span::after { transform: translateX(20px); }
.svd-switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(13, 18, 16, 0.15); }

/* Current trip. */
.svd-current { border-color: var(--svd-ink); }
.svd-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svd-step-item { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--svd-muted); }
.svd-step-item span { height: 4px; border-radius: 2px !important; background: var(--svd-line); }
.svd-step-item.is-done { color: var(--svd-ink); }
.svd-step-item.is-done span { background: var(--svd-ink); }
.svd-current-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svd-current-kicker { font-size: 12.5px; color: var(--svd-muted); }
.svd-current-place { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--svd-ink); margin-top: 2px; }
.svd-nav-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; flex-shrink: 0; border-radius: 999px !important; background: var(--svd-fill); color: var(--svd-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.svd-nav-btn:hover { background: #E8EBE9; }
.svd-nav-btn svg { width: 16px; height: 16px; stroke: currentColor; }
.svd-current-foot { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--svd-line); }
.svd .svd-current-action { width: 100%; display: inline-flex; align-items: center; justify-content: center; }
.svd .svd-current-action.confirm { background: #1F5133; }
.svd-current-hint { font-size: 12.5px; color: var(--svd-muted); text-align: center; margin-top: -6px; }

/* Request card button. */
.svd-accept { height: 44px; padding: 0 22px; border: 0; border-radius: 12px !important; background: var(--svd-ink); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; }
.svd-accept:hover { background: #26302B; }
.svd-accept:disabled { background: #B8BFBB; cursor: default; }

/* Details and documents form. */
.svd-docs-form { display: flex; flex-direction: column; gap: 12px; }
.svd-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svd .svd-docs-form .sheet-input { padding: 0 14px; }
.svd-file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px 10px 16px; border: 1px dashed #C9CFCB; border-radius: 12px !important; cursor: pointer; background: #fff; }
.svd-file:hover { border-color: var(--svd-ink); }
.svd-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.svd-file-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.svd-file-label { font-size: 14.5px; font-weight: 500; color: var(--svd-ink); }
.svd-file-state { font-size: 12.5px; color: var(--svd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svd-file-badge { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px !important; background: var(--svd-fill); color: var(--svd-ink); flex-shrink: 0; }
.svd-file-badge.ok { background: #EAF2EC; color: #1F5133; }
.svd .svd-docs-form .btn { display: inline-flex; align-items: center; justify-content: center; }
#details-form { margin-top: 4px; }
#details-form[hidden] { display: none; }
.svd-missing { color: #8A2A1F !important; }

/* Pending approval. */
.svd-review .svd-empty-ic { margin: 0; flex-shrink: 0; }

/* Account photo. */
.svd-photo { position: relative; flex-shrink: 0; cursor: pointer; }
.svd-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.svd-photo img.svd-profile-avatar { object-fit: cover; }
.svd-photo-edit { position: absolute; right: -4px; bottom: -4px; padding: 2px 8px; border-radius: 999px !important; background: #fff; border: 1px solid var(--svd-line); font-size: 11px; font-weight: 500; color: var(--svd-ink); }
.svd-photo.busy .svd-profile-avatar { opacity: 0.5; }
.svd .panel-head { text-align: left; align-items: flex-start; }
.svd-current-status { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--svd-ink); }
.svd .svd-section > .svd-footnote { margin: -4px 0 0; }
.svd-footnote[hidden] { display: none; }
@media (min-width: 960px) {
  .svd.driver-shell .dash-panel:not(#view-request) { max-width: 720px; }
}
.svd .panel-head { text-align: left; align-items: flex-start; }
.svd-current-status { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--svd-ink); }
.svd .svd-section > .svd-footnote { margin: -4px 0 0; }
.svd-footnote[hidden] { display: none; }
@media (min-width: 960px) {
  .svd.driver-shell .dash-panel:not(#view-request) { max-width: 720px; }
}
.svd #view-board .panel-head, .svd #view-runs .panel-head { align-items: flex-start; text-align: left; }
.svd #view-board .panel-title, .svd #view-runs .panel-title { font-size: 28px; }
.svd-list[hidden] { display: none; }

/* Driver app, second pass. */
/* One status indicator: a dot and a word. */
.svd-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--svd-ink); white-space: nowrap; }
.svd-tag-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50% !important; background: #9AA29E; }
.svd-tag-ok .svd-tag-dot { background: #1F8A4C; }
.svd-tag-wait .svd-tag-dot { background: #C9871A; }
.svd-tag-bad .svd-tag-dot { background: #C2412D; }
.svd-tag-off { color: var(--svd-muted); }
.svd-tag-bad { color: #8A2A1F; }

/* Online card. */
.svd .svd-online { padding: 16px 18px; gap: 16px; }
.svd .svd-online .svd-tag { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.svd .svd-online .svd-tag-dot { width: 9px; height: 9px; }
.svd .svd-online .svd-tag-off { color: var(--svd-ink); }
.svd .svd-online-sub { margin-top: 4px; }

/* Current trip: progress on the stops. */
.svd .svd-current { border-color: var(--svd-line); gap: 16px; }
.svd-legs { display: flex; flex-direction: column; }
.svd-leg { position: relative; display: grid; grid-template-columns: 18px 1fr auto; gap: 14px; align-items: start; padding-bottom: 18px; }
.svd-leg:last-child { padding-bottom: 0; }
.svd-leg:not(:last-child)::before { content: ''; position: absolute; left: 8px; top: 22px; bottom: 2px; width: 2px; background: var(--svd-line); }
.svd-leg.is-done:not(:last-child)::before { background: var(--svd-ink); }
.svd-leg-mark { width: 18px; height: 18px; margin-top: 2px; border-radius: 50% !important; border: 2px solid #C9CFCB; background: #fff; box-sizing: border-box; position: relative; z-index: 1; }
.svd-leg.is-next .svd-leg-mark { border: 5px solid var(--svd-ink); }
.svd-leg.is-done .svd-leg-mark { border: 0; background: var(--svd-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.svd-leg-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.svd-leg-label { font-size: 12px; font-weight: 500; color: var(--svd-muted); margin-bottom: 2px; }
.svd-leg.is-done .svd-trip-place { color: var(--svd-muted); }
.svd-leg-nav { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px !important; background: var(--svd-ink); color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; align-self: center; }
.svd-leg-nav svg { width: 15px; height: 15px; stroke: currentColor; }
.svd-leg-nav:hover { background: #26302B; }

.svd-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--svd-line); border-bottom: 1px solid var(--svd-line); }
.svd-facts > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; min-width: 0; }
.svd-facts > div + div { padding-left: 14px; border-left: 1px solid var(--svd-line); }
.svd-facts span { font-size: 12px; color: var(--svd-muted); }
.svd-facts strong { font-size: 14.5px; font-weight: 600; color: var(--svd-ink); font-variant-numeric: tabular-nums; }
.svd .svd-current .svd-trip-meta { margin-top: -4px; }

/* Requests. */
.svd-req-earn { display: flex; flex-direction: column; align-items: flex-end; font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--svd-ink); font-variant-numeric: tabular-nums; }
.svd-req-earn small { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: var(--svd-muted); }
.svd .svd-trip-head { align-items: flex-start; }
.svd .svd-accept { width: 100%; height: 48px; justify-content: center; }
.svd .svd-accept:disabled { background: var(--svd-fill); color: var(--svd-muted); }

/* Documents. */
.svd .svd-file { min-height: 64px; border-style: solid; border-color: var(--svd-line); }
.svd .svd-file-state { margin-top: 3px; }
.svd-file-action { font-size: 13.5px; font-weight: 500; color: var(--svd-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #C9CFCB; flex-shrink: 0; }

/* Account profile. */
.svd-profile-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.svd-profile-meta .svd-text-btn { font-size: 13px; }
.svd .svd-profile { align-items: flex-start; }

/* ================================================================
   Svikai admin (shares the .svd shell).
   ================================================================ */
.svd.admin-shell { max-width: none; border: 0; }
@media (min-width: 960px) {
  .svd.admin-shell { padding-left: 248px; }
  .svd.admin-shell .dash-panel:not(#view-request) { max-width: 760px; }
}
.svd .nav-tab-btn { position: relative; }
.svd-nav-count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px !important; background: #C2412D; color: #fff; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.svd-nav-count:empty { display: none; }
@media (min-width: 960px) {
  .svd-nav-count { position: static; margin-left: auto; }
}

/* People and companies. */
.svd-person { gap: 12px; }
.svd-person-head { display: flex; align-items: center; gap: 12px; }
.svd-person-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.svd-person-id .svd-row-title { font-size: 15px; font-weight: 600; }
.svd-person-owed { display: flex; flex-direction: column; align-items: flex-end; font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.svd-person-owed small { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: var(--svd-muted); }
.svd-person-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--svd-muted); padding-top: 12px; border-top: 1px solid var(--svd-line); }
.svd-person-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svd-danger { color: #8A2A1F; text-decoration-color: #E3B5AE; display: inline-flex; align-items: center; }
.svd-danger.confirm { color: #fff; background: #8A2A1F; text-decoration: none; padding: 8px 12px; border-radius: 10px !important; }
.svd-person-row .svd-row-main { min-width: 0; }
.svd-person-row .svd-row-title { display: block; }
.svd-person-row .svd-row-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sheets: bottom sheet on phones, centred dialog on desktop. */
.svd-sheet { position: fixed; inset: 0; z-index: 950; display: flex; align-items: flex-end; justify-content: center; background: rgba(13, 18, 16, 0); transition: background 0.18s ease; }
.svd-sheet[hidden] { display: none; }
.svd-sheet.open { background: rgba(13, 18, 16, 0.42); }
.svd-sheet-card { width: 100%; max-height: 92dvh; display: flex; flex-direction: column; background: #fff; border-radius: 20px 20px 0 0 !important; transform: translateY(24px); opacity: 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.svd-sheet.open .svd-sheet-card { transform: none; opacity: 1; }
.svd-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--svd-line); }
.svd-sheet-kicker { font-size: 12.5px; color: var(--svd-muted); }
.svd-sheet-title { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--svd-ink); margin-top: 2px; }
.svd-sheet-close { width: 36px; height: 36px; flex-shrink: 0; border: 0; background: var(--svd-fill); color: var(--svd-ink); border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.svd-sheet-close svg { width: 16px; height: 16px; stroke: currentColor; }
.svd-sheet-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.svd-sheet-foot { padding: 14px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--svd-line); display: flex; flex-direction: column; gap: 10px; }
.svd-sheet-foot .svd-footnote { margin: 0; }
.svd .svd-sheet .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; }
.svd .svd-sheet .btn:disabled { background: var(--svd-fill); color: var(--svd-muted); cursor: default; }
@media (min-width: 640px) {
  .svd-sheet { align-items: center; padding: 24px; }
  .svd-sheet-card { max-width: 560px; border-radius: 20px !important; }
  .svd-sheet-sm { max-width: 420px; }
}

/* Documents in the review sheet. */
.svd-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svd-doc { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.svd-doc-label { font-size: 13px; font-weight: 500; color: var(--svd-ink); }
.svd-doc-stage { aspect-ratio: 4 / 3; border-radius: 12px !important; background: var(--svd-fill); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.svd-doc-stage.is-missing { background: #fff; border: 1px dashed #D5DAD7; }
.svd-doc-img { display: block; width: 100%; height: 100%; }
.svd-doc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Amount input. */
.svd-money-input { position: relative; }
.svd-money-input > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; font-weight: 500; color: var(--svd-muted); pointer-events: none; }
.svd .svd-money-input .sheet-input { padding-left: 30px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; min-height: 54px; }
.svd #pay-form .svd-footnote { margin: -6px 0 0; }
.svd-sheet-body > * { flex-shrink: 0; }
.svd-doc-stage.is-missing { aspect-ratio: auto; height: 56px; }
.svd-row-tag { display: block; margin-top: 6px; }
.svd .svd-past-route { white-space: normal; }

/* V1: invoice status, admin trip sheet, hand-back link. */
.svd-inv-sub.svd-due { color: #8A2A1F; }
.svd .svd-select { padding: 0 40px 0 14px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6762' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; cursor: pointer; }
.svd-sheet-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; }
.svd-sheet-actions > :only-child { margin-left: auto; }
.svd #trip-kicker .svd-tag { font-size: 12.5px; }
.svd .svd-release { align-self: center; font-size: 13.5px; }
.svd .svd-release.confirm { align-self: stretch; justify-content: center; }
button.svd-row.svd-past { cursor: pointer; }
.svd-map-link { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--svd-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #C9CFCB; }

/* Trip lists grouped by day: time, two stops, details, amount and status. No arrows. */
.svd-days { display: flex; flex-direction: column; gap: 18px; }
.svd-day { display: flex; flex-direction: column; gap: 8px; }
.svd-day-label { margin: 0 0 0 2px; font-size: 13px; font-weight: 600; color: var(--svd-muted); }
.svd-tr { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: start; width: 100%; padding: 14px 16px; border: 0; background: #fff; text-align: left; color: var(--svd-ink); font: inherit; }
.svd-tr + .svd-tr { border-top: 1px solid var(--svd-line); }
.svd-tr-link { cursor: pointer; }
.svd-tr-link:hover { background: #FAFBFA; }
.svd-tr-time { font-size: 13px; font-weight: 500; color: var(--svd-muted); padding-top: 1px; font-variant-numeric: tabular-nums; }
.svd-tr-route { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.svd-tr-stop { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; min-width: 0; }
.svd-tr-stop > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svd-tr-dot, .svd-tr-sq { width: 7px; height: 7px; flex-shrink: 0; background: var(--svd-ink); }
.svd-tr-dot { border-radius: 50% !important; }
.svd-tr-meta { font-size: 12.5px; color: var(--svd-muted); padding-left: 17px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svd-tr-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.svd-tr-amount { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svd-tr-free { font-size: 13px; font-weight: 500; color: var(--svd-muted); }
.svd-tr .svd-tag { font-size: 12px; }
.svd-days > .svd-empty { border-style: dashed; }

/* Invoice list rows. */
.svd-inv-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 66px; padding: 12px 16px; border: 0; background: #fff; text-align: left; font: inherit; color: var(--svd-ink); cursor: pointer; }
.svd-inv-row + .svd-inv-row { border-top: 1px solid var(--svd-line); }
.svd-inv-row:hover { background: #FAFBFA; }
.svd-inv-row .svd-inv-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.svd-inv-row .svd-inv-amount { font-size: 15.5px; font-weight: 600; min-width: 0; }
.svd-inv-row .svd-tag { font-size: 12px; }
.svd-tr-stop { align-items: flex-start; }
.svd-tr-stop > span { white-space: normal; overflow: visible; line-height: 1.35; }
.svd-tr-dot, .svd-tr-sq { margin-top: 6px; }
.svd-tr-meta { white-space: normal; line-height: 1.4; }

/* No green: good states are plain text; dots only mark what needs attention. */
.svd-tag-ok .svd-tag-dot { display: none; }
.svd-tag-ok { color: var(--svd-ink); }
.svd .chip-green { background: var(--svd-fill); color: var(--svd-ink); }
.svd-file-badge.ok { background: var(--svd-fill); color: var(--svd-ink); }
.svd .svd-current-action.confirm { background: #26302B; }
.svd-online.is-online .svd-online-dot { background: var(--svd-ink); animation: none; box-shadow: none; }

/* Phones: every page title centres on the bell and avatar beside it. */
@media (max-width: 959px) {
  .svd:not([data-panel="request"]) .app-scroll.app-scroll--flush { padding-top: 0 !important; }
  .svd .dash-panel:not(#view-request) .panel-head { padding-top: 14px !important; margin-top: 0 !important; }
  .svd:not([data-panel="request"]) .topbar-wrap { padding-top: 16px !important; }
}
.svd:not([data-panel="request"]) .app-scroll { row-gap: 0; }
@media (min-width: 960px) {
  /* Desktop: titles centre on the avatar in the top right. */
  .svd:not([data-panel="request"]) .app-scroll.app-scroll--flush { padding-top: 24px !important; }
  .svd .dash-panel:not(#view-request) { padding-top: 0 !important; }
  .svd .dash-panel:not(#view-request) .panel-head { padding-top: 0 !important; }
  .svd .dash-panel:not(#view-request) .panel-title { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 959px) {
  .svd:not([data-panel="request"]) .topbar-wrap { padding-top: 14px !important; }
}

/* Install prompt: a bottom sheet on phones, a card in the corner on desktop. */
.svi { position: fixed; inset: auto 0 0 0; z-index: 1000; padding: 0 12px max(12px, env(safe-area-inset-bottom)); pointer-events: none; font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; }
.svi-card { pointer-events: auto; max-width: 420px; margin: 0 auto; background: #fff; color: #0D1210; border-radius: 20px !important; padding: 20px; box-shadow: 0 18px 50px rgba(13, 18, 16, 0.28); transform: translateY(24px); opacity: 0; transition: transform 0.22s ease, opacity 0.22s ease; }
.svi.open .svi-card { transform: none; opacity: 1; }
.svi-head { display: flex; align-items: center; gap: 14px; }
.svi-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px !important; }
.svi-title { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.svi-sub { font-size: 13.5px; line-height: 1.45; color: #5E6762; margin-top: 2px; }
.svi-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.svi-steps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.svi-steps li > span { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50% !important; background: #F2F4F3; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.svi-steps b { font-weight: 600; }
.svi-share { display: inline-flex; vertical-align: -4px; width: 20px; height: 20px; margin-left: 2px; color: #0A84FF; }
.svi-share svg { width: 100%; height: 100%; }
.svi-actions { display: flex; gap: 10px; margin-top: 18px; }
.svi-actions button { flex: 1; height: 48px; border: 0; border-radius: 12px !important; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.svi-primary { background: #0D1210; color: #fff; }
.svi-primary:hover { background: #26302B; }
.svi-secondary { background: #F2F4F3; color: #0D1210; }
@media (min-width: 768px) {
  .svi { inset: auto 24px 24px auto; padding: 0; width: 380px; }
}
