/* Hintatutka — mobile-first */
:root {
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #dbe2ea;
  --color-surface-soft: #f8fbff;
  --radius: 14px;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.05);
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.16);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  overflow-x: clip;
  min-height: 100%;
  background-color: var(--color-bg);
  /* Sticky site header: keep in-page anchors and scroll-into-view from hiding under the bar */
  scroll-padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  /* Do not set overflow-x: clip here: paired with visible-y it forces overflow-y: auto on both
     html and body, which creates two nested vertical scrollports (twin scrollbars on long pages). */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--color-text);
  background:
    radial-gradient(900px 420px at 8% -6%, rgba(37, 99, 235, 0.1), transparent 68%),
    radial-gradient(760px 360px at 96% -10%, rgba(14, 165, 233, 0.08), transparent 70%),
    radial-gradient(900px 480px at 50% 110%, rgba(148, 163, 184, 0.1), transparent 72%),
    var(--color-bg);
  line-height: 1.5;
}

/* Report modal: JS sets body position:fixed + scroll restore; keep html locked too */
html.modal-open {
  overflow: hidden;
  height: 100%;
}

body.modal-open {
  overflow: hidden;
}

.toast-stack {
  position: fixed;
  top: max(1.05rem, env(safe-area-inset-top));
  right: max(1.05rem, env(safe-area-inset-right));
  z-index: 4100;
  display: grid;
  gap: 0.6rem;
  width: min(400px, calc(100vw - 1.5rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
}

@media (max-width: 720px) {
  .toast-stack {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(400px, calc(100vw - 1.25rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
    max-width: calc(100vw - 1.25rem - env(safe-area-inset-left) - env(safe-area-inset-right));
  }
}

.toast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.82rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 8px 16px -8px rgba(15, 23, 42, 0.35),
    0 1px 2px rgba(15, 23, 42, 0.05);
  background: #fff;
  animation: toast-in 0.18s ease-out;
}

.toast--ok {
  background: #f8fffb;
  color: #166534;
}

.toast--err {
  background: #fffbfb;
  color: #991b1b;
}

.toast--info {
  background: linear-gradient(145deg, #eff6ff 0%, #f8fafc 55%);
  color: #1e3a8a;
  border-color: rgba(59, 130, 246, 0.32);
}

.toast--info .toast__close {
  color: #64748b;
}

.toast--info .toast__close:hover {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.12);
}

.toast__message {
  font-size: 0.91rem;
  line-height: 1.4;
  font-weight: 500;
}

.toast__close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toast__close:hover {
  background: #f1f5f9;
  color: #475569;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.report-form-error {
  margin: 0 0 0.6rem;
  padding: 0.55rem 0.68rem;
  border-radius: 0.6rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.88rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.site-header {
  background: color-mix(in srgb, var(--color-surface) 86%, #f8fbff);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(10px) saturate(120%);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transform: translateY(0);
  opacity: 1;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
  will-change: transform;
}

.site-header.site-header--hidden {
  transform: translateY(calc(-100% - 6px));
  opacity: 0.98;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: max(0.9rem, env(safe-area-inset-top));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  padding-bottom: 0.9rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.logo-icon {
  font-size: 1.3rem;
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.nav-toggle {
  display: none;
  padding: 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  font: inherit;
  cursor: pointer;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  color: #334155;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.site-header .header-report-mobile {
  display: none !important;
}

.nav-toggle:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.nav-toggle__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 1.35rem;
  height: 1.1rem;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease;
  transform-origin: center;
}

.site-header--nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header--nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header--nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bar {
    transition: none;
  }
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
}

/* Language + favorites grouped on the right (desktop). */
.main-nav__trailing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-left: auto;
  justify-content: flex-end;
}

/* Desktop: language switcher is moved to footer links. */
.main-nav .main-nav__trailing .nav-lang-group {
  display: none;
}

.main-nav a {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.5rem 0.72rem;
  border-radius: 9px;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.main-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
}
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #3b82f6);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  border-color: transparent;
}
.main-nav a.active:hover {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.36);
}
.main-nav a.active:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

/* Highlight “Report a price” in the main nav (distinct from generic active). */
.main-nav a.nav-report-pill:not(.active) {
  color: #047857;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: rgba(16, 185, 129, 0.42);
  font-weight: 700;
}
.main-nav a.nav-report-pill:hover:not(.active) {
  color: #065f46;
  background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: rgba(5, 150, 105, 0.5);
}
.main-nav a.nav-report-pill.active {
  color: #fff;
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}
.main-nav a.nav-report-pill.active:hover {
  color: #fff;
  background: linear-gradient(135deg, #047857, #059669);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.38);
}
.main-nav a.nav-report-pill.active:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.nav-favorites {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Desktop: trigger + dropdown both hug the trailing (right) edge */
@media (min-width: 721px) {
  .main-nav .nav-favorites {
    margin-inline-start: auto;
    width: fit-content;
    max-width: 100%;
  }
}

/* Hover bridge: spans menu width from the parent’s left edge (dropdown opens to the right). */
@media (min-width: 721px) {
  .nav-favorites[open]::before {
    content: "";
    position: absolute;
    left: 0;
    right: auto;
    top: 100%;
    width: max(220px, 100%);
    height: 0.65rem;
    z-index: 59;
  }
}

.nav-favorites__summary {
  list-style: none;
  cursor: pointer;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.5rem 0.72rem;
  border-radius: 9px;
  border: 1px solid transparent;
  text-align: end;
  width: 100%;
  box-sizing: border-box;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.nav-favorites__summary::-webkit-details-marker {
  display: none;
}

.nav-favorites__summary:hover {
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
}

.nav-favorites[open] .nav-favorites__summary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #3b82f6);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  border-color: transparent;
}

.nav-favorites[open] .nav-favorites__summary:hover {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.36);
}

.nav-favorites__menu {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  right: auto;
  inset-inline-start: 0;
  inset-inline-end: auto;
  min-width: 220px;
  width: max-content;
  max-width: min(320px, calc(100vw - 2rem));
  z-index: 60;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
  padding: 0.35rem;
  text-align: start;
}

.nav-favorites__items {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-favorites__link {
  display: block;
  padding: 0.34rem 0.5rem;
  border-radius: 6px;
  color: #1f2937;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: start;
  width: 100%;
  box-sizing: border-box;
}

.nav-favorites__link:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.nav-favorites__empty {
  color: #94a3b8;
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  text-align: start;
  width: 100%;
  box-sizing: border-box;
}

.nav-admin {
  font-size: 0.9rem;
  opacity: 1;
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 720px) {
  .header-inner {
    padding-top: max(0.65rem, env(safe-area-inset-top));
    padding-right: max(0.85rem, env(safe-area-inset-right));
    padding-bottom: 0.65rem;
    padding-left: max(0.85rem, env(safe-area-inset-left));
    gap: 0.65rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header .header-report-mobile {
    display: inline-flex !important;
    margin-left: auto;
    min-height: 2.35rem;
    padding: 0.4rem 0.62rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.65rem 0 0;
    margin: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
  }

  .main-nav.is-open {
    display: flex;
  }

  .site-header--nav-open .header-inner {
    padding-bottom: 0.85rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  .main-nav a {
    padding: 0.62rem 0.85rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 9px;
    box-sizing: border-box;
  }

  .main-nav .main-nav__trailing {
    width: 100%;
    margin-left: 0;
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(203, 213, 225, 0.9);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
  }

  .main-nav .main-nav__trailing .nav-lang-group {
    display: flex;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .main-nav .nav-lang-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
  }

  .main-nav .nav-lang {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.36rem 0.62rem;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }

  .main-nav .nav-favorites {
    width: 100%;
    padding: 0.15rem 0.2rem 0.1rem;
    align-items: stretch;
    min-width: 0;
  }

  /* Favorites: always expanded in mobile menu — summary is a non-clickable section label */
  .main-nav .nav-favorites__summary {
    width: 100%;
    box-sizing: border-box;
    pointer-events: none;
    cursor: default;
    list-style: none;
    text-align: start;
    display: block;
    min-height: 0;
    padding: 0.4rem 0.5rem 0.55rem;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .main-nav .nav-favorites[open] .nav-favorites__summary,
  .main-nav .nav-favorites[open] .nav-favorites__summary:hover {
    color: #64748b !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .main-nav .nav-favorites__menu {
    position: static;
    margin-top: 0.2rem;
    width: 100%;
    box-sizing: border-box;
    left: auto;
    right: auto;
    inset-inline: unset;
    text-align: start;
    max-width: none;
    border-radius: 9px;
    padding: 0.45rem 0.4rem;
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  }

  .main-nav .nav-favorites__link {
    text-align: start;
    padding: 0.5rem 0.62rem;
    font-size: 0.88rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
  }

  .main-nav .nav-favorites__empty {
    text-align: start;
    padding: 0.5rem 0.62rem;
    font-size: 0.88rem;
    min-height: 2.25rem;
    display: flex;
    align-items: center;
  }
}

.main-content {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 1.5rem;
  padding-right: max(1.25rem, env(safe-area-inset-right));
  padding-bottom: max(3.5rem, calc(2.25rem + env(safe-area-inset-bottom)));
  padding-left: max(1.25rem, env(safe-area-inset-left));
}

@media (min-width: 1024px) {
  .main-content {
    padding-top: 1.9rem;
  }
}

@media (max-width: 720px) {
  .main-content {
    padding-top: 1rem;
    padding-right: max(0.5rem, env(safe-area-inset-right));
    padding-bottom: max(2.5rem, calc(1.35rem + env(safe-area-inset-bottom)));
    padding-left: max(0.5rem, env(safe-area-inset-left));
  }
}

/* Car cost calculator: one document scroll — never a nested scrollport on <main> */
.main-content:has(.car-costs-page) {
  overflow: visible;
  max-height: none;
}

.page-head {
  margin-bottom: 1.5rem;
}

.page-head h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 3.8vw, 2rem);
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

/* --- About page --- */
.about-page__hero {
  margin-bottom: 1.25rem;
}

.about-page__hero-card {
  position: relative;
  padding: clamp(1.15rem, 2.8vw, 1.7rem);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(14, 165, 233, 0.11) 0%, rgba(14, 165, 233, 0) 55%),
    radial-gradient(95% 130% at 0% 100%, rgba(37, 99, 235, 0.09) 0%, rgba(37, 99, 235, 0) 60%),
    #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.about-page__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
}

.about-page__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #0f172a;
}

.about-page__lead {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.62;
  color: #334155;
  max-width: 50rem;
}

.about-page__hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-page__quick {
  margin-bottom: 1.35rem;
}

.about-page__quick-title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.about-quick-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .about-quick-grid {
    grid-template-columns: 1fr;
  }
}

.about-quick-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.about-quick-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.about-quick-card:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

.about-quick-card__icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.about-quick-card__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about-quick-card__name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.about-quick-card__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
}

.about-quick-card__arrow {
  flex-shrink: 0;
  font-weight: 700;
  color: #94a3b8;
  transition: transform 0.18s ease, color 0.18s ease;
}

.about-quick-card:hover .about-quick-card__arrow {
  color: #2563eb;
  transform: translateX(3px);
}

.about-page__quick--rise {
  animation: about-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.05s;
}

@media (prefers-reduced-motion: reduce) {
  .about-page__quick--rise {
    animation: none;
  }
}

.about-page__grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 900px) {
  .about-page__grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.about-card--contact {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: rgba(147, 197, 253, 0.45);
}

.about-card__title {
  margin: 0 0 0.8rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.about-card__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
}

.about-card__body p {
  margin: 0 0 0.85rem;
}

.about-card__body p:last-child {
  margin-bottom: 0;
}

.about-card__muted {
  color: #64748b;
  font-size: 0.92rem;
}

.about-card__email-block {
  margin: 0.5rem 0 0;
}

.about-card__email-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.about-card__email-row {
  margin: 0 !important;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.85);
}

.about-card__email {
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  word-break: break-all;
}

.about-card__email:hover {
  text-decoration: underline;
}

@keyframes about-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-card--rise {
  animation: about-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-card--rise:nth-child(2) {
  animation-delay: 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .about-card--rise {
    animation: none;
  }
}

/* --- 404 page --- */
.page-404 {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 0 2.25rem;
}

.page-404__inner {
  position: relative;
  text-align: center;
  max-width: 32rem;
  width: min(100%, 34rem);
  padding: 1.25rem 1.15rem;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  animation: page404-card-in 0.55s ease both;
}

.page-404__digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.15rem, 2vw, 0.65rem);
  margin-bottom: 1.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-404__glyph {
  display: inline-block;
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  color: #0f172a;
  text-shadow: 0 3px 14px rgba(15, 23, 42, 0.14);
  animation: page404-pop 0.85s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.page-404__glyph:nth-child(1) {
  animation-delay: 0.05s;
}

.page-404__glyph:nth-child(2) {
  animation-delay: 0.2s;
}

.page-404__glyph:nth-child(3) {
  animation-delay: 0.35s;
}

.page-404__glyph--pump {
  font-size: clamp(2.75rem, 11vw, 5rem);
  animation:
    page404-pop 0.85s cubic-bezier(0.34, 1.4, 0.64, 1) 0.2s both,
    page404-pump-float 2.8s ease-in-out 0.95s infinite;
  filter: drop-shadow(0 5px 10px rgba(30, 64, 175, 0.2));
}

@keyframes page404-pop {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.7) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes page404-pump-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.page-404__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: -0.02em;
  animation: page404-fade-up 0.7s ease 0.45s both;
}

.page-404__lead {
  margin: 0 0 1.65rem;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.55;
  animation: page404-fade-up 0.7s ease 0.55s both;
}

.page-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  animation: page404-fade-up 0.7s ease 0.65s both;
}

