@font-face { font-family: Manrope; src: url("../fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url("../fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url("../fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("../fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: Outfit; src: url("../fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #1657d6;
  --blue-dark: #0f3f9e;
  --sky: #75aadb;
  --ink: #122033;
  --muted: #4d5d73;
  --line: #e3ebf4;
  --bg: #f3f7fb;
  --card: #ffffff;
  --green: #16a34a;
  --shadow: 0 16px 40px rgba(18, 47, 89, 0.08);
  --radius: 22px;
  --font: Manrope, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: #f4f7fb;
  min-height: 100vh;
}
.pwa-splash { display: none; }
html[data-mode="app"] .pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 28px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 50% 36%, #1768dc 0, #0b397c 38%, #061a38 78%);
  transition: opacity .4s ease, visibility .4s ease;
}
.pwa-splash.is-leaving { opacity: 0; visibility: hidden; }
.pwa-splash-glow { position: absolute; width: min(82vw, 430px); aspect-ratio: 1; border-radius: 50%; background: rgba(51,173,255,.2); filter: blur(28px); }
.pwa-splash img { position: relative; width: min(76vw, 320px); height: auto; filter: drop-shadow(0 24px 32px rgba(0,0,0,.36)); animation: splash-rise .7s cubic-bezier(.2,.75,.25,1) both; }
.pwa-splash strong { position: relative; margin-top: 18px; font-family: Outfit, Manrope, sans-serif; font-size: clamp(38px, 11vw, 56px); letter-spacing: -.055em; line-height: 1; }
.pwa-splash > span { position: relative; margin-top: 8px; color: #bfe5ff; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pwa-splash-dots { position: relative; display: flex; gap: 7px; margin-top: 28px; }
.pwa-splash-dots i { width: 7px; height: 7px; border-radius: 50%; background: #74c9ff; animation: splash-dot 1s ease-in-out infinite; }
.pwa-splash-dots i:nth-child(2) { animation-delay: .14s; }
.pwa-splash-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes splash-rise { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes splash-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-5px); } }
body.driver-page {
  background:
    linear-gradient(180deg, rgba(5,39,79,.76), rgba(8,47,91,.45) 48%, rgba(5,25,49,.72)),
    url("../images/driver-registration-bg.webp") center bottom / cover fixed no-repeat;
}
body.driver-page #driver { min-height: calc(100vh - 8px); display: grid; justify-items: center; align-content: start; padding: 14px 0 32px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, .type-card, .zone-card, .chip, .vehicle, .tool, .back, .ghost, .find, .suggestion {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
a { color: var(--blue); }
img { max-width: 100%; }

.flag-ribbon { height: 8px; background: linear-gradient(#75aadb 0 4px, #fff 4px 6px, #111 6px 8px); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.site-footer { color: var(--muted); border-top: 1px solid var(--line); margin-top: 28px; padding-bottom: 36px; }
.site-footer p { margin: 0; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 48px; height: auto; aspect-ratio: 574 / 435; object-fit: contain; flex: 0 0 auto; }
.brand-name { font-family: Outfit, Manrope, sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -0.05em; position: relative; }
.brand-name::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--green); right: -11px; top: 4px; }
.brand-dot { display: none; }
.brand-sub { margin-left: 4px; color: #3f8fc8; font-size: 12px; font-weight: 800; }
.quiet-link { color: var(--muted); font-weight: 700; text-decoration: none; }

.hero { display: grid; gap: 28px; align-items: center; padding: 18px 0 10px; }
.kicker { color: var(--blue); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; margin: 0 0 8px; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 0.98; letter-spacing: -0.045em; margin: 0 0 12px; }
.lede, .sheet-copy { color: var(--muted); font-size: 17px; line-height: 1.5; }
.hero-actions, .location-actions, .recommend-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.section { padding: 18px 0 8px; }
.section h2, .admin-main h2, .sheet h2 { letter-spacing: -0.03em; margin: 0 0 8px; }
.grid-3, .grid-2 { display: grid; gap: 14px; }
.panel, .info-card, .card, .stat {
  background: var(--card);
  border: 1px solid rgba(227, 235, 244, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card, .panel { padding: 18px; }
.info-card h3 { margin: 0 0 6px; }
.info-card p, .panel p { margin: 0; color: var(--muted); }
.steps { display: grid; gap: 12px; }
.step-line { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e8f1ff; color: var(--blue); font-weight: 800; }
.roadmap { display: flex; flex-wrap: wrap; gap: 8px; }
.roadmap span, .sim-chip, .guest-pill, .active-pill, .sync-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}
.roadmap span { background: #fff; border: 1px solid var(--line); color: var(--muted); }

.finder {
  min-height: 100vh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 14px 12px 28px;
  background: #eef3f8;
}
.finder-card {
  width: min(430px, 100%);
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.finder-top { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin-bottom: 4px; }
.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.finder-card h1 { font-size: 30px; margin-bottom: 6px; color: var(--ink); }
.finder-card .lede { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.step { margin: 16px 0 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.step-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.step-note { color: var(--muted); font-size: 12px; font-weight: 700; }
.type-grid, .zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.zone-grid { grid-template-columns: 1fr 1fr; }
.type-card, .zone-card, .ghost, .chip, .suggestion, .vehicle, .tool, .back {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  text-align: left;
  color: var(--ink);
}
.zone-card { display: grid; align-content: start; gap: 4px; padding: 14px 12px; min-height: 92px; position: relative; text-align: left; }
.zone-card strong, .type-card strong, .vehicle strong, .suggestion strong { display: block; color: var(--ink); }
.zone-card span { display: block; line-height: 1.35; }
.type-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px 12px;
  min-height: 132px;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.type-art {
  width: 100%;
  max-width: 104px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 2px;
  filter: drop-shadow(0 4px 8px rgba(18,32,51,0.16));
  pointer-events: none;
  user-select: none;
}
.type-card span, .zone-card span, .vehicle span, .suggestion span { color: var(--muted); font-size: 12px; }
.type-card.is-selected, .zone-card.is-selected, .chip.is-selected {
  background: #eef5ff;
  border-color: var(--blue);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(22, 87, 214, 0.16);
}
.type-card.is-selected span, .zone-card.is-selected span { color: var(--muted); }
.type-card.is-selected .type-art { transform: scale(1.06); }
.ghost.is-on {
  background: #eef5ff;
  border-color: var(--blue);
  color: var(--blue);
}
.zone-card .zone-dot { position: absolute; right: 12px; top: 12px; background: var(--blue); }
.zone-card.is-selected .zone-dot { background: #fff; }
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 8px 4px 12px;
  background: #fff;
  color: var(--ink);
}
.field input, .stack input, .stack select, .stack textarea, .sheet select, #route-select {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  outline: none;
  color: var(--ink);
}
.field input::placeholder { color: #7d8b9c; }
.stack input, .stack select, .stack textarea, #route-select, .sheet select {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
}
.stack textarea { min-height: 90px; resize: vertical; }
.icon-button { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.chip-label { font-size: 12px; font-weight: 800; color: var(--muted); }
.chip { border-radius: 999px; padding: 7px 10px; font-weight: 800; font-size: 13px; background: #fff; }
.suggestions { display: grid; gap: 6px; margin-top: 8px; }
.suggestion, .vehicle { width: 100%; padding: 10px 12px; display: grid; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.location-label { color: var(--ink); font-weight: 700; font-size: 14px; }
.ghost, .tool, .back { padding: 10px 12px; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.find {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: var(--blue);
  color: #fff;
  min-height: 58px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.find:hover { background: var(--blue-dark); }
.find .ico { color: #fff; }
.find .ico svg { stroke: #fff; }
.recommend { background: #f4f8ff; border-radius: 16px; padding: 12px; margin: 8px 0; color: var(--ink); }
.recommend p { margin: 0 0 8px; }
.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 800; padding: 0; }
.text-button.muted { color: var(--muted); }
.finder-card .ico svg { stroke: var(--muted); }
.finder-card .find .ico svg { stroke: #fff; }
.ico svg { width: 22px; height: 22px; display: block; }
.form-error { color: #9f1239; font-weight: 700; }

.results { position: fixed; inset: 0; width: 100vw; height: 100vh; background: #f3f6f9; }
.map-canvas, .map-canvas.maplibregl-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.maplibregl-canvas { outline: none; }
.editor-map { position: relative; height: 280px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.map-bar, .map-tools, .veil, .center-pin, .sheet, .pickup-label { position: absolute; z-index: 2; }
.map-bar {
  top: 12px; left: 12px; right: 12px;
  display: flex; gap: 10px; align-items: center;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.map-bar .back {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
}
.map-bar div { display: grid; min-width: 0; }
.map-bar span { color: var(--muted); font-size: 12px; }
.map-bar strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.map-tools { top: auto; bottom: calc(min(62vh, 560px) + 24px); right: 14px; display: grid; gap: 10px; z-index: 3; }
.tool {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.tool.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pickup-label {
  left: 50%;
  top: 44%;
  transform: translate(-50%, -110%) scale(0.96);
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  min-width: 0;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
}
.pickup-label.is-visible {
  opacity: 1;
  transform: translate(-50%, -120%) scale(1);
}
.pickup-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: rgba(17, 17, 17, 0.82);
  transform: translateX(-50%) rotate(45deg);
}
.pickup-kicker { display: block; font-size: 10px; color: rgba(255,255,255,0.7); font-weight: 700; }
.pickup-name { display: block; font-size: 12px; font-weight: 800; }
.center-pin { left: 50%; top: 46%; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: var(--blue); transform: translate(-50%, -100%) rotate(-45deg); box-shadow: var(--shadow); }
.veil {
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(243, 247, 251, 0.72);
  color: var(--ink);
  text-align: center;
  padding: 24px;
}
.veil p { margin: 12px 0 0; font-weight: 800; }
.radar {
  width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid rgba(22, 87, 214, 0.25);
  background: radial-gradient(circle, rgba(22,87,214,0.28), transparent 62%);
  animation: pulse 1.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(0.7); opacity: 0.8; } to { transform: scale(1.25); opacity: 0.2; } }
.sheet {
  left: 10px; right: 10px; bottom: 10px;
  max-height: min(62vh, 560px);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 28px 28px 22px 22px;
  padding: 8px 14px 18px;
  box-shadow: var(--shadow);
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sheet.is-hidden {
  transform: translateY(calc(100% - 52px));
  pointer-events: auto;
}
.sheet.is-hidden .sheet-body {
  pointer-events: none;
}
.sheet-body {
  max-height: calc(min(62vh, 560px) - 40px);
  overflow: auto;
  overflow-x: hidden;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.sheet-route-switch {
  display: grid;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f4f8ff;
  border: 1px solid #d7e6f7;
}
.sheet-route-switch select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}
.sheet-handle {
  appearance: none;
  border: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  border-radius: 14px;
  background: #f3f6f9;
  color: var(--ink);
  margin: 0 auto 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sheet-arrow { color: var(--blue); font-size: 18px; line-height: 1; }
.results.sheet-collapsed .map-tools {
  bottom: 52px;
}
.map-tools {
  transition: bottom 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sheet-kicker { color: var(--blue); font-weight: 800; font-size: 13px; margin: 0; }
.sheet h2 { color: var(--ink); }
.sheet .sheet-copy { color: var(--muted); }
.sheet .recommend { background: #f4f8ff; color: var(--ink); }
.sheet .text-button { color: var(--blue); }
.sheet .text-button.muted { color: var(--muted); }
.sheet select {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.vehicle-list { display: grid; gap: 8px; margin: 10px 0; }
.vehicle-block {
  display: grid;
  gap: 8px;
}
.vehicle-block.is-selected {
  padding: 0;
}
.vehicle {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.vehicle span { color: var(--muted) !important; }
.vehicle.is-selected { border-color: var(--blue); background: #f4f8ff; }
.directions-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
}
.directions-btn:hover { background: var(--blue-dark); }
.sheet-switch { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { padding: 22px 16px; background: #fff; border-right: 1px solid var(--line); }
.admin-main { padding: 22px; display: grid; gap: 14px; align-content: start; }
.admin-head, .row, .route-row, .step-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stat-grid, .admin-split { display: grid; gap: 12px; }
.stat-grid { grid-template-columns: repeat(4, 1fr); }
.admin-split { grid-template-columns: 1.4fr 0.8fr; }
.stat { padding: 14px 16px; }
.stat span, .route-row span { color: var(--muted); display: block; font-size: 13px; }
.stat strong { font-size: 28px; letter-spacing: -0.04em; }
.chart { display: flex; align-items: end; gap: 6px; min-height: 160px; }
.bar { flex: 1; display: grid; justify-items: center; gap: 4px; }
.bar span { width: 100%; background: var(--blue); border-radius: 8px 8px 3px 3px; display: block; }
.bar small, .bar em { font-size: 10px; color: var(--muted); font-style: normal; }
.route-table { display: grid; gap: 8px; }
.route-row { padding: 10px 0; border-top: 1px solid var(--line); }
.editor-form { margin: 8px 0 16px; }
.stack { display: grid; gap: 8px; }
.admin-card { width: min(480px, calc(100% - 28px)); margin: 28px auto; padding: 22px; }
.wide { grid-column: 1 / -1; }
html[data-mode="app"] .gate { display: none; }
html[data-mode="gate"] #app { display: none; }
.gate { width: min(520px, calc(100% - 28px)); margin: 28px auto; }

.zone-block select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); padding: 10px 12px; }
.driver-card { width: min(680px, calc(100% - 28px)); background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.78); box-shadow: 0 24px 70px rgba(3,28,60,.28); backdrop-filter: blur(10px); }
.driver-card h1 { font-size: clamp(30px, 6vw, 46px); margin-top: 18px; }
.driver-card .brand { width: fit-content; }
.driver-desktop-note { text-align: center; margin-top: 9vh; }
.driver-desktop-note .brand { margin-inline: auto; }
.driver-desktop-note .find { text-decoration: none; }
.field-label { display: grid; gap: 6px; font-weight: 750; color: var(--ink); }
.field-label > span { font-size: 13px; color: var(--muted); }
.field-label input[aria-invalid="true"], .field-label select[aria-invalid="true"] { border-color: #c92f4b; box-shadow: 0 0 0 3px rgba(201,47,75,.1); }
.field-label input:valid:not(:placeholder-shown) { border-color: #74bd8d; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.registration-form select[multiple] { min-height: 180px; }
.auth-form { margin-top: 16px; }
.password-strength { display: grid; gap: 7px; padding: 10px 12px; border-radius: 14px; background: #f4f7fb; border: 1px solid var(--line); }
.strength-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; }
.strength-label { color: var(--muted); font-weight: 800; }
.strength-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.strength-bars span { height: 5px; border-radius: 99px; background: #d9e2ec; }
.password-strength[data-score="1"] .strength-bars span:nth-child(-n+1),
.password-strength[data-score="2"] .strength-bars span:nth-child(-n+2) { background: #dc4a4a; }
.password-strength[data-score="3"] .strength-bars span:nth-child(-n+3) { background: #d79a16; }
.password-strength[data-score="4"] .strength-bars span:nth-child(-n+4),
.password-strength[data-score="5"] .strength-bars span:nth-child(-n+5) { background: #1f9d55; }
.password-strength small { color: var(--muted); line-height: 1.4; }
.status-panel, .approval-pop { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #f7f9fc; }
.status-panel p, .approval-pop p { margin: 5px 0 0; color: var(--muted); }
.status-panel.approved, .approval-pop { border-color: #9ed7b0; background: #f0fbf4; }
.status-panel.rejected { border-color: #efb0b0; background: #fff5f5; }
.status-panel.pending { border-color: #f0d28b; background: #fffaf0; }
.share-state { font-size: 24px; }
.action-toast { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(520px, calc(100% - 28px)); padding: 12px 16px; border-radius: 14px; background: #122033; color: #fff; font-weight: 750; box-shadow: 0 14px 38px rgba(10,24,40,.24); }
.action-toast.error { background: #8f2424; }
.admin-tabs { display: flex; gap: 8px; margin: 12px 0; }
.admin-tab { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); padding: 9px 14px; font-weight: 800; }
.admin-tab.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.application-list { display: grid; gap: 10px; }
.application-card { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.application-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.application-head span { display: block; color: var(--muted); font-size: 13px; }
.status-pill, .live-dot { border-radius: 999px; padding: 5px 9px; background: #eef3f8; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.live-dot { background: #eaf8ef; color: #18763b; }
.find.compact { width: auto; min-height: 42px; padding: 8px 16px; }
.verification-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 0; }
.verification-card { text-align: center; margin: 0 auto; }
.verification-card .brand { margin-inline: auto; }
.verification-icon { width: 72px; height: 72px; margin: 28px auto 14px; display: grid; place-items: center; border-radius: 50%; background: #e9f9ef; color: #15803d; font-size: 38px; font-weight: 900; box-shadow: inset 0 0 0 1px #b8e3c7; }
.verification-card h1 { margin: 8px 0; }
.verification-action { display: inline-flex; justify-content: center; text-decoration: none; margin-top: 14px; }
.legal-shell { width: min(900px, calc(100% - 28px)); margin: 28px auto 56px; }
.legal-card { padding: clamp(22px, 5vw, 48px); }
.legal-card h1 { font-size: clamp(36px, 7vw, 62px); margin: 16px 0 10px; }
.legal-card h2 { margin: 30px 0 8px; color: var(--ink); }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.7; }
.legal-card a { color: var(--blue); }
.legal-card ul { padding-left: 22px; }
.legal-note { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9fc; }
.legal-back { display: inline-flex; text-decoration: none; justify-content: center; margin-top: 8px; color: #fff !important; }
.privacy-hint { margin: 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.privacy-hint a, .location-consent a { color: var(--blue); font-weight: 750; }
.location-privacy { margin-top: -4px; }
.location-consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9fc; color: var(--muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.location-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.location-consent:focus-within { outline: 3px solid rgba(22,87,214,.18); outline-offset: 2px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .sheet { left: 20px; right: auto; width: 390px; top: 92px; bottom: 20px; max-height: none; }
  .map-tools { top: auto; bottom: 28px; right: 24px; }
}
@media (max-width: 899px) {
  .admin-shell, .stat-grid, .admin-split { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .phone-mock { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  body.driver-page { background-position: center bottom; background-attachment: scroll; }
  body.driver-page #driver { padding-top: 8px; }
  .driver-card { margin: 8px auto 150px; padding: 18px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .radar { animation: none; }
  .pwa-splash img, .pwa-splash-dots i { animation: none; }
}
