:root {
  color-scheme: light;
  --bg: #f6f0e6;
  --surface: rgba(255, 251, 245, 0.58);
  --surface-strong: rgba(255, 253, 249, 0.74);
  --surface-soft: rgba(248, 243, 234, 0.68);
  --line: rgba(151, 131, 91, 0.16);
  --line-strong: rgba(151, 131, 91, 0.24);
  --text: #5d4728;
  --text-soft: #736247;
  --muted: #9a8c72;
  --sage: #9db59f;
  --sage-strong: #7b9680;
  --gold: #d1b26a;
  --gold-strong: #c69944;
  --sand: #ead9b4;
  --cream: #fffdf7;
  --shadow: 0 18px 60px rgba(126, 108, 72, 0.12);
  --shadow-soft: 0 12px 34px rgba(126, 108, 72, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --bg-accent-gold: rgba(223, 188, 109, 0.42);
  --bg-accent-sage: rgba(152, 186, 170, 0.42);
  --bg-accent-cream: rgba(255, 255, 255, 0.82);
  --bg-gradient-start: #f9f4ec;
  --bg-gradient-mid: #f4efe6;
  --bg-gradient-end: #efe6db;
  --blur-gold: rgba(227, 191, 110, 0.55);
  --blur-sage: rgba(150, 183, 170, 0.48);
  --blur-cream: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.5);
  --browser-bg: rgba(255, 255, 255, 0.7);
  --browser-address-bg: rgba(255, 255, 255, 0.78);
  --browser-address-text: rgba(98, 84, 58, 0.72);
  --badge-border: rgba(157, 181, 159, 0.24);
  --badge-bg: rgba(255, 255, 255, 0.62);
  --input-shell-bg: rgba(255, 255, 255, 0.82);
  --input-shell-border: rgba(194, 178, 148, 0.25);
  --input-shell-highlight: rgba(255, 255, 255, 0.7);
  --pill-bg: rgba(255, 255, 255, 0.65);
  --map-border: rgba(194, 178, 148, 0.22);
  --map-bg: #efe6d9;
  --map-inner-border: rgba(255, 255, 255, 0.34);
  --input-border: rgba(194, 178, 148, 0.24);
  --input-bg: rgba(255, 255, 255, 0.8);
  --action-border: rgba(141, 170, 145, 0.24);
  --action-bg: rgba(157, 181, 159, 0.18);
  --ghost-border: rgba(194, 178, 148, 0.24);
  --ghost-bg: rgba(255, 255, 255, 0.7);
  --chip-border: rgba(194, 178, 148, 0.22);
  --chip-bg: rgba(255, 255, 255, 0.66);
  --chip-active-bg: rgba(157, 181, 159, 0.18);
  --chip-active-border: rgba(123, 150, 128, 0.24);
  --card-border: rgba(255, 255, 255, 0.48);
  --card-bg: rgba(255, 252, 247, 0.76);
  --empty-bg: rgba(255, 255, 255, 0.64);
  --cluster-bg: rgba(255, 251, 244, 0.84);
  --cluster-border: rgba(194, 178, 148, 0.18);
  --popup-bg: rgba(255, 251, 245, 0.92);
  --popup-border: rgba(194, 178, 148, 0.18);
  --tag-bg: rgba(255, 255, 255, 0.65);
  --tile-filter: saturate(0.35) brightness(1.17) sepia(0.18) hue-rotate(-22deg) contrast(0.9);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1114;
  --surface: rgba(12, 18, 22, 0.68);
  --surface-strong: rgba(18, 24, 29, 0.82);
  --surface-soft: rgba(17, 24, 28, 0.76);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #ecf0e8;
  --text-soft: #c0c8bd;
  --muted: #8d988d;
  --sage: #80a99a;
  --sage-strong: #b7ddcc;
  --gold: #d9af60;
  --gold-strong: #efc97d;
  --sand: #544729;
  --cream: #141c20;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.28);
  --bg-accent-gold: rgba(177, 121, 33, 0.26);
  --bg-accent-sage: rgba(56, 128, 110, 0.24);
  --bg-accent-cream: rgba(255, 255, 255, 0.04);
  --bg-gradient-start: #071014;
  --bg-gradient-mid: #0b1418;
  --bg-gradient-end: #10181b;
  --blur-gold: rgba(177, 121, 33, 0.26);
  --blur-sage: rgba(56, 128, 110, 0.24);
  --blur-cream: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --browser-bg: rgba(9, 14, 17, 0.76);
  --browser-address-bg: rgba(255, 255, 255, 0.05);
  --browser-address-text: rgba(236, 240, 232, 0.7);
  --badge-border: rgba(128, 169, 154, 0.26);
  --badge-bg: rgba(128, 169, 154, 0.14);
  --input-shell-bg: rgba(9, 14, 17, 0.64);
  --input-shell-border: rgba(255, 255, 255, 0.08);
  --input-shell-highlight: rgba(255, 255, 255, 0.04);
  --pill-bg: rgba(255, 255, 255, 0.06);
  --map-border: rgba(255, 255, 255, 0.08);
  --map-bg: #0f1719;
  --map-inner-border: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.05);
  --action-border: rgba(128, 169, 154, 0.24);
  --action-bg: rgba(128, 169, 154, 0.14);
  --ghost-border: rgba(255, 255, 255, 0.08);
  --ghost-bg: rgba(255, 255, 255, 0.05);
  --chip-border: rgba(255, 255, 255, 0.08);
  --chip-bg: rgba(255, 255, 255, 0.05);
  --chip-active-bg: rgba(128, 169, 154, 0.16);
  --chip-active-border: rgba(128, 169, 154, 0.28);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(13, 18, 21, 0.78);
  --empty-bg: rgba(255, 255, 255, 0.05);
  --cluster-bg: rgba(13, 19, 22, 0.86);
  --cluster-border: rgba(255, 255, 255, 0.08);
  --popup-bg: rgba(16, 23, 27, 0.94);
  --popup-border: rgba(255, 255, 255, 0.08);
  --tag-bg: rgba(255, 255, 255, 0.07);
  --tile-filter: saturate(0.38) brightness(0.46) sepia(0.08) hue-rotate(152deg) contrast(1.02);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 66%, var(--bg-accent-gold), transparent 20%),
    radial-gradient(circle at 82% 24%, var(--bg-accent-sage), transparent 24%),
    radial-gradient(circle at 50% 6%, var(--bg-accent-cream), transparent 28%),
    linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 45%, var(--bg-gradient-end) 100%);
  transition: background 0.25s ease, color 0.25s ease;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.page-shell {
  position: relative;
  overflow: clip;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.55rem 1rem 2rem;
}

