:root {
  --text: #0E1730;
  --deep: #101C3A;
  --blue: #2F6BFF;
  --blue-2: #5BA8FF;
  --cyan: #7EE7FF;
  --pickup: #2F6BFF;
  --dropoff: #FF6B4A;
  --ok: #22C07A;
  --danger: #E24B4B;
  --muted: #5A6B88;
  --line: color-mix(in srgb, var(--deep) 10%, transparent);
  --bg: #e7eefb;
  --bg-2: #f4f7ff;
  --surface: rgba(255, 255, 255, 0.56);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88));
  --shadow: 0 10px 30px rgba(16, 28, 58, 0.08), 0 2px 8px rgba(16, 28, 58, 0.04);
  --shadow-lg: 0 24px 64px rgba(16, 28, 58, 0.14), 0 4px 16px rgba(16, 28, 58, 0.06);
  --glow: 0 12px 28px rgba(47, 107, 255, 0.28);
  --radius: 26px;
  --radius-sm: 18px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Sora", var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --kb: 0px;
  --vvh: 100dvh;
  --sheet-h: 60dvh;
  --topbar-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  max-width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.011em;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(980px 560px at 8% -18%, rgba(126, 231, 255, 0.55), transparent 58%),
    radial-gradient(820px 520px at 96% -12%, rgba(47, 107, 255, 0.28), transparent 54%),
    radial-gradient(720px 480px at 78% 112%, rgba(255, 107, 74, 0.14), transparent 56%),
    linear-gradient(180deg, #f7f9ff 0%, #e4edfb 46%, #d4e1f4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: auto auto 8% -8%;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.16), transparent 68%);
  filter: blur(8px);
  animation: drift 18s var(--ease) infinite alternate;
}

.app {
  position: relative;
  z-index: 1;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

h1,
h2,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app {
  display: grid;
  grid-template-columns: 84px 440px minmax(0, 1fr);
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  gap: 16px;
  width: min(1540px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 18px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  overscroll-behavior: none;
}

.topbar,
.sidenav,
.panel,
.map-wrap,
.icon-btn,
.map-fab,
.map-route-card,
.map-status,
.toast,
.help-card,
.suggest {
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: var(--topbar-h);
  padding: 8px 12px 8px 8px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 48px;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  object-position: left center;
}

.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.ticker {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-copy {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  color: #3d4f6e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ticker-copy span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.ticker-copy span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
  opacity: 0.8;
}

.dispatcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(34, 192, 122, 0.1);
  border: 1px solid rgba(34, 192, 122, 0.16);
  color: #137a4e;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dispatcher-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(34, 192, 122, 0.16);
  animation: pulse 2.2s ease-out infinite;
}

.icon-btn,
.map-fab {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep);
  box-shadow: 0 8px 20px rgba(16, 28, 58, 0.08);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.icon-btn.call-btn {
  display: grid;
  color: #fff;
  background: #22C07A;
  border-color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(34, 192, 122, 0.32);
  -webkit-tap-highlight-color: transparent;
}

.icon-btn.call-btn:hover {
  background: #1bb072;
  color: #fff;
}

.icon-btn:hover,
.map-fab:hover,
.step-btn:hover,
.add-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.sidenav {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 32px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 64px;
  min-height: 70px;
  padding: 8px 4px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--muted);
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.step-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.step-btn.is-active {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.42);
}

.step-btn.is-active .step-icon {
  background: linear-gradient(180deg, #4f8cff, #16356e);
  color: #fff;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.map-wrap {
  grid-column: 3;
  grid-row: 2;
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 32px;
  background: #d5e0ee;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  background: radial-gradient(120% 90% at 50% 30%, transparent 46%, rgba(16, 27, 53, 0.07) 100%);
}

#map {
  width: 100%;
  height: 100%;
  background: #d5e0ee;
  cursor: crosshair;
}

#map.is-busy,
#map.is-busy .leaflet-container {
  cursor: wait;
}

.leaflet-container {
  font-family: var(--font);
  background: #d5e0ee;
  cursor: crosshair;
}

.leaflet-marker-icon {
  cursor: grab;
}

.leaflet-marker-draggable:active {
  cursor: grabbing;
}

.leaflet-control-attribution {
  display: none !important;
}

.leaflet-bar {
  border: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: var(--shadow) !important;
}

.leaflet-bar a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  color: var(--deep) !important;
}

.map-fallback[hidden] {
  display: none !important;
}

