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

:root {
  --bg: #f2f2f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --grouped-bg: #f2f2f7;
  --text: #1c1c1e;
  --text-secondary: rgba(60, 60, 67, 0.6);
  --text-tertiary: rgba(60, 60, 67, 0.3);
  --muted: rgba(60, 60, 67, 0.6);
  --border: rgba(60, 60, 67, 0.12);
  --separator: rgba(60, 60, 67, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.08);
  --primary: #007aff;
  --primary-hover: #0066d6;
  --success: #34c759;
  --warning: #ff9f0a;
  --danger: #ff3b30;
  --neutral: #8e8e93;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  line-height: 1.35;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.app {
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* ——— Map fullscreen ——— */
.map-stage {
  position: absolute;
  inset: 0;
  touch-action: manipulation;
}

.map-root {
  width: 100%;
  height: 100%;
}

/* ——— Floating header on map ——— */
.map-overlay--header {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 16px;
  right: 88px;
  z-index: 500;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.map-overlay__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: none;
}

.map-overlay__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  text-shadow: none;
}

/* ——— Map controls top-right ——— */
.map-controls {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.map-style-picker {
  position: relative;
}

.map-style-menu {
  position: absolute;
  top: 0;
  right: calc(100% + 10px);
  min-width: 196px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-style-menu__title {
  margin: 0 0 6px;
  padding: 4px 10px 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.map-style-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.map-style-option:hover {
  background: rgba(100, 116, 139, 0.08);
}

.map-style-option--active {
  background: rgba(0, 122, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.28);
}

.map-style-option__label {
  font-size: 0.9rem;
  font-weight: 700;
}

.map-style-option__hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 420px) {
  .map-style-menu {
    right: 0;
    top: calc(100% + 10px);
    min-width: min(220px, calc(100vw - 32px));
  }
}

.fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--primary);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fab:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow);
}

.fab:disabled {
  opacity: 0.6;
  cursor: wait;
}

.map-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  top: max(100px, calc(env(safe-area-inset-top) + 88px));
  z-index: 600;
  max-width: 420px;
}

.map-toast--hint {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  max-width: calc(100% - 32px);
  box-shadow: var(--shadow-soft);
}

/* ——— Bottom sheet ——— */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  height: min(58vh, 520px);
  max-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  background: var(--grouped-bg);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.12);
  transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.sheet--dragging {
  transition: none;
}

@media (min-width: 720px) {
  .sheet {
    left: 0;
    top: 0;
    bottom: 0;
    right: auto;
    width: min(400px, 38vw);
    height: 100% !important;
    max-height: none;
    border-radius: 0;
    transform: none;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.1);
    padding-bottom: 0;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sheet__grab {
    padding-top: max(10px, env(safe-area-inset-top));
    cursor: default;
  }

  .map-overlay--header {
    left: calc(min(400px, 38vw) + 16px);
    right: 88px;
  }
}

.sheet__chrome {
  flex-shrink: 0;
  touch-action: none;
}

.sheet__grab {
  display: flex;
  justify-content: center;
  padding: 10px 16px 6px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.sheet__grab:active {
  cursor: grabbing;
}

.sheet__handle {
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.3);
}

.sheet[data-snap="collapsed"] .sheet__content {
  flex: 0 0 0;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sheet[data-snap="expanded"] {
  height: min(92dvh, calc(100dvh - 56px));
}

.sheet__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  gap: 0;
}

/* ——— Station detail sheet (overlay) ——— */
.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: 850;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.detail-backdrop--open {
  opacity: 1;
  pointer-events: auto;
}

.detail-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  height: min(88dvh, 720px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--grouped-bg);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.32s;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.detail-sheet--open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}

.detail-sheet--dragging {
  transition: none;
}

.detail-sheet--dragging.detail-sheet--open {
  transform: translateY(var(--detail-drag-y, 0));
}

@media (min-width: 720px) {
  .detail-sheet {
    left: 50%;
    right: auto;
    width: min(520px, calc(100% - 32px));
    transform: translateX(-50%) translateY(100%);
  }

  .detail-sheet--open {
    transform: translateX(-50%) translateY(0);
  }

  .detail-sheet--dragging.detail-sheet--open {
    transform: translateX(-50%) translateY(var(--detail-drag-y, 0));
  }
}

