.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card-pad { padding: 1rem; }
.soft-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: .85rem;
}
.pill,
.mini-meta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 26px;
  padding: .2rem .52rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 48px;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 900;
}
.btn.secondary { background: var(--surface-soft); color: var(--text); border: 1px solid var(--border); }
.btn.ghost { background: transparent; color: var(--brand-dark); border: 1px solid var(--border); }
.btn.danger { background: rgba(220, 38, 38, .1); color: var(--danger); }

.fuel-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  padding: .32rem;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.fuel-option {
  min-height: 48px;
  padding: .45rem .7rem;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 900;
  white-space: nowrap;
  display: inline-flex;
  gap: .42rem;
  align-items: center;
  justify-content: center;
}
.fuel-option.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #02201b;
  box-shadow: 0 14px 34px rgba(39, 200, 173, .26);
}
:root[data-theme="dark"] .fuel-option.is-active { color: #031916; }

.search-wrap { position: relative; }
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  padding: .42rem;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.search-input {
  min-height: 56px;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 1rem;
  background: transparent;
  color: var(--text);
  font-size: 1.03rem;
}
.search-input::placeholder { color: var(--faint); }
.search-results {
  position: absolute;
  inset: calc(100% + .45rem) 0 auto 0;
  z-index: 20;
  display: grid;
  gap: .35rem;
  max-height: 340px;
  overflow: auto;
  padding: .5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: center;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: .75rem;
}
.search-result:hover, .search-result:focus { background: var(--surface-soft); }
.search-result strong { display: block; }
.search-result span { color: var(--muted); font-size: .82rem; }

.radar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(39, 200, 173, .13), transparent 18rem),
    linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-soft) 70%, transparent));
  box-shadow: var(--shadow), var(--glow);
  padding: 1.15rem;
  overflow: hidden;
}
.radar-header,
.radar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  color: var(--muted);
  font-weight: 800;
}
.radar-header p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-size: .9rem;
}
.radar-header span,
.radar-foot { font-size: .84rem; }
.radar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1rem 0;
  border-block: 1px solid var(--border);
}
.radar-metric {
  padding: 1rem;
  border-right: 1px solid var(--border);
}
.radar-metric:last-child { border-right: 0; }
.radar-metric span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .04em;
}
.radar-metric strong {
  display: block;
  margin-top: .35rem;
  color: var(--text);
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1;
  letter-spacing: -.08em;
}
.radar-metric small {
  margin-left: .25rem;
  color: var(--muted);
  font-size: .42em;
  letter-spacing: 0;
}
.radar-metric.good strong { color: var(--brand-dark); }
.radar-metric.warn strong { color: var(--accent); }
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(39, 200, 173, .12);
}
.filters-row {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .1rem;
  scrollbar-width: none;
}
.filters-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
}
.filter-chip.is-active {
  color: #02201b;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, white));
  border-color: transparent;
}

.station-list { display: grid; gap: .25rem; }
.station-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .85rem .2rem;
  border-bottom: 1px solid var(--border);
}
.station-card:last-child { border-bottom: 0; }
.station-card:hover .station-title { color: var(--brand-dark); }
.rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
}
.rank.is-top {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #06231f;
}
.station-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-weight: 950;
  letter-spacing: -.05em;
}
.station-main { min-width: 0; }
.station-title { margin: 0; font-size: 1.02rem; letter-spacing: -.035em; transition: color .18s ease; }
.station-meta { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.price-box {
  display: grid;
  grid-template-columns: auto;
  justify-items: end;
  gap: .28rem;
  text-align: right;
}
.price-link { display: block; }
.price-value { font-size: 1.38rem; font-weight: 950; letter-spacing: -.06em; color: var(--brand-dark); white-space: nowrap; }
.price-label { color: var(--muted); font-size: .78rem; font-weight: 850; }
.favorite-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 1rem;
}
.favorite-btn.is-active { color: var(--accent); background: rgba(255, 127, 50, .12); border-color: rgba(255, 127, 50, .34); }