.page-404__actions .btn {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.page-404__actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

@keyframes page404-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page404-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-404__glyph {
    animation: none !important;
  }

  .page-404__glyph--pump {
    animation: none !important;
    filter: drop-shadow(0 5px 10px rgba(30, 64, 175, 0.2));
  }

  .page-404__inner,
  .page-404__title,
  .page-404__lead,
  .page-404__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .page-404__actions .btn:hover {
    transform: none;
    box-shadow: none;
  }
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.dash-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.65rem 0 0;
}

.dash-kpi-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 5.25rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.95rem 1rem 1rem;
  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.dash-kpi-chip__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dash-kpi-chip__icon svg {
  display: block;
}

.dash-kpi-chip__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.dash-kpi-chip__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #475569;
  line-height: 1.25;
}

.dash-kpi-chip__value {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

@media (max-width: 980px) {
  .dash-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dash-kpi-strip {
    grid-template-columns: 1fr;
  }
}

.dash-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.2rem;
}

.dash-summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 0.9rem;
}

.dash-summary-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.dash-summary-card__title-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.dash-summary-card__title-link:hover {
  text-decoration: none;
}

.dash-summary-card__icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.08) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.dash-summary-card__icon svg {
  display: block;
  width: 1.06rem;
  height: 1.06rem;
}

.dash-trend-sparkline {
  margin: -0.1rem 0 0.45rem;
  height: 34px;
}

.dash-trend-sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dash-trend-chart {
  width: 100% !important;
  height: 34px !important;
  display: block;
}

.dash-summary-list {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.dash-summary-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.8rem;
  align-items: baseline;
  padding: 0.36rem 0;
  border-bottom: 1px dashed #e2e8f0;
}

.dash-summary-list > div:last-child {
  border-bottom: 0;
}

.dash-summary-list dt {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.dash-summary-list dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dash-summary-list dd a {
  font-weight: 600;
  line-height: 1.35;
}

.dash-summary-list__station {
  font-size: 0.88rem;
  letter-spacing: 0;
}

.dash-summary-list dd a small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-muted);
}

.analytics-inline-actions {
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-sm {
  padding: 0.42rem 0.7rem;
  font-size: 0.84rem;
}

.analytics-inline-actions .btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.2;
  border-radius: 8px;
  min-height: 1.9rem;
  box-shadow: none;
}

.analytics-inline-actions .btn-sm.btn-secondary {
  background: #f8fafc;
  border: 1px solid #dbe4ef;
  color: #334155;
}

.analytics-inline-actions .btn-sm.btn-primary {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.26);
}

.analytics-inline-actions .btn-sm:hover {
  transform: translateY(-1px);
}

.station-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.station-history-custom {
  margin: 0 0 1rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.station-history-custom .adv-range-presets {
  margin-bottom: 0.75rem;
}

.station-history-custom .adv-field--dates {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .station-history-custom .adv-field--dates {
    grid-template-columns: 1fr;
  }
}

.dash-fuel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.city-prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem;
}

.dash-fuel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 0.9rem;
}

.dash-fuel-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.dash-fuel-card__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.dash-fuel-card__columns h4 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dash-fuel-card__h4-icon {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1;
  color: #334155;
  background: #e2e8f0;
}

.dash-fuel-card__columns > div:first-child .dash-fuel-card__h4-icon {
  color: #166534;
  background: #dcfce7;
}

.dash-fuel-card__columns > div:last-child .dash-fuel-card__h4-icon {
  color: #991b1b;
  background: #fee2e2;
}

.dash-mini-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-mini-table td {
  padding: 0.32rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.9rem;
  vertical-align: top;
}

.dash-mini-table tr:last-child td {
  border-bottom: 0;
}

.dash-mini-table td:first-child {
  padding-right: 0.55rem;
}

.dash-mini-table td:first-child a {
  display: inline-block;
}

