:root {
  color-scheme: light;
  --page: #f5f7fa;
  --surface: #fff;
  --ink: #172337;
  --muted: #4f5e72;
  --soft: #5f6f84;
  --line: #e2e8f0;
  --accent: #006bd6;
  --accent-dark: #004f9f;
  --accent-light: #e6f2ff;
  --brand-blue-deep: #0040ff;
  --brand-blue-bright: #009cff;
  --brand-gradient-horizontal: linear-gradient(to right, var(--brand-blue-deep), var(--brand-blue-bright));
  --radius: 20px;
  --shadow: 0 3px 12px #10284b08;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); min-width: 300px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #007aff; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh;
  background: #fff; border-right: 1px solid var(--line); padding: 29px 20px 18px; z-index: 3;
}
.wordmark { display: block; padding: 7px 10px 10px; margin-bottom: 33px; width: 100%; }
.wordmark img, .mobile-brand img { display: block; width: 164px; max-width: 100%; }
.workspace, .location, .top-actions { display: flex; align-items: center; }
.workspace { background: #f5f9fe; border: 1px solid #e5edf7; border-radius: 12px; padding: 10px; gap: 9px; margin-bottom: 30px; }
.workspace-icon, .top-pin, .install-icon, .symbol {
  display: grid; place-items: center; flex: 0 0 auto; color: var(--accent); background: var(--accent-light); border-radius: 11px;
}
.workspace-icon { width: 36px; height: 36px; }
.workspace-icon svg { width: 17px; }
small { display: block; font-size: .75rem; }
.workspace small, .location small, .nav-label { color: var(--soft); font-size: .66rem; letter-spacing: .065em; font-weight: 760; }
.workspace strong, .location strong { display: block; font-size: .875rem; margin-top: 3px; }
.nav-label { display: block; padding: 0 11px 10px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 0 11px;
  margin-bottom: 4px; border-radius: 11px; font-size: .9rem; font-weight: 600; color: var(--muted);
}
.nav-link:hover { background: #f0f7ff; color: var(--accent-dark); }
.nav-link.active { color: var(--accent-dark); background: var(--accent-light); font-weight: 740; }
.nav-link span { display: flex; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.install-card {
  background: radial-gradient(ellipse at 90% 3%, #1679ef85, transparent 65%), #0e2a52;
  color: #fff; border-radius: 15px; padding: 15px; overflow: hidden;
}
.install-icon { background: #ffffff20; color: #e5f2ff; width: 34px; height: 34px; margin-bottom: 13px; }
.install-icon svg { width: 17px; }
.install-card strong { font-size: .85rem; }
.install-card p { color: #dbeaff; font-size: .82rem; line-height: 1.45; margin: 7px 0 13px; }
.install-button {
  width: 100%; min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; border: 1px solid #ffffff49; background: #fff1; color: white; font-size: .8rem; font-weight: 680;
}
.install-button:hover { background: #ffffff29; }
.install-button span { display: flex; }
.install-button svg { width: 15px; height: 15px; }
.sidebar-foot { padding: 17px 3px 0; color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: .73rem; }
.sidebar-foot span:last-child { margin-left: auto; color: var(--soft); letter-spacing: .045em; font-size: .63rem; font-weight: 700; }
.status-dot { width: 7px; height: 7px; background: #19855d; border-radius: 50%; display: inline-block; flex-shrink: 0; }
body.offline .status-dot { background: #a76513; }
.main-shell { display: flex; flex-direction: column; min-width: 0; min-height: 100dvh; }
.topbar { flex-shrink: 0; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(24px, 3vw, 52px);
  height: 73px; border-bottom: 1px solid var(--line); background: #fff;
}
.location { gap: 10px; }
.top-pin { width: 35px; height: 35px; background: var(--accent-light); }
.top-pin svg { width: 18px; }
.top-actions { gap: 14px; }
.profile { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); border: 1px solid #d3e7ff; font-size: .78rem; font-weight: 800; }
.mobile-brand { display: none; }
#main { flex: 1; width: 100%; margin-inline: auto; padding: 35px clamp(24px, 3vw, 52px) 42px; }
#main:focus { outline: none; }
.intro { margin-bottom: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent-light); border-radius: 99px; color: var(--accent-dark);
  font-size: .69rem; letter-spacing: .055em; font-weight: 800; padding: 6px 9px;
}
.eyebrow svg { width: 13px; height: 13px; }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 11px; color: var(--ink); font-size: clamp(2.1rem, 3.9vw, 3.55rem); letter-spacing: -.065em; font-weight: 800; line-height: 1.04; }
h2 { font-size: 1.32rem; letter-spacing: -.038em; line-height: 1.25; }
h3 { font-size: 1rem; }
p { line-height: 1.5; }
.intro p { color: var(--muted); margin-top: 9px; font-size: 1rem; }
.dashboard { display: grid; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.request, .activity, .standard-panel { padding: 22px; }
.panel-heading { display: flex; align-items: center; gap: 10px; }
.request .panel-heading h1 { margin: 0; font-size: clamp(1.32rem, 4vw, 1.7rem); letter-spacing: -.038em; line-height: 1.25; }
.symbol { width: 39px; height: 39px; }
.symbol svg { width: 19px; }
.panel-heading p, .secondary { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.address-field { min-width: 0; }
.address-suggestions {
  max-height: 224px; overflow: auto; overscroll-behavior: contain; list-style: none;
  padding: 0; margin: 4px 0 0; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.address-suggestions li { display: grid; align-content: center; gap: 2px; min-height: 46px; padding: 8px 12px; cursor: pointer; overflow-wrap: anywhere; font-size: .9rem; }
.address-suggestions li + li { border-top: 1px solid var(--line); }
.address-suggestions li:hover, .address-suggestions [aria-selected="true"] { background: var(--accent-light); }
.address-suggestions span, .address-status, .ride-route-status { font-size: .82rem; color: var(--muted); }
.address-status { margin: 5px 4px 0; }
.ride-route-status { margin: 0 0 12px; }
.address-status:empty, .ride-route-status:empty { display: none; }
input::placeholder { color: var(--soft); opacity: 1; }
.primary, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  border: 1px solid transparent; padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 730;
}
.primary {
  background: var(--brand-gradient-horizontal);
  color: #fff;
  text-shadow: 0 1px 3px #001b76;
  box-shadow: 0 4px 12px #006bd632, inset 0 1px #ffffff24;
}
.primary:not(:disabled):hover {
  box-shadow: 0 4px 14px #00297d4d, inset 0 0 0 100px #001b761a;
}
.request .primary, .auth-form .primary { width: 100%; }
.primary svg, .secondary-button svg { width: 17px; height: 17px; }
.secondary-button { background: #f0f7ff; border-color: #dceafa; color: var(--accent-dark); box-shadow: none; }
.secondary-button:hover { background: var(--accent-light); }
.text-button { background: transparent; border: 0; border-radius: 999px; color: var(--accent-dark); font-weight: 750; font-size: .86rem; padding: 7px 0 7px 8px; }
.text-button:hover { text-decoration: underline; }
.map-panel { position: relative; overflow: hidden; min-height: clamp(245px, 40dvh, 400px); background: #e8eef5; isolation: isolate; }
#main:has(> .ride-dashboard) { padding-top: 8px; }
.ride-dashboard .map-panel { min-height: clamp(305px, 50dvh, 550px); }
.map-content { position: absolute; inset: 0; }
.map-route-credit {
  position: absolute; z-index: 1; bottom: 6px; right: 40px; padding: 2px 5px;
  border-radius: 5px; background: #ffffffe8; color: #172437; font-size: .63rem;
}
.map-actions, .map-status { position: absolute; z-index: 1; }
.map-actions { top: 12px; left: 12px; max-width: min(250px, calc(100% - 62px)); pointer-events: none; }
.map-locate, .map-location-status, .map-status {
  border: 1px solid #dce7f4; background: #fff; color: var(--ink); box-shadow: 0 2px 12px #132c511a;
}
.map-locate { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 13px; border-radius: 999px; font-weight: 700; font-size: .84rem; pointer-events: auto; }
.map-locate svg { color: var(--accent); width: 17px; height: 17px; }
.map-locate:enabled:hover { background: var(--accent-light); }
.map-locate:disabled { cursor: default; opacity: .8; }
.map-location-status, .map-status { padding: 6px 9px; border-radius: 10px; font-size: .78rem; }
.map-location-status { margin-top: 6px; }
.map-location-status:empty { display: none; }
.map-status { left: 12px; bottom: 13px; max-width: calc(100% - 24px); }
.map-passenger-marker {
  width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden;
  border: 3px solid #fff; border-radius: 50%; background: var(--accent-dark); color: #fff;
  font-weight: 750; box-shadow: 0 0 0 3px #006bd6, 0 3px 10px #122c5280;
}
.map-passenger-marker img, .map-passenger-marker span { grid-area: 1 / 1; }
.map-passenger-marker img { width: 100%; height: 100%; object-fit: cover; }
.map-stop {
  width: 19px; height: 19px; border: 3px solid #fff; border-radius: 50%;
  background: var(--accent); box-shadow: 0 2px 7px #102c6290;
}
.map-stop-destination { background: #152e5b; border-radius: 5px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: #344d6d; box-shadow: 0 2px 9px #132c5115; }
.icon-button span { display: flex; }
.icon-button:hover { background: var(--accent-light); }
.icon-button svg { width: 17px; height: 17px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.activity .section-heading { margin-bottom: 14px; }
.empty { border: 1px dashed #d9e5f4; border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; background: #f8fbff; }
.empty p { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.empty .symbol { width: 37px; height: 37px; }
.rows { display: grid; gap: 9px; }
.trip-row { border: 1px solid var(--line); background: #f8fbff; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 11px; }
.trip-row .trip-info { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.trip-row p { color: var(--muted); font-size: .82rem; }
.trip-row strong { font-size: .89rem; }
.trip-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; background: var(--accent-light); color: var(--accent-dark); font-size: .75rem; font-weight: 730; }
.pill.completed, .pill.online { background: #e3f5ed; color: #146248; }
.pill.cancelled { background: #f8e9eb; color: #85394a; }
.active-trip { display: grid; align-content: start; gap: 12px; }
.active-trip p { color: var(--muted); overflow-wrap: anywhere; }
.timeline { padding: 0; margin: 6px 0; list-style: none; display: grid; gap: 12px; }
.timeline li { display: flex; gap: 9px; align-items: center; font-size: .88rem; color: var(--muted); }
.timeline li span { display: grid; place-items: center; width: 22px; height: 22px; background: #edf2f7; border-radius: 50%; }
.timeline li.complete span { background: var(--accent-light); color: var(--accent-dark); }
.timeline svg { width: 14px; height: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters select { border-radius: 9px; padding: 7px; border: 1px solid var(--line); color: var(--ink); background: #fff; font-size: .85rem; }
.auth-form { display: grid; gap: 12px; max-width: 420px; }
.auth-form label { display: grid; gap: 5px; font-size: .84rem; font-weight: 700; }
.auth-form input { width: 100%; padding: 10px; background: #f8fafc; border: 1px solid #d4deeb; border-radius: 9px; color: var(--ink); }
.auth-panel { max-width: 500px; }
.auth-panel .alert { margin-bottom: 12px; }
.auth-panel .text-button { margin-top: 5px; padding-left: 0; }
.alert { padding: 12px; border: 1px solid #d3e4f9; background: #eff6ff; border-radius: 10px; color: #294e7c; font-size: .86rem; }
.notice { position: fixed; z-index: 8; bottom: 18px; right: 20px; max-width: min(calc(100vw - 40px), 420px); padding: 12px 15px; background: #112d52; color: #fff; border-radius: 11px; box-shadow: 0 6px 20px #132c5132; font-size: .88rem; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); max-width: min(calc(100vw - 30px), 430px); width: 100%; padding: 25px; color: var(--ink); box-shadow: 0 20px 70px #10254546; }
dialog::backdrop { background: #0e223f6b; }
dialog h2 { padding-right: 36px; margin-bottom: 8px; }
dialog p { margin-bottom: 12px; }
.close-dialog { position: absolute; top: 16px; right: 16px; }
.cancel-options { display: grid; gap: 8px; }
.cancel-error { margin: 10px 0 0; }

@media (min-width: 1540px) {
  #main { padding-top: 44px; }
  .request { padding: 25px; }
}
@media (max-width: 1070px) {
  .shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .request, .activity, .standard-panel { padding: 16px; }
}
@media (max-width: 810px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: auto 0 0; height: auto; padding: 6px 10px max(6px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); }
  .sidebar .wordmark, .sidebar .workspace, .sidebar-bottom, .nav-label, .location { display: none; }
  .sidebar nav { display: flex; justify-content: space-around; gap: 3px; }
  .nav-link { justify-content: center; flex: 1; gap: 4px; flex-direction: column; min-height: 45px; padding: 5px 3px; margin: 0; font-size: .7rem; }
  .nav-link svg { width: 18px; height: 18px; }
  .mobile-brand { display: block; }
  .mobile-brand img { width: 138px; }
  .topbar { height: 60px; padding: 0 16px; }
  .top-actions { gap: 8px; }
  .profile { width: 36px; height: 36px; }
  #main { padding: 25px 16px calc(80px + env(safe-area-inset-bottom)); }
  .notice { bottom: 70px; }
}
@media (max-width: 580px) {
  .intro { margin-bottom: 17px; }
  .intro p { font-size: .92rem; }
  .dashboard { gap: 14px; }
  .trip-row { flex-wrap: wrap; }
  .trip-side { flex-basis: 100%; justify-content: flex-start; padding-left: 49px; }
  .section-heading { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .nav-link { transition: background .15s ease, color .15s ease; }
}

.public-entry .sidebar, .public-entry .topbar { display: none; }
.setup-page {
  display: grid; place-items: center; min-height: 100dvh;
  padding: clamp(16px, 5vw, 40px); background: linear-gradient(160deg, #e6f0ff, #f5f7fa 68%);
}
.setup-card {
  width: min(100%, 450px); padding: clamp(18px, 6vw, 34px);
  background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 16px 50px #1834561a;
}
.setup-card h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); margin: 18px 0; letter-spacing: -.04em; }
.setup-logo { width: 150px; max-width: 65%; height: auto; }
.setup-notice { color: var(--muted); margin: 0 0 16px; }
.setup-card .primary { min-height: 46px; }
.public-entry .shell { display: block; }
.public-entry { min-width: 0; background: radial-gradient(ellipse at 50% 0%, #e6eef9, #f5f7fa 65%); }
.public-entry #main {
  display: flex; flex-direction: column; min-height: 100dvh;
  max-width: 950px; padding: clamp(16px, 3.5vw, 40px) 22px 24px;
}
.entry { display: flex; flex-direction: column; flex: 1; }
.entry-hero {
  display: grid; place-items: center; position: relative; overflow: hidden; isolation: isolate; flex: 1;
  min-height: 220px; border-radius: 26px 26px 32px 32px; background: #111d32;
}
.entry-photo, .entry-hero::after { position: absolute; inset: 0; pointer-events: none; }
.entry-photo {
  background: #172437 url('assets/interior-ckupper.webp') center 54% / cover;
  animation: entry-zoom 9s ease-in-out infinite alternate;
}
.entry-hero::after {
  content: '';
  background: radial-gradient(ellipse at 50% 50%, #0a173e33, transparent 60%),
    linear-gradient(0deg, #080f21cc, #080f2124 65%);
}
.entry-logo {
  z-index: 1; display: block; width: min(66%, 300px); height: auto;
  filter: drop-shadow(0 2px 8px #07112f) drop-shadow(0 0 22px #166bde99);
}
.entry-install {
  position: absolute; z-index: 2;
  inset-block-start: max(8px, env(safe-area-inset-top));
  inset-inline-end: max(12px, env(safe-area-inset-right));
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  padding: 0 14px; border: 1px solid #ffffff47; border-radius: 999px;
  background: #111d32d9; color: #fff; font-size: .81rem; font-weight: 700;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 4px 12px #030b2040;
}
.entry-install:hover { background: #203653; }
.entry-install:focus-visible { outline-color: #c5e8ff; outline-offset: 2px; }
.entry-install svg { flex: none; }
@media (max-height: 600px) {
  .entry-hero:has(.entry-install:not([hidden])) .entry-logo { transform: translateY(16px); }
}
@keyframes entry-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.13); }
}
@media (prefers-reduced-motion: reduce) {
  .entry-photo { animation: none; }
}
.entry-panel {
  position: relative; width: min(calc(100% - 32px), 500px); margin: -35px auto 0; background: #fff;
  padding: clamp(18px, 4.8vw, 31px); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 12px 48px #18345614; text-align: center;
}
.entry-panel h1 { font-size: clamp(1.42rem, 4.5vw, 1.94rem); line-height: 1.16; letter-spacing: -.042em; margin: 0 0 15px; }
.entry-panel .alert { margin-bottom: 12px; }
.entry-detail { margin: -4px 0 15px; color: var(--muted); font-size: .94rem; }
.entry-panel .auth-form { text-align: left; margin: auto; }
.entry-panel .auth-form input, .entry-panel .auth-form select { min-height: 46px; font-size: 1rem; }
.entry-panel .auth-form select { width: 100%; background: #f8fafc; border: 1px solid #d4deeb; border-radius: 9px; color: var(--ink); padding: 8px 10px; }
.entry-panel .primary { min-height: 48px; font-size: .94rem; }
.pin-input { position: relative; width: min(100%, 254px); margin: auto; border-radius: 13px; }
.pin-slots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(5px, 2vw, 9px); }
.pin-slots span {
  display: grid; place-items: center; min-height: 49px; border-radius: 12px; border: 1px solid #d4deeb;
  background: #f5f8fc; font: 700 1.42rem ui-monospace, monospace; color: var(--ink);
}
.pin-input:focus-within .pin-slots span { border-color: #77aee9; background: #eef6ff; }
.entry-login .pin-input input {
  position: absolute; inset: 0; height: 100%; border: 0; border-radius: inherit;
  background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent;
}
.pin-input input::selection { background: transparent; }
.pin-input input::-ms-reveal { display: none; }
.entry-code { font-family: ui-monospace, monospace; }
.entry-recover, .entry-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: 4px 0; }
.entry-signup { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 13px; }
.entry-option {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 49px; border-radius: 999px;
  background: #f3f8ff; border: 1px solid #dce8f8; color: var(--accent-dark); padding: 8px;
  font-weight: 720; font-size: .82rem; box-shadow: 0 3px 8px #153a6820, inset 0 1px #ffffffc4;
}
.entry-option:hover { background: var(--accent-light); }
.entry-receipt { display: grid; gap: 10px; }
.entry-code-label { display: grid; gap: 5px; font-weight: 710; font-size: .85rem; }
.entry-code-label input { width: 100%; min-width: 0; padding: 10px 5px; border: 1px solid #d4deeb; border-radius: 8px; background: #f3f8ff; text-align: center; color: var(--ink); font-size: 1rem; }
.entry-receipt p { color: var(--muted); font-size: .88rem; }
@media (max-width: 580px), (max-width: 950px) and (max-height: 550px) {
  :root:has(> body.public-entry) { overscroll-behavior-y: none; }
  .public-entry .shell { height: 100dvh; overflow-y: auto; overscroll-behavior-y: none; }
  .public-entry #main { padding: 0 0 max(12px, env(safe-area-inset-bottom)); }
  .entry-hero { border-radius: 0 0 28px 28px; min-height: clamp(112px, 27dvh, 190px); }
  .entry-panel { width: calc(100% - 24px); }
  .public-entry .notice { bottom: 16px; }
}
@media (max-width: 950px) and (max-height: 550px) {
  .entry-panel { padding: 14px; }
  .entry-panel h1 { margin-bottom: 11px; }
  .entry-panel .auth-form { gap: 9px; }
  .entry-recover, .entry-back { margin-block: 0; }
  .entry-signup { padding-top: 9px; }
}
@media (max-width: 350px) {
  .entry-signup { grid-template-columns: 1fr; }
}

.driver-wizard {
  display: flex; flex-direction: column; flex: 1;
  width: min(100%, var(--wizard-width, 730px)); margin-inline: auto;
}
.wizard-brand { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0 15px; }
.wizard-brand img { width: min(42%, 158px); height: auto; }
.wizard-brand a { white-space: nowrap; }
.wizard-card {
  display: flex; flex-direction: column; flex: 1;
  padding: clamp(17px, 4vw, 32px); box-shadow: 0 14px 48px #16395c12;
}
.wizard-card h1 { font-size: clamp(1.65rem, 4.4vw, 2.65rem); margin: 0 0 20px; }
.wizard-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0 0 24px; padding: 0 0 15px; list-style: none; border-bottom: 1px solid var(--line); }
.wizard-steps li { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 700; }
.wizard-steps span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #edf2f8; }
.wizard-steps .done span { background: var(--accent-light); color: var(--accent-dark); }
.wizard-steps [aria-current] { color: var(--accent-dark); }
.wizard-steps [aria-current] span { background: var(--accent); color: white; }
.wizard-card .auth-form { max-width: none; }
.wizard-card > .auth-form { display: flex; flex-direction: column; flex: 1; }
.wizard-card > .auth-form > .wizard-actions { margin-top: auto; }
.wizard-heading h2 { font-size: clamp(1.24rem, 3vw, 1.58rem); margin-bottom: 4px; }
.wizard-heading p { color: var(--muted); font-size: .93rem; }
.driver-fields, .driver-files { display: grid; gap: 13px; }
.driver-fields input:not([type="file"]), .vehicle-picker select {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px; font-size: 1rem;
  border: 1px solid #dce5f1; border-radius: 14px; background: #f5f8fc; color: var(--ink);
}
.driver-fields input:not([type="file"]):focus-visible, .vehicle-picker select:focus-visible {
  border-color: #6da8ed; outline: 3px solid #9bc9ff70; outline-offset: 0;
}
.vehicle-picker { position: relative; display: block; }
.vehicle-picker select { appearance: none; padding-right: 38px; }
.vehicle-picker select:invalid { color: var(--muted); }
.vehicle-picker select:disabled { color: var(--muted); opacity: 1; -webkit-text-fill-color: var(--muted); cursor: default; }
.vehicle-picker > span { position: absolute; inset: 0 13px 0 auto; display: grid; place-items: center; pointer-events: none; color: var(--accent); }
.vehicle-slot:empty { display: none; }
.color-field { display: grid; gap: 5px; font-size: .84rem; font-weight: 700; }
.color-picker summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px;
  border: 1px solid #dce5f1; border-radius: 14px; background: #f5f8fc; color: var(--ink);
  font-size: 1rem; font-weight: 400; cursor: pointer; list-style: none;
}
.color-picker summary::-webkit-details-marker { display: none; }
.color-picker summary svg { margin-left: auto; color: var(--accent); flex-shrink: 0; }
.color-picker[open] summary svg { transform: rotate(180deg); }
.color-options {
  max-height: 232px; overflow-y: auto; overscroll-behavior-y: contain; padding: 4px; margin: 5px 0 0;
  list-style: none; border: 1px solid var(--line); border-radius: 14px; background: white;
  box-shadow: 0 4px 16px #18345612;
}
.color-options button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 7px 10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; font-size: .94rem;
}
.color-options button:hover, .color-options button[aria-pressed="true"] { background: var(--accent-light); color: var(--accent-dark); }
.color-options svg { margin-left: auto; visibility: hidden; }
.color-options button[aria-pressed="true"] svg { visibility: visible; }
.color-swatch { width: 21px; height: 21px; flex: 0 0 21px; border: 1px solid #24375128; border-radius: 50%; background: var(--swatch, #e8edf4); }
.color-swatch[data-swatch="blanco"] { --swatch: #fff; }
.color-swatch[data-swatch="negro"] { --swatch: #15191f; }
.color-swatch[data-swatch="gris"] { --swatch: #636c78; }
.color-swatch[data-swatch="plata"] { --swatch: linear-gradient(135deg, #edf1f5, #a3adba); }
.color-swatch[data-swatch="azul"] { --swatch: #1765cb; }
.color-swatch[data-swatch="rojo"] { --swatch: #cf2837; }
.color-swatch[data-swatch="vinotinto"] { --swatch: #732039; }
.color-swatch[data-swatch="verde"] { --swatch: #27734e; }
.color-swatch[data-swatch="amarillo"] { --swatch: #f1c927; }
.color-swatch[data-swatch="naranja"] { --swatch: #e87b2d; }
.color-swatch[data-swatch="beige"] { --swatch: #ded0ac; }
.color-swatch[data-swatch="marron"] { --swatch: #795443; }
.color-swatch[data-swatch="dorado"] { --swatch: #c49339; }
.color-swatch[data-swatch="morado"] { --swatch: #7042a5; }
.color-swatch[data-swatch="multicolor"] { --swatch: conic-gradient(#d44749, #f1c927, #27734e, #1765cb, #d44749); }
.phone-field input { min-width: 0; }
.phone-field { display: flex; align-items: center; gap: 7px; }
.phone-prefix { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; min-height: 44px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: #f6f9fd; }
.flag-colombia { flex: 0 0 23px; width: 23px; height: 23px; border-radius: 50%; background: linear-gradient(to bottom, #fcd116 0 50%, #003893 50% 75%, #ce1126 75%); }
.driver-wizard .driver-upload { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) 27px; align-items: center; gap: 9px; padding: 9px; background: #f8fbff; border: 1px solid #dce7f4; border-radius: 13px; cursor: pointer; min-width: 0; }
.driver-upload:hover, .driver-upload:focus-within { border-color: var(--accent); background: var(--accent-light); }
.driver-upload input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-info { display: grid; gap: 2px; min-width: 0; }
.upload-info small { color: var(--muted); line-height: 1.25; }
.upload-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); }
.profile-upload .upload-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.driver-files .upload-photo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.vehicle-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vehicle-photos .driver-upload { grid-template-columns: minmax(0, 1fr) 27px; grid-template-rows: auto 1fr; }
.vehicle-photos .upload-photo { grid-column: 1 / -1; display: block; width: 100%; height: auto; aspect-ratio: 1.38; object-fit: contain; background: #e8eef5; border-radius: 8px; }
.wizard-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.wizard-actions .primary { width: auto; min-width: 135px; }
dialog:has(.driver-review) { max-width: min(calc(100vw - 24px), 670px); max-height: 88dvh; overflow-y: auto; }
.driver-review { display: grid; gap: 13px; }
.review-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.review-data div { background: #f6f9fd; padding: 8px; border-radius: 9px; overflow-wrap: anywhere; }
.review-data dt { font-weight: 700; font-size: .76rem; color: var(--muted); }
.review-data dd { margin: 2px 0 0; font-size: .9rem; }
.review-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.review-photos a { display: grid; align-content: start; gap: 5px; color: var(--accent-dark); font-size: .83rem; font-weight: 650; }
.review-photos img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: contain; background: #f2f6fb; border-radius: 8px; }
.review-documents { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 580px) {
  .driver-wizard { width: 100%; padding-top: env(safe-area-inset-top); }
  .wizard-brand { padding-inline: 16px; }
  .wizard-card { border-inline: 0; }
  .wizard-steps li { flex-direction: column; text-align: center; font-size: .75rem; }
  .review-photos { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 360px) {
  .vehicle-photos .driver-upload { grid-template-columns: minmax(0,1fr); }
  .vehicle-photos .upload-icon { display: none; }
}

.passenger-registration { --wizard-width: 540px; }
.passenger-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.selfie-example { margin: auto; width: min(100%, clamp(150px, 35dvh, 350px)); }
.selfie-frame { overflow: hidden; border: 1px solid #dce7f4; border-radius: 17px; background: #ebf2fa; }
.selfie-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 42%; }
.selfie-example figcaption { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 5px; }
.selfie-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.auth-form .selfie-camera { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; }
.selfie-camera input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.selfie-camera:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.selfie-actions-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wizard-actions.selfie-actions-footer > button { width: 100%; min-width: 0; padding-inline: 8px; text-align: center; }
.passenger-registration .wizard-card > .auth-form > .primary { margin-top: auto; }
.passenger-confirmation { display: grid; gap: 12px; }
.passenger-confirmation > .symbol { width: 44px; height: 44px; }
.passenger-confirmation p { color: var(--muted); overflow-wrap: anywhere; }
.passenger-verify-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.passenger-verify-actions .text-button { padding-inline: 0; min-height: 42px; }
.auth-form .passenger-otp {
  min-height: 52px; border-radius: 14px; text-align: center;
  font: 700 1.25rem ui-monospace, monospace; letter-spacing: .35em;
}
.profile:has(img) { overflow: hidden; padding: 0; }
.profile img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 580px) {
  .passenger-steps li { flex-direction: column; text-align: center; }
}
@media (max-width: 580px) and (max-height: 670px) {
  .passenger-registration:has(.selfie-actions-footer) .wizard-card { padding-block: 14px; }
  .passenger-registration:has(.selfie-actions-footer) h1 { margin-bottom: 10px; }
  .passenger-registration:has(.selfie-actions-footer) .wizard-steps { margin-bottom: 12px; padding-bottom: 8px; }
  .passenger-registration:has(.selfie-actions-footer) .wizard-steps li { flex-direction: row; gap: 4px; }
  .passenger-registration:has(.selfie-actions-footer) .wizard-steps span { width: 22px; height: 22px; flex-basis: 22px; }
  .auth-form:has(.selfie-actions-footer) { gap: 9px; }
  .selfie-example { width: min(100%, clamp(150px, 30dvh, 200px)); }
  .selfie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .auth-form .selfie-camera { justify-content: center; padding-inline: 4px; text-align: center; }
}

.welcome-entry {
  background: linear-gradient(to bottom, var(--brand-blue-deep), var(--brand-blue-bright));
}
.public-entry.welcome-entry #main {
  max-width: none;
  padding: 0;
}
.passenger-welcome {
  display: grid;
  place-items: center;
  flex: 1;
  padding: max(26px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(26px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  color: #fff;
  text-align: center;
}
.welcome-content {
  display: grid;
  justify-items: center;
  width: min(100%, 480px);
  gap: clamp(16px, 4dvh, 29px);
}
.welcome-logo {
  display: block;
  width: min(56%, 212px);
  height: auto;
}
.welcome-heading h1 {
  color: #fff;
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 6.8vw, 3.35rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.welcome-heading p { color: #e3efff; font-size: 1rem; }
.welcome-code-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 390px);
  padding: clamp(18px, 4vw, 26px);
  background: #061c6559;
  border: 1px solid #d9ebff50;
  border-radius: 26px;
}
.welcome-code-card label { font-weight: 700; }
.welcome-code {
  --code-spacing: .18em;
  width: 100%;
  min-width: 0;
  border: 1px solid #9bc7ff55;
  border-radius: 15px;
  padding: 8px 0 8px var(--code-spacing);
  background: #041e5c91;
  color: #fff;
  font-size: clamp(2rem, 12vw, 3.6rem);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--code-spacing);
  text-align: center;
}
.welcome-code-card p { color: #e3efff; font-size: .94rem; }
.welcome-copy, .primary.welcome-continue {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 700;
}
.welcome-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  background: #1d1d1d;
  color: #fff;
}
.welcome-copy:hover { background: #303030; }
.primary.welcome-continue {
  width: min(100%, 390px);
  background: #fff;
  color: #1d1d1d;
  text-shadow: none;
  text-transform: uppercase;
}
.primary.welcome-continue:hover { background: #f2f6ff; }
.passenger-welcome :focus-visible { outline-color: #c7eaff; }

.service-picture {
  display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px;
  color: var(--accent-dark); background: var(--accent-light); border-radius: 10px; overflow: hidden;
}
.service-picture img { width: 100%; height: 100%; object-fit: contain; }
.service-cell { display: inline-flex; align-items: center; gap: 9px; }
.ride-service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ride-service-options > .alert { grid-column: 1 / -1; }
.ride-service-option {
  display: grid; grid-template-columns: minmax(0, 1fr) 18px; grid-template-areas: "icon radio" "name name";
  align-items: center; gap: 8px; min-height: 104px; padding: 11px 12px;
  border-radius: 16px; border: 1px solid #d9e4f1; background: white; cursor: pointer;
  box-shadow: 0 4px 12px #10284b0a; font-size: .96rem; overflow-wrap: anywhere;
}
.ride-service-option .service-picture { grid-area: icon; width: 46px; height: 42px; }
.ride-service-option input { grid-area: radio; accent-color: var(--accent-dark); margin: 0; width: 18px; height: 18px; }
.ride-service-name { grid-area: name; }
.ride-service-option:hover { border-color: #91b9ec; }
.ride-service-option:has(input:checked) { border-color: #3988e5; background: #eff6ff; box-shadow: inset 0 0 0 1px #3988e5; }
.ride-fare-breakdown { padding: 10px 0 0; color: var(--muted); font-size: .85rem; }
.ride-fare-breakdown summary { cursor: pointer; }
.ride-fare-breakdown dl { margin: 8px 0 0; }
.ride-fare-breakdown dl div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.ride-fare-breakdown dd { margin: 0; }

.request .ride-confirm-route, .ride-request { min-height: 56px; font-size: 1rem; }
.ride-focus .sidebar, .ride-focus .topbar { display: none; }
.ride-focus .shell { display: block; }
.ride-focus #main { display: flex; min-height: 100dvh; padding: 0; }
.ride-focus .notice { bottom: max(16px, env(safe-area-inset-bottom)); }
.ride-selection {
  display: flex; flex-direction: column; gap: 14px;
  width: min(100%, 520px); margin-inline: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
.ride-selection h1 { margin: 0 0 6px; font-size: clamp(1.9rem, 7vw, 2.7rem); }
.ride-selection-header { display: grid; gap: 10px; }
.ride-selection .map-panel { min-height: clamp(205px, 34dvh, 310px); }
.ride-back { justify-self: start; min-height: 44px; padding-inline: 15px; }
.ride-estimate {
  display: flex; gap: 10px; align-items: center; padding: 8px 13px;
  border: 1px solid #d8e7f8; border-radius: 13px; background: #ecf5ff; color: #153252;
}
.ride-estimate > span { display: flex; color: var(--accent-dark); }
.ride-estimate p { font-size: .8rem; color: var(--muted); }
.ride-estimate-value { font-size: 1.05rem; }
.ride-summary { display: grid; gap: 7px; padding: 12px 14px; margin: 0; }
.ride-summary dt { color: var(--muted); font-size: .78rem; }
.ride-summary dd { margin: 2px 0 0; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.ride-selection .ride-route-status { margin: 0; }
#ride-service-form { display: grid; align-content: start; gap: 12px; }
#ride-service-form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.ride-payment:empty { display: none; }
.ride-payment {
  padding: 14px; border: 1px solid #d7e4f5; border-radius: 16px; background: #eef6ff;
}
.ride-payment-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.ride-payment-total span { color: #244365; font-weight: 700; }
.ride-payment-total strong { color: #122d5a; font-size: 1.5rem; }
.ride-payment-total small { display: inline; font-size: .78rem; }
.ride-request { width: 100%; }

.ride-search-page { background: #092855; }
.driver-search {
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff;
  padding: max(24px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 42%, #124b91 0%, #092855 53%, #051733 100%);
}
.driver-search-body { width: min(100%, 430px); margin-block: auto; padding-block: 14px 24px; }
.driver-search h1 { margin: 10px 0; color: #fff; font-size: clamp(1.85rem, 7vw, 3.25rem); letter-spacing: -.038em; }
.driver-search-body > p { color: #e4efff; }
.driver-search .alert { margin-top: 12px; }
.search-tips { width: min(100%, 375px); margin: 18px auto 0; text-align: left; }
.search-tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.search-tip {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px;
  background: #142f59; border: 1px solid #5476a1; border-radius: 14px;
}
.search-tip strong { display: block; font-size: .92rem; margin-bottom: 3px; }
.search-tip p { font-size: .82rem; color: #e1eeff; }
.search-tip-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 11px; background: #214575; color: #c4e8ff; }
.driver-search > .secondary-button {
  min-height: 48px; width: min(100%, 330px); border-color: #7496bd; background: #173764; color: #fff;
}
.driver-search > .secondary-button:hover { background: #254981; }
.search-pulse {
  display: grid; place-items: center; width: min(100%, clamp(150px, 50vw, 235px), 33dvh);
  aspect-ratio: 1; margin: 0 auto 8px;
}
.search-pulse span, .search-pulse-icon { grid-area: 1 / 1; border-radius: 50%; }
.search-pulse span { width: 42%; aspect-ratio: 1; border: 1px solid #9dd5ff; background: #319dff1a; opacity: .58; }
.search-pulse span:nth-child(2) { transform: scale(1.55); opacity: .35; }
.search-pulse span:nth-child(3) { transform: scale(2.1); opacity: .21; }
.search-pulse-icon {
  display: grid; place-items: center; width: 38%; aspect-ratio: 1;
  background: #eaf5ff; color: #0953a5; box-shadow: 0 0 26px #52a8ff60;
}
.search-pulse-icon img { display: block; width: 100%; height: 100%; border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .search-pulse span { animation: search-ring 2.6s ease-out infinite; }
  .search-pulse span:nth-child(2) { animation-delay: -.87s; }
  .search-pulse span:nth-child(3) { animation-delay: -1.74s; }
  @keyframes search-ring {
    from { transform: scale(.9); opacity: .78; }
    to { transform: scale(2.3); opacity: 0; }
  }
  .search-tip { grid-area: 1 / 1; animation: search-tip-cycle 60s ease-in-out infinite; }
  .search-tip:nth-child(2) { animation-delay: -50s; }
  .search-tip:nth-child(3) { animation-delay: -40s; }
  .search-tip:nth-child(4) { animation-delay: -30s; }
  .search-tip:nth-child(5) { animation-delay: -20s; }
  .search-tip:nth-child(6) { animation-delay: -10s; }
  @keyframes search-tip-cycle {
    0% { visibility: visible; opacity: 0; transform: translateY(4px); }
    1%, 15.5% { visibility: visible; opacity: 1; transform: translateY(0); }
    16.666%, 100% { visibility: hidden; opacity: 0; transform: translateY(-4px); }
  }
}