.map-card,
.map-preview-card { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.map-preview-card { margin-bottom: .55rem; }
.map-view {
  width: 100%;
  height: 420px;
  min-height: 420px;
  background: var(--surface-soft);
}
.map-view.small { height: 210px; min-height: 210px; }
.map-view.is-loading, .map-error {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}
.map-view .leaflet-container { height: 100%; min-height: inherit; }
.leaflet-container { font-family: inherit; background: var(--surface-soft); }
.leaflet-control-attribution { font-size: .68rem; }
.map-popup { display: grid; gap: .25rem; min-width: 160px; color: #10201d; }

.sort-select {
  display: inline-flex;
  gap: .28rem;
  align-items: center;
  padding: .25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
  font-size: .86rem;
}
.sort-select span { padding-left: .45rem; }
.sort-select button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: .45rem .65rem;
  font-weight: 900;
}
.sort-select button.is-active { color: #06231f; background: var(--brand); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
.stat {
  padding: .9rem;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.stat small { display: block; color: var(--muted); font-weight: 750; }
.stat strong { display: block; margin-top: .25rem; font-size: 1.25rem; letter-spacing: -.04em; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .75rem 0;
  color: var(--muted);
  font-size: .9rem;
}
.breadcrumbs a { color: var(--brand-dark); font-weight: 800; }
.loading, .empty, .error-box {
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: var(--surface-soft);
  padding: 1rem;
  color: var(--muted);
}
.error-box { color: var(--danger); background: rgba(220, 38, 38, .09); border-color: rgba(220, 38, 38, .24); }

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(.75rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(100% - 1.5rem, var(--max-width));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .2rem;
  padding: .55rem;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.bottom-nav a {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: .15rem;
  border-radius: 18px;
  color: var(--muted);
  font-weight: 800;
}
.bottom-nav a span { font-size: 1.35rem; line-height: 1; }
.bottom-nav a small { font-size: .72rem; }
.bottom-nav a.is-active { color: var(--brand-dark); background: var(--brand-soft); }

@media (max-width: 700px) {
  .radar-grid { grid-template-columns: 1fr; border-bottom: 0; }
  .radar-metric { border-right: 0; border-bottom: 1px solid var(--border); padding: .9rem 0; }
  .radar-metric:last-child { border-bottom: 0; }
  .station-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .station-card .rank { display: none; }
  .station-logo { width: 50px; height: 50px; border-radius: 16px; }
  .price-value { font-size: 1.18rem; }
  .search-form { grid-template-columns: 1fr; }
  .search-form .btn { width: 100%; }
  .fuel-option { font-size: .82rem; padding-inline: .35rem; }
  .fuel-option span:first-child { display: none; }
  .bottom-nav { width: min(100% - 1rem, var(--max-width)); }
  .bottom-nav a small { display: none; }
  .bottom-nav a { min-height: 48px; }
}
@media (max-width: 430px) {
  .fuel-toggle { grid-template-columns: 1fr; border-radius: 20px; }
  .fuel-option { justify-content: center; }
  .station-card { grid-template-columns: minmax(0, 1fr) auto; }
  .station-logo { display: none; }
}

/* Minimal components refresh */
.card, .glass-section, .map-card, .map-preview-card { backdrop-filter: blur(18px); }
.btn { min-height: 46px; padding: .62rem .9rem; box-shadow: none; }
.btn.ghost { background: var(--surface); }
.fuel-toggle { border-radius: 20px; padding: .25rem; box-shadow: none; background: var(--surface-strong); }
.fuel-option { min-height: 44px; border-radius: 16px; font-size: .88rem; }
.fuel-option.is-active { box-shadow: none; }
.search-form { border-radius: 20px; padding: .32rem; box-shadow: none; background: var(--surface-strong); }
.search-input { min-height: 52px; font-size: 1rem; }
.search-results { border-radius: 18px; }
.location-chip { min-height: 42px; padding: 0 .55rem 0 .78rem; box-shadow: none; }
.location-refresh {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 900;
}
.location-refresh:hover { color: var(--brand-dark); }
.radar-card { padding: .9rem; border-radius: 21px; box-shadow: var(--shadow); background: var(--surface); }
.radar-header p { font-size: .78rem; }
.radar-grid { margin: .75rem 0; }
.radar-metric { padding: .85rem .75rem; }
.radar-metric strong { font-size: clamp(1.55rem, 5.8vw, 2.45rem); }
.radar-foot { justify-content: flex-start; }
.filters-row { gap: .45rem; }
.filter-chip { min-height: 40px; padding: 0 .8rem; font-size: .86rem; box-shadow: none; }
.station-card { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: .65rem; padding: .72rem .1rem; }
.station-logo { width: 48px; height: 48px; border-radius: 16px; font-size: .86rem; }
.station-title { font-size: .98rem; }
.station-meta { font-size: .84rem; }
.station-actions { gap: .28rem; margin-top: .35rem; }
.mini-meta, .pill { min-height: 24px; padding: .16rem .46rem; font-size: .72rem; }
.price-value { font-size: 1.22rem; }
.price-label { font-size: .72rem; }
.favorite-btn { width: 30px; height: 30px; }
.sort-select { background: transparent; }
.sort-select button { padding: .38rem .55rem; }
.compact-empty { padding: .62rem .75rem; border-radius: 16px; font-size: .88rem; }
.station-list.is-compact-list {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .15rem;
  scrollbar-width: none;
}
.station-list.is-compact-list::-webkit-scrollbar { display: none; }
.station-card.is-compact {
  min-width: 240px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
  padding: .7rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}
.station-card.is-compact .station-logo { display: none; }
.station-card.is-compact .station-actions .mini-meta:nth-child(n+3) { display: none; }
.station-card.is-compact .favorite-btn { display: none; }
.map-card, .map-preview-card { border-radius: 21px; box-shadow: var(--shadow); }
.map-card.is-compact-map { margin-top: -.1rem; }
.map-view { height: 390px; min-height: 390px; }
.map-view.small { height: 190px; min-height: 190px; }
:root[data-theme="dark"] .map-view .leaflet-tile { filter: brightness(.72) saturate(.88) contrast(1.08); }
.leaflet-price-marker-wrap { background: transparent; border: 0; }
.price-marker {
  position: relative;
  min-width: 48px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 .48rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px 12px 12px 4px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: -.045em;
}
.price-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid color-mix(in srgb, var(--surface-strong) 92%, transparent);
}
.price-marker.is-cheap { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #04211d; }
.price-marker.is-cheap::after { border-top-color: var(--brand-2); }
.map-popup { gap: .18rem; min-width: 180px; }
.map-popup strong { font-size: .96rem; }
.map-popup span { color: #087064; font-weight: 950; font-size: 1.12rem; }
.map-popup small { color: #64706d; }
.map-popup a { color: #087064; font-weight: 900; margin-top: .2rem; }
.bottom-nav { border-radius: 22px; box-shadow: 0 12px 42px rgba(0,0,0,.16); }
.bottom-nav a { min-height: 50px; }
.bottom-nav a span { font-size: 1.18rem; }
@media (max-width: 700px) {
  .radar-card { padding: .85rem; }
  .radar-grid { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
  .radar-metric { border-right: 1px solid var(--border); border-bottom: 0; padding: .7rem .45rem; }
  .radar-metric:last-child { border-right: 0; }
  .radar-metric span { font-size: .66rem; }
  .radar-metric strong { font-size: clamp(1.25rem, 6vw, 1.8rem); }
  .station-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .station-card .rank { display: grid; width: 30px; height: 30px; }
  .station-logo { display: none; }
  .station-card.is-compact { min-width: 218px; }
  .search-form { grid-template-columns: 1fr auto; }
  .search-form .btn { width: auto; min-width: 48px; padding-inline: .8rem; }
  .search-form .btn span:last-child { display: none; }
  .map-view.small { height: 168px; min-height: 168px; }
}
@media (max-width: 430px) {
  .fuel-toggle { grid-template-columns: repeat(3, 1fr); }
  .fuel-option { min-height: 42px; }
  .station-card { grid-template-columns: minmax(0, 1fr) auto; }
  .station-card .rank { display: none; }
  .radar-metric { padding-inline: .25rem; }
  .price-marker { min-width: 44px; height: 28px; font-size: .76rem; }
}

/* Radar v6 components */
.fuel-toggle {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .28rem;
  padding: .28rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  border-color: var(--border-strong);
}
.fuel-option {
  min-height: 42px;
  border-radius: 16px;
  font-size: .88rem;
  color: var(--muted);
}
.fuel-option.is-active {
  color: #06231f;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: none;
}
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: .7rem;
  align-items: start;
}
.search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .2rem;
  min-height: 66px;
  padding: .35rem .4rem .35rem 1.05rem;
  border-radius: 21px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}
.search-form::before {
  content: "⌕";
  color: var(--faint);
  font-size: 1.8rem;
  line-height: 1;
}
.search-input {
  min-height: 54px;
  padding: 0 .65rem;
  font-size: 1.04rem;
}
.search-form .btn {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 16px;
  color: var(--brand-dark);
  background: transparent;
  border: 1px solid transparent;
  overflow: hidden;
  text-indent: -999px;
  position: relative;
}
.search-form .btn::after {
  content: "→";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-indent: 0;
  color: var(--brand-dark);
  font-size: 1.35rem;
}
.filter-button {
  width: 58px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 21px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  color: var(--text);
  font-size: 1.55rem;
  box-shadow: none;
}
.search-results {
  border-radius: 20px;
  background: var(--surface-strong);
}
.status-strip {
  display: grid;
  grid-template-columns: minmax(190px, .92fr) .64fr .68fr;
  align-items: center;
  gap: .92rem;
}
.status-fuel,
.status-meta {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 21px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}
.status-fuel span:first-child { color: var(--brand-dark); font-size: 1.45rem; }
.status-fuel strong { font-size: 1.02rem; letter-spacing: -.035em; }
.status-fuel span:last-child { margin-left: auto; color: var(--brand-dark); }
.status-meta {
  display: grid;
  gap: .15rem;
  border-radius: 0;
  border-width: 0 0 0 1px;
  background: transparent;
  padding: .45rem .35rem .45rem 1.05rem;
}
.status-meta span {
  color: var(--muted);
  font-size: .88rem;
}
.status-meta strong {
  color: var(--text);
  font-size: 1.08rem;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.status-meta.is-price strong {
  color: var(--brand-dark);
  font-size: 1.4rem;
  letter-spacing: -.055em;
}
.radar-card {
  padding: 1rem 1.15rem;
  border-radius: 21px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 16rem),
    color-mix(in srgb, var(--surface-strong) 76%, transparent);
  box-shadow: none;
}
.radar-header { align-items: baseline; }
.radar-header p {
  font-size: .88rem;
  letter-spacing: .05em;
}
.radar-grid {
  margin: .9rem 0 .72rem;
  border-block: 0;
}
.radar-metric {
  padding: .8rem 1.05rem;
  border-right: 1px solid var(--border-strong);
}
.radar-metric:first-child { padding-left: 0; }
.radar-metric:last-child { padding-right: 0; border-right: 0; }
.radar-metric span { font-size: .78rem; letter-spacing: .035em; }
.radar-metric strong {
  margin-top: .42rem;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 900;
  letter-spacing: -.075em;
}
.radar-metric small { font-size: .40em; }
.radar-foot {
  min-height: 42px;
  justify-content: center;
  border-top: 1px solid var(--border-strong);
  color: var(--muted);
}
.live-dot { width: 8px; height: 8px; }
.filters-row { gap: .68rem; padding: .05rem 0 .1rem; }
.filter-chip {
  min-height: 50px;
  padding: 0 1.14rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 75%, transparent);
  font-size: .94rem;
  font-weight: 800;
}
.filter-chip.is-active { color: #06231f; }
.stations-panel { padding: .95rem 1rem .45rem; }
.location-inline {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}
.location-refresh {
  width: 28px;
  height: 28px;
  min-width: 28px;
}
.station-list { gap: 0; }
.station-card {
  min-height: 82px;
  grid-template-columns: auto 58px minmax(0, 1fr) auto;
  gap: .8rem;
  padding: .72rem 0;
}
.rank {
  width: 34px;
  height: 34px;
  font-size: .98rem;
}
.station-logo {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
}
.station-title { font-size: 1.02rem; }
.station-meta { margin-top: .15rem; font-size: .9rem; }
.station-actions .mini-meta:nth-child(n+3) { display: none; }
.mini-meta { background: transparent; padding: 0; min-height: auto; }
.price-box { gap: .18rem; }
.price-value { font-size: 1.42rem; color: var(--brand-dark); }
.price-label { font-size: .76rem; }
.favorite-btn { order: 2; justify-self: end; }
.map-card {
  position: relative;
  border-radius: 21px;
  overflow: hidden;
  box-shadow: none;
}
.map-view.small { height: 172px; min-height: 172px; }
.map-open-button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 56px;
  padding: 0 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  color: var(--brand-dark);
  font-weight: 900;
  backdrop-filter: blur(16px);
  z-index: 401;
}
.price-marker {
  min-width: 50px;
  height: 32px;
  border-radius: 13px 13px 13px 5px;
  border: 1px solid rgba(255,255,255,.50);
  background: color-mix(in srgb, var(--brand-dark) 78%, #ffffff 12%);
  color: #05211d;
  font-size: .86rem;
}
:root[data-theme="dark"] .price-marker { color: #06231f; }
.price-marker.is-cheap { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.trend-card {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  box-shadow: none;
}
.trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.trend-header h2 { margin: 0; font-size: .9rem; font-weight: 850; }
.trend-header span { text-transform: none; letter-spacing: 0; }
.trend-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
}
.trend-chart { width: 100%; height: auto; overflow: visible; }
.trend-grid-line { stroke: var(--border); stroke-width: 1; }
.trend-line { fill: none; stroke: var(--brand); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.trend-dot { fill: var(--brand); stroke: var(--surface-strong); stroke-width: 2; }
.trend-label { fill: var(--muted); font-size: 10px; }
.trend-summary {
  min-width: 132px;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: .32rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-strong);
}
.trend-summary strong {
  color: var(--brand-dark);
  font-size: 2rem;
  letter-spacing: -.07em;
}
.trend-summary span { color: var(--muted); font-weight: 800; }
.bottom-nav {
  width: min(100% - 2rem, var(--max-width));
  padding: .62rem;
  border-radius: 23px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}
.bottom-nav a { min-height: 54px; }
.bottom-nav a span { font-size: 1.4rem; }
.bottom-nav a.is-active { background: transparent; color: var(--brand-dark); }
@media (max-width: 700px) {
  .status-strip { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .status-fuel { grid-column: 1 / -1; min-height: 60px; }
  .status-meta { min-height: 54px; }
  .radar-grid { grid-template-columns: repeat(3, 1fr); }
  .radar-metric { padding: .65rem .5rem; border-right: 1px solid var(--border-strong); }
  .radar-metric:first-child { padding-left: 0; }
  .radar-metric:last-child { padding-right: 0; border-right: 0; }
  .radar-metric span { font-size: .66rem; }
  .radar-metric strong { font-size: clamp(1.38rem, 6vw, 1.9rem); }
  .station-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .station-logo { display: none; }
  .trend-body { grid-template-columns: 1fr; gap: .4rem; }
  .trend-summary { border-left: 0; padding-left: 0; justify-content: flex-start; }
}
@media (max-width: 470px) {
  .search-panel { grid-template-columns: minmax(0, 1fr) 54px; gap: .55rem; }
  .search-form { min-height: 60px; border-radius: 19px; padding-left: .85rem; }
  .filter-button { width: 54px; height: 60px; border-radius: 19px; }
  .fuel-option span:first-child { display: none; }
  .fuel-option { font-size: .78rem; }
  .status-strip { grid-template-columns: 1fr; }
  .status-meta { border-left: 0; border-top: 1px solid var(--border-strong); padding-left: 0; }
  .station-card { grid-template-columns: minmax(0, 1fr) auto; }
  .rank { display: none; }
  .price-value { font-size: 1.24rem; }
  .map-open-button { min-height: 50px; right: .75rem; padding-inline: .85rem; }
  .bottom-nav { width: min(100% - 1rem, var(--max-width)); }
}

/* Radar v7: componentes más minimalistas y compactos */
.fuel-toggle {
  gap: .22rem;
  padding: .22rem;
  border-radius: 16px;
}
.fuel-option {
  min-height: 34px;
  border-radius: 13px;
  font-size: .76rem;
  padding: .32rem .42rem;
}
.fuel-option span:first-child { font-size: .85rem; }

.search-panel,
.search-panel.is-small {
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: .48rem;
}
.search-form {
  min-height: 46px;
  border-radius: 16px;
  padding: .22rem .28rem .22rem .72rem;
  gap: .1rem;
}
.search-form::before { font-size: 1.22rem; }
.search-input {
  min-height: 38px;
  padding: 0 .45rem;
  font-size: .9rem;
}
.search-form .btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 12px;
}
.search-form .btn::after { font-size: 1.04rem; }
.filter-button {
  width: 44px;
  height: 46px;
  border-radius: 16px;
  font-size: 1.08rem;
}
.search-results {
  inset: calc(100% + .34rem) 0 auto 0;
  max-height: 270px;
  padding: .38rem;
  border-radius: 15px;
}
.search-result { padding: .55rem .62rem; border-radius: 12px; }
.search-result strong { font-size: .9rem; }
.search-result span { font-size: .75rem; }

.status-strip {
  grid-template-columns: minmax(154px, .92fr) .62fr .68fr;
  gap: .62rem;
}
.status-fuel,
.status-meta {
  min-height: 54px;
  border-radius: 17px;
  padding: .56rem .72rem;
  gap: .48rem;
}
.status-fuel span:first-child { font-size: 1.12rem; }
.status-fuel strong { font-size: .88rem; }
.status-meta { padding: .28rem .28rem .28rem .74rem; }
.status-meta span { font-size: .72rem; }
.status-meta strong { font-size: .9rem; }
.status-meta.is-price strong { font-size: 1.08rem; }

.radar-card {
  padding: .78rem .86rem;
  border-radius: 18px;
  border-color: var(--border-strong);
}
.radar-header p { font-size: .72rem; }
.radar-header span { font-size: .72rem; }
.radar-grid { margin: .66rem 0 .5rem; }
.radar-metric { padding: .55rem .75rem; }
.radar-metric span { font-size: .62rem; }
.radar-metric strong { margin-top: .28rem; font-size: clamp(1.45rem, 6vw, 2.12rem); }
.radar-foot { min-height: 32px; font-size: .76rem; }
.live-dot { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(39, 200, 173, .10); }

.filters-row { gap: .45rem; }
.filter-chip {
  min-height: 38px;
  padding: 0 .78rem;
  border-radius: 999px;
  font-size: .78rem;
  border: 1px solid var(--border-strong);
}
button.filter-chip { cursor: pointer; }

.stations-panel,
.favorites-panel { padding: .7rem .82rem .25rem; }
.favorites-panel .station-list { gap: 0; }
.station-card {
  min-height: 66px;
  grid-template-columns: auto 44px minmax(0, 1fr) auto;
  gap: .58rem;
  padding: .56rem 0;
}
.rank { width: 28px; height: 28px; font-size: .82rem; }
.station-logo {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  font-size: .76rem;
}
.station-title { font-size: .88rem; line-height: 1.08; }
.station-meta {
  margin-top: .1rem;
  font-size: .78rem;
  line-height: 1.25;
}
.station-actions { margin-top: .22rem; gap: .25rem; }
.mini-meta { font-size: .67rem; }
.price-box { gap: .08rem; }
.price-value { font-size: 1.08rem; letter-spacing: -.055em; }
.price-label { font-size: .66rem; }
.favorite-btn {
  width: 25px;
  height: 25px;
  font-size: .82rem;
}
.sort-select { font-size: .74rem; padding: .18rem; }
.sort-select span { padding-left: .34rem; }
.sort-select button { padding: .3rem .42rem; }
.location-inline { gap: .32rem; }
.location-refresh { width: 24px; height: 24px; min-width: 24px; font-size: .8rem; }
.loading, .empty, .error-box { padding: .72rem; border-radius: 15px; font-size: .84rem; }

.map-card { border-radius: 18px; }
.map-view.small { height: 142px; min-height: 142px; }
.map-open-button {
  right: .72rem;
  min-height: 42px;
  padding: 0 .72rem;
  border-radius: 13px;
  font-size: .82rem;
}
.price-marker {
  min-width: 43px;
  height: 27px;
  border-radius: 11px 11px 11px 4px;
  padding: 0 .38rem;
  font-size: .74rem;
}
.price-marker::after {
  bottom: -6px;
  border-left-width: 5px;
  border-right-width: 5px;
  border-top-width: 7px;
}

.trend-card {
  padding: .76rem .84rem;
  border-radius: 18px;
}
.trend-header h2 { font-size: .73rem; }
.trend-header span { font-size: .76rem; }
.trend-body { gap: .8rem; }
.trend-summary { min-width: 105px; }
.trend-summary strong { font-size: 1.42rem; }
.trend-summary span { font-size: .78rem; }

.bottom-nav {
  width: min(100% - 1.35rem, var(--max-width));
  padding: .42rem;
  border-radius: 18px;
}
.bottom-nav a { min-height: 42px; border-radius: 14px; }
.bottom-nav a span { font-size: 1.05rem; }
.bottom-nav a small { font-size: .64rem; }

@media (max-width: 700px) {
  .status-strip { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .status-fuel { grid-column: 1 / -1; min-height: 48px; }
  .status-meta { min-height: 44px; }
  .radar-metric { padding: .48rem .42rem; }
  .radar-metric span { font-size: .56rem; }
  .radar-metric strong { font-size: clamp(1.14rem, 5.5vw, 1.55rem); }
  .station-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .station-logo { display: none; }
  .station-card .rank { display: grid; }
  .map-view.small { height: 132px; min-height: 132px; }
}
@media (max-width: 470px) {
  .search-panel, .search-panel.is-small { grid-template-columns: minmax(0, 1fr) 42px; gap: .42rem; }
  .search-form { min-height: 44px; border-radius: 15px; padding-left: .62rem; }
  .filter-button { width: 42px; height: 44px; border-radius: 15px; }
  .status-strip { grid-template-columns: 1fr; }
  .status-meta { border-left: 0; border-top: 1px solid var(--border-strong); padding-left: 0; }
  .station-card { grid-template-columns: minmax(0, 1fr) auto; }
  .station-card .rank { display: none; }
  .price-value { font-size: 1rem; }
  .bottom-nav { width: min(100% - .9rem, var(--max-width)); }
  .bottom-nav a small { display: none; }
}

/* v8: favorito como lista, buscador más discreto y charts con Chart.js */
.fuel-toggle {
  max-width: 640px;
  margin-inline: auto;
  padding: .24rem;
  border-radius: 18px;
}
.fuel-option {
  min-height: 38px;
  padding: .34rem .52rem;
  border-radius: 15px;
  font-size: .78rem;
}
.search-panel,
.search-panel.is-small {
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: .4rem;
}
.search-form {
  min-height: 40px;
  padding: .2rem .22rem .2rem .62rem;
  border-radius: 15px;
  box-shadow: none;
}
.search-icon { font-size: .82rem; opacity: .75; }
.search-form input {
  font-size: .84rem;
  letter-spacing: -.015em;
}
.search-form .btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 10px;
}
.search-form .btn::after { font-size: .96rem; }
.filter-button {
  width: 38px;
  height: 40px;
  border-radius: 14px;
  font-size: .95rem;
}
.status-strip {
  grid-template-columns: minmax(132px, .86fr) .56fr .68fr;
  gap: .5rem;
}
.status-fuel,
.status-meta {
  min-height: 46px;
  border-radius: 15px;
  padding: .46rem .58rem;
}
.status-fuel strong { font-size: .8rem; }
.status-meta span { font-size: .64rem; }
.status-meta strong { font-size: .82rem; }
.status-meta.is-price strong { font-size: .98rem; }
.radar-card {
  padding: .66rem .72rem;
  border-radius: 16px;
}
.radar-header p { font-size: .66rem; letter-spacing: .055em; }
.radar-header span { font-size: .66rem; }
.radar-grid { margin: .54rem 0 .42rem; }
.radar-metric { padding: .46rem .58rem; }
.radar-metric span { font-size: .55rem; }
.radar-metric strong { font-size: clamp(1.22rem, 4.8vw, 1.78rem); }
.radar-foot { min-height: 28px; font-size: .68rem; }
.filter-chip {
  min-height: 34px;
  padding: 0 .64rem;
  font-size: .72rem;
}
.stations-panel,
.favorites-panel {
  padding: .58rem .72rem .1rem;
}
.favorites-panel .station-list,
.stations-panel .station-list { gap: 0; }
.favorites-panel .station-card,
.stations-panel .station-card {
  min-height: 58px;
  grid-template-columns: 26px 38px minmax(0, 1fr) auto;
  gap: .48rem;
  padding: .46rem 0;
}
.station-card {
  min-height: 58px;
  grid-template-columns: auto 38px minmax(0, 1fr) auto;
  gap: .48rem;
  padding: .48rem 0;
}
.rank { width: 26px; height: 26px; font-size: .74rem; }
.station-logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: .68rem;
}
.station-title,
.station-title a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
  line-height: 1.05;
}
.station-meta {
  margin-top: .08rem;
  font-size: .72rem;
  line-height: 1.18;
}
.station-actions { margin-top: .16rem; gap: .2rem; }
.mini-meta { font-size: .61rem; }
.price-value { font-size: .98rem; }
.price-label { font-size: .6rem; }
.favorite-btn {
  width: 23px;
  height: 23px;
  font-size: .76rem;
}
.price-box { gap: .05rem; }
.map-view.small { height: 124px; min-height: 124px; }
.map-view { height: 340px; min-height: 340px; }
.map-open-button {
  min-height: 38px;
  padding: 0 .62rem;
  border-radius: 12px;
  font-size: .76rem;
}
.price-marker {
  min-width: 40px;
  height: 25px;
  border-radius: 10px 10px 10px 4px;
  font-size: .7rem;
}
.bottom-nav {
  width: min(100% - 1.1rem, var(--max-width));
  padding: .34rem;
  border-radius: 16px;
}
.bottom-nav a {
  min-height: 38px;
  border-radius: 12px;
}
.bottom-nav a span { font-size: .96rem; }
.bottom-nav a small { font-size: .6rem; }

.chart-card {
  display: grid;
  gap: .62rem;
  padding: .72rem .78rem;
  border: 1px solid var(--border);
  border-radius: 17px;
  background:
    radial-gradient(circle at 8% -20%, rgba(69, 224, 199, .14), transparent 12rem),
    color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: none;
}
.chart-card.is-compact { padding: .66rem .72rem; }
.chart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .8rem;
}
.chart-head h2 {
  margin: 0;
  font-size: .8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.chart-head p {
  margin: .12rem 0 0;
  color: var(--faint);
  font-size: .68rem;
}
.chart-status {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
}
.chart-body {
  height: 210px;
  min-height: 210px;
}
.chart-card.is-compact .chart-body {
  height: 126px;
  min-height: 126px;
}
.chart-body canvas { width: 100% !important; height: 100% !important; }
.chart-summary {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: .42rem;
  padding-top: .42rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .7rem;
}
.chart-summary strong {
  color: var(--brand-dark);
  font-size: 1rem;
  letter-spacing: -.055em;
}
.chart-card.is-compact .chart-summary strong { font-size: .92rem; }
.chart-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .82rem;
}
.trend-card { display: none; }
@media (min-width: 860px) {
  .favorites-panel .station-card,
  .stations-panel .station-card,
  .station-card {
    grid-template-columns: 28px 40px minmax(0, 1fr) auto;
    min-height: 60px;
  }
  .favorites-panel .station-title,
  .favorites-panel .station-title a { font-size: .84rem; }
}
@media (max-width: 700px) {
  .status-strip { grid-template-columns: 1fr 1fr; gap: .45rem; }
  .status-fuel { grid-column: 1 / -1; min-height: 44px; }
  .status-meta { min-height: 40px; }
  .favorites-panel .station-card,
  .stations-panel .station-card,
  .station-card { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .station-logo { display: none; }
  .chart-body { height: 180px; min-height: 180px; }
}
@media (max-width: 470px) {
  .status-strip { grid-template-columns: 1fr; }
  .favorites-panel .station-card,
  .stations-panel .station-card,
  .station-card { grid-template-columns: minmax(0, 1fr) auto; }
  .station-card .rank { display: none; }
  .chart-summary { justify-content: space-between; }
}

/* v9 breathing room + price comparison */
.price-link {
  min-width: 118px;
}
.price-delta {
  margin-top: .22rem;
  font-size: .68rem;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.price-delta.is-cheapest { color: var(--brand-dark); }
.price-delta.is-more-expensive { color: var(--danger); }
.station-card {
  min-height: 72px;
  gap: .7rem;
  padding: .72rem 0;
}
.favorites-panel .station-card,
.stations-panel .station-card {
  min-height: 72px;
  gap: .7rem;
  padding: .72rem 0;
}
.station-list { gap: 0; }
.station-main { align-self: center; }
.station-actions { margin-top: .28rem; gap: .32rem; }
.station-meta { margin-top: .16rem; line-height: 1.25; }
.price-box { gap: .12rem; min-width: 126px; }
.glass-section,
.stations-panel,
.favorites-panel {
  padding: .88rem 1rem .32rem;
}
.radar-card,
.chart-card {
  padding: .92rem 1rem;
}
.search-panel.is-small {
  margin-block: .2rem;
}
.filters-row {
  gap: .66rem;
  margin-block: .12rem;
}
.map-view.small {
  height: 144px;
  min-height: 144px;
}
.compact-head { margin-bottom: .15rem; }
@media (min-width: 860px) {
  .favorites-panel .station-card,
  .stations-panel .station-card,
  .station-card {
    grid-template-columns: 30px 44px minmax(0, 1fr) auto;
    min-height: 74px;
  }
  .station-logo { width: 42px; height: 42px; }
}
@media (max-width: 700px) {
  .favorites-panel .station-card,
  .stations-panel .station-card,
  .station-card {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    min-height: 70px;
  }
  .price-link { min-width: 104px; }
  .price-delta { font-size: .62rem; white-space: normal; text-align: right; }
  .glass-section,
  .stations-panel,
  .favorites-panel { padding: .78rem .82rem .22rem; }
}
@media (max-width: 470px) {
  .favorites-panel .station-card,
  .stations-panel .station-card,
  .station-card { grid-template-columns: minmax(0, 1fr) auto; }
  .station-card .rank { display: none; }
  .price-box { min-width: 100px; }
}
.status-strip { display: none !important; }

/* v10: unified lists, breathing room, spinners and map controls */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 58px;
  border-style: solid;
}
.spinner {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--brand) 24%, transparent);
  border-top-color: var(--brand-dark);
  animation: gasolina-spin .78s linear infinite;
}
.spinner-dot { display: none; }
@keyframes gasolina-spin { to { transform: rotate(360deg); } }

.dashboard.home-radar { gap: 1rem; }
.glass-section,
.stations-panel,
.favorites-panel {
  padding: 1rem 1.1rem .55rem;
  border-radius: 22px;
}
.radar-card,
.chart-card,
.card-pad { padding: 1.05rem 1.1rem; }
.search-panel.is-small { margin-block: .35rem; }
.filters-row { gap: .75rem; margin-block: .2rem; }
.section { gap: 1rem; margin-top: .6rem; }
.stack { gap: 1rem; }

.station-list { display: grid; gap: 0; }
.station-card,
.favorites-panel .station-card,
.stations-panel .station-card {
  grid-template-columns: 32px 48px minmax(0, 1fr) minmax(156px, auto);
  gap: .82rem;
  min-height: 84px;
  padding: .82rem 0;
  align-items: center;
}
.station-card:not(:last-child) { border-bottom: 1px solid var(--border); }
.station-main { min-width: 0; }
.station-title,
.station-title a {
  font-size: .96rem;
  line-height: 1.16;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-meta {
  font-size: .82rem;
  line-height: 1.32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-actions { margin-top: .32rem; gap: .38rem; }
.rank { width: 30px; height: 30px; font-size: .82rem; }
.station-logo { width: 48px; height: 48px; border-radius: 15px; font-size: .78rem; }
.price-box {
  min-width: 156px;
  justify-items: end;
  align-items: center;
  gap: .24rem;
}
.price-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .48rem;
  min-width: 100%;
}
.price-link {
  min-width: 0;
  text-align: right;
}
.price-value { font-size: 1.18rem; line-height: 1; }
.price-label { margin-top: .15rem; }
.price-delta {
  max-width: 156px;
  white-space: normal;
  text-align: right;
  line-height: 1.18;
  font-size: .72rem;
}
.favorite-btn {
  flex: 0 0 auto;
  order: 0;
  width: 28px;
  height: 28px;
}

.map-card { position: relative; overflow: hidden; }
.map-view { height: 390px; min-height: 390px; }
.map-view.small { height: 168px; min-height: 168px; }
.map-actions {
  position: absolute;
  z-index: 402;
  top: .75rem;
  left: .75rem;
  display: inline-flex;
  gap: .38rem;
  padding: .32rem;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.map-action {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font-size: .82rem;
  font-weight: 950;
}
.map-action:hover,
.map-action:focus-visible {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.map-action.is-loading { color: var(--brand-dark); }
.map-open-button { right: .82rem; }

.municipality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
}
.municipality-card { display: grid; gap: .25rem; }

@media (min-width: 860px) {
  .station-card,
  .favorites-panel .station-card,
  .stations-panel .station-card {
    grid-template-columns: 34px 50px minmax(0, 1fr) minmax(168px, auto);
    min-height: 88px;
    padding: .9rem 0;
  }
  .price-box { min-width: 168px; }
  .price-delta { max-width: 168px; }
}
@media (max-width: 700px) {
  .glass-section,
  .stations-panel,
  .favorites-panel { padding: .9rem .9rem .35rem; }
  .station-card,
  .favorites-panel .station-card,
  .stations-panel .station-card {
    grid-template-columns: 28px minmax(0, 1fr) minmax(124px, auto);
    gap: .65rem;
    min-height: 78px;
    padding: .78rem 0;
  }
  .station-logo { display: none; }
  .price-box { min-width: 124px; }
  .price-line { gap: .34rem; }
  .price-value { font-size: 1.04rem; }
  .price-delta { max-width: 124px; font-size: .64rem; }
  .map-actions { top: .55rem; left: .55rem; gap: .24rem; }
  .map-action { width: 30px; height: 30px; border-radius: 10px; }
}
@media (max-width: 470px) {
  .station-card,
  .favorites-panel .station-card,
  .stations-panel .station-card {
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  }
  .station-card .rank { display: none; }
  .price-box { min-width: 112px; }
  .price-delta { max-width: 112px; }
  .favorite-btn { width: 26px; height: 26px; }
}

/* v11: páginas separadas, mapas altos y búsqueda en mapa */
.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: .25rem 0 .15rem;
}
.page-title-row h1 {
  margin: .22rem 0 .15rem;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  letter-spacing: -.045em;
}
.page-title-row p { margin: 0; color: var(--muted); font-weight: 750; }
.search-only-card {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.search-page .search-wrap { max-width: 720px; }
.search-page .search-form { min-height: 56px; }
.helper-card { max-width: 720px; }
.radar-page,
.map-page,
.favorites-page,
.search-page { gap: 1.15rem; }
.map-card.is-tall-map { border-radius: 26px; }
.map-view,
.map-view.tall { height: min(68vh, 640px); min-height: 520px; }
.map-view.small { height: 260px; min-height: 260px; }
.detail-layout .map-view.small { height: 310px; min-height: 310px; }
.map-search-here {
  position: absolute;
  z-index: 405;
  left: 50%;
  top: .9rem;
  transform: translateX(-50%);
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid color-mix(in srgb, var(--brand) 44%, var(--border));
  border-radius: 999px;
  background: var(--brand);
  color: #06231f;
  font-weight: 950;
  box-shadow: 0 16px 38px rgba(0,0,0,.2);
}
.map-search-here[hidden] { display: none; }
.map-search-here:disabled { opacity: .8; cursor: progress; }
.map-actions { top: .9rem; left: .9rem; }
.map-page .map-actions,
.radar-page .map-actions { top: .9rem; left: .9rem; }
.map-page .stations-panel { margin-top: .1rem; }
.bottom-nav a.is-active { color: var(--brand-dark); background: var(--brand-soft); }
@media (max-width: 760px) {
  .page-title-row { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .map-view,
  .map-view.tall { height: 62vh; min-height: 430px; }
  .map-view.small { height: 230px; min-height: 230px; }
  .map-search-here { top: 3.6rem; min-height: 38px; font-size: .82rem; }
}
@media (max-width: 470px) {
  .map-view,
  .map-view.tall { height: 58vh; min-height: 390px; }
  .map-view.small { height: 220px; min-height: 220px; }
  .search-only-card { padding: .85rem; }
}

/* v13: improved gas station detail page */
.station-hero {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.35rem !important;
  border: 1px solid var(--border);
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(69, 224, 199, .18), transparent 18rem),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface-soft));
  box-shadow: var(--shadow);
}
.station-hero::after {
  content: '';
  position: absolute;
  right: -7rem;
  top: -7rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  pointer-events: none;
}
.station-hero > * { position: relative; z-index: 1; }
.station-hero-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}
.station-hero h1 {
  max-width: 980px;
  font-size: clamp(2.05rem, 5.6vw, 4.25rem) !important;
  letter-spacing: -.095em !important;
}
.station-hero p {
  max-width: 860px;
  font-size: 1rem;
  font-weight: 750;
}
.station-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: 1.15rem;
  align-items: start;
}
.station-current-card,
.station-summary-card,
.station-fuels-card {
  padding: 1.18rem 1.25rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 14rem),
    var(--surface);
}
.summary-kicker {
  display: inline-flex;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.station-current-price {
  margin-top: .45rem;
  color: var(--brand-dark);
  font-size: clamp(2.65rem, 8vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.105em;
  font-weight: 950;
}
.current-price-diff {
  margin: .55rem 0 0;
  font-size: .98rem;
  font-weight: 950;
  letter-spacing: -.03em;
}
.current-price-diff.is-bad { color: var(--danger); }
.current-price-diff.is-good { color: var(--brand-dark); }
.current-price-diff.is-neutral { color: var(--muted); }
.station-summary-card {
  display: grid;
  gap: 1rem;
}
.station-summary-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.station-summary-title strong {
  color: var(--muted);
  font-size: .86rem;
}
.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}
.summary-metric {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: .4rem;
  padding: .92rem;
  border-radius: 21px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.summary-metric.is-primary {
  color: #04211d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 72%, white));
}
.summary-metric span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.summary-metric.is-primary span,
.summary-metric.is-primary small { color: rgba(4, 33, 29, .72); }
.summary-metric strong {
  color: var(--text);
  font-size: clamp(1.28rem, 3vw, 1.85rem);
  line-height: 1;
  letter-spacing: -.075em;
  word-break: keep-all;
}
.summary-metric.is-primary strong { color: #04211d; }
.summary-metric small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
}
.summary-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .62rem;
  padding-top: .25rem;
}
.summary-mini-grid div {
  min-width: 0;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface-soft) 76%, transparent);
}
.summary-mini-grid span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
}
.summary-mini-grid strong {
  display: block;
  margin-top: .18rem;
  overflow: hidden;
  color: var(--text);
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.station-fuels-card {
  display: grid;
  gap: .95rem;
  margin-top: .15rem;
}
.station-fuels-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.fuel-price-table {
  display: grid;
  gap: .55rem;
}
.fuel-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(190px, auto);
  align-items: center;
  gap: 1rem;
  padding: .78rem .85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
}
.fuel-price-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .72rem;
}
.fuel-price-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 950;
}
.fuel-price-main strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -.035em;
}
.fuel-price-main small {
  display: block;
  margin-top: .08rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
}
.fuel-price-current {
  color: var(--brand-dark);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -.07em;
  font-weight: 950;
  white-space: nowrap;
}
.fuel-price-range {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .42rem;
}
.fuel-price-range span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 .55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
}
.station-data-card .station-meta {
  white-space: normal;
}
@media (max-width: 980px) {
  .station-detail-grid { grid-template-columns: 1fr; }
  .fuel-price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .fuel-price-range { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 680px) {
  .station-hero { padding: 1rem !important; border-radius: 22px !important; }
  .station-hero h1 { font-size: clamp(1.8rem, 13vw, 3.2rem) !important; }
  .station-actions .btn { flex: 1 1 auto; min-height: 42px; }
  .station-current-card,
  .station-summary-card,
  .station-fuels-card { padding: 1rem; border-radius: 22px; }
  .summary-metrics { grid-template-columns: 1fr; }
  .summary-metric { min-height: 104px; }
  .summary-mini-grid { grid-template-columns: 1fr; }
  .fuel-price-row { grid-template-columns: 1fr; gap: .65rem; }
  .fuel-price-current { font-size: 1.25rem; }
  .fuel-price-range { justify-content: flex-start; }
}

/* v14 discounts */
.station-card.has-discount .price-value,
.fuel-price-row.has-discount .fuel-price-current strong {
  color: var(--brand-dark);
}
.price-original,
.station-original-price,
.fuel-price-original {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: line-through;
  opacity: .82;
}
.price-discount {
  max-width: 156px;
  color: var(--brand-dark);
  font-size: .7rem;
  font-weight: 950;
  line-height: 1.15;
  text-align: right;
}
.station-discount-note {
  display: inline-flex;
  width: fit-content;
  margin: .48rem 0 0;
  padding: .28rem .55rem;
  border: 1px solid color-mix(in srgb, var(--brand-dark) 22%, transparent);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 950;
}
.discount-card {
  display: grid;
  gap: .9rem;
  padding: 1.05rem 1.1rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 10rem),
    var(--surface);
}
.discount-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}
.discount-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 .68rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 950;
  white-space: nowrap;
}
.discount-form {
  display: grid;
  gap: .42rem;
}
.discount-form label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.discount-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .55rem;
}
.discount-input-row span {
  color: var(--muted);
  font-weight: 950;
}
.discount-input {
  width: 100%;
  min-height: 48px;
  padding: 0 .85rem;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  outline: none;
}
.discount-input:focus {
  border-color: color-mix(in srgb, var(--brand-dark) 52%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.discount-help {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
  font-weight: 750;
}
.fuel-price-current {
  display: grid;
  justify-items: end;
  gap: .18rem;
}
.fuel-price-current strong { white-space: nowrap; }
.fuel-price-current em {
  color: var(--brand-dark);
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}
.price-marker.has-discount:not(.is-cheap) {
  border-color: color-mix(in srgb, var(--brand-dark) 36%, rgba(255,255,255,.72));
  color: var(--brand-dark);
}
.map-popup em {
  display: block;
  color: #087064;
  font-size: .76rem;
  font-style: normal;
  font-weight: 900;
}
@media (max-width: 680px) {
  .discount-input-row { grid-template-columns: minmax(0, 1fr) auto; }
  .discount-input-row .btn { grid-column: 1 / -1; width: 100%; }
  .price-discount { max-width: 128px; }
}

/* v15 settings, location gate and tank-price mode */
.location-gate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-style: dashed;
}
.location-gate-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.45rem;
  font-weight: 950;
}
.location-gate h2 {
  margin: 0 0 .25rem;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  letter-spacing: -.055em;
}
.location-gate p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}
.location-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .85rem;
}
.settings-page {
  gap: 1.05rem;
}
.settings-section {
  display: grid;
  gap: 1rem;
}
.location-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-soft) 80%, transparent);
}
.location-settings strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -.035em;
}
.settings-note {
  margin: .15rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.35;
  font-weight: 720;
}
.brand-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .7rem;
}
.brand-setting-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .72rem .78rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}
.brand-setting-chip > span {
  font-weight: 950;
  letter-spacing: -.03em;
}
.brand-setting-chip.is-favorite {
  border-color: color-mix(in srgb, var(--brand-dark) 38%, var(--border));
  background: var(--brand-soft);
}
.brand-setting-chip.is-hidden {
  opacity: .72;
  background: color-mix(in srgb, var(--danger, #ef4444) 7%, var(--surface-soft));
}
.brand-mode-select,
.settings-input {
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  font-weight: 850;
  outline: none;
}
.brand-mode-select {
  padding: 0 .55rem;
}
.settings-input {
  width: min(160px, 100%);
  padding: 0 .7rem;
}
.tank-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .85rem;
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-soft) 80%, transparent);
}
.tank-settings label {
  display: grid;
  gap: .4rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 950;
}
.tank-settings .settings-note {
  grid-column: 1 / -1;
}
.price-secondary,
.fuel-price-secondary {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 850;
  line-height: 1.05;
}
.radar-metric strong small {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: -.02em;
}
.brand-meta {
  color: var(--brand-dark) !important;
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand-dark) 20%, transparent);
}
@media (max-width: 760px) {
  .location-gate { grid-template-columns: 1fr; }
  .location-settings,
  .tank-settings { grid-template-columns: 1fr; align-items: stretch; }
  .location-settings .btn,
  .tank-settings .btn { width: 100%; }
  .brand-settings-grid { grid-template-columns: 1fr; }
}