.dash-mini-table td:first-child small {
  display: block;
  margin-top: 0.08rem;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.dash-mini-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dash-mini-table a {
  color: #0f172a;
  font-weight: 600;
}

.search-row input[type="search"] {
  flex: 1 1 280px;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-report-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dash-report-cta svg {
  display: block;
}

.search-row input[type="search"]:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: var(--ring), var(--shadow-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #3b82f6);
  color: #fff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-hover), #2563eb);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: var(--color-accent);
  border: 1px solid #cfdae8;
  box-shadow: var(--shadow-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.station-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 270px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.station-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  border-color: #cfd8e3;
}

.station-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.station-card__brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.station-card__dist {
  font-size: 0.88rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.station-card h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.station-card__fuels {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.station-card__fuels li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}
.station-card__fuels li:last-child {
  border-bottom: none;
}

.price {
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
}

.price-tone--low {
  color: #15803d !important;
}

.price-tone--mid {
  color: #a16207 !important;
}

.price-tone--high {
  color: #b91c1c !important;
}

.station-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed #d7e0eb;
}

.station-card__meta > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.7rem;
  box-shadow: var(--shadow-soft);
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Statistics page: keep horizontal scroll where needed, hide scrollbar track */
.stats-page .breadcrumbs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stats-page .breadcrumbs::-webkit-scrollbar {
  display: none;
  height: 0;
}
.breadcrumbs a {
  color: #475569;
}
.breadcrumbs span.sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

@media (max-width: 720px) {
  .breadcrumbs {
    display: none;
  }
}

.analytics-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .analytics-layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.sidebar-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  background-image: linear-gradient(180deg, #ffffff, #fdfefe 50%, #f9fbff);
}

.sidebar-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
}

.filter-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.filter-list li {
  margin-bottom: 0.4rem;
}

.map-placeholder {
  height: 360px;
  background: linear-gradient(135deg, #e8f0ff 0%, #f5f9ff 100%);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.chart-wrap {
  height: 280px;
  position: relative;
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .chart-row.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  min-height: 170px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.stat-card .big {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0.25rem 0;
  letter-spacing: -0.02em;
}

.form-panel {
  max-width: 640px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1rem;
}
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.form-row input,
.form-row select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: var(--ring);
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.flash.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.flash.err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.station-hero {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  background: linear-gradient(180deg, #fff, #f9fbff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 720px) {
  .station-hero {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.85rem;
  }

  .station-hero > span:first-child,
  .station-hero .explore-city-hero__pin {
    flex-shrink: 0;
  }

  /* Title + subtitle column: shrink so actions stay on the same row as the heading */
  .station-hero > div:not(.station-hero__actions) {
    min-width: 0;
    flex: 1 1 auto;
  }

  .station-hero h1 {
    font-size: 1.12rem;
    line-height: 1.28;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .station-hero > div:not(.station-hero__actions) > p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .station-hero__actions {
    margin-left: auto;
    flex: 0 0 auto;
    flex-shrink: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.42rem;
  }

  .station-hero .station-hero__actions .btn.btn-sm {
    padding: 0.52rem 0.62rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 10px;
    min-height: 2.75rem;
    box-sizing: border-box;
  }

  .station-hero .station-hero__actions .btn.btn-sm.btn-primary {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
  }

  .station-hero .station-hero__actions .btn.btn-sm.btn-primary:hover {
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.26);
  }

  .station-hero .station-favorite-btn.btn {
    gap: 0;
    justify-content: center;
    align-items: center;
    min-width: 2.75rem;
    width: 2.75rem;
    padding-inline: 0;
    min-height: 2.75rem;
  }

  .station-hero .station-favorite-btn__text {
    display: none;
  }

  .station-hero .station-favorite-btn__icon {
    font-size: 1.28rem;
    line-height: 1;
  }
}

.station-hero h1 {
  margin: 0;
  font-size: 1.35rem;
}

.station-hero__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.station-hero .station-favorite-btn.btn {
  gap: 0.35rem;
}

.station-hero .station-favorite-btn.btn.is-active {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb, #fff7ed);
  color: #b45309;
  box-shadow: var(--shadow-soft);
}

.station-hero .station-favorite-btn.btn.is-active:hover {
  border-color: #d97706;
  color: #92400e;
}

.station-hero .station-favorite-btn__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.explore-city-hero-lead {
  margin: 0 0 1.15rem;
  max-width: 54rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #64748b;
}

.station-prices-block {
  margin-bottom: 1.25rem;
}

.station-prices-block__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.station-prices-block__meta {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: var(--color-muted);
}

.price-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .price-pills {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.9rem;
  }
}

.price-pill {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 0.65rem;
  min-width: 0;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .price-pill {
    padding: 0.9rem 1rem;
  }
}

.price-pill .label {
  font-size: 0.9rem;
  color: var(--color-muted);
}
.price-pill .amt {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-accent);
}
.delta-up {
  color: #b91c1c;
  font-size: 0.85rem;
}
.delta-down {
  color: #15803d;
  font-size: 0.85rem;
}
.delta-na {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.reports-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.reports-list li {
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid #e6edf5;
}

.station-updates-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem 0.2rem;
  box-shadow: var(--shadow-soft);
}

.station-updates-section .reports-list li:last-child {
  border-bottom: 0;
}

.reports-list--compact {
  font-size: 0.9rem;
}

.reports-list--compact li {
  display: grid;
  grid-template-columns: minmax(128px, 180px) 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.58rem 0.15rem;
  border-bottom-style: dashed;
}

.reports-list__time {
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.reports-list__value {
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.admin-pager {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-pager__meta {
  color: #64748b;
  font-size: 0.86rem;
}

.admin-table--compact td {
  white-space: nowrap;
  padding-top: 0.34rem;
  padding-bottom: 0.34rem;
  font-size: 0.84rem;
}

.admin-pager__per-page {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.86rem;
}

.admin-pager__per-page select {
  min-width: 4.2rem;
  padding: 0.18rem 0.34rem;
}

.admin-prices__main-time,
.admin-prices__station,
.admin-prices__price {
  font-weight: 500;
}

.admin-price-edit-context {
  font-size: 0.88rem;
  line-height: 1.35;
}

.admin-sort-link {
  color: inherit;
  text-decoration: none;
}

.admin-sort-link:hover {
  text-decoration: underline;
}

.station-admin-maintenance {
  margin-top: 1.1rem;
}

.station-admin-maintenance__title {
  margin: 0;
  font-size: 1.03rem;
}

.station-admin-maintenance__lead {
  margin: 0.4rem 0 0.8rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.station-admin-maintenance__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.station-admin-maintenance__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #d8e3ef;
}

.station-admin-maintenance__item:last-child {
  border-bottom: 0;
}

.station-admin-maintenance__meta {
  display: grid;
  gap: 0.18rem;
}

.station-admin-maintenance__meta span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.station-admin-maintenance__empty {
  color: var(--color-muted);
  padding: 0.3rem 0;
}

.station-analytics-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.station-analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.station-analytics-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
}

.station-analytics-table th:nth-child(2),
.station-analytics-table th:nth-child(3) {
  text-align: right;
}

.station-analytics-table td {
  padding: 0.62rem 0.75rem;
  border-bottom: 1px dashed #e2e8f0;
  vertical-align: middle;
}

.station-analytics-table tbody tr:last-child td {
  border-bottom: 0;
}

.station-analytics-table__fuel {
  font-weight: 700;
  color: #0f172a;
}

.station-analytics-table__value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.station-range {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.station-range--min {
  color: #15803d;
}

.station-range--max {
  color: #b91c1c;
}

.station-range-sep {
  color: #94a3b8;
  margin: 0 0.25rem;
}

.station-analytics-table__empty {
  color: var(--color-muted);
}

.station-history-fuel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.station-history-fuel-cards__range {
  margin: -0.25rem 0 0.65rem;
  font-size: 0.86rem;
  color: #64748b;
}

.station-history-fuel-cards__range strong {
  color: #0f172a;
}

.station-history-fuel-cards__empty {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: var(--color-muted);
  background: #f8fafc;
}

.station-history-fuel-card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-soft);
}

.station-history-fuel-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.25;
}

.station-history-fuel-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: #475569;
}

.station-history-fuel-card__row strong {
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.station-history-fuel-card__row--latest strong {
  color: #1d4ed8;
}

.station-history-fuel-card__latest-time--listing {
  font-style: italic;
  opacity: 0.92;
}

.station-history-fuel-card__latest-time {
  display: inline;
  margin-top: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
}

.station-history-fuel-card__row--min strong {
  color: #15803d;
}

.station-history-fuel-card__row--max strong {
  color: #b91c1c;
}

.station-history-fuel-card__row--avg strong {
  color: #a16207;
}

@media (max-width: 700px) {
  .reports-list--compact li {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }
}

.datepicker-input {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #dfe4ea;
  border-radius: 0.625rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.datepicker-input:focus {
  outline: none;
  border-color: #465fff;
  box-shadow: 0 0 0 3px rgba(70, 95, 255, 0.18);
  background: #fff;
}

.flatpickr-calendar {
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.14);
  font-family: var(--font);
  padding: 0;
  overflow: hidden;
  z-index: 4200 !important;
}

.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
  width: auto;
  min-width: 0;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month {
  color: #111827;
  font-size: 1.15rem;
  font-weight: 600;
}

.flatpickr-months {
  padding: 0.95rem 0.95rem 0.55rem;
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  column-gap: 0.35rem;
}

.flatpickr-month {
  height: 2.8rem;
  grid-column: 2;
  position: static;
}

.flatpickr-current-month {
  position: static;
  width: 100%;
  text-align: center;
  padding: 0.65rem 0 0;
  line-height: 1.2;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  display: none !important;
}

.flatpickr-current-month .numInputWrapper {
  display: inline-block;
  width: auto;
  margin-left: 0.2rem;
  vertical-align: baseline;
}

.flatpickr-current-month .numInputWrapper .arrowUp,
.flatpickr-current-month .numInputWrapper .arrowDown {
  display: none !important;
}

.flatpickr-current-month .numInput.cur-year {
  width: 3.1rem;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  box-shadow: none !important;
  pointer-events: none;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 2.5rem;
  height: 2.5rem;
  color: #64748b !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0.68rem;
  padding: 0;
  margin: 0;
  transform: none;
}

.flatpickr-months .flatpickr-prev-month {
  grid-column: 1;
}

.flatpickr-months .flatpickr-next-month {
  grid-column: 3;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: #64748b !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.flatpickr-months .flatpickr-prev-month:focus,
.flatpickr-months .flatpickr-next-month:focus,
.flatpickr-months .flatpickr-prev-month:focus-visible,
.flatpickr-months .flatpickr-next-month:focus-visible,
.flatpickr-months .flatpickr-prev-month:active,
.flatpickr-months .flatpickr-next-month:active,
.flatpickr-months .flatpickr-prev-month.selected,
.flatpickr-months .flatpickr-next-month.selected {
  color: #64748b !important;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  color: #64748b;
}

.flatpickr-months .flatpickr-prev-month svg path,
.flatpickr-months .flatpickr-next-month svg path {
  stroke: #64748b !important;
  fill: none !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  color: #64748b;
}

.flatpickr-months .flatpickr-prev-month:hover svg path,
.flatpickr-months .flatpickr-next-month:hover svg path,
.flatpickr-months .flatpickr-prev-month:focus svg path,
.flatpickr-months .flatpickr-next-month:focus svg path,
.flatpickr-months .flatpickr-prev-month:active svg path,
.flatpickr-months .flatpickr-next-month:active svg path {
  stroke: #64748b !important;
}

.flatpickr-weekdays {
  background: #fff;
  border-top: 0;
  padding: 0 0.38rem 0.18rem;
}

.flatpickr-weekday {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.dayContainer {
  padding: 0.35rem 0.55rem 0.6rem;
}

.flatpickr-day {
  border-radius: 0.5rem;
  color: #111827;
  font-weight: 500;
  max-width: 2.3rem;
  height: 2.3rem;
  line-height: 2.3rem;
}

.flatpickr-day:hover {
  background: #f3f4f6;
  border-color: #f3f4f6;
}

.flatpickr-day.today {
  border-color: #9db0ff;
  color: #2b3ea8;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #465fff;
  border-color: #465fff;
  color: #fff;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #9ca3af;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  visibility: hidden;
  pointer-events: none;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: #3247e0;
  border-color: #3247e0;
}

.flatpickr-time {
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  color: #0f172a;
  font-weight: 600;
  font-size: 0.875rem;
}

.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
  background: #eff6ff;
}

.kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.site-footer {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 2rem;
  padding-right: max(1.25rem, env(safe-area-inset-right));
  padding-bottom: max(2rem, calc(1.25rem + env(safe-area-inset-bottom)));
  padding-left: max(1.25rem, env(safe-area-inset-left));
  font-size: 0.9rem;
  color: var(--color-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

@media (max-width: 720px) {
  .site-footer {
    padding-top: 1.35rem;
    padding-right: max(0.5rem, env(safe-area-inset-right));
    padding-bottom: max(1.35rem, calc(0.5rem + env(safe-area-inset-bottom)));
    padding-left: max(0.5rem, env(safe-area-inset-left));
  }
}

.report-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 3000;
}

.report-modal.is-open {
  display: block;
  overflow: hidden;
  overscroll-behavior: none;
}

.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 3001;
}

.report-modal__dialog {
  position: relative;
  margin: min(5vh, 2rem) auto;
  margin-top: max(min(5vh, 2rem), env(safe-area-inset-top));
  margin-bottom: max(min(5vh, 2rem), env(safe-area-inset-bottom));
  width: min(760px, calc(100% - 1.5rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 2rem);
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 2rem);
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  padding: 0.85rem 0.9rem 0.45rem;
  z-index: 3002;
}

.report-modal__dialog h2 {
  margin: 0 0 0.25rem;
}

.report-modal__subtitle {
  margin: 0 0 0.9rem;
  color: var(--color-muted);
}

.report-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #334155;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.report-modal__form {
  max-width: none;
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0 0 0.55rem;
  min-width: 0;
}

.report-modal__form .form-row {
  margin-bottom: 0.65rem;
}

.report-modal__station-block .report-mode-switch--station {
  margin-top: 0.4rem;
  gap: 0.55rem;
}

.report-loc-field__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.38rem;
}

.report-loc-field__label {
  margin: 0;
  font-weight: 600;
  color: #334155;
}

.report-loc-field__head--solo {
  margin-bottom: 0.35rem;
}

.report-loc-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.report-loc-section {
  min-width: 0;
}

.report-loc-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.report-mode-switch--compact {
  flex: 1 1 10.5rem;
  max-width: 100%;
  gap: 0.3rem;
}

.report-mode-switch--compact .report-mode-switch__item span {
  padding: 0.36rem 0.42rem;
  font-size: 0.76rem;
  line-height: 1.2;
  border-radius: 8px;
}

.report-mode-switch--station .report-mode-switch__item span {
  padding: 0.58rem 0.78rem;
  font-size: 0.82rem;
  line-height: 1.3;
  border-radius: 11px;
}

.report-modal__form .form-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.report-station-search-input),
.report-modal__form .form-row select,
.report-modal__form .form-row textarea {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.report-modal__form .form-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.report-station-search-input)::placeholder,
.report-modal__form .form-row textarea::placeholder {
  color: #94a3b8;
  opacity: 0.5;
  font-weight: 400;
  font-size: 0.8em;
}

.report-modal__form .form-row textarea {
  width: 100%;
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  resize: vertical;
  min-height: 110px;
}

.report-modal__form .form-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.report-station-search-input):focus,
.report-modal__form .form-row select:focus,
.report-modal__form .form-row textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  background: #fff;
}

.report-station-search-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 0.65rem 0.8rem;
  outline: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.report-station-search-input::placeholder {
  color: #94a3b8;
  opacity: 0.65;
  font-weight: 500;
  font-size: 0.88em;
}

.report-station-search-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.report-station-picker {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.report-station-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 10;
  display: none;
  max-height: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.14);
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .report-station-results {
    max-height: none;
    padding: 0.18rem;
    border-radius: 10px;
  }

  .report-station-results .report-station-option {
    padding: 0.4rem 0.52rem;
    border-radius: 8px;
  }

  .report-station-results .report-station-option span {
    font-size: 0.88rem;
    line-height: 1.18;
  }

  .report-station-results .report-station-option small {
    font-size: 0.75rem;
    line-height: 1.15;
    margin-top: 0.08rem;
  }
}

.report-station-results.is-open {
  display: block;
}

.report-station-results.is-disabled {
  display: none !important;
}

.report-station-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  text-align: left;
  padding: 0.52rem 0.55rem;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.report-station-option span {
  display: block;
  color: #0f172a;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.report-station-option small {
  display: block;
  margin-top: 0.08rem;
  color: #64748b;
  overflow-wrap: anywhere;
}

.report-station-option:hover,
.report-station-option.is-selected {
  background: #eff6ff;
}

.report-station-empty {
  width: 100%;
  border: 0;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 10px;
  text-align: left;
  padding: 0.58rem 0.6rem;
  cursor: pointer;
  font-weight: 600;
}

.report-station-search-meta {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.report-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.report-mode-switch__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-mode-switch__item span {
  display: block;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.report-mode-switch__item input:checked + span {
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1d4ed8;
}

.report-new-station {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 0.6rem 0.65rem;
  margin-bottom: 0.7rem;
  background: #fff;
  min-width: 0;
}

.report-new-station .form-row {
  margin-bottom: 0.55rem;
}

.report-new-station .form-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .report-modal__dialog {
    width: calc(100% - 0.85rem - env(safe-area-inset-left) - env(safe-area-inset-right));
    margin-top: max(0.35rem, env(safe-area-inset-top));
    margin-bottom: max(0.35rem, env(safe-area-inset-bottom));
    padding: 0.6rem 0.62rem 0.4rem;
    border-radius: 12px;
  }

  .report-modal__dialog h2 {
    font-size: 1.05rem;
    padding-right: 2rem;
  }

  .report-modal__subtitle {
    margin-bottom: 0.5rem;
    font-size: 0.86rem;
    line-height: 1.38;
  }

  .report-modal__form .form-row {
    margin-bottom: 0.55rem;
  }

  .report-station-search-input {
    padding: 0.5rem 0.62rem;
    font-size: 1rem;
  }

  .report-station-search-meta {
    margin-top: 0.32rem;
    font-size: 0.78rem;
  }

  .report-mode-switch--station .report-mode-switch__item span {
    padding: 0.52rem 0.58rem;
    font-size: 0.78rem;
    line-height: 1.28;
  }

  .report-mode-switch--compact .report-mode-switch__item span {
    padding: 0.34rem 0.38rem;
    font-size: 0.72rem;
  }

  .report-new-station {
    padding: 0.5rem 0.52rem;
    margin-bottom: 0.55rem;
    border-radius: 10px;
  }

  .report-loc-field__head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.32rem;
    margin-bottom: 0.32rem;
  }

  .report-mode-switch--compact {
    flex: none;
    width: 100%;
  }

  .report-fuel-grid {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .report-modal__form .btn.btn-primary {
    width: 100%;
    justify-content: center;
  }
}

.report-fuel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.report-fuel-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.report-fuel-item__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  column-gap: 0;
  row-gap: 0.15rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.35;
}