.detail-sheet__chrome {
  flex-shrink: 0;
  touch-action: none;
}

.detail-sheet__grab {
  display: flex;
  justify-content: center;
  padding: 10px 16px 8px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.detail-sheet__grab:active {
  cursor: grabbing;
}

.detail-sheet__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  touch-action: pan-y;
}

/* ——— Report sheet (отметка) ——— */
.report-backdrop {
  position: absolute;
  inset: 0;
  z-index: 920;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.report-backdrop--open {
  opacity: 1;
  pointer-events: auto;
}

.report-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  height: min(72dvh, 620px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--grouped-bg);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.28s;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.report-sheet--open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}

.report-sheet--dragging {
  transition: none;
}

.report-sheet--dragging.report-sheet--open {
  transform: translateY(var(--report-drag-y, 0));
}

@media (min-width: 720px) {
  .report-sheet {
    left: 50%;
    right: auto;
    width: min(480px, calc(100% - 32px));
    transform: translateX(-50%) translateY(100%);
  }

  .report-sheet--open {
    transform: translateX(-50%) translateY(0);
  }

  .report-sheet--dragging.report-sheet--open {
    transform: translateX(-50%) translateY(var(--report-drag-y, 0));
  }
}

.report-sheet__chrome {
  flex-shrink: 0;
  touch-action: none;
}

.report-sheet__grab {
  display: flex;
  justify-content: center;
  padding: 10px 16px 6px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.report-sheet__content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.report-sheet__inner {
  padding-bottom: 16px;
}

.report-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 12px;
}

.report-sheet__station {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.report-sheet__title {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

#report-error {
  padding: 0 16px 8px;
}

#report-error:empty {
  padding: 0;
  margin: 0;
}

/* ——— History timeline ——— */
.ios-section--history {
  margin-bottom: 24px;
}

.history-timeline {
  list-style: none;
  margin: 0 16px;
  padding: 14px 16px;
  background: var(--surface-strong);
  border-radius: var(--radius-md);
}

.history-timeline__item {
  display: flex;
  gap: 12px;
}

.history-timeline__item + .history-timeline__item {
  margin-top: 14px;
}

.history-timeline__item--stale {
  opacity: 0.55;
}

.history-timeline__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14px;
  flex-shrink: 0;
  padding-top: 5px;
}

.history-timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-tertiary);
  box-shadow: 0 0 0 2px var(--surface-strong);
}

.history-timeline__line {
  flex: 1;
  width: 2px;
  margin-top: 4px;
  min-height: 20px;
  background: var(--separator);
  border-radius: 1px;
}

.history-timeline__body {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.history-timeline__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.history-timeline__fuel {
  flex-shrink: 0;
  font-weight: 400;
}

.history-timeline__price {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.history-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-secondary);
}

.history-timeline__status {
  font-weight: 400;
  color: var(--text-secondary);
}

.history-timeline__time::before {
  content: "·";
  margin-right: 6px;
  color: var(--text-tertiary);
}

/* ——— Fuel filter (iOS segmented) ——— */
.fuel-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 16px 12px;
  padding: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 9px;
}

.fuel-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 7px 2px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  box-shadow: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.fuel-chip--fuel {
  color: var(--chip-color);
}

.fuel-chip--active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.fuel-chip--active.fuel-chip--fuel {
  color: var(--chip-color);
}

/* ——— Station list ——— */
.station-list {
  list-style: none;
  margin: 0;
  padding: 0 0 max(12px, env(safe-area-inset-bottom));
  overflow: visible;
  flex: none;
}

.station-list__lead {
  padding: 4px 20px 8px;
  flex-shrink: 0;
}

.station-list__lead-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.station-list__lead-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.station-list--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  text-align: center;
  flex: 1;
}

.station-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 12px 14px;
  margin: 0;
  cursor: pointer;
  transition: background 0.15s;
}

.station-list > li + li .station-card {
  box-shadow: inset 0 0.5px 0 var(--separator);
}