/* v16: station detail desktop polish, stable bottom menu, settings management */
:root { --max-width: 1120px; }

.bottom-nav {
  position: fixed !important;
  z-index: 50 !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(.85rem, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  width: min(100% - 1.25rem, var(--max-width)) !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: .4rem !important;
  padding: .45rem !important;
  border-radius: 26px !important;
  background: color-mix(in srgb, var(--surface-strong) 94%, transparent) !important;
  border: 1px solid var(--border-strong) !important;
  box-shadow: 0 18px 52px rgba(9, 36, 31, .14) !important;
  backdrop-filter: blur(18px) !important;
}
.bottom-nav a {
  min-width: 0 !important;
  min-height: 58px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .22rem !important;
  border-radius: 20px !important;
  white-space: nowrap !important;
  color: var(--muted) !important;
  background: transparent !important;
}
.bottom-nav a.is-active {
  color: var(--brand-dark) !important;
  background: var(--brand-soft) !important;
}
.bottom-nav a span { font-size: 1.2rem !important; line-height: 1 !important; }
.bottom-nav a small { display: block !important; font-size: .72rem !important; line-height: 1 !important; }

.station-hero-v16 {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.35rem;
  margin-top: 1rem;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 6%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 24rem),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 86%, var(--brand-soft)), var(--surface));
  box-shadow: var(--shadow);
}
.station-hero-v16::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -6rem;
  top: -7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  pointer-events: none;
}
.station-hero-meta,
.station-hero-content,
.station-layout-v16,
.station-main-column,
.station-side-column { position: relative; z-index: 1; }
.station-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.station-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}
.station-hero-v16 h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  line-height: .86;
  letter-spacing: -.09em;
}
.station-hero-v16 p {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 780;
}
.station-layout-v16 {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: start;
}
.station-main-column,
.station-side-column { display: grid; gap: 1.15rem; min-width: 0; }
.station-current-v16 {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2rem);
}
.station-current-price {
  margin: .45rem 0 .3rem;
  color: var(--brand-dark);
  font-size: clamp(3.2rem, 7vw, 5.6rem) !important;
  line-height: .88;
  letter-spacing: -.085em;
  font-weight: 720 !important;
}
.station-original-price {
  margin: .25rem 0 0;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 800;
}
.current-price-diff {
  margin: .4rem 0 0;
  font-size: clamp(1rem, 2vw, 1.16rem);
  font-weight: 880;
}
.current-price-diff.is-good { color: var(--brand-dark); }
.current-price-diff.is-bad { color: var(--danger); }
.current-price-diff.is-neutral { color: var(--muted); }
.station-discount-note {
  width: fit-content;
  margin: .45rem 0 0;
  padding: .35rem .58rem;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: .86rem;
  font-weight: 850;
}
.station-modern-summary {
  padding: 1.15rem;
  display: grid;
  gap: .95rem;
}
.station-modern-summary .station-summary-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.station-summary-feature {
  display: grid;
  gap: .2rem;
  padding: 1.05rem;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 72%, white));
  color: #06231f;
}
.station-summary-feature span,
.station-summary-feature small,
.station-summary-feature em {
  color: color-mix(in srgb, #06231f 72%, transparent);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-style: normal;
}
.station-summary-feature strong {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: .92;
  letter-spacing: -.075em;
  font-weight: 760;
}
.station-summary-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.station-summary-tile {
  min-width: 0;
  padding: .78rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}
.station-summary-tile span {
  display: block;
  margin-bottom: .28rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.station-summary-tile strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 780;
}
.station-summary-tile small { display: block; margin-top: .25rem; color: var(--muted); font-weight: 760; }
.station-summary-tile.is-good strong { color: var(--brand-dark); }
.station-data-list { margin: .75rem 0 0; display: grid; gap: .55rem; }
.station-data-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .75rem; }
.station-data-list dt { color: var(--muted); font-weight: 820; }
.station-data-list dd { margin: 0; font-weight: 880; min-width: 0; overflow-wrap: anywhere; }
.station-wide-card { margin-top: 1.25rem; }
.station-fuels-card { padding: 1.1rem; }
.fuel-price-table { display: grid; gap: .65rem; }
.fuel-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(145px, .35fr);
  align-items: center;
  gap: 1rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}