.report-fuel-item__title {
  font-weight: 600;
  color: #1e293b;
  flex: 0 1 auto;
  min-width: 0;
}

.report-fuel-item__listed {
  margin-top: 0;
  margin-inline-start: 0.65rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.35;
  letter-spacing: 0.01em;
  flex: 0 1 auto;
  min-width: 0;
}

.report-fuel-item__listed-value {
  color: #64748b;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.report-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  padding: 0.52rem 0.62rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}

.report-inline-toggle input {
  margin: 0;
}

.report-inline-toggle span {
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
}

.report-inline-toggle input:checked + span {
  color: #1d4ed8;
}

.report-inline-toggle input:checked {
  accent-color: #2563eb;
}

@media (max-width: 640px) {
  .report-mode-switch {
    grid-template-columns: 1fr;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1fr 1.1fr;
  gap: 1.2rem 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.25rem;
}

.footer-brand {
  margin: 0.95rem 0 0;
  padding: 0.1rem 0 0;
  text-align: center;
}

.footer-brand h3 {
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.footer-brand p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.footer-block h3,
.footer-block h4 {
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.footer-block h4 {
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #334155;
}

.footer-block p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.footer-copy {
  margin-top: 0.8rem !important;
  font-size: 0.82rem;
}

.footer-rankings {
  display: grid;
  gap: 0;
  align-content: start;
  max-width: 420px;
}

.footer-ranking-group + .footer-ranking-group {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(203, 213, 225, 0.85);
}

.footer-ranking-group h4 {
  margin-bottom: 0.4rem;
}

.footer-links,
.footer-trending {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links--cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}

.footer-links--favorites {
  margin-top: 0.35rem;
}

.footer-links--city-col li {
  padding-top: 0.32rem;
  padding-bottom: 0.32rem;
}

.footer-links li,
.footer-trending li {
  display: block;
  padding: 0.42rem 0;
  border-bottom: 1px dashed #d7e0eb;
  break-inside: avoid;
}

.footer-links li:last-child,
.footer-trending li:last-child {
  border-bottom: 0;
}

.footer-links a,
.footer-trending a {
  color: #1f2937;
  font-weight: 500;
}

.footer-links a:hover,
.footer-trending a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-links a.nav-report-pill {
  display: inline-block;
  padding: 0.32rem 0.55rem;
  margin: 0.05rem 0 0;
  border-radius: 8px;
  color: #047857;
  font-weight: 700;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.footer-links a.nav-report-pill:hover {
  color: #065f46;
  text-decoration: none;
  background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: rgba(5, 150, 105, 0.55);
}

.footer-trending span {
  font-variant-numeric: tabular-nums;
  color: #1e40af;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem 1rem;
  }

  .footer-block h4 {
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-rankings {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links--cities {
    grid-template-columns: 1fr;
  }
}

/* --- Flow pages: statistics & explore --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flow-hero {
  position: relative;
  border-radius: 10px;
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.65);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.flow-hero__glow {
  display: none;
}
.stats-hero  {

  margin-bottom: 1rem;
}

.explore-hero__glow {
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.2), transparent 62%);
}

.flow-hero.explore-city-header--compact {
  padding: 1rem 1.15rem 1.05rem;
  margin-bottom: 1rem;
}

.flow-hero.explore-city-header--compact .flow-hero__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
}

.flow-hero.explore-city-header--compact .flow-hero__lead {
  margin: 0;
  max-width: 48rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #64748b;
}

.explore-favorite-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.8rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.explore-favorite-btn:hover {
  border-color: #cbd5e1;
  color: #2563eb;
  background: #f8fafc;
}

.explore-favorite-btn.is-active {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.explore-favorite-btn__icon {
  font-size: 0.92rem;
  line-height: 1;
}

.flow-hero__inner {
  position: relative;
  z-index: 1;
}

.flow-hero__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.flow-hero__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.flow-hero__lead {
  margin: 0 0 1.15rem;
  max-width: 46rem;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.stats-hero--primary .flow-hero__lead {
  margin-bottom: 1rem;
}

.stats-flow-steps {
  max-width: 28rem;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(255, 255, 255, 0.72);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.flow-step:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.flow-step--active {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
  color: #1e40af;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.flow-step--static {
  cursor: default;
}

.flow-step--static:hover {
  transform: none;
}

.flow-step__icon {
  display: flex;
  color: var(--color-accent);
  opacity: 0.92;
}

.flow-step__arrow {
  color: #94a3b8;
  font-size: 0.85rem;
  user-select: none;
}

.app-tabbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(203, 213, 225, 0.75);
  box-shadow: var(--shadow-soft);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.app-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.app-tab__icon {
  display: flex;
  opacity: 0.85;
}

.app-tab:hover {
  color: #1e3a8a;
  background: rgba(241, 245, 249, 0.9);
}

.app-tab--active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.app-tab--active .app-tab__icon {
  color: inherit;
  opacity: 1;
}

.stats-breadcrumbs {
  margin-bottom: 0.85rem;
}

.surface-panel--aside .sidebar-panel__h3-spaced {
  margin-top: 1rem;
}

.sidebar-panel__submit {
  margin-top: 1rem;
}

.form-row--tight {
  margin-bottom: 0.35rem;
}

.surface-map {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow);
}

.surface-map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
}

.surface-map__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.surface-map__hint {
  font-size: 0.82rem;
  color: #64748b;
}

.surface-map__canvas {
  height: min(380px, 52vh);
  width: 100%;
}

.surface-map--empty .surface-map__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.surface-card {
  position: relative;
  overflow: hidden;
}

.surface-card__label {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.surface-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.surface-card__muted {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.stats-chart-row .chart-wrap--trend,
.stats-chart-row .chart-wrap--bar {
  height: 220px;
}

.stats-advanced-head__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stats-advanced-head__sub {
  margin: 0 0 1rem;
  color: var(--color-muted);
  max-width: 40rem;
}

.stats-adv-kpis {
  margin-bottom: 0;
}

.chart-wrap--advanced {
  height: min(400px, 48vh);
}

/* Advanced statistics: tighter spacing on small screens */
@media (max-width: 720px) {
  .stats-page header.flow-hero.stats-hero.stats-hero--primary {
    padding: 1.05rem 1rem 0.95rem;
    margin-bottom: 0.55rem;
  }

  .stats-page header.flow-hero.stats-hero.stats-hero--primary .flow-hero__title {
    margin-bottom: 0.3rem;
    font-size: clamp(1.2rem, 4.6vw, 1.42rem);
  }

  .stats-page header.flow-hero.stats-hero.stats-hero--primary .flow-hero__lead {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .stats-page .stats-advanced-head__title {
    font-size: 1.15rem;
  }

  .stats-page .stats-advanced-head__sub {
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
  }

  .stats-page .adv-analytics__form.analytics-layout {
    gap: 0.85rem;
  }

  .stats-page .adv-analytics__aside.sidebar-panel {
    padding: 0.9rem 0.85rem 1rem;
  }

  .stats-page .adv-analytics__section-title {
    margin-bottom: 0.5rem;
    padding-bottom: 0.28rem;
  }

  .stats-page .adv-analytics__aside .adv-analytics__section-title:not(:first-child) {
    margin-top: 0.95rem;
  }

  .stats-page .adv-analytics__chart-card {
    padding: 0.75rem 0.65rem 0.9rem;
  }

  .stats-page .chart-wrap--advanced {
    height: min(320px, 42vh);
  }

  .stats-page .adv-fuel-summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .stats-page .adv-fuel-summary__grid {
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }

  .stats-page .adv-fuel-summary-card {
    padding: 0.62rem 0.72rem;
  }

  .stats-page .adv-analytics__submit-row {
    gap: 0.45rem;
    margin-top: 0.2rem;
  }
}

/* Advanced statistics: filters + chart + quick panel (mobile: filters → chart → quick) */
@media (min-width: 900px) {
  .adv-analytics__form.analytics-layout {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
    align-items: start;
  }

  .adv-analytics__form.analytics-layout .adv-analytics__aside--filters {
    grid-column: 1;
    grid-row: 1;
  }

  .adv-analytics__form.analytics-layout .adv-analytics__aside--quick {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .adv-analytics__form.analytics-layout .adv-analytics__chart-col {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: stretch;
  }
}

@media (min-width: 1200px) {
  .adv-analytics__form.analytics-layout {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 1rem;
  }
}

.adv-filters-panel__head-toggle {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0.4rem 0 0.45rem;
  border: none;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  text-align: left;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.adv-filters-panel__head-toggle:hover {
  color: #2563eb;
}

.adv-filters-panel__head-toggle:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 0.35rem;
}

.adv-filters-panel__head-toggle-text {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.adv-filters-panel__head-toggle:hover .adv-filters-panel__head-toggle-text {
  color: inherit;
}

.adv-filters-panel__toggle-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.25s ease;
}

.adv-filters-panel__head-toggle:hover .adv-filters-panel__toggle-chevron {
  color: #2563eb;
}

.adv-analytics__aside--filters.is-collapsed .adv-filters-panel__toggle-chevron {
  transform: rotate(180deg);
}

@media (max-width: 899px) {
  .adv-filters-panel__area-heading-desktop {
    display: none !important;
  }

  .adv-filters-panel__head-toggle {
    display: flex;
  }

  .adv-filters-panel__collapsible {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.28s ease;
  }

  .adv-analytics__aside--filters.is-collapsed .adv-filters-panel__collapsible {
    grid-template-rows: 0fr;
  }

  .adv-filters-panel__collapsible-inner {
    overflow: hidden;
    min-height: 0;
  }
}

@media (min-width: 900px) {
  .adv-filters-panel__head-toggle {
    display: none !important;
  }

  .adv-filters-panel__collapsible {
    grid-template-rows: 1fr !important;
  }

  .adv-filters-panel__collapsible-inner {
    overflow: visible;
  }
}

@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .adv-filters-panel__collapsible {
    transition: none;
  }

  .adv-filters-panel__toggle-chevron {
    transition: none;
  }
}

.adv-analytics__aside.sidebar-panel {
  padding: 1.25rem 1.2rem 1.35rem;
}

.adv-analytics__section-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.adv-filters-panel__collapsible-inner .adv-analytics__section-title ~ .adv-analytics__section-title,
.adv-analytics__aside--quick .adv-analytics__section-title:not(:first-child) {
  margin-top: 1.35rem;
}

.adv-shortcuts {
  margin-bottom: 0;
}

.adv-analytics__submit-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.adv-analytics__reset {
  gap: 0.5em;
  line-height: 1.25;
}

.adv-analytics__btn-icon {
  flex-shrink: 0;
  width: 1.125em;
  height: 1.125em;
  display: block;
}

.adv-field {
  margin-bottom: 0.15rem;
}

.adv-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.38rem;
}

.adv-hint {
  margin: -0.15rem 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--color-muted);
}

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

/* Tailwind-ish dropdowns */
.adv-tw-dd {
  position: relative;
  width: 100%;
}

.adv-tw-dd__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.adv-tw-dd__btn:hover {
  border-color: #94a3b8;
}

.adv-tw-dd.is-open .adv-tw-dd__btn,
.adv-field[data-adv-multiselect].is-open .adv-ms__trigger {
  border-color: var(--color-accent);
  box-shadow: var(--ring);
}

.adv-tw-dd__btn-text,
.adv-ms__summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adv-ms__summary {
  font-size: 0.88rem;
  color: #334155;
}

.adv-tw-dd__icon {
  flex-shrink: 0;
  display: flex;
  color: #64748b;
  transition: transform 0.18s ease;
}

.adv-tw-dd.is-open .adv-tw-dd__icon,
.adv-field[data-adv-multiselect].is-open .adv-ms__trigger .adv-tw-dd__icon {
  transform: rotate(180deg);
}

.adv-tw-dd__panel {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  padding: 0.45rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.06);
  max-height: min(320px, 52vh);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.adv-tw-dd__panel[hidden] {
  display: none !important;
}

.adv-tw-dd__panel--compact {
  max-height: min(240px, 40vh);
}

.adv-tw-dd__search {
  width: 100%;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.86rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.adv-tw-dd__search:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: var(--ring);
}

.adv-tw-dd__list {
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.adv-tw-dd__list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.adv-tw-dd__option {
  display: block;
  width: 100%;
  padding: 0.42rem 0.55rem;
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  color: #1e293b;
  background: transparent;
  border: 0;
  border-radius: 0.45rem;
  cursor: pointer;
}

.adv-tw-dd__option:hover {
  background: #f1f5f9;
}

.adv-tw-dd__option.is-active {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 600;
}

/* Station multi-select */
.adv-field[data-adv-multiselect] {
  position: relative;
}

.adv-ms__panel {
  position: absolute;
  z-index: 55;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.06);
  max-height: min(340px, 55vh);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.adv-ms__panel[hidden] {
  display: none !important;
}

.adv-ms__search-row {
  width: 100%;
}

.adv-ms__search-row .adv-ms__search {
  width: 100%;
  box-sizing: border-box;
}

.adv-ms__actions-row {
  display: flex;
  width: 100%;
  align-items: center;
}

.adv-ms__toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0.42rem;
  width: 100%;
}

.adv-ms__badge-btn {
  margin: 0;
  padding: 0.36rem 0.55rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  min-height: 2rem;
  width: 100%;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
  color: #1d4ed8;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.adv-ms__badge-btn:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.12));
}

.adv-ms__badge-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.adv-ms__badge-btn--muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.adv-ms__badge-btn--muted:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.adv-ms__list {
  overflow-y: auto;
  min-height: 0;
  max-height: min(220px, 38vh);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0.05rem 0.05rem;
  border-top: 1px solid #f1f5f9;
  margin-top: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.adv-ms__list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.adv-ms__row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font-size: 0.86rem;
  color: #1e293b;
  transition: background 0.12s ease;
}

.adv-ms__row:hover {
  background: #f8fafc;
}

.adv-ms__row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.adv-ms__row-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

/* Fuel type chips */
.adv-fuel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.adv-fuel-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.adv-fuel-chip__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.adv-fuel-chip__face {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.adv-fuel-chip:hover .adv-fuel-chip__face {
  background: #e2e8f0;
  color: #334155;
}

.adv-fuel-chip__input:focus-visible + .adv-fuel-chip__face {
  outline: none;
  box-shadow: var(--ring);
}

.adv-fuel-chip__input:checked + .adv-fuel-chip__face {
  color: #1e40af;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.1));
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

/* Date row + presets */
.adv-range-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.adv-range-preset {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.38rem 0.72rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.adv-range-preset:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.adv-range-preset:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--ring);
}

.adv-range-preset.is-active {
  border-color: rgba(37, 99, 235, 0.38);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.1));
  color: #1e40af;
}

.adv-field--dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.65rem;
  align-items: end;
}

.adv-field--dates .adv-label {
  grid-column: span 1;
  margin-bottom: 0.28rem;
}

.adv-date-input {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.86rem;
  color: var(--color-text);
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.adv-date-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--ring);
}

.adv-field--dates .datepicker-input {
  min-height: 2.45rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.86rem;
  border-color: #cbd5e1;
}

.adv-analytics__chart-col {
  min-width: 0;
}

.adv-analytics__chart-stack {
  position: relative;
}

.adv-analytics__chart-loader {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.adv-analytics__chart-loader--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.adv-analytics__chart-loader__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
  max-width: 14rem;
  line-height: 1.35;
}

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

.adv-analytics__spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 2.5px solid rgba(37, 99, 235, 0.22);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: adv-analytics-spin 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .adv-analytics__spinner {
    animation-duration: 1.4s;
  }
}

.adv-analytics__chart-card {
  position: relative;
  isolation: isolate;
  padding: 1.2rem 1.15rem 1.35rem;
  overflow: visible;
}

.adv-fuel-summary {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.adv-fuel-summary__title {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.adv-fuel-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 0.7rem;
}

.adv-fuel-summary-card {
  position: relative;
  padding: 0.78rem 0.88rem 0.78rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--adv-fuel-dot, #2563eb) 32%, #e2e8f0);
  background: linear-gradient(
    145deg,
    var(--adv-fuel-tint, rgba(37, 99, 235, 0.11)) 0%,
    #ffffff 52%,
    color-mix(in srgb, var(--adv-fuel-tint-strong, rgba(37, 99, 235, 0.2)) 35%, #ffffff) 100%
  );
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: visible;
}

.adv-fuel-summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--adv-fuel-dot, #2563eb), color-mix(in srgb, var(--adv-fuel-dot, #2563eb) 55%, #0f172a));
  border-radius: 0.75rem 0 0 0.75rem;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .adv-fuel-summary-card {
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--adv-fuel-dot, #2563eb);
    background: linear-gradient(180deg, var(--adv-fuel-tint, rgba(37, 99, 235, 0.08)), #ffffff);
    padding-left: 0.88rem;
  }

  .adv-fuel-summary-card::before {
    display: none;
  }
}

.adv-fuel-summary-card__name {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.adv-fuel-summary-card__swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--adv-fuel-dot, #2563eb);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.adv-fuel-summary-card__stats {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.adv-fuel-summary-card__stats > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
}

.adv-fuel-summary-card__row--low {
  padding: 0.28rem 0.4rem;
  margin: 0 -0.4rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, #16a34a 9%, transparent);
}

.adv-fuel-summary-card__row--high {
  padding: 0.28rem 0.4rem;
  margin: 0 -0.4rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, #dc2626 9%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .adv-fuel-summary-card__row--low {
    background: rgba(22, 163, 74, 0.08);
  }

  .adv-fuel-summary-card__row--high {
    background: rgba(220, 38, 38, 0.08);
  }
}

.adv-fuel-summary-card__stats dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adv-fuel-summary-card__row--low dt {
  color: #15803d;
}

.adv-fuel-summary-card__row--high dt {
  color: #b91c1c;
}

.adv-fuel-summary-card__stats dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  text-align: right;
}

.adv-fuel-summary-card__value--low {
  color: #166534 !important;
}

.adv-fuel-summary-card__value--high {
  color: #991b1b !important;
}

.adv-fuel-summary-card__value--tip {
  cursor: help;
  text-underline-offset: 0.12em;
}

.adv-fuel-summary-card__tip-target {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
  outline: none;
  z-index: 2;
}

.adv-fuel-summary-card__tip-target[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 40;
  width: max-content;
  max-width: min(260px, 72vw);
  padding: 0.42rem 0.5rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.adv-fuel-summary-card__tip-target[data-tip]:hover::after,
.adv-fuel-summary-card__tip-target[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.adv-fuel-summary-card__tip-target[data-tip]:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  border-radius: 0.2rem;
}

.adv-fuel-summary-card__value--low.adv-fuel-summary-card__value--tip {
  text-decoration: underline dotted rgba(22, 101, 52, 0.45);
}

.adv-fuel-summary-card__value--high.adv-fuel-summary-card__value--tip {
  text-decoration: underline dotted rgba(153, 27, 27, 0.45);
}

.adv-fuel-summary-card__meta {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

#adv-chart-wrap .stats-chart-empty {
  margin: 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0.75rem;
  color: #64748b;
  font-size: 0.95rem;
}

.stats-chart-empty {
  margin: 1.25rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.analytics-inline-actions--wrap {
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.filter-list--links a {
  font-weight: 500;
}

/* Explore */
.explore-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.explore-section-title--inline {
  margin-bottom: 0.55rem;
}

.explore-popular {
  margin-bottom: 1.75rem;
}

.explore-popular__strip,
.explore-popular__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 0.85rem;
}

.explore-popular--stations {
  margin-top: 0.5rem;
}

.explore-city-filters {
  margin: 1.25rem 0 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  min-width: 0;
  max-width: 100%;
}

.explore-city-filters--compact {
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.explore-city-filters__micro-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.38rem;
}

.explore-city-filters__row--range-dates {
  --explore-filter-control-h: 2.35rem;
  --explore-filter-control-r: 0.65rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.5rem 0.7rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--explore-radius, 10px);
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.explore-city-filters__fuels-inline {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.explore-city-filters__fuels-inline > .explore-city-filters__micro-label {
  margin-bottom: 0.35rem;
}

.explore-city-filters__fuel-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  align-items: center;
  overflow: visible;
  padding-bottom: 0;
}

.explore-city-filters__fuel-cb-label {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 500;
  color: #1e293b;
  margin: 0;
  min-height: var(--explore-filter-control-h);
  padding: 0.2rem 0.5rem;
  border-radius: var(--explore-filter-control-r);
  border: 1px solid #e2e8f0;
  background: #fff;
  transition:
    border-color 0.12s ease,
    background 0.12s ease;
}

.explore-city-filters__fuel-cb-label:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.explore-city-filters__fuel-cb-label:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(239, 246, 255, 0.9);
}

.explore-city-filters__range-presets {
  flex: 0 1 auto;
  min-width: 0;
}

.explore-city-filters__range-presets .explore-chip-row {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

.explore-city-filters__range-presets .explore-chip span {
  min-height: var(--explore-filter-control-h);
  border-radius: var(--explore-filter-control-r);
  padding: 0.2rem 0.56rem;
}

.explore-city-filters__range-dates-fields {
  flex: 0 0 15.25rem;
  min-width: 0;
  max-width: 15.25rem;
  margin: 0;
}

.explore-city-filters__grouping {
  flex: 0 0 8.5rem;
  min-width: 8.5rem;
}

.explore-city-filters__grouping .adv-tw-dd,
.explore-city-filters__grouping .adv-tw-dd__btn {
  min-width: 100%;
}

.explore-city-filters__grouping .adv-tw-dd__btn {
  min-height: var(--explore-filter-control-h);
  border-radius: var(--explore-filter-control-r);
}

.explore-city-filters__range-dates-fields .datepicker-input {
  min-height: var(--explore-filter-control-h);
  border-radius: var(--explore-filter-control-r);
}

.explore-city-filters__cluster {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

@media (max-width: 900px) {
  .explore-city-filters__row--city-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.55rem;
  }

  .explore-city-filters__fuel-checkboxes {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .explore-city-filters__fuel-checkboxes {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    padding-bottom: 0.1rem;
  }
}

@media (max-width: 720px) {
  .explore-city-filters {
    margin: 0.65rem 0 0.95rem;
  }

  .explore-city-filters__row--range-dates.explore-city-filters__row--city-toolbar {
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    padding: 0.45rem 0.5rem;
    align-items: stretch;
  }

  .explore-city-filters__range-dates-fields.adv-field--dates {
    gap: 0.38rem 0.45rem;
  }

  .explore-city-filters__fuels-inline {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  .explore-city-filters__grouping {
    flex: 1 1 auto;
    min-width: 0;
  }

  .explore-city-filters__fuel-checkboxes {
    gap: 0.28rem 0.38rem;
  }

  .explore-page .explore-chip-row--segmented {
    gap: 0.28rem;
  }

  .explore-page .explore-chip span {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
  }

  .explore-city-hero-lead {
    margin-bottom: 0.8rem;
    font-size: 0.86rem;
  }

  .stats-breadcrumbs {
    margin-bottom: 0.55rem;
  }

  .explore-page .explore-kpi-grid {
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .explore-page .explore-kpi-card {
    padding: 0.85rem 0.95rem 0.9rem;
  }

  .explore-page .explore-fuel-snapshots {
    margin-bottom: 1.1rem;
  }

  .explore-page .explore-fuel-snapshots__lead {
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
  }

  .explore-page .explore-fuel-snap-grid {
    gap: 0.55rem;
  }

  .explore-page .explore-fuel-snap-card {
    padding: 0.85rem 0.9rem;
  }

  .explore-page .explore-chart-block {
    margin-bottom: 1.2rem;
  }

  .explore-page .explore-matrix-section {
    margin-bottom: 1.5rem;
  }

  .explore-page .explore-section-title {
    margin-bottom: 0.55rem;
  }

  .explore-page .explore-stations__head {
    gap: 0.35rem 0.55rem;
    margin-bottom: 0.6rem;
  }

  .explore-page .explore-popular {
    margin-bottom: 1.35rem;
  }

  .explore-page .explore-popular__strip,
  .explore-page .explore-popular__grid {
    gap: 0.6rem;
  }

  .explore-page > header.flow-hero {
    padding: 1.1rem 0.95rem 0.95rem;
    margin-bottom: 0.95rem;
  }
}

.explore-city-filters__row {
  margin-bottom: 1rem;
}

.explore-city-filters__row:last-child {
  margin-bottom: 0;
}

.explore-city-filters__row--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  justify-content: space-between;
}

.explore-city-filters__control {
  min-width: 0;
}

.explore-city-filters__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 0.45rem;
}

.explore-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.explore-chip-row--segmented {
  gap: 0.35rem;
}

.explore-chip {
  cursor: pointer;
}

.explore-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.explore-chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #fff;
  color: #334155;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.explore-chip input:checked + span {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(239, 246, 255, 0.95);
  color: #1e40af;
}

.explore-fuel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.explore-fuel-chip {
  cursor: pointer;
}

.explore-fuel-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.explore-fuel-chip span {
  display: inline-flex;
  padding: 0.32rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #fff;
}

.explore-fuel-chip input:checked + span {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(224, 242, 254, 0.65);
}

.explore-select {
  min-width: 12rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.explore-fuel-snapshots {
  margin: 0 0 1.5rem;
}

.explore-fuel-snapshots__lead {
  margin: 0 0 1rem;
  max-width: 44rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

.explore-fuel-snapshots__empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(148, 163, 184, 0.85);
  background: #f8fafc;
  color: #64748b;
  font-size: 0.92rem;
}

.explore-fuel-snap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 0.85rem;
}

.explore-fuel-snap-card {
  border-radius: calc(var(--radius) + 4px);
  padding: 1rem 1.05rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-soft);
}

.explore-fuel-snap-card__fuel {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.explore-fuel-snap-card__stats {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.explore-fuel-snap-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.86rem;
}

.explore-fuel-snap-card__row dt {
  margin: 0;
  font-weight: 600;
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.explore-fuel-snap-card__row dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.explore-fuel-snap-card__value--min {
  color: #15803d !important;
}

.explore-fuel-snap-card__value--avg {
  color: #a16207 !important;
}

.explore-fuel-snap-card__value--max {
  color: #b91c1c !important;
}

.explore-fuel-snap-card__row--meta dd {
  font-weight: 800;
  color: #334155;
}

.explore-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
  margin: 0 0 1.35rem;
}

.explore-kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: 1.05rem 1.15rem 1.1rem;
  border: 1px solid rgba(203, 213, 225, 0.65);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 48%, #f1f5f9 100%);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.explore-kpi-card:hover {
  transform: translateY(-1px);
  border-color: rgba(203, 213, 225, 0.75);
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.explore-kpi-card__glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.38;
  top: -50px;
  right: -40px;
  pointer-events: none;
}

.explore-kpi-card--avg .explore-kpi-card__glow {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.9), transparent 70%);
}