.map-route-card,
.map-status,
.map-fab-group {
  position: absolute;
  z-index: 500;
}

.map-route-card {
  top: 18px;
  left: 18px;
  max-width: min(360px, calc(100% - 96px));
  padding: 14px 16px 14px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
}

.map-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(16, 28, 58, 0.06);
}

.map-kind-btn {
  min-height: 42px;
  padding: 0 8px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.map-kind-btn.is-active[data-kind="pickup"] {
  background: linear-gradient(180deg, #5ba8ff, var(--pickup));
  color: #fff;
  box-shadow: var(--glow);
}

.map-kind-btn.is-active[data-kind="dropoff"] {
  background: linear-gradient(180deg, #ff9178, var(--dropoff));
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 107, 74, 0.32);
}

.map-click-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.map-route-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-route-title {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.map-route-stats {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.map-route-stats[hidden] {
  display: none;
}

.map-route-stats small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.route-price {
  display: block;
  margin-top: 4px;
  color: var(--blue);
}

.map-route-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.map-fab-group {
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-status {
  left: 18px;
  right: auto;
  bottom: 18px;
  max-width: min(540px, calc(100% - 88px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.map-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.map-status.is-ready .map-status-dot {
  background: var(--ok);
}

.map-status-sep {
  opacity: 0.45;
}

.panel {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 32px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sheet-handle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 100%;
  min-height: 28px;
  padding-top: 6px;
  color: #9aa8bf;
  touch-action: none;
}

.sheet-handle-bar {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: #c5d0e0;
}

.sheet-head {
  flex: 0 0 auto;
  padding: 20px 22px 10px;
}

.sheet-head h1 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.sheet-lead {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.form {
  display: flex;
  flex: 1;
  min-height: 0;
}

.form-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 22px 28px;
}

.form-section + .form-section {
  margin-top: 22px;
  padding-top: 8px;
}

.form-section h2 {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-block + .field-block,
.field-row,
.field-block + .field-row,
.field-row + .field {
  margin-top: 16px;
}

.field-block-head,
.legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 750;
}

.field-block-head .legend {
  margin: 0;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--pickup { background: var(--pickup); }
.legend-dot--dropoff { background: var(--dropoff); }

.optional {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.addr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.addr-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: start;
}

.addr-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(16, 28, 58, 0.16);
}

.addr-row[data-kind="pickup"] .addr-index {
  background: linear-gradient(180deg, #5ba8ff, var(--pickup));
}
.addr-row[data-kind="dropoff"] .addr-index {
  background: linear-gradient(180deg, #ff9178, var(--dropoff));
}

.addr-main {
  min-width: 0;
}

.addr-remove {
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(226, 75, 75, 0.08);
  color: var(--danger);
}

.addr-remove[hidden] {
  display: none !important;
}

.addr-row:has(.addr-remove[hidden]) {
  grid-template-columns: 36px minmax(0, 1fr);
}

.addr-access {
  grid-column: 2;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.addr-floor,
.addr-lift {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.addr-floor span,
.addr-lift span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.addr-floor input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 28, 58, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  outline: none;
}

.addr-floor input:focus {
  background: #fff;
  border-color: rgba(47, 107, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14);
}

.lift-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-height: 44px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(16, 28, 58, 0.05);
}

.lift-pills button {
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #7b8aa3;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.lift-pills button.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.12);
}

.addr-access-error {
  grid-column: 1 / -1;
}

.addr-access.is-error .addr-floor input,
.addr-access.is-error .lift-pills {
  border-color: rgba(226, 75, 75, 0.55);
  box-shadow: 0 0 0 4px rgba(226, 75, 75, 0.12);
}

.addr-access.is-error .lift-pills {
  border: 1px solid rgba(226, 75, 75, 0.55);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label,
.consent {
  font-size: 14px;
  font-weight: 650;
}

.field input,
.field textarea,
.addr-main input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(16, 28, 58, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(16, 28, 58, 0.03);
  outline: none;
  text-overflow: ellipsis;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease);
}

.field input:hover,
.field textarea:hover,
.addr-main input:hover {
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.addr-main input:focus {
  background: #fff;
  border-color: rgba(47, 107, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14), 0 8px 24px rgba(47, 107, 255, 0.08);
}

.addr-row.is-just-set input {
  border-color: rgba(47, 107, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.addr-main input::placeholder {
  color: #8a97ad;
}

.field.is-error input,
.field.is-error textarea,
.addr-row.is-error input,
.consent.is-error .consent-box {
  border-color: #f0b0b0;
  box-shadow: 0 0 0 4px rgba(226, 75, 75, 0.12);
}

.field-error {
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.field-row,
.cargo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cargo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cargo {
  margin-top: 16px;
}

.fleet {
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 4px 14px 10px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(16, 28, 58, 0.06);
  box-shadow: 0 10px 28px rgba(16, 28, 58, 0.05);
}

.fleet-visual {
  justify-self: stretch;
  width: 100%;
  padding: 0;
}

.fleet-art {
  position: relative;
  width: 100%;
  height: 220px;
}

.fleet-fallback,
.fleet-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fleet-fallback {
  display: grid;
  place-items: end center;
  padding-bottom: 2px;
}

.fleet-fallback[hidden] {
  display: none !important;
}

.fleet-art img {
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.toy-van {
  position: relative;
  width: 138px;
  height: 74px;
  transform-origin: center bottom;
  transition: transform 0.28s ease, width 0.28s ease;
}

.toy-van[data-size="S"] { transform: scale(0.74); width: 118px; }
.toy-van[data-size="M"] { transform: scale(0.9); }
.toy-van[data-size="L"] { transform: scale(0.98); width: 148px; }
.toy-van[data-size="XL"] { transform: scale(1.02); width: 162px; }
.toy-van[data-size="XXL"] { transform: scale(1.06); width: 176px; }

.toy-van__shadow {
  position: absolute;
  left: 8%;
  right: 6%;
  bottom: 6px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 38, 75, 0.2), transparent 70%);
}

.toy-van__cargo {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: calc(100% - 40px);
  height: 36px;
  border-radius: 8px 2px 4px 7px;
  background: linear-gradient(165deg, #ff9b82 0%, var(--dropoff) 58%, #e85d40 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 14px rgba(255, 116, 85, 0.2);
  overflow: hidden;
  z-index: 1;
}

.toy-van[data-size="XL"] .toy-van__cargo,
.toy-van[data-size="XXL"] .toy-van__cargo {
  height: 40px;
}

.toy-van__cabin {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 52px;
  height: 32px;
  border-radius: 8px 12px 7px 3px;
  background: linear-gradient(180deg, #4d8ef0, var(--pickup) 62%, #1f5bb8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  z-index: 2;
}

.toy-van__window {
  position: absolute;
  right: 12px;
  bottom: 30px;
  width: 22px;
  height: 12px;
  border-radius: 4px 8px 3px 2px;
  background: linear-gradient(180deg, #d9f2ff, #8ec4f2);
  z-index: 3;
}

.toy-van__light {
  position: absolute;
  right: 5px;
  bottom: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe08a;
  box-shadow: 0 0 8px rgba(255, 224, 138, 0.8);
  z-index: 3;
}

.toy-van__wheel {
  position: absolute;
  bottom: 10px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6b7c96, #1b2438 62%);
  box-shadow: inset 0 0 0 3px #14264b;
  z-index: 4;
}

.toy-van__wheel--a { left: 18px; }
.toy-van__wheel--b { right: 16px; }

.toy-van__box {
  position: absolute;
  border-radius: 3px;
  background: linear-gradient(180deg, #f3d2a8, #d7a56b);
  box-shadow: 0 2px 0 rgba(20, 38, 75, 0.12);
  z-index: 2;
}

.toy-van__box--a {
  left: 14px;
  bottom: 28px;
  width: 20px;
  height: 14px;
}

.toy-van__box--b {
  left: 32px;
  bottom: 26px;
  width: 16px;
  height: 18px;
  background: linear-gradient(180deg, #f7f8fb, #cfd6e2);
}

.toy-van[data-size="XL"] .toy-van__box,
.toy-van[data-size="XXL"] .toy-van__box {
  display: none;
}

.fleet-options {
  min-width: 0;
}

.option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title pills"
    "meta meta";
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  padding: 12px 2px;
  border-top: 1px solid rgba(20, 38, 75, 0.08);
}

.option-copy {
  display: contents;
}

.option-title {
  grid-area: title;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.option-meta {
  grid-area: meta;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pill-row {
  grid-area: pills;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(16, 28, 58, 0.05);
}

.pill {
  appearance: none;
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7b8aa3;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.pill:hover {
  color: var(--deep);
}

.pill.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.14), 0 1px 2px rgba(16, 28, 58, 0.06);
}

.option-row.has-loaders .option-title {
  color: var(--deep);
}

.loaders-price {
  grid-column: 1 / -1;
  margin: 0 0 8px;
}

.loaders-price[hidden] {
  display: none !important;
}

.loaders-price-card {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.1), rgba(126, 231, 255, 0.12));
  border: 1px solid rgba(47, 107, 255, 0.12);
}

.loaders-rate,
.loaders-rate-next,
.loaders-total {
  font-size: 13px;
  font-weight: 650;
}

.loaders-rate span {
  color: var(--deep);
  font-weight: 800;
}

.loaders-rate-next {
  margin-top: 2px;
  color: var(--muted);
}

.loaders-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 38, 75, 0.08);
  color: var(--deep);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (max-width: 380px) {
  .option-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "meta"
      "pills";
  }

  .pill-row {
    justify-content: flex-start;
    width: fit-content;
  }
}

.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px dashed rgba(47, 107, 255, 0.32);
  border-radius: 18px;
  background: rgba(47, 107, 255, 0.05);
  color: var(--blue);
  font-size: 15px;
  font-weight: 750;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.add-btn-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(47, 107, 255, 0.12);
  font-size: 16px;
  line-height: 1;
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cargo-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.cargo-kind {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(16, 28, 58, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--deep);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.cargo-kind.is-active {
  border-color: transparent;
  background: var(--deep);
  color: #fff;
}

.cargo-legend {
  margin-top: 4px;
}

.route-price-split {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.cargo-fit {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(226, 75, 75, 0.08);
  color: #8d2d2d;
}

.cargo-fit p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.cargo-fit button {
  margin-top: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--deep);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.consent {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 4px 2px;
  min-height: 48px;
  margin-top: 8px;
  cursor: pointer;
}

.consent input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.consent-box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 11px;
  border: 1.5px solid rgba(20, 38, 75, 0.22);
  border-radius: 7px;
  background: #fff;
}

.consent input:checked + .consent-box {
  background: linear-gradient(180deg, #4f8cff, var(--deep));
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.28);
}

.consent input:checked + .consent-box::after {
  content: "";
  width: 11px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}

.send-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

.send-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #1f3f82, var(--deep));
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: 0 14px 28px rgba(16, 28, 58, 0.22);
  transition: transform 0.22s var(--ease), filter 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.send-btn::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 140%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.send-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.send-btn:active {
  transform: translateY(0);
}

.send-btn--wa {
  background: linear-gradient(180deg, #27c072, #128c4a);
  box-shadow: 0 14px 28px rgba(18, 140, 74, 0.28);
}
.send-btn--tg {
  background: linear-gradient(180deg, #4aa6ea, #1b7ec4);
  box-shadow: 0 14px 28px rgba(27, 126, 196, 0.28);
}
.send-btn--max {
  background: linear-gradient(180deg, #2a4d96, var(--deep));
}

.send-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.send-favicon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.suggest {
  position: fixed;
  z-index: 80;
  overflow: hidden;
  min-width: 200px;
  max-width: min(420px, calc(100vw - 24px));
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 38, 75, 0.08);
  box-shadow: var(--shadow-lg);
}

.suggest-item,
.suggest-empty,
.suggest-load {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font-size: 14px;
}

.suggest-item[aria-selected="true"],
.suggest-item:hover {
  background: rgba(47, 107, 255, 0.1);
}

.suggest-empty,
.suggest-load {
  color: var(--muted);
}

.pin-wrap {
  position: relative;
  width: 32px;
  height: 40px;
  animation: pin-in 0.38s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.pin-body {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  color: #fff;
  font: 800 12px/1 var(--font);
  box-shadow: 0 10px 20px rgba(16, 27, 53, 0.28), 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.pin-body span {
  transform: rotate(45deg);
}

.pin-body--pickup { background: linear-gradient(180deg, #5ba8ff, var(--pickup)); }
.pin-body--dropoff { background: linear-gradient(180deg, #ff9178, var(--dropoff)); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom) + var(--kb));
  z-index: 90;
  max-width: min(420px, calc(100vw - 24px));
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(16, 27, 53, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  animation: toast-in 0.28s ease;
}

@keyframes pin-in {
  from { transform: translateY(-14px) scale(0.55); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes toast-in {
  from { transform: translateX(-50%) translateY(10px); opacity: 0; }
  to { transform: translateX(-50%); opacity: 1; }
}

.help-dialog {
  width: min(460px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.help-dialog::backdrop {
  background: rgba(16, 27, 53, 0.38);
  backdrop-filter: blur(10px);
}

.help-card {
  padding: 20px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
  overflow-wrap: anywhere;
}

.help-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.help-card h2 {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.04em;
}

.help-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 15px;
}

.help-list li + li {
  margin-top: 8px;
}

.help-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.help-done {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #4f8cff, var(--deep));
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
}

.ready-card textarea {
  width: 100%;
  margin-top: 12px;
  min-height: 220px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 28, 58, 0.08);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  resize: vertical;
}

.ready-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ready-actions .help-done {
  margin-top: 16px;
}

.ready-copy {
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid rgba(16, 28, 58, 0.1);
  border-radius: 16px;
  background: #fff;
  color: var(--deep);
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
}

.noscript {
  position: fixed;
  inset: auto 12px 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}

.panel.is-dragging {
  transition: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.45);
  outline-offset: 3px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 192, 122, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(34, 192, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 192, 122, 0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12%, -8%, 0) scale(1.12); }
}

@media (min-width: 1100px) {
  .send-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .topbar,
  .sidenav,
  .panel,
  .map-wrap,
  .icon-btn,
  .map-fab,
  .map-route-card,
  .map-status,
  .toast,
  .help-card,
  .suggest {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .app {
    display: block;
    width: 100%;
    padding: 0;
  }

  .topbar {
    position: absolute;
    top: calc(10px + var(--safe-top));
    left: 10px;
    right: 10px;
    z-index: 40;
    min-height: 0;
    padding: 6px 6px 8px 8px;
    border-radius: 18px;
    gap: 4px 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "ticker ticker";
  }

  .brand {
    grid-area: brand;
  }

  .topbar-actions {
    grid-area: actions;
  }

  .ticker {
    grid-area: ticker;
  }

  .brand-sub,
  .sidenav,
  .dispatcher {
    display: none;
  }

  .brand-logo {
    height: 36px;
    max-width: 86px;
  }

  .brand-name {
    font-size: 15px;
  }

  .icon-btn,
  .map-fab {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .ticker-copy {
    font-size: 12px;
    gap: 16px;
    padding-right: 16px;
  }

  .map-wrap {
    position: absolute;
    inset: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .map-route-card {
    top: calc(102px + var(--safe-top));
    left: 10px;
    max-width: calc(100% - 68px);
    padding: 10px 12px 12px;
  }

  .map-route-title {
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
  }

  .map-route-stats {
    margin-top: 6px;
    font-size: 16px;
  }

  .map-route-stats small {
    display: inline;
    margin-top: 0;
    margin-left: 6px;
  }

  .route-price {
    display: block;
    margin-top: 4px;
    margin-left: 0;
  }

  .map-route-meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .map-click-hint {
    display: none;
  }

  .map-fab-group {
    top: calc(102px + var(--safe-top));
    right: 10px;
  }

  .map-status {
    display: none;
  }

  .leaflet-control-zoom {
    display: none;
  }

  .panel,
  .panel input,
  .panel textarea,
  .panel select {
    font-size: 16px;
    touch-action: manipulation;
  }

  .panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--kb);
    z-index: 50;
    height: var(--sheet-h);
    max-height: calc(var(--vvh) - 10px - var(--safe-top));
    border-radius: 24px 24px 0 0;
    transition: height 0.34s cubic-bezier(0.22, 0.7, 0.3, 1);
  }

  .sheet-handle {
    display: flex;
  }

  .sheet-head {
    padding: 4px 16px 6px;
  }

  .sheet-head h1 {
    font-size: 22px;
  }

  .form-scroll {
    padding: 4px 16px calc(18px + var(--safe-bottom));
  }

  .send-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .send-btn {
    flex-direction: column;
    gap: 4px;
    min-height: 64px;
    padding: 8px 4px;
    font-size: 12px;
    border-radius: 16px;
  }

  .panel.is-collapsed .form-scroll,
  .panel.is-collapsed .sheet-head {
    pointer-events: none;
  }

  .panel.is-collapsed .form-scroll {
    overflow: hidden;
  }
}

@media (max-width: 430px) {
  .dispatcher-text {
    font-size: 12px;
  }

  .cargo-grid,
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 370px) {
  .brand-text {
    display: none;
  }

  .add-btn {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body::after {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .pill.is-active:hover,
  .map-kind-btn.is-active:hover {
    transform: translateY(-1px);
  }
}