.fuel-price-current { text-align: right; display: grid; gap: .14rem; justify-items: end; }
.fuel-price-current strong { color: var(--brand-dark); font-size: 1.45rem; font-weight: 780; letter-spacing: -.055em; }
.fuel-price-current em { color: var(--brand-dark); font-size: .72rem; font-weight: 850; font-style: normal; }
.fuel-price-range { display: grid; gap: .25rem; color: var(--muted); font-size: .86rem; font-weight: 800; }

.settings-list { display: grid; gap: .7rem; }
.settings-station-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  gap: .8rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}
.settings-station-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  color: var(--brand-dark);
  background: var(--surface);
  font-weight: 950;
}
.settings-station-main { display: grid; gap: .12rem; min-width: 0; }
.settings-station-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.settings-station-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 760; }
.settings-station-main small { color: var(--faint); font-weight: 760; }
.settings-station-price { text-align: right; display: grid; gap: .12rem; color: var(--brand-dark); }
.settings-station-price strong { font-size: 1rem; font-weight: 850; white-space: nowrap; }
.settings-station-price small { max-width: 220px; color: var(--muted); font-size: .72rem; font-weight: 760; }
.settings-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.btn.tiny { min-height: 34px; padding: .38rem .58rem; border-radius: 999px; font-size: .78rem; }
.btn.danger { background: rgba(220, 38, 38, .1); color: var(--danger); }
.discount-inline-editor { display: inline-flex; align-items: center; gap: .25rem; }
.station-discount-edit,
.brand-discount-input {
  width: 78px;
  min-height: 34px;
  padding: .3rem .48rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 850;
}
.brand-setting-chip { display: grid; gap: .55rem; align-content: start; }
.brand-setting-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.brand-discount-label { display: grid; gap: .3rem; color: var(--muted); font-size: .78rem; font-weight: 850; }
.brand-discount-row { display: inline-flex; align-items: center; gap: .3rem; color: var(--text); }
.brand-discount-row small { color: var(--muted); }