.page-shell__blur {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.75;
  pointer-events: none;
}

.page-shell__blur--gold {
  top: 6rem;
  left: -2rem;
  width: 18rem;
  height: 20rem;
  background: var(--blur-gold);
}

.page-shell__blur--sage {
  top: 1rem;
  right: -1rem;
  width: 24rem;
  height: 22rem;
  background: var(--blur-sage);
}

.page-shell__blur--cream {
  top: -2rem;
  left: 18%;
  width: 26rem;
  height: 16rem;
  background: var(--blur-cream);
}

.browser-bar,
.panel,
.stat-card {
  border: 1px solid var(--glass-border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}

.browser-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--browser-bg);
}

.browser-bar__lights {
  display: flex;
  gap: 0.45rem;
}

.browser-bar__light {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
}

.browser-bar__light--red {
  background: #ff6d63;
}

.browser-bar__light--amber {
  background: #f5bf4b;
}

.browser-bar__light--green {
  background: #7cc887;
}

.browser-bar__address {
  flex: 1;
  min-height: 2rem;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--browser-address-bg);
  color: var(--browser-address-text);
  font-size: 0.95rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--browser-address-bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.theme-toggle__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.4rem 0 1.2rem;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--badge-border);
  background: var(--badge-bg);
  color: var(--sage-strong);
  box-shadow: var(--shadow-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.hero__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 8vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero__lede {
  max-width: 54rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.72;
}

.stats-section,
.dashboard {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  gap: 1rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 8.4rem;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius-xl);
}

