html.is-embed,
body.is-embed { background: var(--bg); }
body.is-embed .skip,
body.is-embed .top,
body.is-embed .nav-mobile,
body.is-embed .foot { display: none !important; }
body.is-embed main.wrap { padding-top: 0.75rem; padding-bottom: 0.75rem; }
:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --text: #12202c;
  --muted: #5b6b78;
  --line: #dde3ea;
  --accent: #16324a;
  --accent-hover: #0f2436;
  --accent-text: #f7f4ef;
  --cta: #c45c26;
  --cta-hover: #a84c1e;
  --cta-text: #fffaf6;
  --ok: #1f6b4a;
  --danger: #b42318;
  --warn: #9a6700;
  --plus: #8a6a2f;
  --plus-bg: #f7f1e4;
  --pin-e: #1f7a46;
  --pin-d: #b42318;
  --pin-b: #1d4e89;
  --pin-h: #5b3fa0;
  --pin-w: #8a6a00;
  --pin-l: #c2410c;
  --pin-c: #7c4a1e;
  --pin-o: #64748b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 32, 44, 0.06), 0 8px 24px rgba(18, 32, 44, 0.04);
  --header-h: 64px;
  --font: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 1.5rem;
  --pad: 1rem;
}
[data-theme="dark"] {
  --bg: #0d141b;
  --surface: #16202a;
  --text: #eef2f6;
  --muted: #9aabba;
  --line: #2a3846;
  --accent: #d7e3ee;
  --accent-hover: #ffffff;
  --accent-text: #12202c;
  --cta: #e07a42;
  --cta-hover: #f08a54;
  --cta-text: #1a0f0a;
  --ok: #5dcca0;
  --danger: #f0a8a0;
  --plus: #e4c98a;
  --plus-bg: #2a2418;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  padding-bottom: 4.75rem;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  color: var(--text);
}
.wrap {
  width: min(1180px, calc(100% - 1.5rem));
  margin-inline: auto;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}