.explore-kpi-card--min .explore-kpi-card__glow {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.85), transparent 70%);
}

.explore-kpi-card--stations .explore-kpi-card__glow {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.75), transparent 70%);
}

.explore-kpi-card--lowest .explore-kpi-card__glow {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.85), transparent 70%);
}

.explore-kpi-card__title {
  position: relative;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  max-width: 16rem;
  line-height: 1.35;
}

.explore-kpi-card__value {
  position: relative;
  margin: 0;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.explore-kpi-card__sub {
  position: relative;
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.4;
}

.explore-kpi-card__sub a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.explore-kpi-card__sub a:hover {
  text-decoration: underline;
}

.explore-chart-block {
  margin: 0 0 1.85rem;
  min-width: 0;
  max-width: 100%;
}

.explore-trend-card .surface-card__label {
  font-size: 0.85rem;
}

.chart-wrap-explore-trend {
  height: min(440px, 52vh);
  min-height: 280px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .chart-wrap-explore-trend {
    height: min(320px, 42vh);
    min-height: 220px;
  }
}

.explore-matrix-section {
  margin: 0 0 2.25rem;
}

.explore-matrix-section--empty .explore-matrix-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.explore-matrix-lead {
  margin: 0 0 1rem;
  max-width: 52rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

.explore-matrix-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 0.85rem;
}

.explore-matrix-toolbar__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.explore-matrix-toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.explore-matrix-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.explore-matrix-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.explore-matrix-chip span {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #f8fafc;
  color: #334155;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.explore-matrix-chip input:focus-visible + span {
  outline: 2px solid var(--color-accent, #2563eb);
  outline-offset: 2px;
}

.explore-matrix-chip input:checked + span {
  border-color: rgba(37, 99, 235, 0.45);
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e3a8a;
}

.explore-matrix-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.explore-matrix-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.explore-matrix-table th,
.explore-matrix-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.explore-matrix-table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.explore-matrix-th-sort {
  padding: 0.55rem 0.65rem;
}

.explore-matrix-sort-btn {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.12s ease;
}

.explore-matrix-sort-btn:hover {
  background: rgba(37, 99, 235, 0.04);
}

.explore-matrix-sort-ind {
  font-size: 0.72em;
  opacity: 0.75;
  font-weight: 800;
}

.explore-matrix-td-station {
  font-weight: 600;
  min-width: 9rem;
}

.explore-matrix-td-station a {
  color: var(--color-accent, #2563eb);
  text-decoration: none;
}

.explore-matrix-td-station a:hover {
  text-decoration: underline;
}

.explore-matrix-td-fuel {
  min-width: 6.5rem;
  font-variant-numeric: tabular-nums;
}

.explore-matrix-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.25;
}

.explore-matrix-price {
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.explore-matrix-price__unit {
  font-weight: 700;
  white-space: nowrap;
}

.explore-matrix-when {
  font-size: 0.78rem;
  color: #64748b;
}

.explore-matrix-td-updated {
  font-variant-numeric: tabular-nums;
  color: #334155;
  white-space: nowrap;
  min-width: 7.5rem;
}

.explore-matrix-td-fuel.explore-price--lo {
  background: rgba(34, 197, 94, 0.14);
}

.explore-matrix-td-fuel.explore-price--mid {
  background: rgba(148, 163, 184, 0.12);
}

.explore-matrix-td-fuel.explore-price--hi {
  background: rgba(248, 113, 113, 0.16);
}

/* Explore matrix: slightly tighter on small screens; table scrolls as one block in .explore-matrix-wrap */
@media (max-width: 720px) {
  .explore-matrix-table thead th {
    white-space: normal;
  }

  .explore-matrix-section {
    margin-bottom: 1.65rem;
  }

  .explore-matrix-lead {
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
  }

  .explore-matrix-toolbar {
    margin-bottom: 0.65rem;
    gap: 0.45rem 0.65rem;
  }

  .explore-matrix-wrap {
    border-radius: 12px;
    scrollbar-width: thin;
  }

  .explore-matrix-table {
    font-size: 0.8rem;
    min-width: 0;
  }

  .explore-matrix-table th,
  .explore-matrix-table td {
    padding: 0.42rem 0.48rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .explore-matrix-sort-btn {
    padding: 0;
    gap: 0.12rem;
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: normal;
    /*min-height: 2.5rem;*/
    align-items: center;
  }

  .explore-matrix-cell-stack {
    gap: 0.12rem;
  }

  .explore-matrix-price {
    font-size: 0.92em;
  }

  .explore-matrix-price__unit {
    display: none;
  }

  .explore-matrix-when {
    font-size: 0.72rem;
  }

  .explore-matrix-td-station,
  .explore-matrix-td-fuel,
  .explore-matrix-td-updated {
    min-width: 0;
  }
}

.explore-latest {
  margin-bottom: 2rem;
}

.explore-popular-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem 1rem;
  border-radius: calc(var(--radius) + 2px);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: linear-gradient(160deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  overflow: hidden;
}

.explore-popular-card:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.65);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.explore-popular-card__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.explore-popular-card__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.explore-popular-card__count {
  font-size: 0.85rem;
  color: #64748b;
}

.explore-popular-card__cta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
}

.explore-toolbar {
  margin-bottom: 1.5rem;
}

.explore-toolbar--after-hero {
  margin-top: 0.15rem;
  margin-bottom: 1.75rem;
}

.explore-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.explore-search-field {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
}

.explore-search-field__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  z-index: 2;
}

.explore-search-input {
  width: 100%;
  padding-left: 2.65rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  min-height: 48px;
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.explore-search-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55) !important;
  box-shadow: var(--ring);
}