.station-list > li:first-child .station-card {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.station-list > li:last-child .station-card {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.station-list > li:only-child .station-card {
  border-radius: var(--radius-md);
}

.station-list:not(.station-list--empty) {
  margin: 0 16px;
  background: var(--surface-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0;
}

.station-card:hover {
  background: rgba(0, 0, 0, 0.03);
}

.station-card:active {
  background: rgba(0, 0, 0, 0.06);
}

.station-card--selected {
  background: rgba(0, 122, 255, 0.08);
}

.station-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: none;
}

.station-card__icon svg {
  width: 22px;
  height: 22px;
}

.station-card__body {
  flex: 1;
  min-width: 0;
}

.station-card__name {
  font-weight: 600;
  font-size: 17px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-card__address {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-card__status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 0;
}

.station-card__status-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.station-card__status-label {
  flex-shrink: 0;
}

.station-card__status-fuels {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.station-card__fuel-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 12%, var(--surface-strong));
  border: 1px solid color-mix(in srgb, var(--chip-color) 28%, transparent);
}

.station-card__status-parts {
  display: inline;
  line-height: 1.35;
}

.station-card__status-part {
  white-space: nowrap;
}

.station-card__status-sep {
  color: var(--muted);
  font-weight: 500;
}

.station-card__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.station-card__time {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.station-card__aside {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.station-card__distance {
  font-weight: 700;
  font-size: 0.9rem;
}

.station-card__price {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
}

.station-card__queue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

.station-card__chevron {
  color: var(--text-tertiary);
  opacity: 1;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.muted {
  color: var(--muted);
}

/* ——— Detail view (iOS grouped) ——— */
.station-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: var(--grouped-bg);
}

.station-detail__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.detail-header {
  flex-shrink: 0;
  padding: 4px 16px 12px;
  background: var(--grouped-bg);
}

.detail-header__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-header__actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 0;
}

.detail-header__route-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.detail-header__distance {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1;
  white-space: nowrap;
}

.detail-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.detail-icon-btn--lg {
  width: 44px;
  height: 44px;
}

.detail-icon-btn--close {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1;
}

.detail-icon-btn--close.detail-icon-btn--lg {
  font-size: 30px;
}

.detail-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 4px;
}

.detail-navbar__btn {
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 17px;
  font-weight: 400;
  padding: 8px 0;
  cursor: pointer;
}

.detail-navbar__btn--tint {
  font-weight: 600;
}

.detail-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.detail-subtitle {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.detail-status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
}

.detail-status-line__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.detail-status-line__label {
  font-weight: 600;
}

.detail-status-line__meta {
  color: var(--text-secondary);
}

.detail-footer {
  flex-shrink: 0;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  background: rgba(242, 242, 247, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid var(--separator);
}

.station-detail #detail-error {
  padding: 0 16px 8px;
}

.station-detail #detail-error:empty {
  padding: 0;
  margin: 0;
}

/* iOS grouped sections */
.ios-section {
  margin-bottom: 20px;
}

.ios-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 6px 32px;
}