.stat-card::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.36) 0%,
    rgba(255, 255, 255, 0.04) 56%,
    transparent 100%
  );
  pointer-events: none;
}

.stat-card__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.stat-card__label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card__value {
  margin: 0.5rem 0 0;
  color: var(--gold-strong);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.stat-card__subvalue {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.stat-card__ring {
  --ring-color: var(--gold);
  --ring-value: 70;
  position: relative;
  width: 5.3rem;
  height: 5.3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 252, 246, 0.96) 0 58%, transparent 59%),
    conic-gradient(var(--ring-color) calc(var(--ring-value) * 1%), rgba(255, 255, 255, 0.55) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.stat-card__ring span {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.stat-card--sage .stat-card__value,
.stat-card--sage .stat-card__ring span {
  color: var(--sage-strong);
}

.stat-card--sage .stat-card__ring {
  --ring-color: var(--sage);
}

.stat-card--gold .stat-card__value,
.stat-card--gold .stat-card__ring span {
  color: var(--gold-strong);
}

.stat-card--gold .stat-card__ring {
  --ring-color: var(--gold);
}

.stat-card--amber .stat-card__value,
.stat-card--amber .stat-card__ring span {
  color: #ba8741;
}

.stat-card--amber .stat-card__ring {
  --ring-color: #dbb26f;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.map-card__toolbar {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: var(--input-shell-bg);
  border: 1px solid var(--input-shell-border);
  box-shadow: inset 0 1px 0 var(--input-shell-highlight);
}

.search-shell__icon {
  color: var(--muted);
  font-size: 1.1rem;
}

.search-shell__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.search-shell__input::placeholder {
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--text-soft);
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
}

.legend__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
}

.legend__dot--1 {
  background: var(--sage);
}

.legend__dot--2 {
  background: var(--gold);
}

.legend__dot--3 {
  background: #d39554;
}

.map-card__canvas {
  position: relative;
  z-index: 1;
}

.map {
  width: 100%;
  min-height: 25rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--map-border);
  background: var(--map-bg);
  box-shadow: inset 0 0 0 1px var(--map-inner-border);
}

.sidebar {
  display: grid;
  gap: 0.95rem;
  align-self: start;
}

.sidebar__header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
}