.nav-desktop { display: none; }
.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0.15rem;
}
.nav-desktop a:hover, .nav-desktop a:focus, .nav-desktop a[aria-current="page"] { color: var(--text); }
.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.theme, .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.btn, button.btn, input[type=submit].btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border: 0;
  border-radius: 10px;
  background: var(--cta);
  color: var(--cta-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  width: auto;
}
.btn:hover { background: var(--cta-hover); }
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.secondary:hover { background: var(--bg); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
}
.btn.dark {
  background: var(--accent);
  color: var(--accent-text);
}
.btn.danger { background: var(--danger); color: #fff; }
.btn.block { width: 100%; }
.nav-mobile {
  position: fixed;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 0.3rem 0.2rem calc(0.3rem + env(safe-area-inset-bottom));
  z-index: 20;
}
.nav-mobile a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.35rem 0.1rem;
}
.nav-mobile svg { width: 20px; height: 20px; }
.nav-mobile a[aria-current="page"], .nav-mobile a:hover { color: var(--text); }
main.wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-xl);
}
main.wrap > .hero,
main.wrap > .home-board,
main.wrap > .page-head,
main.wrap > .search-panel,
main.wrap > .card,
main.wrap > .panel,
main.wrap > .flash,
main.wrap > .plan-grid,
main.wrap > .layout-2,
main.wrap > .steps,
main.wrap > .list,
main.wrap > .tabs,
main.wrap > .section-block,
main.wrap > .admin-nav,
main.wrap > .kpi-grid,
main.wrap > .stack,
main.wrap > .stack-sm { margin-bottom: 0; }
.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space);
  align-items: end;
  margin-bottom: 0;
}
.stack { display: grid; gap: var(--space); }
.stack-sm { display: grid; gap: var(--space-sm); }
.section-block { display: grid; gap: var(--space); }
.stack > h2,
.stack > h3,
.card.stack > h3,
.section-block h2 { margin: 0; }
.form-actions { margin: var(--space) 0 0; }
.stack > .form-actions { margin: 0; }
.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.2; }
h1 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin: 0.15rem 0 var(--space-xs); }
h2 { font-size: 1.15rem; margin: 0 0 var(--space); }
.page-head h1 { margin-bottom: 0; }
.page-head h2 { margin: 0; }
.card > h3 {
  margin: var(--space) 0 var(--space-sm);
  font-size: 1.02rem;
}
.card > h3:first-child { margin-top: 0; }
.lede { color: var(--muted); margin: 0 0 var(--space); max-width: 42rem; }
.page-head .lede { margin-bottom: 0; }
.hero {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 18px;
  padding: var(--space-lg) var(--space) var(--space);
  margin-bottom: 0;
}
.hero h1, .hero .lede, .hero .kicker { color: inherit; }
.hero .lede { opacity: 0.82; }
.hero .kicker { color: color-mix(in srgb, var(--accent-text) 70%, transparent); }
.search-panel, .card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.search-panel {
  padding: var(--pad);
  margin-top: 0;
}
.hero .search-panel { margin-top: var(--space); }
.card, .panel { padding: var(--pad); margin: 0; }
.form-grid, .search-grid {
  display: grid;
  gap: var(--space-sm);
}
.search-grid {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.search-grid .when-field { grid-column: 1 / -1; }
.search-submit {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 0;
}
.search-submit-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.28rem;
  visibility: hidden;
}
.search-submit .btn {
  width: 100%;
  white-space: nowrap;
}
.search-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.search-filters { margin-top: var(--space-sm); }
.search-filters-narrow { max-width: 16rem; }
.lang-form { margin: 0; }
.lang-form select {
  width: auto;
  max-width: 9.6rem;
  min-height: 40px;
  font-size: 0.8rem;
  padding: 0.3rem 0.45rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
html[dir="rtl"] .logo { letter-spacing: 0; }
html[dir="rtl"] .nav-mobile { direction: rtl; }
.field-hint {
  margin: var(--space-sm) 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.when-labels,
.when-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 0.4rem;
  align-items: end;
}
.badge.reco {
  background: color-mix(in srgb, var(--ok) 12%, var(--bg));
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 35%, var(--line));
}
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.28rem;
}
.field label { margin-bottom: 0.28rem; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=file]):not([type=image]):not([type=range]):not([type=color]),
select, textarea {
  width: 100%;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .theme:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}
input[type=checkbox], input[type=radio] {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0;
  flex: 0 0 1.05rem;
  accent-color: var(--cta);
  cursor: pointer;
}
.choice, .switch {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.55rem 0;
  font-weight: 550;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}