@media (max-width: 900px) {
  :root { --max-width: 860px; }
  .station-hero-content,
  .station-layout-v16 { grid-template-columns: 1fr; }
  .station-actions { justify-content: flex-start; }
  .station-current-v16 { min-height: unset; }
  .fuel-price-row { grid-template-columns: 1fr; align-items: start; }
  .fuel-price-current { text-align: left; justify-items: start; }
  .settings-station-row { grid-template-columns: 44px minmax(0, 1fr); align-items: start; }
  .settings-station-price { text-align: left; grid-column: 2; justify-items: start; }
  .settings-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 620px) {
  .bottom-nav { width: min(100% - .8rem, var(--max-width)) !important; gap: .2rem !important; padding: .32rem !important; border-radius: 18px !important; }
  .bottom-nav a { min-height: 44px !important; border-radius: 14px !important; }
  .bottom-nav a span { font-size: 1.05rem !important; }
  .bottom-nav a small { font-size: .56rem !important; }
  .station-hero-v16 { border-radius: 24px; }
  .station-hero-v16 h1 { font-size: clamp(2.15rem, 15vw, 3.4rem); }
  .station-summary-tiles { grid-template-columns: 1fr; }
  .station-data-list div { grid-template-columns: 1fr; gap: .1rem; }
}