.sidebar__eyebrow {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar__title {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.tab-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tab-button {
  min-height: 2.2rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.tab-button[data-active="true"] {
  background: var(--pill-bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.sidebar__controls {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.42rem;
}

.field--compact {
  min-width: 0;
}

.field__label,
.results-count,
.dataset-caption,
.control-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.field__input,
.action-button,
.ghost-button,
.station-card__button {
  min-height: 2.85rem;
  border-radius: 999px;
}

.field__input {
  width: 100%;
  padding: 0 1rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

.field__input:focus {
  border-color: rgba(123, 150, 128, 0.34);
  box-shadow: 0 0 0 4px rgba(157, 181, 159, 0.12);
}

.field__input--select {
  appearance: none;
}

.action-button,
.ghost-button,
.station-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.action-button:hover,
.ghost-button:hover,
.station-card__button:hover,
.chip:hover {
  transform: translateY(-1px);
}

.action-button {
  border: 1px solid var(--action-border);
  background: var(--action-bg);
  color: var(--sage-strong);
  box-shadow: var(--shadow-soft);
}

.ghost-button,
.station-card__button {
  border: 1px solid var(--ghost-border);
  background: var(--ghost-bg);
  color: var(--text);
}

.ghost-button--full {
  width: 100%;
}

.fuel-filter {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.65rem;
}

.fuel-filter__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.chip-group,
.fuel-matrix,
.popup-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 2.1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text-soft);
  font-size: 0.88rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.chip[data-active="true"] {
  background: var(--chip-active-bg);
  border-color: var(--chip-active-border);
  color: var(--sage-strong);
}

.station-list {
  display: grid;
  gap: 0.8rem;
}

.station-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  overflow: hidden;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.station-card[data-selected="true"] {
  box-shadow:
    0 16px 36px rgba(126, 108, 72, 0.12),
    0 0 0 1px rgba(157, 181, 159, 0.24) inset;
}

.station-card__head,
.station-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.station-card__title {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
}

.station-card__address {
  margin: 0.3rem 0 0;
  line-height: 1.5;
}

.station-card__statusline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.station-card__signal {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.station-card__signal--temporaire {
  background: var(--gold);
}

.station-card__signal--mixte {
  background: #d7a05b;
}

.station-card__signal--definitive {
  background: #bb8e4f;
}

.station-card__meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.65rem;
}

.station-card__button {
  margin-left: auto;
  flex-shrink: 0;
}

.fuel-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.fuel-meter {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.fuel-meter[data-active="true"] {
  color: var(--text);
}

.fuel-meter__icon {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(194, 178, 148, 0.34);
}

.fuel-meter[data-type="temporaire"] .fuel-meter__icon {
  background: var(--gold);
}

.fuel-meter[data-type="mixte"] .fuel-meter__icon {
  background: #d7a05b;
}

.fuel-meter[data-type="definitive"] .fuel-meter__icon {
  background: #b78d57;
}

.station-card__footer {
  margin-top: 0.9rem;
}

.sidebar__footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
}

.dataset-caption {
  margin: 0;
  line-height: 1.5;
}

.empty-state {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--empty-bg);
  color: var(--text-soft);
  text-align: center;
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.72) 50%,
    transparent 100%
  );
  animation: shimmer 1.35s infinite;
}

.map-pin {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 12px rgba(161, 132, 77, 0.22);
}

.map-pin--severity-1 {
  background: var(--sage);
}

.map-pin--severity-2 {
  background: var(--gold);
}

.map-pin--severity-3 {
  background: #d39554;
}

.map-pin--definitive {
  transform: scale(1.08);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent;
}

.marker-cluster div {
  background: var(--cluster-bg);
  color: var(--text);
  border: 1px solid var(--cluster-border);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  font-weight: 700;
}

.popup-card {
  min-width: 16rem;
}

.popup-card__title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.popup-card__line {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.popup-card__tags {
  margin: 0.8rem 0;
}

.fuel-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.fuel-tag[data-type="definitive"] {
  background: rgba(209, 178, 106, 0.18);
  color: #9d763d;
}

.user-marker {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: var(--sage-strong);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 8px rgba(157, 181, 159, 0.16);
}

.leaflet-container {
  background: var(--map-bg);
}

.leaflet-tile {
  filter: var(--tile-filter);
}

.leaflet-control-zoom a,
.leaflet-control-attribution {
  background: var(--surface-strong) !important;
  color: var(--text-soft) !important;
  border-color: var(--glass-border) !important;
}

.leaflet-control-attribution {
  font-family: var(--font-body);
  font-size: 0.72rem;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--popup-bg);
  color: var(--text);
  border: 1px solid var(--popup-border);
  box-shadow: var(--shadow-soft);
}

:root[data-theme="dark"] .stat-card::after,
:root[data-theme="dark"] .panel::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 56%,
    transparent 100%
  );
}

:root[data-theme="dark"] .station-card[data-selected="true"] {
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(128, 169, 154, 0.22) inset;
}

:root[data-theme="dark"] .fuel-meter {
  background: rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .fuel-tag[data-type="definitive"] {
  background: rgba(217, 175, 96, 0.16);
  color: #efc97d;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (min-width: 760px) {
  .page-shell {
    padding: 0.6rem 1.5rem 2.2rem;
  }

  .map-card__toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

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

  .sidebar__controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }

  .station-list {
    grid-template-columns: repeat(auto-fit, minmax(18.5rem, 1fr));
  }

  .field--compact {
    grid-column: span 1;
  }

  .control-note {
    margin: 0;
  }
}

@media (min-width: 1120px) {
  .stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .map {
    min-height: 38rem;
  }

  .sidebar {
    gap: 1.15rem;
  }

  .sidebar__controls {
    grid-template-columns: minmax(15rem, 1.4fr) repeat(2, minmax(11rem, 0.9fr));
  }

  .station-list {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  }
}