.choice span, .switch span { flex: 1; }
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  color: var(--text);
}
.chip input {
  width: 0.9rem;
  height: 0.9rem;
  min-height: 0;
}
.chip:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.muted { color: var(--muted); }
.flash {
  border-radius: 10px;
  padding: 0.7rem var(--space);
  margin-bottom: 0;
  font-weight: 600;
}
.flash.ok { background: #e6f6ee; color: var(--ok); }
.flash.err { background: #fdecea; color: var(--danger); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: var(--space) 0 0;
}
.stat {
  background: color-mix(in srgb, var(--accent-text) 8%, transparent);
  border-radius: 10px;
  padding: 0.7rem 0.6rem;
  text-align: center;
}
.stat b { display: block; font-size: 1.05rem; }
.stat span { color: color-mix(in srgb, var(--accent-text) 75%, transparent); font-size: 0.75rem; }
.steps, .split, .auth-grid { display: grid; gap: var(--space); }
.route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space);
}
.step, .route-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
}
.route-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}
.step b { display: block; margin-bottom: 0.25rem; }
.ride-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.card > .ride-card,
.card > form.ride-card { margin: 0 0 var(--space); }
.card > .ride-card:last-child,
.card > form.ride-card:last-child { margin-bottom: 0; }
.ride-card h2, .ride-card h3 { margin: 0; font-size: 1.02rem; }
.ride-card h2 a, .ride-card h3 a { color: inherit; text-decoration: none; }
.price {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: right;
  white-space: nowrap;
}
.meta { color: var(--muted); font-size: 0.9rem; margin: 0.15rem 0 0; }
.badge, .pin {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge { background: var(--bg); border: 1px solid var(--line); }
.badge.plus { background: var(--plus-bg); color: var(--plus); border-color: color-mix(in srgb, var(--plus) 35%, var(--line)); }
.pin { color: #fff; min-width: 1.4rem; justify-content: center; }
.pin-electric { background: var(--pin-e); }
.pin-diesel { background: var(--pin-d); }
.pin-petrol { background: var(--pin-b); }
.pin-hybrid { background: var(--pin-h); }
.pin-hydrogen { background: var(--pin-w); }
.pin-lpg { background: var(--pin-l); }
.pin-cng { background: var(--pin-c); }
.pin-other { background: var(--pin-o); }
.trust-row, .checks { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0.4rem 0; list-style: none; }
.partner {
  border: 1px dashed var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--pad);
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.partner strong { color: var(--text); display: block; margin-bottom: 0.2rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0;
}
.admin-nav a {
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  display: grid;
  place-items: center;
}
.admin-nav a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--bg);
}
.home-live-hint {
  width: 100%;
  display: grid;
  gap: 0.15rem;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad);
  margin: 0;
  min-height: 44px;
  cursor: pointer;
}
.home-live-hint[hidden],
.home-map-slot[hidden] { display: none !important; }
.home-live-hint .kicker { margin: 0; }
.home-live-hint strong { font-size: 1.02rem; letter-spacing: -0.02em; }
.home-live-hint span:last-child { color: var(--accent); font-weight: 650; font-size: 0.92rem; }
.home-live-hint:hover, .home-live-hint:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.home-map-slot { display: grid; gap: var(--space); }
.home-map-slot .map { margin-bottom: 0; height: 280px; }
.home-map-note { margin: 0; font-size: 0.82rem; }
.tabs { display: flex; gap: var(--space-xs); margin: 0; }
.tabs a, .tabs button {
  flex: 1;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 0.9rem;
}
.tabs a[aria-current="page"] { border-color: var(--accent); background: var(--bg); }
a.chip { text-decoration: none; }
.map {
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #d7e4ef;
  margin-bottom: 0;
}
#live-map-board { display: grid; gap: var(--space); }
.pin-taxi {
  background: #1a1a1a;
  color: #f5c518;
}
.map-pin,
.map-dot {
  position: absolute;
  z-index: 2;
  text-decoration: none;
  background: none !important;
  color: inherit;
  padding: 0;
  border: 0;
}
.map-pin {
  width: 1.2rem;
  height: 1.7rem;
  transform: translate(-50%, -100%);
}
.map-pin:hover,
.map-pin:focus-visible,
.map-pin.is-open { z-index: 6; outline: none; }
button.map-pin {
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.map-pin-needle {
  position: absolute;
  left: 50%;
  bottom: 0.08rem;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: -0.575rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin-o);
  box-shadow: 0 1px 3px rgba(18, 32, 44, 0.35);
}
.map-pin-needle::after {
  content: "";
  position: absolute;
  inset: 29%;
  border-radius: 50%;
  background: #fff;
}
.map-pin.pin-electric .map-pin-needle { background: var(--pin-e); }
.map-pin.pin-diesel .map-pin-needle { background: var(--pin-d); }
.map-pin.pin-petrol .map-pin-needle { background: var(--pin-b); }
.map-pin.pin-hybrid .map-pin-needle { background: var(--pin-h); }
.map-pin.pin-hydrogen .map-pin-needle { background: var(--pin-w); }
.map-pin.pin-lpg .map-pin-needle { background: var(--pin-l); }
.map-pin.pin-cng .map-pin-needle { background: var(--pin-c); }
.map-pin.pin-other .map-pin-needle { background: var(--pin-o); }
.map-pin.pin-taxi .map-pin-needle { background: #1a1a1a; }
.map-pin.pin-taxi .map-pin-needle::after { background: #f5c518; }
.map-pin-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.3rem);
  transform: translateX(-50%);
  min-width: 4.5rem;
  max-width: 12.5rem;
  padding: 0.32rem 0.5rem;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.map-pin:hover .map-pin-popup,
.map-pin:focus-visible .map-pin-popup,
.map-pin.is-open .map-pin-popup {
  opacity: 1;
  visibility: visible;
}
.map-pin-card {
  display: grid;
  gap: var(--space);
  margin: 0;
  padding: var(--pad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.map-pin-card[hidden] { display: none !important; }
.map-pin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
}
.map-pin-card-head h3 { margin: 0.1rem 0 0.15rem; font-size: 1.15rem; }
.map-pin-card h4 { margin: 0 0 0.25rem; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.04em; }
.map-pin-card section { display: grid; gap: 0.25rem; }
.map-pin-card .map-pin-card-close { flex: 0 0 auto; min-height: 40px; }
.map-pin-chips { margin: 0.2rem 0 0; }
.map-pin-chips li {
  display: inline-block;
  margin: 0 0.3rem 0.3rem 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 650;
}
.map-pin-reviews,
.map-pin-history { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.map-pin-reviews p,
.map-pin-history span { margin: 0.15rem 0 0; }
.map-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #64748b;
  opacity: 0.5;
}
.gps-panel .map { height: 280px; }
.list { display: grid; gap: var(--space); padding: 0; margin: 0; list-style: none; }
.list > .card { margin-bottom: 0; }
.layout-2 {
  display: grid;
  gap: var(--space);
}
.layout-2 > div:not(.card):not(.panel),
.layout-2 > aside {
  display: grid;
  gap: var(--space);
  align-content: start;
}
.home-board {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: 0;
  align-items: start;
  align-content: start;
}
.home-side { display: grid; gap: var(--space); }
.home-side .card { margin-bottom: 0; }
.home-rides { align-self: start; }
.home-start {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad);
}
.home-start .kicker { margin-bottom: var(--space-sm); }
.home-start-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.home-start-actions .btn:first-child { grid-column: 1 / -1; }
.home-start-actions .btn { width: 100%; }
.home-start-actions .btn.ghost { border-color: var(--line); background: var(--bg); }
.home-start-note { margin: var(--space-sm) 0 0; font-size: 0.82rem; }
.home-rides { display: grid; gap: var(--space); }
.home-rides .page-head { margin-bottom: 0; }
.home-rides .card { padding: var(--pad); }
.home-rides .ride-card h3 { font-size: 0.98rem; }
.home-rides .price { font-size: 1.02rem; }
.home-live:not(:has(:not([hidden]))) { display: none; }
.emergency {
  display: flex;
  gap: 0.5rem;
  position: sticky;
  bottom: 5rem;
}
.emergency .btn { flex: 1; }
.auth-shell { width: min(440px, 100%); margin: 0.5rem auto 1.5rem; }
.field { margin-bottom: var(--space-sm); }
.form-grid .field, .search-grid .field, .search-area .field { margin-bottom: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space) 0 0; }
.card > .btn-row:first-child,
.stack > .btn-row,
.page-head + .btn-row { margin-top: 0; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space);
  margin-bottom: 0;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
}
.kpi b { display: block; font-size: 1.45rem; letter-spacing: -0.04em; }
.kpi span { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.plan-grid { display: grid; gap: var(--space); margin-bottom: 0; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--pad);
  box-shadow: var(--shadow);
}
.plan.featured {
  border-color: color-mix(in srgb, var(--plus) 45%, var(--line));
  background: var(--plus-bg);
}
.plan .price { text-align: left; margin: 0.15rem 0 0.7rem; font-size: 1.6rem; }
.plan ul { margin: 0 0 var(--space); padding-left: 1.1rem; color: var(--muted); }
.plan li { margin: 0.25rem 0; }
.inbox { display: grid; gap: 0.35rem; }
.inbox-item {
  display: grid;
  text-decoration: none;
  color: inherit;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
}
.inbox-item:hover { background: var(--bg); }
.thread { display: grid; gap: var(--space-sm); margin-bottom: 0; }
.bubble {
  background: var(--bg);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
}
.bubble p { margin: 0.2rem 0 0; }
.legal-copy { max-width: 42rem; display: grid; gap: var(--space); }
.legal-copy h2 { margin: 0; }
.legal-copy p, .legal-copy ul { margin: 0; color: var(--muted); }
.legal-copy ul { padding-left: 1.1rem; }
.legal-copy:has(.faq-item) { gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: var(--space) 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { padding-bottom: 0; }
.faq-item summary { font-weight: 650; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.faq-item p { margin: 0.4rem 0 0; }
.pickup-code {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  font-weight: 750;
  margin: 0.2rem 0 0.6rem;
}
.safety-box ul { margin: 0.4rem 0 0.6rem; padding-left: 1.1rem; color: var(--muted); }
.featured-card { border-style: dashed; border-color: color-mix(in srgb, var(--plus) 45%, var(--line)); background: var(--plus-bg); }
.partner b { display: block; color: var(--text); margin: 0.15rem 0; }
.foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 2rem 0 6.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-grid {
  display: grid;
  gap: 1.2rem;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
@media (max-width: 767px) {
  .hide-sm { display: none !important; }
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .nav-mobile { display: none; }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-left: 1.4rem;
  }
  .hero { padding: var(--space-xl) 2rem var(--space); }
  .search-grid {
    grid-template-columns: minmax(6.5rem, 1.15fr) minmax(6.5rem, 1.15fr) minmax(11rem, 1.2fr) minmax(3.6rem, 0.42fr) minmax(9rem, auto);
    align-items: end;
  }
  .search-grid .when-field { grid-column: auto; }
  .search-submit .btn { width: 100%; min-height: 44px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .route-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space); }
  .layout-2 { grid-template-columns: minmax(0, 1.8fr) minmax(240px, 0.85fr); align-items: start; }
  .home-board {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    grid-template-areas:
      "start start"
      "rides side";
    align-items: start;
    align-content: start;
  }
  .home-board.has-live-map {
    grid-template-areas:
      "start start"
      "live side"
      "rides side";
  }
  .home-start { grid-area: start; }
  .home-live { grid-area: live; }
  .home-rides { grid-area: rides; align-self: start; }
  .home-side { grid-area: side; align-self: start; position: sticky; top: calc(var(--header-h) + var(--space-lg)); }
  .home-start-actions { grid-template-columns: 1.3fr 1fr 0.75fr; }
  .home-start-actions .btn:first-child { grid-column: auto; }
  .home-map-slot .map { height: 340px; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .foot { padding-bottom: 2.4rem; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .emergency { position: static; }
}
.stat-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.45rem;
  margin: 0.28rem 0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 650;
}
.stat-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  max-width: 100%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 8px;
}
html[dir="rtl"] .stat-bar::before { inset: 0 0 0 auto; }
.stat-bar span, .stat-bar b { position: relative; }
.stat-bar b { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 0 -0.15rem; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.data-table th, .data-table td {
  text-align: start;
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table th { color: var(--muted); font-weight: 650; }
.report-sheet h1 { font-size: 1.45rem; }
@media print {
  header.top, footer, .admin-nav, .no-print, .skip, .emergency, .nav-mobile { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
  .wrap { width: 100%; }
}
@media (min-width: 1024px) {
  .map { height: 460px; }
}
@media (min-width: 1280px) {
  .wrap { width: min(1240px, calc(100% - 2rem)); }
}