/* v17 list cleanup */
.station-card .price-label,
.station-card .price-discount {
  display: none !important;
}
.favorite-btn {
  transition: transform .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.favorite-btn.is-bouncing {
  animation: favorite-pop .38s cubic-bezier(.2, 1.35, .45, 1);
}
.favorite-btn.is-active.is-bouncing {
  box-shadow: 0 0 0 7px rgba(255, 127, 50, .14);
}
@keyframes favorite-pop {
  0% { transform: scale(.82) rotate(-8deg); }
  55% { transform: scale(1.18) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
.price-line {
  align-items: center;
}
.station-card.has-discount .price-original {
  margin-bottom: .05rem;
}
.map-popup em {
  display: none !important;
}

/* v18: more bottom breathing room and redesigned brand settings */
.main {
  padding-bottom: calc(9.5rem + env(safe-area-inset-bottom)) !important;
}
.dashboard > :last-child,
.settings-page > :last-child {
  margin-bottom: 2rem;
}
@media (max-width: 620px) {
  .main {
    padding-bottom: calc(8.5rem + env(safe-area-inset-bottom)) !important;
  }
  .dashboard > :last-child,
  .settings-page > :last-child {
    margin-bottom: 1.25rem;
  }
}

.brand-settings-list {
  display: grid;
  gap: .72rem;
}
.brand-setting-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(190px, auto);
  align-items: center;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 86%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
}
.brand-setting-row.is-favorite {
  border-color: color-mix(in srgb, var(--brand-dark) 32%, var(--border));
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--brand) 16%, transparent), transparent 12rem),
    var(--surface-soft);
}
.brand-setting-row.is-hidden {
  border-color: color-mix(in srgb, var(--danger) 26%, var(--border));
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--danger) 9%, transparent), transparent 12rem),
    var(--surface-soft);
}
.brand-setting-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--brand-dark);
  font-weight: 950;
  letter-spacing: -.05em;
}
.brand-setting-main {
  min-width: 0;
  display: grid;
  gap: .48rem;
}
.brand-setting-title {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.brand-setting-title strong {
  font-size: 1.02rem;
  letter-spacing: -.035em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: .14rem .48rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
}
.brand-state-pill.favorite {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.brand-state-pill.hidden {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.brand-mode-segmented {
  width: fit-content;
  max-width: 100%;
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: .24rem;
  padding: .22rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.brand-mode-btn {
  min-height: 33px;
  padding: 0 .62rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}
.brand-mode-btn.is-active {
  color: #06231f;
  background: var(--brand);
}
.brand-setting-row.is-hidden .brand-mode-btn.is-active {
  color: #fff;
  background: var(--danger);
}
.brand-discount-label {
  justify-self: end;
  min-width: 170px;
  display: grid;
  gap: .32rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
}
.brand-discount-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto 34px;
  align-items: center;
  gap: .35rem;
  color: var(--text);
}
.brand-discount-input {
  width: 100% !important;
  min-height: 38px;
  text-align: right;
}
.brand-discount-clear {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}
.brand-discount-clear:hover,
.brand-discount-clear:focus {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, var(--border));
}

@media (max-width: 860px) {
  .brand-setting-row {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }
  .brand-setting-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
  .brand-discount-label {
    grid-column: 2;
    justify-self: stretch;
    min-width: 0;
  }
}
@media (max-width: 520px) {
  .brand-setting-row {
    grid-template-columns: 1fr;
    padding: .75rem;
  }
  .brand-setting-logo {
    width: 44px;
    height: 44px;
  }
  .brand-discount-label {
    grid-column: auto;
  }
  .brand-mode-segmented {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .brand-mode-btn {
    padding-inline: .35rem;
    font-size: .72rem;
  }
}