.explore-search-results {
  left: 0;
  right: 0;
}

/* Keep Explore city view corners consistent and less rounded. */
.explore-page {
  --explore-radius: 10px;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.explore-page .flow-hero,
.explore-page .station-hero.explore-city-hero,
.explore-page .explore-city-filters,
.explore-page .explore-city-filters__row--range-dates,
.explore-page .explore-kpi-card,
.explore-page .explore-fuel-snap-card,
.explore-page .explore-matrix-wrap,
.explore-page .explore-popular-card,
.explore-page .explore-station-card,
.explore-page .explore-search-input,
.explore-page .explore-select {
  border-radius: var(--explore-radius) !important;
}

.explore-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.explore-stations__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.explore-stations__filter-note {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.explore-station-card__stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
}

.explore-station-card__stats > div {
  min-width: 0;
}

.explore-station-card__stats dt {
  margin: 0 0 0.12rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.explore-station-card__stats dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.explore-card-grid {
  align-items: stretch;
}

.explore-station-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-width: 0;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.explore-station-card:hover {
  transform: none;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: #d8e0ea;
}

.station-card__shine {
  position: absolute;
  inset: -50% -30%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.45) 48%, transparent 54%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.explore-station-card:hover .station-card__shine {
  opacity: 0;
  animation: none;
}

@keyframes card-shine {
  from {
    transform: translateX(-20%);
  }
  to {
    transform: translateX(20%);
  }
}

.station-card__link {
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

.station-card__link:hover {
  text-decoration: underline;
}

.explore-station-card--empty {
  grid-column: 1 / -1;
}

.explore-empty-text {
  margin: 0;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .explore-station-card__stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .explore-station-card__stats {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 640px) {
  .flow-step__arrow {
    display: none;
  }

  .flow-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-step {
    justify-content: flex-start;
  }

  .app-tabbar {
    width: 100%;
  }

  .app-tab {
    flex: 1;
    justify-content: center;
  }
}

/* Mobile form fields: ≥16px to reduce iOS Safari zoom-on-focus */
@media (max-width: 720px) {
  .form-row input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="range"]),
  .form-row select,
  .form-row textarea,
  .search-row input[type="search"],
  .report-station-search-input,
  input.flatpickr-input,
  .datepicker-input,
  .explore-select,
  .adv-tw-dd__search {
    font-size: 1rem;
  }

  .dash-report-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .explore-station-card:hover {
    transform: none;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #d8e0ea;
  }

  .explore-station-card:hover .station-card__shine {
    opacity: 0;
    animation: none;
  }
}

/* --- Car cost / TCO calculator --- */

.car-costs-page__hero {
  margin-bottom: 0.65rem;
}

.car-costs-page__hero-inner {
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.98));
  box-shadow: var(--shadow-soft);
}