.ios-section__label {
  margin: 0;
  padding: 0 32px 6px;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.ios-section__head .ios-section__label {
  padding: 0;
}

.ios-section__cancel {
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
}

.ios-group {
  margin: 0 16px;
  background: var(--surface-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ios-group--empty {
  padding: 20px 16px;
  text-align: center;
}

.ios-group--list {
  list-style: none;
  margin: 0 16px;
  padding: 0;
}

.ios-empty__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.ios-empty__hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.ios-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  min-height: 52px;
}

.ios-group > .ios-row + .ios-row,
.ios-group--list > .ios-row + .ios-row {
  box-shadow: inset 0 0.5px 0 var(--separator);
}

.ios-row--stale {
  opacity: 0.55;
}

.ios-row__indicator {
  width: 4px;
  height: 32px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ios-row__body {
  flex: 1;
  min-width: 0;
}

.ios-row__title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}

.ios-row__status-inline {
  margin-left: 0;
  font-size: 13px;
  font-weight: 500;
}

.ios-row__status-inline::before {
  content: "·";
  margin-right: 6px;
  color: var(--text-tertiary);
}

.ios-row__subtitle {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.ios-row__trailing {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.ios-row__value {
  font-size: 15px;
  font-weight: 600;
}

.ios-row__action {
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.ios-row__action--secondary {
  color: var(--text-secondary);
}

.ios-row--fuel {
  flex-wrap: wrap;
  align-items: flex-start;
}

.ios-row__trailing--fuel {
  align-items: flex-end;
  text-align: right;
  min-width: 96px;
}

.ios-row__status {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.ios-row__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.ios-row__value {
  line-height: 1.2;
}

.ios-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.ios-btn:active {
  opacity: 0.7;
}

.ios-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ios-btn--primary {
  background: var(--primary);
  color: #fff;
}

.ios-segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 9px;
  padding: 2px;
  margin-bottom: 12px;
}

.ios-segment {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.ios-segment--active {
  background: var(--surface-strong);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ios-group--form {
  padding: 14px 16px 16px;
}

.ios-section__label--inline {
  padding: 0 32px 6px;
}

.ios-form-hint {
  margin: 6px 32px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.ios-section__footer {
  padding: 0 16px 4px;
}

.ios-row--form {
  cursor: pointer;
}

.ios-row__check {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ios-row__check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.ios-row__price-input {
  width: 72px;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.ios-row__price-input::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}

.ios-row--history {
  list-style: none;
}

.report-form__lead {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.report-form__required {
  color: var(--danger);
}

.station-detail__status {
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(100, 116, 139, 0.12);
  color: var(--muted);
}

.chip--green {
  background: rgba(52, 199, 89, 0.15);
  color: #248a3d;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--secondary {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text);
}

.btn--full {
  width: 100%;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(100, 116, 139, 0.12);
  cursor: pointer;
  color: var(--text);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--badge-color) 14%, transparent);
  color: var(--badge-color);
  white-space: nowrap;
}

.status-badge--sm {
  font-size: 0.72rem;
  padding: 3px 8px;
}

.status-badge--stale {
  opacity: 0.65;
}

.status-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--badge-color);
}

.alert {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.alert--error {
  background: rgba(255, 59, 48, 0.12);
  color: #d70015;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(100, 116, 139, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ——— Map markers ——— */
.station-marker-wrap,
.user-marker-wrap {
  background: transparent !important;
  border: none !important;
  cursor: pointer;
}

.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease;
}

.map-pin--selected {
  transform: scale(1.12);
  z-index: 2;
}

.map-pin__body {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pin-color);
  border: 3px solid #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1;
}

.map-pin__body svg {
  width: 14px;
  height: 14px;
  opacity: 0.95;
}

.map-pin__body--priced {
  width: auto;
  min-width: 44px;
  height: auto;
  min-height: 40px;
  padding: 4px 7px;
  border-radius: 999px;
}

.map-pin__body--priced svg {
  display: none;
}

.map-pin__price {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.map-pin__fuel {
  font-size: 0.62rem;
  font-weight: 800;
  margin-top: -1px;
  letter-spacing: -0.02em;
}

.map-pin__fuel--sub {
  font-size: 0.55rem;
  opacity: 0.92;
  margin-top: 1px;
}

.station-cluster {
  border-radius: 50%;
  background: #34c759;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  border: 3px solid #fff;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}

.station-cluster span {
  pointer-events: none;
}

.user-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1877f2;
  border: 3px solid #fff;
  box-shadow: 0 0 0 8px rgba(24, 119, 242, 0.22);
  position: relative;
}

.user-marker::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: rgba(24, 119, 242, 0.12);
  animation: pulse 2.5s ease-out infinite;
}

.user-marker span {
  display: none;
}

@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.maplibregl-map {
  font-family: inherit;
}

.maplibregl-ctrl-attrib {
  font-size: 10px;
  opacity: 0.65;
  margin-bottom: max(36px, env(safe-area-inset-bottom));
}

.maplibregl-ctrl-attrib a {
  color: var(--muted);
}

.maplibregl-canvas {
  outline: none;
}

/* Pump SVG reused via currentColor */
.pump-icon {
  display: block;
}
