/* Opening splash screen — rebuilt without grid */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 50% 47%, rgba(37, 99, 235, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.98));
  color: #f8fafc;
  text-align: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-timer {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  min-width: 74px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.splash-greeting {
  position: absolute;
  top: max(88px, calc(env(safe-area-inset-top) + 70px));
  left: 50%;
  width: min(90vw, 680px);
  transform: translateX(-50%);
  color: #e2e8f0;
  font-size: clamp(20px, 5vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.splash-greeting.visible {
  opacity: 1;
}

.splash-logo-wrap {
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(92vw, 680px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.splash-logo-mark {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.38);
  box-shadow: 0 0 42px rgba(37, 99, 235, 0.42);
  font-size: 40px;
}

.splash-logo {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(34px, 8vw, 72px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: clamp(4px, 1.4vw, 12px);
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.5);
}

.splash-location-status {
  min-height: 1.4em;
  color: #94a3b8;
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.splash-disclaimer {
  position: absolute;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  width: min(680px, calc(100vw - 36px));
  transform: translateX(-50%);
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.splash-disclaimer p {
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(12px, 2.8vw, 16px);
  line-height: 1.4;
  font-weight: 750;
}

@media (max-width: 768px) {
  .splash-disclaimer {
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
  }
}

@media (max-height: 640px) {
  .splash-greeting {
    top: max(72px, calc(env(safe-area-inset-top) + 56px));
    font-size: clamp(18px, 4.6vw, 26px);
  }

  .splash-logo-wrap {
    top: 44%;
    gap: 8px;
  }

  .splash-logo-mark {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    font-size: 32px;
  }

  .splash-logo {
    font-size: clamp(30px, 7vw, 52px);
  }

  .splash-disclaimer {
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
    padding: 10px 12px;
  }

  .splash-disclaimer p {
    font-size: 12px;
    line-height: 1.3;
  }
}

* { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: #020617;
      color: #e5e7eb;
    }

    #map {
      width: 100vw;
      height: 100vh;
    }

.mobile-menu-button {
      display: none;
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 2000;
      width: 48px;
      height: 48px;
      border: none;
      border-radius: 10px;
      background: rgba(15, 23, 42, 0.95);
      color: #f8fafc;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    }

    .mobile-nearest-actions {
      display: none;
      position: fixed;
      top: 12px;
      left: 72px;
      right: 12px;
      z-index: 2000;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }

    .mobile-nearest-button {
      height: 48px;
      padding: 0 8px;
      border-radius: 10px;
      border: 1px solid rgba(148, 163, 184, 0.22);
      background: rgba(30, 41, 59, 0.95);
      color: #f8fafc;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(0,0,0,0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      white-space: nowrap;
    }

    .mobile-nearest-button:hover {
      background: rgba(51, 65, 85, 0.95);
    }

    .mobile-nearest-button.two-line {
      flex-direction: column;
      gap: 2px;
      line-height: 1.1;
    }

    .mobile-nearest-button-line-primary {
      font-size: 11px;
      font-weight: 800;
    }

    .mobile-nearest-button-line-secondary {
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
    }

    .brand-filter-panel {
      position: relative;
      z-index: 1650;
    }

    .brand-filter-bar {
      width: 100%;
      min-height: 38px;
      max-height: 56px;
      border-radius: 12px;
      border: 1px solid rgba(148, 163, 184, 0.22);
      background: rgba(15, 23, 42, 0.94);
      color: #f8fafc;
      box-shadow: 0 8px 24px rgba(0,0,0,0.28);
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      backdrop-filter: blur(8px);
    }

    .brand-filter-icon {
      color: #94a3b8;
      font-size: 13px;
      line-height: 1;
      flex: 0 0 auto;
    }

    .brand-filter-input {
      min-width: 0;
      width: 100%;
      border: 0;
      outline: 0;
      background: transparent;
      color: #f8fafc;
      font-family: inherit;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.2;
      resize: none;
      overflow: hidden;
      appearance: none;
      -webkit-appearance: none;
    }

    .brand-filter-input::placeholder {
      color: #94a3b8;
      font-weight: 700;
    }

    .brand-filter-clear {
      width: 24px;
      height: 24px;
      border: 0;
      border-radius: 999px;
      background: rgba(30, 41, 59, 0.95);
      color: #cbd5e1;
      font-size: 15px;
      font-weight: 900;
      line-height: 24px;
      cursor: pointer;
      display: none;
      flex: 0 0 auto;
    }

    .brand-filter-panel.has-filter .brand-filter-clear {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .brand-filter-suggestions {
      position: absolute;
      left: 0;
      right: 0;
      bottom: calc(100% + 8px);
      display: none;
      max-height: 220px;
      overflow-y: auto;
      border-radius: 14px;
      border: 1px solid rgba(148, 163, 184, 0.25);
      background: rgba(15, 23, 42, 0.97);
      box-shadow: 0 12px 40px rgba(0,0,0,0.45);
      backdrop-filter: blur(10px);
      padding: 6px;
    }

    .brand-filter-panel.open .brand-filter-suggestions {
      display: block;
    }

    .brand-filter-suggestion {
      width: 100%;
      min-height: 38px;
      max-height: 56px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: #f8fafc;
      cursor: pointer;
      padding: 7px 9px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      font-size: 13px;
      font-weight: 900;
      text-align: left;
    }

    .brand-filter-suggestion:hover {
      background: rgba(30, 41, 59, 0.95);
    }

    .brand-filter-count {
      color: #94a3b8;
      font-size: 11px;
      font-weight: 800;
      white-space: normal;
    }

    .brand-filter-empty {
      padding: 10px;
      color: #94a3b8;
      font-size: 12px;
      font-weight: 800;
      text-align: center;
    }

    .desktop-brand-filter-panel {
      margin-bottom: 8px;
    }

    .mobile-brand-filter-panel {
      display: none;
    }

    .mobile-overlay { display: none; }

    .sidebar {
      position: absolute;
      top: 16px;
      left: 16px;
      z-index: 1800;
      width: 300px;
      background: rgba(15, 23, 42, 0.94);
      border: 1px solid rgba(148, 163, 184, 0.25);
      border-radius: 14px;
      padding: 16px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
      backdrop-filter: blur(8px);
    }

    .title {
      margin: 0;
      font-size: 24px;
      letter-spacing: 2px;
      font-weight: 800;
      color: #f8fafc;
    }

    .subtitle {
      margin: 6px 0 14px;
      font-size: 13px;
      line-height: 1.4;
      color: #94a3b8;
    }

    .section {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid rgba(148, 163, 184, 0.18);
    }

    .section:first-of-type {
      border-top: none;
      padding-top: 0;
    }

    .section-title {
      margin: 0 0 8px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1.4px;
      color: #64748b;
    }

    .layer-buttons {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .layer-button {
      width: 100%;
      padding: 10px;
      border-radius: 10px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: rgba(30, 41, 59, 0.85);
      color: #e5e7eb;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      text-align: left;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .layer-button:hover {
      background: rgba(51, 65, 85, 0.95);
    }

    .layer-button.active {
      background: #2563eb;
      border-color: #3b82f6;
      color: #ffffff;
      box-shadow: 0 0 14px rgba(37, 99, 235, 0.55);
    }

    .layer-button.future,
    .layer-button.future:hover {
      background: rgba(71, 85, 105, 0.35);
      border-color: rgba(100, 116, 139, 0.35);
      color: #94a3b8;
      box-shadow: none;
      cursor: default;
      opacity: 0.75;
    }

    .future-label {
      font-size: 11px;
      font-weight: 800;
      color: #94a3b8;
      white-space: nowrap;
    }

    .tracked-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
    }

    .tracked-tile {
      min-height: 54px;
      padding: 8px 4px;
      border-radius: 12px;
      background: rgba(30, 41, 59, 0.85);
      border: 1px solid rgba(148, 163, 184, 0.18);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .tracked-icon-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      margin-bottom: 5px;
    }

    .tracked-icon {
      font-size: 20px;
      line-height: 1;
    }

    .tracked-status {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #475569;
      transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }

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

    .tracked-status.active {
      background: #22c55e;
      box-shadow: 0 0 8px rgba(34,197,94,0.7);
    }

    .tracked-count {
      color: #f8fafc;
      font-size: 13px;
      font-weight: 800;
      line-height: 1;
    }

    .tracked-tile.future {
      background: rgba(71, 85, 105, 0.35);
      border-color: rgba(100, 116, 139, 0.35);
      color: #94a3b8;
      opacity: 0.75;
    }

    .tracked-tile.future .tracked-count,
    .tracked-tile.future .tracked-icon {
      color: #94a3b8;
    }

    .mobile-status-section {
      display: none;
    }

    .mobile-tracker-bar,
    .mobile-live-button {
      display: none;
    }

    .button {
      width: 100%;
      margin-top: 12px;
      padding: 10px 12px;
      border: 0;
      border-radius: 10px;
      background: #2563eb;
      color: white;
      font-weight: 700;
      cursor: pointer;
    }

    .button:hover { background: #1d4ed8; }

    .sidebar-install-section {
      border-top: none;
      padding-top: 0;
      margin-top: 10px;
    }

    .sidebar-install-button {
      display: block;
      background: #2563eb;
      box-shadow: 0 0 14px rgba(37, 99, 235, 0.42);
    }

    .button.secondary {
      background: rgba(30, 41, 59, 0.95);
      border: 1px solid rgba(148, 163, 184, 0.22);
    }

    .button.secondary:hover {
      background: rgba(51, 65, 85, 0.95);
    }

    .offline-status-text {
      margin-top: 6px;
      color: #94a3b8;
      font-size: 12px;
      line-height: 1.35;
    }

    .diagnostic-alerts {
      display: none;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 8px;
    }

    .diagnostic-alerts.has-alerts {
      display: flex;
    }

    .diagnostic-dropdown {
      position: relative;
      border-radius: 12px;
      background: rgba(30, 41, 59, 0.55);
      border: 1px solid rgba(148, 163, 184, 0.18);
      overflow: visible;
    }

    .diagnostic-dropdown summary {
      padding: 10px 12px;
      color: #f8fafc;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .diagnostic-dropdown summary::-webkit-details-marker {
      display: none;
    }

    .diagnostic-dropdown summary::after {
      content: "▸";
      color: #94a3b8;
      font-size: 13px;
      transition: transform 0.2s ease;
    }

    .diagnostic-dropdown[open] summary::after {
      transform: rotate(90deg);
    }

    .mobile-status-dropdown {
      display: none;
    }

    .mobile-status-dropdown summary {
      list-style: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .mobile-status-dropdown summary::-webkit-details-marker {
      display: none;
    }

    .mobile-status-summary-action {
      color: #94a3b8;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .mobile-status-summary-action::after {
      content: "▾";
      color: #94a3b8;
      font-size: 12px;
      transition: transform 0.2s ease;
    }

    .mobile-status-dropdown[open] .mobile-status-summary-action::after {
      transform: rotate(180deg);
    }

    .mobile-status-dropdown .diagnostic-grid {
      margin-top: 8px;
    }

    .diagnostic-summary-meta {
      color: #94a3b8;
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
    }

    .diagnostic-grid {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 0 10px 10px;
    }

    .diagnostic-card {
      width: 100%;
      min-height: 34px;
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(30, 41, 59, 0.85);
      border: 1px solid rgba(100, 116, 139, 0.55);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      box-shadow: 0 0 12px rgba(100, 116, 139, 0.35);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .diagnostic-card.online {
      border-color: rgba(34, 197, 94, 0.65);
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.55);
    }

    .diagnostic-card.offline {
      border-color: rgba(239, 68, 68, 0.65);
      box-shadow: 0 0 12px rgba(239, 68, 68, 0.55);
    }

    .diagnostic-card.active {
      border-color: rgba(59, 130, 246, 0.7);
      box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    }

    .diagnostic-card.waiting {
      border-color: rgba(249, 115, 22, 0.75);
      box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
    }

    .diagnostic-card.soon {
      border-color: rgba(148, 163, 184, 0.65);
      box-shadow: 0 0 12px rgba(148, 163, 184, 0.45);
    }

    .status-summary {
      width: 100%;
      margin: 0 0 10px;
      padding: 8px 10px;
      border-radius: 999px;
      background: rgba(30, 41, 59, 0.85);
      border: 1px solid rgba(100, 116, 139, 0.55);
      color: #f8fafc;
      font-size: 12px;
      font-weight: 800;
      box-shadow: 0 0 12px rgba(100, 116, 139, 0.35);
    }

    .status-summary.online {
      border-color: rgba(34, 197, 94, 0.65);
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.55);
    }

    .status-summary.waiting {
      border-color: rgba(249, 115, 22, 0.75);
      box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
    }

    .status-summary.offline {
      border-color: rgba(239, 68, 68, 0.65);
      box-shadow: 0 0 12px rgba(239, 68, 68, 0.55);
    }

    .diagnostic-name {
      font-size: 12px;
      color: #94a3b8;
      line-height: 1.2;
    }

    .diagnostic-value {
      font-size: 12px;
      font-weight: 800;
      color: #f8fafc;
    }

    .leaflet-popup-content-wrapper {
      border-radius: 14px;
      box-shadow: 0 12px 34px rgba(15, 23, 42, 0.35);
    }

    .leaflet-popup-content {
      margin: 12px;
    }

    .delivery-popup {
      min-width: 240px;
      max-width: 280px;
    }

    .delivery-popup-header {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    }

    .delivery-popup-icon {
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: rgba(37,99,235,0.10);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      line-height: 1;
      flex: 0 0 auto;
    }

    .delivery-popup-eyebrow {
      margin-bottom: 3px;
      font-size: 11px;
      line-height: 1.1;
      font-weight: 900;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: #2563eb;
    }

    .delivery-popup-title {
      font-size: 15px;
      font-weight: 900;
      color: #0f172a;
      line-height: 1.25;
    }

    .delivery-popup-description {
      margin-bottom: 12px;
      color: #475569;
      font-size: 13px;
      line-height: 1.4;
    }

    .delivery-popup-meta-row {
      margin-bottom: 12px;
      padding: 8px 10px;
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.04);
      border: 1px solid rgba(148, 163, 184, 0.22);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      font-size: 12px;
      color: #64748b;
    }

    .delivery-popup-meta-row strong {
      color: #0f172a;
      font-size: 12px;
      white-space: nowrap;
    }

    .delivery-popup-price {
      margin-bottom: 12px;
      padding: 10px;
      border-radius: 12px;
      background: rgba(37,99,235,0.08);
      border: 1px solid rgba(37,99,235,0.18);
    }

    .delivery-popup-price-main {
      font-size: 18px;
      font-weight: 900;
      color: #2563eb;
      line-height: 1.1;
    }

    .delivery-popup-price-tip {
      margin-top: 5px;
      font-size: 12px;
      line-height: 1.35;
      color: #64748b;
    }

    .delivery-popup-fuel-board {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .delivery-popup-fuel-row {
      display: grid;
      grid-template-columns: 72px 1fr;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      line-height: 1.2;
    }

    .delivery-popup-fuel-name {
      color: #0f172a;
      font-weight: 900;
      white-space: nowrap;
    }

    .delivery-popup-fuel-value {
      color: #2563eb;
      font-weight: 900;
      text-align: right;
      white-space: nowrap;
    }

    .delivery-popup-distance-row {
      margin-top: 2px;
    }

    .delivery-popup-nav {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: center;
      gap: 8px;
      text-align: center;
      padding: 11px 12px;
      border-radius: 12px;
      background: #2563eb;
      color: white !important;
      font-weight: 900;
      text-decoration: none;
      box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
      transition: background 0.15s ease, transform 0.15s ease;
    }

    .delivery-popup-nav:hover {
      background: #1d4ed8;
      transform: translateY(-1px);
    }

    .popup-title {
      font-weight: 700;
      margin-bottom: 4px;
    }

    .popup-meta {
      font-size: 13px;
      color: #475569;
    }

    .nav-link {
      display: inline-block;
      margin-top: 8px;
      color: #2563eb;
      font-weight: 700;
      text-decoration: none;
    }

    .layer-feedback {
      position: fixed;
      top: 72px;
      bottom: auto;
      left: 50%;
      z-index: 1750;
      transform: translateX(-50%) translateY(-12px);
      opacity: 0;
      pointer-events: none;
      width: max-content;
      min-width: 0;
      max-width: calc(100vw - 24px);
      height: auto;
      min-height: 0;
      max-height: 48px;
      padding: 6px 14px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid rgba(148, 163, 184, 0.25);
      color: #f8fafc;
      font-size: 13px;
      font-weight: 800;
      line-height: 18px;
      text-align: center;
      white-space: normal;
      overflow: hidden;
      display: block;
      box-shadow: 0 10px 28px rgba(0,0,0,0.4);
      backdrop-filter: blur(8px);
      transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }

    .layer-feedback.visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .layer-feedback.loading {
      border-color: rgba(59, 130, 246, 0.65);
    }

    .layer-feedback.warning {
      border-color: rgba(249, 115, 22, 0.75);
    }

    .layer-feedback.error {
      border-color: rgba(239, 68, 68, 0.75);
    }

    .layer-feedback.success {
      border-color: rgba(34, 197, 94, 0.65);
    }

    .install-banner {
      position: fixed;
      left: 16px;
      bottom: 16px;
      z-index: 2300;
      display: none;
      width: 300px;
      max-width: calc(100vw - 32px);
      padding: 12px;
      border-radius: 16px;
      background: rgba(15, 23, 42, 0.97);
      border: 1px solid rgba(148, 163, 184, 0.28);
      box-shadow: 0 12px 40px rgba(0,0,0,0.45);
      backdrop-filter: blur(10px);
      transform: translateY(20px);
      opacity: 0;
      transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .install-banner.visible {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    .install-banner-content {
      display: grid;
      gap: 10px;
    }

    .install-banner-title {
      margin: 0;
      color: #f8fafc;
      font-size: 14px;
      font-weight: 900;
      letter-spacing: 0.3px;
    }

    .install-banner-copy {
      margin: 3px 0 0;
      color: #94a3b8;
      font-size: 12px;
      line-height: 1.3;
      font-weight: 700;
    }

    .install-banner-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .install-banner-button {
      width: 100%;
      min-height: 42px;
      padding: 0 12px;
      border: 0;
      border-radius: 12px;
      background: #2563eb;
      color: #ffffff;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
      white-space: nowrap;
    }

    .install-banner-button.secondary {
      background: rgba(30, 41, 59, 0.95);
      border: 1px solid rgba(148, 163, 184, 0.22);
      box-shadow: none;
      color: #f8fafc;
    }

    .install-banner-button.secondary:hover {
      background: rgba(51, 65, 85, 0.95);
    }

    .install-banner-button.primary:hover {
      background: #1d4ed8;
    }

    .delivery-marker-icon {
      background: transparent;
      border: none;
    }


    @keyframes markerPopIn {
      0% {
        opacity: 0;
        transform: scale(0.9);
      }

      70% {
        opacity: 1;
        transform: scale(1.02);
      }

      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    .marker-pop-in {
      animation: markerPopIn 280ms ease-out both;
      transform-origin: center;
      will-change: opacity, transform;
    }

    .delivery-marker-cluster-icon {
      background: transparent;
      border: none;
    }

    .marker-cluster-shell {
      width: 46px;
      height: 46px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.94);
      border: 1px solid rgba(248, 250, 252, 0.72);
      box-shadow: 0 10px 26px rgba(15, 23, 42, 0.42);
      color: #f8fafc;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      font-weight: 900;
      line-height: 1;
      pointer-events: auto;
    }

    .marker-cluster-icon {
      font-size: 17px;
    }

    .marker-cluster-count {
      min-width: 16px;
      font-size: 13px;
      letter-spacing: -0.04em;
      text-align: center;
    }

    .marker-shell {
      position: relative;
      min-width: 30px;
      min-height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    .marker-shell.nearest {
      min-width: 54px;
      min-height: 46px;
    }

    .marker-icon {
      width: 30px;
      height: 30px;
      border-radius: 999px;
      font-size: 26px;
      line-height: 30px;
      text-align: center;
    }

    .marker-icon-nearest {
      background: rgba(34, 197, 94, 0.18);
      box-shadow:
        0 0 0 6px rgba(34, 197, 94, 0.24),
        0 0 20px rgba(34, 197, 94, 0.95);
    }

    .marker-distance-label {
      position: absolute;
      left: 0;
      top: 30px;
      transform: none;
      padding: 3px 7px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.96);
      border: 1px solid rgba(148, 163, 184, 0.35);
      color: #f8fafc;
      font-size: 10px;
      line-height: 1;
      font-weight: 900;
      white-space: nowrap;
      box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    }

    .user-location-icon {
      background: transparent;
      border: none;
    }

    .user-location-marker {
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      transform-origin: 50% 50%;
    }

    .user-location-marker-dot span {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #2563eb;
      border: 3px solid #ffffff;
      box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.18), 0 4px 12px rgba(15, 23, 42, 0.35);
      display: block;
    }

    .user-location-marker-arrow span {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      background: #2563eb;
      border: 3px solid #ffffff;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 17px;
      line-height: 1;
      transform: rotate(-90deg);
      box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.16), 0 4px 12px rgba(15, 23, 42, 0.35);
    }

    .offline-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 2600;
      background: rgba(0, 0, 0, 0.55);
      align-items: center;
      justify-content: center;
      padding: 18px;
    }

    .offline-modal-overlay.visible {
      display: flex;
    }

    .offline-modal {
      width: min(420px, 100%);
      border-radius: 18px;
      background: rgba(15, 23, 42, 0.98);
      border: 1px solid rgba(148, 163, 184, 0.28);
      box-shadow: 0 18px 60px rgba(0,0,0,0.55);
      padding: 18px;
      color: #e5e7eb;
    }

    .offline-modal-title {
      margin: 0 0 10px;
      font-size: 18px;
      font-weight: 900;
      color: #f8fafc;
    }

    .offline-modal-meta {
      margin: 0 0 12px;
      font-size: 13px;
      color: #94a3b8;
      line-height: 1.45;
    }

    .offline-modal-copy {
      margin: 0;
      font-size: 14px;
      line-height: 1.45;
      color: #e5e7eb;
    }

    .offline-modal-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 16px;
    }

    .offline-modal-button {
      min-height: 42px;
      border: 0;
      border-radius: 12px;
      font-weight: 800;
      cursor: pointer;
      color: #f8fafc;
      background: rgba(30, 41, 59, 0.95);
      border: 1px solid rgba(148, 163, 184, 0.22);
    }

    .offline-modal-button.primary {
      background: #2563eb;
      border-color: #3b82f6;
    }

    .desktop-status-menu {
      position: absolute;
      top: 16px;
      left: 332px;
      z-index: 1900;
      display: block;
    }

    .desktop-status-menu summary {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid rgba(148, 163, 184, 0.25);
      color: #f8fafc;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(0,0,0,0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      list-style: none;
      user-select: none;
    }

    .desktop-status-menu summary::-webkit-details-marker {
      display: none;
    }

    .desktop-status-panel {
      display: none;
      margin-top: 10px;
      width: 320px;
      max-height: calc(100vh - 90px);
      overflow-y: auto;
      padding: 14px;
      border-radius: 14px;
      background: rgba(15, 23, 42, 0.97);
      border: 1px solid rgba(148, 163, 184, 0.25);
      box-shadow: 0 12px 40px rgba(0,0,0,0.45);
      backdrop-filter: blur(8px);
    }

    .desktop-status-menu[open] .desktop-status-panel {
      display: block;
    }

    .desktop-status-title {
      margin: 0 0 10px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1.4px;
      color: #64748b;
    }

    .desktop-status-panel .diagnostic-summary-meta {
      display: block;
      margin: 0 0 10px;
      color: #94a3b8;
      font-size: 11px;
      font-weight: 700;
      white-space: normal;
    }

    @media (min-width: 769px) {
      .desktop-status-panel .diagnostic-grid {
        display: flex;
        padding: 0;
      }
    }

    @media (max-width: 768px) {
      .desktop-status-menu {
        display: none;
      }


      .sidebar-live-button {
        display: none;
      }

      .mobile-live-button {
        position: fixed;
        right: 8px;
        bottom: 94px;
        z-index: 1700;
        width: 56px;
        min-height: 56px;
        padding: 6px 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        border: none;
        border-radius: 14px;
        background: #ffffff;
        color: #2563eb;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.28);
      }

      .mobile-live-state {
        display: block;
        color: #94a3b8;
        font-size: 9px;
        line-height: 1;
        font-weight: 800;
        letter-spacing: 0.1px;
      }

      .mobile-live-button:hover {
        background: #f8fafc;
      }

      .mobile-live-button.following {
        background: #2563eb;
        color: #ffffff;
      }

      .mobile-live-button.following .mobile-live-state {
        color: #cbd5e1;
      }


      .mobile-live-icon {
        display: block;
        font-size: 22px;
        line-height: 1;
        transform: rotate(-45deg);
      }

.mobile-menu-button { display: block; }

      .mobile-nearest-actions {
        display: grid;
      }

      .sidebar {
        width: 300px;
        max-width: 85vw;
        height: calc(100vh - 68px);
        top: 68px;
        left: 0;
        z-index: 1800;
        border-radius: 0 14px 14px 0;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        padding-bottom: 96px;
      }

      .sidebar.open { transform: translateX(0); }

      .mobile-overlay {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1500;
      }

      .mobile-overlay.active { display: block; }

      .desktop-layer-controls,
      .desktop-tracked-section {
        display: none;
      }

      .mobile-status-section {
        display: block;
      }

      .mobile-status-section .section-title,
      .mobile-status-section .diagnostic-alerts,
      .mobile-status-section .diagnostic-dropdown {
        display: none;
      }

      .mobile-status-dropdown {
        display: block;
      }

      .mobile-status-dropdown .status-summary {
        margin-bottom: 0;
        border-radius: 12px;
      }

      .mobile-status-dropdown[open] .status-summary {
        border-radius: 12px 12px 0 0;
      }

      .mobile-status-section .diagnostic-grid {
        padding: 8px 10px 10px;
        border-radius: 0 0 12px 12px;
        background: rgba(30, 41, 59, 0.35);
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-top: 0;
      }

      .mobile-brand-filter-panel {
        position: fixed;
        left: 8px;
        right: 72px;
        bottom: 94px;
        z-index: 1605;
        display: block;
      }

      .mobile-brand-filter-panel .brand-filter-bar {
        min-height: 38px;
      max-height: 56px;
        border-radius: 14px;
        padding: 6px 10px;
      }

      .mobile-brand-filter-panel .brand-filter-suggestions {
        max-height: 245px;
      }

      .mobile-tracker-bar {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 18px;
        z-index: 1600;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 7px;
        border-radius: 16px;
        background: rgba(15, 23, 42, 0.94);
        border: 1px solid rgba(148, 163, 184, 0.25);
        box-shadow: 0 12px 40px rgba(0,0,0,0.45);
        backdrop-filter: blur(8px);
      }

      .install-banner {
        left: 8px;
        right: 8px;
        bottom: 18px;
        width: auto;
        max-width: none;
        min-height: 70px;
        padding: 7px;
        border-radius: 16px;
      }

      .install-banner-content {
        min-height: 54px;
        grid-template-columns: minmax(0, 1fr) minmax(150px, 0.85fr);
        align-items: center;
        gap: 10px;
      }

      .install-banner-title {
        font-size: 13px;
      }

      .install-banner-copy {
        font-size: 11px;
      }

      .install-banner-actions {
        gap: 8px;
      }

      .install-banner-button {
        min-height: 44px;
        padding: 0 8px;
        font-size: 12px;
      }

      .mobile-track-button {
        min-height: 54px;
        padding: 7px 4px;
        border-radius: 12px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        background: rgba(30, 41, 59, 0.85);
        color: #f8fafc;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      .mobile-track-button.active {
        background: #2563eb;
        border-color: #3b82f6;
        box-shadow: 0 0 14px rgba(37, 99, 235, 0.55);
      }

      .mobile-track-button.future,
      .mobile-track-button.future:hover {
        background: rgba(71, 85, 105, 0.35);
        border-color: rgba(100, 116, 139, 0.35);
        color: #94a3b8;
        box-shadow: none;
        cursor: default;
        opacity: 0.75;
      }

      .mobile-track-top {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-bottom: 6px;
      }

      .mobile-track-icon {
        font-size: 20px;
        line-height: 1;
      }

      .mobile-track-status {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #475569;
      }

      .mobile-track-status.active {
        background: #22c55e;
        box-shadow: 0 0 8px rgba(34,197,94,0.7);
      }

      .mobile-track-count {
        font-size: 13px;
        line-height: 1;
        font-weight: 800;
      }
    }
  
    @media (max-width: 768px) {
      .mobile-brand-filter-panel {
        left: 8px !important;
        right: 72px !important;
        width: auto !important;
        max-width: none !important;
      }
    }

  
    @media (max-width: 768px) {
      .layer-feedback {
        top: 68px !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        width: max-content !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 48px !important;
        padding: 6px 14px !important;
        line-height: 18px !important;
        white-space: normal !important;
        overflow: hidden !important;
        display: block !important;
        transform: translateX(-50%) translateY(-12px) !important;
      }

      .layer-feedback.visible {
        transform: translateX(-50%) translateY(0) !important;
      }
    }

/* PitStop simplified diagnostics sidebar */
.sidebar {
  display: block;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.diagnostics-sidebar-section,
.diagnostics-sidebar-footer {
  margin-top: 14px;
  padding-top: 12px;
  padding-bottom: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.diagnostics-footer {
  display: block;
  width: 100%;
}

.diagnostics-footer-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.diagnostics-footer-summary::-webkit-details-marker {
  display: none;
}

.diagnostics-footer[open] .diagnostics-footer-summary {
  border-radius: 12px 12px 0 0;
}

.diagnostics-footer-summary.online {
  border-color: rgba(34, 197, 94, 0.42);
}

.diagnostics-footer-summary.waiting {
  border-color: rgba(245, 158, 11, 0.48);
}

.diagnostics-footer-summary.offline {
  border-color: rgba(239, 68, 68, 0.54);
}

.diagnostics-footer-title {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnostics-footer-action {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.diagnostics-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: rgba(15, 23, 42, 0.76);
}

.diagnostics-footer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px 8px 28px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 11px;
  background: rgba(30, 41, 59, 0.76);
  box-shadow: none;
}

.diagnostics-footer-card::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #64748b;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.14);
}

.diagnostics-footer-card.online {
  border-color: rgba(34, 197, 94, 0.28);
}

.diagnostics-footer-card.online::before {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.diagnostics-footer-card.waiting {
  border-color: rgba(245, 158, 11, 0.32);
}

.diagnostics-footer-card.waiting::before {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.diagnostics-footer-card.offline {
  border-color: rgba(239, 68, 68, 0.34);
}

.diagnostics-footer-card.offline::before {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.diagnostics-footer-card.active {
  border-color: rgba(59, 130, 246, 0.34);
}

.diagnostics-footer-card.active::before {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.diagnostics-footer-card.soon::before {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.diagnostics-footer-name,
.diagnostics-footer-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnostics-footer-name {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
}

.diagnostics-footer-value {
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

@media (max-width: 768px) {
  .sidebar {
    display: block !important;
    height: calc(100dvh - 68px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 68px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
  }

  .diagnostics-sidebar-section,
  .diagnostics-sidebar-footer {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  .diagnostics-footer[open] {
    margin-bottom: 18px;
  }
}

/* PitStop sidebar sharing */
.sidebar-share-section {
  text-align: center;
}

.sidebar-share-button {
  margin-top: 0;
  background: #2563eb;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.34);
}

.sidebar-share-button:hover {
  background: #1d4ed8;
}

.sidebar-share-qr-wrap {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.62);
}

.sidebar-share-qr {
  width: 160px;
  min-height: 160px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sidebar-share-qr img,
.sidebar-share-qr canvas {
  display: block;
  width: 144px !important;
  height: 144px !important;
}

.sidebar-share-qr.unavailable {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-share-caption {
  margin: 9px 0 0;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-share-status {
  min-height: 16px;
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-share-status.success {
  color: #86efac;
}

.sidebar-share-status.warning {
  color: #fdba74;
}

@media (max-width: 768px) {
  .sidebar-share-qr {
    width: 148px;
    min-height: 148px;
  }

  .sidebar-share-qr img,
  .sidebar-share-qr canvas {
    width: 132px !important;
    height: 132px !important;
  }
}


.sidebar-share-qr svg {
  display: block;
  width: 144px;
  height: 144px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .sidebar-share-qr svg {
    width: 132px;
    height: 132px;
  }
}


/* Startup location personalisation */
.startup-location-status {
  min-height: 20px;
  margin: 2px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.startup-location-status.success {
  color: #86efac;
}

.startup-location-status.warning {
  color: #fdba74;
}

.startup-location-greeting {
  position: fixed;
  top: 78px;
  left: 50%;
  z-index: 2400;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.startup-location-greeting.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .startup-location-greeting {
    top: 72px;
    font-size: 13px;
  }
}

.startup-location-greeting{
  display:none;
}

/* PitStop Lite profile
   Current test URL: /?mode=lite
   Future friendly routes: /lite and /full when the host serves index.html. */
.lite-status {
  display: none;
}

html.pitstop-profile-lite,
html.pitstop-profile-lite body {
  overflow: hidden;
  background: #020617;
}

html.pitstop-profile-lite .mobile-menu-button,
html.pitstop-profile-lite .mobile-nearest-actions,
html.pitstop-profile-lite .mobile-overlay,
html.pitstop-profile-lite .sidebar,
html.pitstop-profile-lite .desktop-status-menu,
html.pitstop-profile-lite .mobile-brand-filter-panel,
html.pitstop-profile-lite .mobile-tracker-bar,
html.pitstop-profile-lite .mobile-live-button,
html.pitstop-profile-lite .install-banner,
html.pitstop-profile-lite .layer-feedback,
html.pitstop-profile-lite .offline-modal-overlay,
html.pitstop-profile-lite .startup-location-greeting {
  display: none !important;
}

html.pitstop-profile-lite #map {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

html.pitstop-profile-lite .lite-status {
  position: fixed;
  top: max(4px, env(safe-area-inset-top));
  left: 50%;
  z-index: 2200;
  display: flex;
  width: min(230px, calc(100vw - 10px));
  max-width: calc(100vw - 10px);
  min-height: 38px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.72);
  border-radius: 5px;
  background: rgba(2, 6, 23, 0.92);
  color: #f8fafc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

html.pitstop-profile-lite .lite-status-primary,
html.pitstop-profile-lite .lite-status-secondary {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.pitstop-profile-lite .lite-status-primary {
  color: #f8fafc;
  font-weight: 900;
}

html.pitstop-profile-lite .lite-status-secondary {
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
}

html.pitstop-profile-lite .marker-pop-in {
  animation: none;
}

html.pitstop-profile-lite .leaflet-control-attribution {
  max-width: 88vw;
  overflow: hidden;
  font-size: 8px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.pitstop-profile-lite .leaflet-popup-content-wrapper,
html.pitstop-profile-lite .leaflet-popup-tip {
  box-shadow: none;
}

html.pitstop-profile-lite .delivery-popup {
  min-width: 170px;
  max-width: min(220px, calc(100vw - 28px));
}

html.pitstop-profile-lite .delivery-popup-description,
html.pitstop-profile-lite .delivery-popup-nav {
  display: none;
}

@media (max-width: 360px), (max-height: 480px) {
  html.pitstop-profile-lite .marker-icon {
    width: 24px;
    height: 24px;
    font-size: 21px;
    line-height: 24px;
  }

  html.pitstop-profile-lite .marker-shell {
    min-width: 24px;
    min-height: 24px;
  }

  html.pitstop-profile-lite .marker-distance-label {
    top: 24px;
    padding: 2px 4px;
    font-size: 8px;
  }
}

.lite-edge-indicator {
  position: fixed;
  z-index: 2180;
  display: none;
  min-width: 36px;
  padding: 3px 5px;
  border: 1px solid rgba(248, 250, 252, 0.82);
  border-radius: 7px;
  background: rgba(2, 6, 23, 0.92);
  color: #f8fafc;
  pointer-events: none;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
}

html.pitstop-profile-lite .lite-edge-indicator.visible {
  display: flex;
}

html.pitstop-profile-lite .lite-edge-indicator-arrow {
  display: block;
  width: 18px;
  height: 18px;
  font-size: 17px;
  line-height: 18px;
  text-align: center;
  transform-origin: 50% 50%;
}

html.pitstop-profile-lite .lite-edge-indicator-distance {
  display: block;
  max-width: 54px;
  overflow: hidden;
  color: #f8fafc;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Lite-to-Full boot coordinator. The selected runtime remains covered until
   the splash deadline commits one fully prepared profile. */
html.pitstop-booting .splash-screen {
  display: block !important;
}

html.pitstop-booting,
html.pitstop-booting body {
  overflow: hidden;
}


/* EV charging locations shown inside the Fuel layer. */
.ev-charging-marker {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.ev-charging-marker.nearest {
  box-shadow:
    0 0 0 6px rgba(37, 99, 235, 0.24),
    0 0 20px rgba(37, 99, 235, 0.95);
}