.car-costs-page__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.car-costs-page__title {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3.1vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.2;
}

.car-costs-page__lead {
  margin: 0;
  max-width: 92ch;
  font-size: 0.98rem;
  color: var(--color-muted);
}

.car-costs-page__lead--detail {
  margin-top: 0.35rem;
  max-width: 72ch;
  font-size: 0.9rem;
  line-height: 1.45;
}

.car-costs-page__hero-details {
  display: grid;
  gap: 0.6rem 1rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .car-costs-page__hero-details {
    grid-template-columns: 1fr 1fr;
  }
}

.car-costs-page__hero-card {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

.car-costs-page__hero-card-title {
  margin: 0 0 0.2rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.car-costs-page__hero-list {
  margin: 0.3rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.2rem;
}

.car-costs-page__hero-list li {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-text);
}

@media (min-width: 900px) {
  .car-costs-page__hero-card--wide {
    grid-column: 1 / -1;
  }
}

.car-costs-page__layout {
  display: grid;
  gap: 0.95rem;
  align-items: start;
  align-content: start;
  min-width: 0;
  overflow: visible;
  max-height: none;
}

.car-costs-page__main,
.car-costs-page__aside {
  min-width: 0;
  overflow: visible;
  max-height: none;
}

.car-costs-page__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

@media (max-width: 959px) {
  .car-costs-page__main {
    order: 1;
  }

  .car-costs-page__aside {
    order: 2;
  }
}

@media (min-width: 960px) {
  /* Put inputs/vehicles first, results below at full width. */
  .car-costs-page__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem 1.15rem;
  }

  .car-costs-page__main {
    grid-column: 1;
    grid-row: 1;
    overflow: visible;
    max-height: none;
  }

  .car-costs-page__aside {
    grid-column: 1;
    grid-row: 2;
    position: static;
    top: auto;
    align-self: auto;
    overflow: visible;
    max-height: none;
  }
}

.car-costs-page__main-heading {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-text);
}

.car-costs-page__main-hint {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.car-costs-page__inputs-card.car-costs-inputs-card.surface-panel {
  padding: 0.75rem 0.9rem;
  margin: 0;
  border-color: rgba(59, 130, 246, 0.22);
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.05), transparent 48%) var(--color-surface);
}

.car-costs-inputs-card__head {
  margin-bottom: 0.5rem;
}

.car-costs-inputs-card__title.car-costs-page__main-heading {
  margin: 0 0 0.18rem;
  font-size: 1.035rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.22;
  color: var(--color-text);
}

.car-costs-inputs-card__lede.car-costs-page__main-hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.42;
  color: var(--color-muted);
}

.car-costs-inputs-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.car-costs-inputs-card__cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 1rem;
  min-width: 0;
}

.car-costs-inputs-card__years {
  flex: 1 1 15rem;
  min-width: 0;
}

.car-costs-inputs-card__label {
  display: block;
  margin: 0 0 0.26rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
}

.car-costs-inputs-card__years-line {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.6rem;
  min-width: 0;
}

.car-costs-inputs-card__years-line .car-costs-page__years-slider-row {
  flex: 1;
  min-width: 0;
}

.car-costs-inputs-card__years-out.car-costs-page__years-output {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.1rem 0.2rem;
  margin: 0;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  white-space: nowrap;
}

.car-costs-inputs-card .car-costs-page__years-output-unit {
  margin-left: 0;
  font-weight: 600;
  font-size: 0.77rem;
  color: var(--color-muted);
}

.car-costs-inputs-card .car-costs-page__years-tick {
  font-size: 0.75rem;
}

.car-costs-inputs-card .car-costs-page__years-slider {
  min-height: 1.85rem;
}

.car-costs-inputs-card__actions {
  flex: 1 1 17rem;
  min-width: min(100%, 12rem);
  max-width: 100%;
}

.car-costs-inputs-card__add-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.06);
}

.car-costs-inputs-card__actions-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  line-height: 1.25;
}

.car-costs-inputs-card__add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 0.55rem;
  align-items: end;
}

.car-costs-inputs-card__preset-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.car-costs-inputs-card__preset-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
}

.car-costs-inputs-card__preset-select.car-costs-page__preset-select {
  width: 100%;
  min-width: 0;
  font-size: 0.86rem;
  padding: 0.35rem 2.1rem 0.35rem 0.52rem;
}

.car-costs-inputs-card__add-btn.car-costs-page__add-vehicle-btn {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 2.08rem;
  padding-inline: 0.68rem;
  font-size: 0.81rem;
}

.car-costs-inputs-card__panel.car-costs-report-panel--embedded {
  margin: 0;
  padding: 0.42rem 0.48rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface-soft);
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-width: 0;
}

.car-costs-inputs-card__panel-head {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.3rem 0.65rem;
  padding-bottom: 0.32rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.car-costs-inputs-card__panel-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem 0.45rem;
  min-width: 0;
}

.car-costs-inputs-card__micro-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  line-height: 1.25;
}

@media (max-width: 420px) {
  .car-costs-inputs-card__panel-head {
    grid-template-columns: 1fr;
  }

  .car-costs-inputs-card__panel-head-actions {
    justify-content: flex-start;
  }
}

.car-costs-page__years-slider-row {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.car-costs-page__years-tick {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  min-width: 1rem;
  text-align: center;
}

.car-costs-page__years-slider {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 2.5rem;
  margin: 0;
  accent-color: var(--color-accent, #2563eb);
  cursor: pointer;
}

.car-costs-page__years-output {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.car-costs-page__years-output-unit {
  margin-left: 0.25rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.car-costs-page__add-vehicle-btn {
  flex-shrink: 0;
  align-self: flex-end;
  width: auto;
  min-height: 2rem;
  padding: 0.32rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
}

.car-costs-page__preset-select {
  width: 100%;
  min-width: 0;
  padding: 0.34rem 2.1rem 0.34rem 0.5rem;
  font-size: 0.84rem;
  border-radius: 9px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5L8 10l3.5-3.5' fill='none' stroke='%23463b5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 14px 14px;
}

.car-costs-page__preset-select:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

.car-costs-page__preset-select:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: var(--ring);
}

.car-costs-page__toolbar-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.car-costs-page__field--inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.car-costs-page__field--inline label {
  margin-bottom: 0;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: normal;
}

.car-costs-page__charts-intro {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.35;
}

@media (max-width: 720px) {
  .car-costs-page__charts-intro {
    margin-bottom: 0.95rem;
    font-size: 0.9rem;
  }
}

.car-costs-page .surface-panel {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.car-costs-page__aside .surface-panel {
  padding: 0.55rem 0.65rem;
}

.car-costs-inputs-card .car-costs-report-mode-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.car-costs-inputs-card .car-costs-report-mode-btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.25rem 0.48rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.car-costs-inputs-card .car-costs-report-mode-btn:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.car-costs-inputs-card .car-costs-report-mode-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.car-costs-inputs-card .car-costs-report-mode-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.car-costs-inputs-card .car-costs-report-panel__sections {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
  width: 100%;
}

.car-costs-inputs-card .car-costs-report-panel__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.35rem, 1fr));
  gap: 0.16rem 0.5rem;
}

.car-costs-inputs-card .car-costs-report-panel__checks > li {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.car-costs-inputs-card .car-costs-report-check {
  display: flex;
  align-items: center;
  gap: 0.36rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--color-text);
  cursor: pointer;
}

.car-costs-inputs-card .car-costs-report-check input[type='checkbox'] {
  margin: 0;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--color-accent, #2563eb);
  cursor: pointer;
}

.car-costs-inputs-card .car-costs-report-panel__reset {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 0.1em;
  cursor: pointer;
  text-align: right;
}

.car-costs-inputs-card .car-costs-report-panel__reset:hover {
  color: var(--color-text);
}

.car-costs-inputs-card .car-costs-report-panel__reset:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.car-costs-page--detailed .car-costs-summary__title {
  font-size: 1.18rem;
}

.car-costs-page--detailed .car-costs-summary__lead {
  font-size: 0.95rem;
  line-height: 1.45;
}

.car-costs-page--detailed .car-costs-summary__table {
  font-size: 0.9rem;
}

.car-costs-page--detailed .car-costs-summary__table th,
.car-costs-page--detailed .car-costs-summary__table td {
  padding: 0.5rem 0.55rem;
}

.car-costs-page--detailed .car-costs-summary__table thead th {
  font-size: 0.72rem;
}

.car-costs-page--detailed .car-costs-kpi-card {
  padding: 0.85rem 0.95rem !important;
}

.car-costs-page--detailed .car-costs-kpi-card__title {
  font-size: 0.82rem;
}

.car-costs-page--detailed .car-costs-kpi-card__value {
  font-size: 1.22rem;
}

.car-costs-page--detailed .car-costs-kpi-card__label {
  font-size: 0.78rem;
}

.car-costs-page--detailed .car-costs-kpi-card__hint {
  font-size: 0.76rem;
}

.car-costs-page--detailed .car-costs-kpi-card__breakdown-title {
  font-size: 0.84rem;
}

.car-costs-page--detailed .car-costs-kpi-card__breakdown-dd,
.car-costs-page--detailed .car-costs-kpi-card__breakdown-dt {
  font-size: 0.8rem;
}

.car-costs-page--detailed .car-costs-kpi-card__pie-wrap {
  height: 260px;
}

.car-costs-page--detailed .car-costs-chart-block__title,
.car-costs-page--detailed .car-costs-page__breakdown-title {
  font-size: 1.35rem;
}

.car-costs-page--detailed .car-costs-chart-block__canvas-wrap--compact {
  height: 280px;
}

.car-costs-page--detailed .car-costs-chart-block__canvas-wrap--mid {
  height: 340px;
}

.car-costs-page--detailed .car-costs-page__title {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
}

.car-costs-page--detailed .car-costs-page__lead {
  font-size: 1.05rem;
  line-height: 1.45;
}

.car-costs-page--detailed .car-costs-page__hero-card-title {
  font-size: 1.05rem;
}

.car-costs-page--detailed .car-costs-page__hero-list li {
  font-size: 0.95rem;
  line-height: 1.45;
}

.car-costs-page--detailed .car-costs-breakdown-item__title {
  font-size: 0.92rem;
}

@media (min-width: 960px) {
  .car-costs-page--detailed .car-costs-chart-block__title,
  .car-costs-page--detailed .car-costs-page__breakdown-title {
    font-size: 1.48rem;
  }
}

.car-costs-page__field label {
  font-weight: 600;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
  display: block;
}

.car-costs-page__vehicles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  margin: 0;
}

@media (min-width: 960px) {
  .car-costs-page__vehicles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

.car-costs-vehicle.surface-panel {
  padding: 0.55rem 0.65rem !important;
}

.car-costs-vehicle__section {
  margin-top: 0.42rem;
  padding-top: 0.42rem;
  border-top: 1px solid rgba(219, 226, 234, 0.85);
}

.car-costs-vehicle__section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.car-costs-vehicle__section-title {
  margin: 0 0 0.3rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.car-costs-vehicle__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
}

.car-costs-vehicle__head-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  min-width: 0;
  color: inherit;
}

.car-costs-vehicle__chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.car-costs-vehicle.is-collapsed .car-costs-vehicle__chevron {
  transform: rotate(-45deg);
}

.car-costs-vehicle__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text);
}

.car-costs-vehicle__remove--tiny {
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  border-radius: 999px;
}

.car-costs-vehicle__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem 0.55rem;
  align-items: start;
}

