:root {
  --bg: #f4f6f8;
  --panel: #fff;
  --text: #17212b;
  --muted: #677383;
  --line: #dce3ea;
  --accent: #126a4b;
  --accent-2: #255f9e;
  --bad: #c73d32;
  --warn: #c58a19;
  --ok: #1f8a5b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent-2); text-decoration: none; }
input, select, textarea, button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}
button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  min-height: 40px;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
}
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; color: var(--text); letter-spacing: .08em; }
.topbar nav, .account { display: flex; gap: 14px; align-items: center; }
.page { max-width: 1440px; margin: 0 auto; padding: 28px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}
.hero h1 { margin: 0 0 10px; font-size: 38px; line-height: 1.08; }
.hero p { margin: 0; color: var(--muted); max-width: 720px; }
.search-panel, .auth-box, .admin-panel, .notice, .form-wide {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.search-panel { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 14px;
}
.section-head h2, .admin-panel h2, .reports h2 { margin: 0; }
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.region-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--ok);
  border-radius: 8px;
  padding: 16px;
}
.region-card.warning { border-left-color: var(--warn); }
.region-card.problem { border-left-color: var(--bad); background: #fff6f5; }
.card-top { display: flex; justify-content: space-between; gap: 10px; }
.card-top h3 { margin: 0; font-size: 18px; }
.card-top span, .muted { color: var(--muted); font-size: 14px; }
.sparkline { width: 100%; height: 52px; margin: 12px 0; }
.sparkline polyline { fill: none; stroke: var(--accent-2); stroke-width: 3; }
.metric { font-size: 30px; font-weight: 800; }
.map-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 160px);
}
.filters {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow: auto;
}
.filters h1 { margin-top: 0; }
.stack { display: grid; gap: 10px; }
#fuel-map {
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e7ecef;
}
.station-list { display: grid; gap: 8px; margin-top: 16px; }
.station-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
}
.station-row span { color: var(--muted); font-size: 14px; }
.station-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.station-head h1 { margin: 0 0 8px; }
.status-grid, .fuel-form-grid, .admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.fuel-card, .report-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.risk-bar {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b9c68, #dfc24b, #c73d32);
  overflow: hidden;
}
.risk-bar span {
  display: block;
  height: 100%;
  background: rgba(199, 61, 50, .42);
}
.reports { margin-top: 24px; display: grid; gap: 10px; }
.tabs { display: flex; gap: 10px; }
.form-wide form { display: grid; gap: 14px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 8px; }
.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.payment-grid label, .admin-panel label { display: flex; align-items: center; gap: 8px; }
.payment-grid input[type=checkbox], .admin-panel input[type=checkbox] { width: auto; }
.admin-grid { align-items: start; }
.admin-panel.wide { grid-column: 1 / -1; }
.station-admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.station-admin-form textarea { grid-column: 1 / -1; min-height: 90px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.inline { display: flex; gap: 8px; }
.inline select { width: auto; }
.flash { margin-bottom: 14px; padding: 12px 14px; border-radius: 6px; background: #e8f6ef; border: 1px solid #b7e0ca; }
.flash.bad, .error-box { background: #fff0ef; border-color: #efc0bc; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .topbar, .hero, .map-layout, .station-head { grid-template-columns: 1fr; }
  .topbar { position: static; }
  .search-panel { grid-template-columns: 1fr; }
  #fuel-map { min-height: 460px; }
}

.region-alert {
  display: inline-flex;
  width: fit-content;
  margin: 10px 0;
  padding: 5px 8px;
  border-radius: 6px;
  background: #c73d32;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 22px 0 8px;
}
.fuel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fuel-card-head h3 { margin: 0; }
.fuel-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  flex: 0 0 auto;
}
.fuel-dot.green { background: var(--ok); }
.fuel-dot.yellow { background: var(--warn); }
.fuel-dot.red { background: var(--bad); }
.fuel-dot.unknown { background: var(--muted); }
.fuel-card-green { border-left: 5px solid var(--ok); }
.fuel-card-yellow { border-left: 5px solid var(--warn); }
.fuel-card-red { border-left: 5px solid var(--bad); }
.fuel-card-unknown { border-left: 5px solid var(--muted); }
.fuel-status-main {
  margin: 12px 0;
  font-weight: 800;
  font-size: 18px;
}
.status-breakdown, .pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.status-breakdown span, .pill-list span {
  display: inline-flex;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.summary-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.summary-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.danger-button {
  background: var(--bad);
}
.payment-list {
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.payment-list label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment-list input[type=checkbox] { width: auto; }
.pill-list.vertical {
  display: grid;
  grid-template-columns: 1fr;
}
.pill-ok {
  border-color: #b7e0ca !important;
  color: var(--ok) !important;
  background: #f0fbf5 !important;
}
.pill-bad {
  border-color: #efc0bc !important;
  color: var(--bad) !important;
  background: #fff6f5 !important;
}
.card-top h3 a {
  color: var(--text);
}
.card-top h3 a:hover {
  color: var(--accent-2);
}
.brand {
  display: inline-grid;
  gap: 0;
  line-height: 1;
  text-transform: none;
}
.brand span:first-child { font-weight: 900; letter-spacing: .08em; }
.brand span:last-child { font-size: 13px; font-weight: 700; letter-spacing: 0; }
.hero h2 {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  max-width: 840px;
}
.is-hidden { display: none !important; }
.load-more-stations { margin-top: 12px; width: 100%; }
.official-alert {
  border-color: #efc0bc;
  background: #fff0ef;
  border-left: 5px solid var(--bad);
}
.official-alert h2 { color: var(--bad); }
.limit-panel .limit-value {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
}
.limit-panel .limit-source {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
.fuel-status-main span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
  white-space: normal;
}
.brand span { display: block; }
.brand span:first-child { font-weight: 900; letter-spacing: .08em; }
.brand span:last-child { font-size: 13px; font-weight: 700; letter-spacing: 0; }

/* 2026 responsive refresh */
:root {
  --bg: #f6f7f3;
  --panel: #ffffff;
  --text: #12181f;
  --muted: #6a7584;
  --line: #dfe6dc;
  --accent: #0f766e;
  --accent-2: #2457a6;
  --soft: #eef5f1;
}
body {
  background: radial-gradient(circle at 12% 0%, rgba(15, 118, 110, .08), transparent 28%), var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
input, select, textarea {
  min-height: 44px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(15, 118, 110, .65);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}
button, .button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}
button:hover, .button:hover { filter: brightness(.96); }
.topbar {
  min-height: 74px;
  padding: 12px clamp(16px, 3vw, 34px);
  background: rgba(255,255,255,.94);
}
.topbar nav { flex-wrap: wrap; }
.page { width: min(1500px, 100%); padding: clamp(16px, 2.4vw, 32px); }
.search-panel, .auth-box, .admin-panel, .notice, .form-wide, .filters, .summary-panel, .fuel-card, .report-row, .region-card, .station-head {
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(18, 24, 31, .05);
}
.stack, .form-comfort { gap: 14px; }
.stack label, .form-comfort label { display: grid; gap: 7px; font-weight: 700; }
.form-wide form { gap: 18px; }
fieldset { padding: 14px; border-radius: 10px; }
fieldset legend { padding: 0 8px; font-weight: 800; }
.map-page { display: grid; gap: 18px; }
.filters-horizontal { overflow: visible; }
.filters-horizontal h1 { margin: 0 0 14px; }
.filter-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}
.filter-row input[name="q"] { grid-column: span 2; }
.filter-row button { width: 100%; }
#fuel-map.map-compact { min-height: 0; height: 420px; }
.station-card-section { display: grid; gap: 14px; }
.station-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.station-card-mini {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px 14px 14px 18px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--ok);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(18, 24, 31, .05);
}
.station-card-mini strong { padding-right: 46px; }
.station-card-mini span:not(.station-card-count) { color: var(--muted); font-size: 14px; }
.station-card-mini .station-queue-alert {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid #efc0bc;
  border-radius: 999px;
  background: #fff6f5;
  color: var(--bad) !important;
  font-weight: 900;
}
.station-tone-warn { border-left-color: var(--warn); background: #fffaf0; }
.station-tone-bad { border-left-color: var(--bad); background: #fff5f4; }
.station-card-count {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font-weight: 900;
}
.fuel-cluster-marker span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 3px solid #fff;
  background: #0f766e;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .32);
}
.station-head-modern {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr) auto;
  align-items: center;
}
.station-title-block { min-width: 0; }
.station-payment-head { display: grid; gap: 8px; }
.mini-title { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.payment-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.payment-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.chip-ok { color: var(--ok); background: #eefaf3; border: 1px solid #bee7cf; }
.chip-warn { color: var(--warn); background: #fff7e6; border: 1px solid #f0d29a; }
.station-head .button { white-space: nowrap; }
.admin-panel { margin-bottom: 18px; }
.table-wrap table { min-width: 900px; }
.load-more-stations { justify-self: center; width: min(320px, 100%); }
.inline button { min-height: 38px; padding: 8px 12px; }
@media (max-width: 1100px) {
  .filter-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-row input[name="q"] { grid-column: span 3; }
  .station-head-modern { grid-template-columns: 1fr; align-items: start; }
  .station-head-modern .button { width: 100%; }
}
@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .topbar nav, .account { width: 100%; justify-content: flex-start; }
  .hero h1 { font-size: 30px; }
  .filter-row { grid-template-columns: 1fr; }
  .filter-row input[name="q"] { grid-column: auto; }
  #fuel-map.map-compact { min-height: 0; height: 320px; }
  .station-card-grid, .region-grid, .status-grid, .fuel-form-grid, .admin-grid, .summary-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer { flex-direction: column; padding: 20px 16px; }
  .tabs { flex-wrap: wrap; }
}

/* Blue visual theme */
:root {
  --bg: #f3f8ff;
  --panel: #ffffff;
  --text: #102033;
  --muted: #64758d;
  --line: #d7e6f7;
  --accent: #0b79d0;
  --accent-2: #1499d6;
  --soft: #eaf6ff;
  --ok: #1687d9;
  --warn: #e0a21b;
  --bad: #d33f49;
}
body {
  background: radial-gradient(circle at 12% 0%, rgba(20, 153, 214, .16), transparent 30%), linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
}
a { color: #0b79d0; }
button, .button {
  background: linear-gradient(135deg, #0b79d0, #16a6df);
  box-shadow: 0 10px 22px rgba(11, 121, 208, .22);
}
.topbar {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: #d7e6f7;
}
.brand span:first-child { color: #0b79d0; }
.sparkline polyline { stroke: #1499d6; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(20, 153, 214, .72);
  box-shadow: 0 0 0 4px rgba(20, 153, 214, .16);
}
.region-card, .fuel-card-green, .station-card-mini { border-left-color: #1687d9; }
.fuel-dot.green { background: #1687d9; }
.pill-ok, .chip-ok {
  border-color: #b8ddf7 !important;
  color: #0b79d0 !important;
  background: #eef8ff !important;
}
.fuel-cluster-marker span {
  background: linear-gradient(135deg, #0b79d0, #16a6df);
  box-shadow: 0 10px 24px rgba(11, 121, 208, .32);
}
.official-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  align-items: start;
}
.official-edit-form textarea {
  grid-column: 1 / -1;
  min-height: 88px;
}
.official-edit-form button { width: fit-content; }
.station-location-panel {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 12px 36px rgba(11, 121, 208, .06);
}
.station-location-panel h2 { margin: 0; font-size: 18px; }
#station-location-map {
  height: 240px;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e6f3ff;
}
@media (max-width: 760px) {
  .official-edit-form { grid-template-columns: 1fr; }
  .official-edit-form button { width: 100%; }
  #station-location-map { height: 220px; }
}

/* Requested payment and official notice tweaks */
.station-payment-head .chip-ok,
.payment-chips .chip-ok {
  color: #128044 !important;
  background: #ecfbf2 !important;
  border-color: #aee2c1 !important;
}
.official-alert {
  margin-top: 18px;
}
.source-link {
  display: inline-flex;
  margin-left: 8px;
  font-weight: 800;
  color: #0b79d0;
}
.region-official-alert {
  margin-bottom: 18px;
}

/* Reviews, region crests and tag cloud */
.region-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.region-crest {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #eaf6ff);
  color: var(--accent);
  font-weight: 900;
  overflow: hidden;
}
.region-crest img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.region-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.region-metrics .metric { font-size: 26px; }
.fuel-status-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.fuel-price-main {
  margin: 10px 0 2px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--text);
}
.report-head, .report-votes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.report-head { justify-content: space-between; }
.report-votes { margin-top: 10px; }
.vote-form { display: inline-flex; }
.vote-button, .vote-readonly {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
  font-weight: 900;
}
.vote-button.is-active {
  border-color: #9bd1f4;
  background: #eaf6ff;
  color: var(--accent);
}
.map-page-region {
  grid-template-columns: minmax(260px, 330px) minmax(260px, 1fr);
  align-items: start;
}
.map-page-region .filters { grid-column: 1; }
.map-page-region #fuel-map,
.map-page-region .station-card-section { grid-column: 2; }
.filters-vertical .filter-row {
  grid-template-columns: 1fr;
}
.filters-vertical .filter-row input[name="q"] { grid-column: auto; }
.station-card-mini strong a { color: var(--text); }
.station-region-link {
  width: fit-content;
  font-weight: 800;
}
@media (max-width: 1180px) {
  .fuel-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-page-region { grid-template-columns: 1fr; }
  .map-page-region .filters,
  .map-page-region #fuel-map,
  .map-page-region .station-card-section { grid-column: auto; }
}
@media (max-width: 720px) {
  .fuel-status-grid, .region-metrics { grid-template-columns: 1fr; }
}

/* Region page placement fix */
.map-page-region .filters { grid-row: 1; }
.map-page-region #fuel-map { grid-row: 1; }
.map-page-region .station-card-section { grid-row: 2 / span 2; }

/* Mobile header menu */
.topbar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  background: #eef8ff;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.remember-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.remember-row input { width: auto; min-height: 0; }
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
  }
  .menu-toggle { display: inline-flex; }
  .topbar-menu {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .topbar.is-menu-open .topbar-menu { display: grid; gap: 12px; }
  .topbar-menu nav,
  .topbar-menu .account {
    width: 100%;
    display: grid;
    gap: 8px;
  }
  .topbar-menu a,
  .topbar-menu .account span {
    display: flex;
    align-items: center;
    min-height: 40px;
  }
}

/* Region page desktop placement */
@media (min-width: 1181px) {
  .map-page-region { grid-auto-rows: auto; }
  .map-page-region .filters { grid-row: 1 / span 2; }
  .map-page-region #fuel-map { grid-row: 1; }
  .map-page-region .station-card-section {
    grid-row: 2;
    align-self: start;
    margin-top: 0;
  }
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.user-location-control,
.user-location-control button {
  width: auto;
  min-width: 118px;
  height: 34px;
}
.user-location-control button {
  display: inline-flex;
  place-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: var(--accent);
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.user-location-control button:hover,
.user-location-control button:focus-visible {
  background: #eef8ff;
  color: var(--accent-2);
}
.user-location-control button.is-loading {
  color: var(--warn);
  cursor: wait;
}
.user-location-control button.is-error {
  color: var(--bad);
}
.user-location-marker {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(11, 121, 208, .18);
}
.user-location-marker span {
  display: block;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #0b79d0;
  box-shadow: 0 0 0 2px rgba(11, 121, 208, .35), 0 8px 18px rgba(11, 121, 208, .32);
}
.user-location-accuracy {
  stroke: #0b79d0;
  stroke-width: 1;
  fill: #0b79d0;
  fill-opacity: .12;
}
.login-submit {
  margin-top: 8px;
}
.oauth-login {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.yandex-login {
  width: 100%;
  gap: 8px;
  background: #fc3f1d;
  color: #fff;
  box-shadow: 0 10px 22px rgba(252, 63, 29, .22);
}
.yandex-login:hover,
.yandex-login:focus-visible {
  background: #e73315;
  color: #fff;
}
.top-region-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.top-region-list h2 {
  margin: 0 0 2px;
  font-size: 16px;
}
.top-region-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.top-region-item span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff5f4;
  color: var(--bad);
  font-size: 12px;
  font-weight: 900;
}
.top-region-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.top-region-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}
/* Final mobile/auth refinements */
.auth-box {
  width: min(420px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.auth-box h1,
.auth-box p { margin: 0; }
.auth-box form {
  display: grid;
  gap: 12px;
}
.auth-box label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.auth-box .remember-row {
  display: flex !important;
  gap: 8px;
}
.auth-box .login-submit,
.auth-box .yandex-login {
  width: 100%;
}
.yandex-login {
  position: relative;
  background: #fc3f1d !important;
}
.yandex-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #fc3f1d;
  font-weight: 900;
  line-height: 1;
}
@media (max-width: 720px) {
  .page { padding: 16px 10px; }
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 56px;
    padding: 8px 10px;
    align-items: center;
  }
  .brand { white-space: nowrap; font-size: 14px; }
  .menu-toggle { display: none !important; }
  .topbar-menu {
    display: flex !important;
    grid-column: auto;
    width: auto;
    min-width: 0;
    padding-top: 0;
    border-top: 0;
    justify-content: flex-end;
    gap: 8px;
  }
  .topbar.is-menu-open .topbar-menu { display: flex !important; gap: 8px; }
  .topbar-menu nav,
  .topbar-menu .account {
    width: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
  }
  .topbar-menu a,
  .topbar-menu .account span {
    min-height: 34px;
    padding: 4px 0;
    font-size: 13px;
    white-space: nowrap;
  }
  .topbar-menu .account span { display: none; }
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .region-card {
    min-width: 0;
    padding: 10px;
    border-left-width: 3px;
  }
  .region-title {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
  }
  .region-crest {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
  .region-crest img { padding: 3px; }
  .card-top { gap: 6px; }
  .card-top h3 {
    font-size: 13px;
    line-height: 1.2;
  }
  .card-top h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-top span { display: none; }
  .sparkline { height: 34px; margin: 8px 0; }
  .region-metrics {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }
  .region-metrics .metric,
  .metric { font-size: 20px; }
  .region-card .muted { font-size: 11px; }
  .user-location-control,
  .user-location-control button {
    width: auto;
    min-width: 124px;
    height: 40px;
  }
  .user-location-control button {
    display: inline-flex !important;
    padding: 0 12px;
    font-size: 13px;
    color: #0b79d0 !important;
  }
  .auth-box {
    width: 100%;
    padding: 16px;
  }
}
@media (max-width: 380px) {
  .topbar-menu nav { gap: 6px; }
  .topbar-menu a { font-size: 12px; }
  .region-card { padding: 8px; }
  .region-title { grid-template-columns: 24px minmax(0, 1fr); }
  .region-crest { width: 24px; height: 24px; }
}
/* Mobile fixes for region cards, maps and station fuel cards */
@media (max-width: 720px) {
  .map-page-region .filters,
  .map-page-region #fuel-map,
  .map-page-region .station-card-section {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .map-page-region #fuel-map,
  #fuel-map.map-compact {
    display: block !important;
    width: 100%;
    height: 360px !important;
    min-height: 360px !important;
  }
  .fuel-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .fuel-status-grid .fuel-card {
    min-width: 0;
    padding: 10px;
  }
  .fuel-status-grid .fuel-card h3 {
    font-size: 15px;
  }
  .fuel-status-grid .fuel-status-main,
  .fuel-status-grid .muted {
    font-size: 12px;
  }
  .fuel-price-main {
    font-size: 18px;
  }
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .region-title {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    align-items: start;
  }
  .region-crest {
    display: inline-grid !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
  }
  .region-title h3,
  .card-top h3 {
    min-width: 0;
    font-size: 13px;
    line-height: 1.2;
  }
  .region-title h3 a,
  .card-top h3 a {
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
  }
  .card-top {
    align-items: flex-start;
  }
}
@media (max-width: 380px) {
  .region-title {
    grid-template-columns: 26px minmax(0, 1fr) !important;
  }
  .region-crest {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
  }
  .fuel-status-grid .fuel-card {
    padding: 8px;
  }
}
.official-region-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid #efc0bc;
  border-radius: 999px;
  background: #fff6f5;
  color: var(--bad) !important;
  font-size: 12px !important;
  font-weight: 900;
  white-space: nowrap;
}
.official-region-badge i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bad);
  box-shadow: 0 0 0 3px rgba(211, 63, 73, .14);
}
@media (max-width: 720px) {
  .official-region-badge {
    display: inline-flex !important;
    white-space: normal;
    line-height: 1.15;
  }
  .official-region-badge i {
    flex: 0 0 auto;
  }
}
.region-page-head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.region-page-crest {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  max-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
  overflow: hidden;
}
.region-page-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.region-page-title {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.region-page-title h1 {
  margin: 0;
  line-height: 1.08;
}
.region-page-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.region-page-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--muted);
  font-weight: 700;
}
.region-page-summary strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
@media (max-width: 720px) {
  .region-page-head {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .region-page-crest {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }
  .region-page-crest img { padding: 5px; }
  .region-page-title h1 { font-size: 24px; }
  .region-page-summary { gap: 8px; }
  .region-page-summary span {
    width: 100%;
    justify-content: space-between;
  }
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.filters-head h2 { margin: 0; }
.filter-toggle {
  display: none;
  width: auto;
  min-height: 38px;
  padding: 8px 10px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
  font-weight: 900;
}
.filter-toggle i {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.filters-collapsible:not(.is-collapsed) .filter-toggle i {
  transform: rotate(225deg) translateY(-2px);
}
@media (max-width: 720px) {
  .filters-collapsible .filter-toggle { display: inline-flex; }
  .filters-collapsible.is-collapsed .filter-row { display: none; }
  .filters-collapsible .filters-head { margin-bottom: 0; }
  .filters-collapsible:not(.is-collapsed) .filters-head { margin-bottom: 12px; }
}
.station-map-marker {
  display: grid;
  place-items: center;
}
.station-map-marker span {
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 18px rgba(16, 32, 51, .28);
}
.station-map-marker-green span { background: #1f8a5b; }
.station-map-marker-red span { background: #d33f49; }
.station-map-marker-unknown span { background: #0b79d0; }
.station-popup-fuels {
  display: grid;
  gap: 3px;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  font-size: 12px;
  line-height: 1.25;
}
.station-popup-fuels span { display: block; }
.station-popup-fuels b { color: var(--text); }