/* Desktop (~2-col page): two fields per row where marked --compact */
@media (min-width: 960px) {
  .car-costs-page__main .car-costs-vehicle__grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.car-costs-vehicle .form-row {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.car-costs-vehicle .form-row label {
  font-size: 0.72rem;
  margin-bottom: 0;
  line-height: 1.25;
}

.car-costs-vehicle .form-row input,
.car-costs-vehicle .form-row select {
  padding: 0.24rem 0.36rem;
  font-size: 0.79rem;
  border-radius: 7px;
  width: 100%;
  min-width: 0;
}

.car-costs-vehicle .form-row input[type="range"] {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.car-costs-vehicle .form-row input[type="range"]:focus,
.car-costs-vehicle .form-row input[type="range"]:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
}

.car-costs-vehicle__span-full {
  grid-column: 1 / -1;
}

.car-costs-field-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--color-muted);
  line-height: 1.3;
}

.car-costs-vehicle .form-row .car-costs-field-hint {
  margin-top: 0;
}

.car-costs-dep-mode-label {
  margin: 0 0 0.22rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
}

.car-costs-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-bottom: 0.32rem;
}

.car-costs-segment {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.42rem;
  border-radius: 7px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.car-costs-segment:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(239, 246, 255, 0.95);
  box-shadow: var(--ring);
}

.car-costs-segment input {
  margin: 0;
  accent-color: var(--color-accent);
}

.car-costs-segment__text {
  line-height: 1.2;
}

.car-costs-wrap-residual,
.car-costs-wrap-annual {
  margin-top: 0.1rem;
}

@media (max-width: 720px) {
  .car-costs-dep-mode-label {
    margin-bottom: 0.18rem;
    font-size: 0.74rem;
  }

  .car-costs-segments {
    gap: 0.24rem;
    margin-bottom: 0.25rem;
  }

  .car-costs-segment {
    padding: 0.2rem 0.38rem;
    font-size: 0.69rem;
  }
}

.car-costs-ev-block__label {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.car-costs-ev-block__hint {
  margin: 0 0 0.4rem;
}

.car-costs-slider-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
}

.car-costs-slider-row__end {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  max-width: 4.8rem;
  line-height: 1.15;
}

.car-costs-slider-row .car-costs-in-home-pct {
  width: 100%;
  height: 0.4rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.car-costs-slider-row--simple {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 0;
}

.car-costs-slider-row--simple .car-costs-decimal-slider {
  width: 100%;
  height: 0.4rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.car-costs-slider-row__num {
  min-width: 2.45rem;
  text-align: right;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.car-costs-slider-row__value {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.car-costs-vehicle__grid--ev-prices {
  margin-top: 0.15rem;
}

.car-costs-blended-line {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.car-costs-blended-label {
  margin-right: 0.3rem;
}

.car-costs-out-blended {
  color: var(--color-text);
  font-weight: 800;
}

.car-costs-page__charts-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 960px) {
  .car-costs-page__charts-pair {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

.car-costs-chart-block__title {
  margin: 0.6rem 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
}

.car-costs-page__breakdown-head {
  margin-top: 0.15rem;
  margin-bottom: 0.35rem;
}

.car-costs-page__breakdown-title {
  margin: 1rem 0 1rem;
  font-size: 1.25rem;
}

@media (min-width: 960px) {
  .car-costs-chart-block__title,
  .car-costs-page__breakdown-title {
    font-size: 1.38rem;
  }
}

.car-costs-chart-block__canvas-wrap {
  position: relative;
  height: 220px;
  width: 100%;
}

.car-costs-chart-block__canvas-wrap--compact {
  height: 220px;
}

.car-costs-chart-block__canvas-wrap--mid {
  height: 300px;
}

.car-costs-chart-block__canvas-wrap--stack {
  height: 280px;
}

.car-costs-chart-block__canvas-wrap--stack-compact {
  height: 260px;
}

.car-costs-chart-block__canvas-wrap--stack-detailed {
  height: 320px;
}

.car-costs-chart-block__canvas-wrap--pie {
  height: 235px;
}

.car-costs-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.car-costs-breakdown-item__title {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-text);
}

.car-costs-page__summary {
  margin-bottom: 0.45rem;
}

.car-costs-page__kpi-grid {
  --kpi-cols: 1;
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .car-costs-page__kpi-grid {
    grid-template-columns: repeat(var(--kpi-cols), minmax(0, 1fr));
  }
}

.car-costs-kpi-card {
  margin: 0;
  padding: 0.6rem 0.7rem !important;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--car-costs-kpi-accent, var(--color-accent));
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.car-costs-kpi-card__title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.car-costs-kpi-card__metrics {
  display: grid;
  gap: 0.55rem 0.75rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 380px) {
  .car-costs-kpi-card__metrics {
    grid-template-columns: 1fr;
  }
}

.car-costs-kpi-card__metric {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.car-costs-kpi-card__value {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.car-costs-kpi-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.car-costs-kpi-card__hint {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--color-muted);
  opacity: 0.92;
}

.car-costs-kpi-card__breakdown {
  margin: 0.5rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(219, 226, 234, 0.95);
}

.car-costs-kpi-card__pie-wrap {
  height: 200px;
  margin-bottom: 0.35rem;
}

.car-costs-remove-modal[hidden] {
  display: none;
}

.car-costs-remove-modal {
  position: fixed;
  inset: 0;
  z-index: 4100;
  display: grid;
  place-items: start center;
  padding-top: max(16vh, 4rem);
}

.car-costs-remove-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(1px);
}

.car-costs-remove-modal__panel {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100vw - 1.25rem));
  margin: 0 auto;
  padding: 0.75rem 0.85rem !important;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.car-costs-remove-modal__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.car-costs-remove-modal__text {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-muted);
}

.car-costs-remove-modal__actions {
  margin-top: 0.65rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.car-costs-remove-modal .btn-danger {
  border-color: #fca5a5;
  background: #ef4444;
  color: #fff;
}

.car-costs-remove-modal .btn-danger:hover {
  background: #dc2626;
  border-color: #ef4444;
}

.car-costs-inputs-card__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.85rem;
}

.car-costs-inputs-card__head-main {
  flex: 1 1 12rem;
  min-width: 0;
}

.car-costs-inputs-card__head-aside {
  flex: 0 0 auto;
}

.car-costs-inputs-card__share-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.36rem 0.72rem;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  max-width: none;
  box-shadow: none;
}

.car-costs-inputs-card__share-open .car-costs-inputs-card__share-icon {
  display: block;
  flex-shrink: 0;
  opacity: 0.92;
}

.car-costs-inputs-card__share-open:hover {
  transform: none;
}

.car-costs-share-inputs-note {
  margin: 0.35rem 0 0.7rem;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(59, 130, 246, 0.09);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.car-costs-share-modal[hidden] {
  display: none;
}

.car-costs-share-modal {
  position: fixed;
  inset: 0;
  z-index: 4100;
  display: grid;
  place-items: start center;
  padding-top: max(12vh, 3rem);
}

.car-costs-share-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(1px);
}

.car-costs-share-modal__panel {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100vw - 1.25rem));
  margin: 0 auto;
  padding: 0.85rem 0.95rem !important;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.car-costs-share-modal__title {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.car-costs-share-modal__text {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.car-costs-share-modal__field {
  margin-bottom: 0.55rem;
}

.car-costs-share-modal__label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
}

.car-costs-share-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-size: 0.84rem;
}

.car-costs-share-modal__input--url {
  font-size: 0.76rem;
}

.car-costs-share-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--color-text);
  cursor: pointer;
}

.car-costs-share-modal__check input {
  margin: 0.15rem 0 0;
  flex-shrink: 0;
}

.car-costs-share-modal__url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
}

.car-costs-share-modal__url-row .car-costs-share-modal__input--url {
  flex: 1 1 14rem;
  min-width: min(100%, 11rem);
}

.car-costs-share-modal__url-row .car-costs-share-modal__input--url::placeholder {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.74rem;
}

.car-costs-share-modal__url-row .btn,
.car-costs-share-modal__btn {
  flex-shrink: 0;
}

.car-costs-share-modal__panel .car-costs-share-modal__btn {
  padding: 0.38rem 0.72rem;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 600;
  border-radius: 8px;
  min-height: 0;
  box-shadow: none;
}

.car-costs-share-modal__panel .car-costs-share-modal__btn.btn-primary {
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.24);
}

.car-costs-share-modal__result {
  margin-bottom: 0.55rem;
}

.car-costs-share-modal__err {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #b91c1c;
}

.car-costs-share-modal__actions {
  margin-top: 0.55rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.car-costs-share-modal__actions--foot {
  margin-top: 0.65rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.car-costs-page__info {
  margin: 0;
  padding: 1rem 1.1rem !important;
}

.car-costs-page__info-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-text);
}

.car-costs-page__info-lead {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.car-costs-page__info-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.2rem;
}

.car-costs-page__info-list li {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--color-text);
}

@media (min-width: 1080px) {
  .car-costs-page__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
  }

  .car-costs-page__vehicles,
  .car-costs-page__disclaimer {
    grid-column: 1 / -1;
  }
}

.car-costs-kpi-card__breakdown-title {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.car-costs-kpi-card__breakdown-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.car-costs-kpi-card__breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  margin: 0;
}

.car-costs-kpi-card__breakdown-dt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  min-width: 0;
}

.car-costs-kpi-card__breakdown-dot {
  flex-shrink: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 2px;
}

.car-costs-kpi-card__breakdown-dd {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  white-space: nowrap;
}

.car-costs-summary__title {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.car-costs-summary__lead {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--color-muted);

}

.car-costs-page__summary .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.car-costs-summary__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.car-costs-summary__table th,
.car-costs-summary__table td {
  padding: 0.35rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.car-costs-summary__table thead th {
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  background: var(--color-surface-soft);
}

.car-costs-summary__table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.car-costs-page__disclaimer {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.45;
  max-width: 52ch;
}

@media (max-width: 720px) {
  

  .car-costs-page__hero-inner,
  .car-costs-page__inputs-card.surface-panel,
  .car-costs-page__info,
  .car-costs-page .surface-panel {
    padding: 0.8rem 0.85rem !important;
  }

  .car-costs-page__title {
    font-size: clamp(1.2rem, 6.2vw, 1.55rem);
    line-height: 1.2;
  }

  .car-costs-page__lead {
    font-size: 0.9rem;
  }

  .car-costs-page__main {
    gap: 0.6rem;
  }

  .car-costs-page__main-heading,
  .car-costs-page__info-title {
    font-size: 0.92rem;
    margin-bottom: 0.22rem;
  }

  .car-costs-inputs-card__title.car-costs-page__main-heading {
    font-size: 0.97rem;
    margin-bottom: 0.2rem;
  }

  .car-costs-page__main-hint,
  .car-costs-page__info-lead {
    font-size: 0.82rem;
    margin-bottom: 0.55rem;
  }

  .car-costs-inputs-card__lede.car-costs-page__main-hint {
    margin-bottom: 0;
    font-size: 0.85rem;
  }

  .car-costs-inputs-card__actions {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .car-costs-inputs-card__add-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .car-costs-inputs-card__add-btn.car-costs-page__add-vehicle-btn {
    width: 100%;
    justify-content: center;
  }

  .car-costs-slider-row__end {
    max-width: 4rem;
    font-size: 0.62rem;
  }

  .car-costs-chart-block__title,
  .car-costs-summary__title {
    font-size: 0.8rem;
  }

  .car-costs-chart-block__canvas-wrap,
  .car-costs-chart-block__canvas-wrap--compact {
    height: 190px;
  }

  .car-costs-chart-block__canvas-wrap--mid {
    height: 240px;
  }

  .car-costs-chart-block__canvas-wrap--stack {
    height: 235px;
  }

  .car-costs-chart-block__canvas-wrap--stack-compact {
    height: 215px;
  }

  .car-costs-chart-block__canvas-wrap--pie {
    height: 205px;
  }

  .car-costs-summary__table {
    font-size: 0.74rem;
  }

  .car-costs-summary__table th,
  .car-costs-summary__table td {
    padding: 0.3rem 0.32rem;
  }
}

@media (max-width: 480px) {
  .car-costs-page__kpi-grid {
    --kpi-cols: 1 !important;
  }

  .car-costs-kpi-card__metrics {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}
