:root {
  color-scheme: light;
  --page: #eaf1f7;
  --surface: #f7f9fb;
  --card: rgba(255, 255, 255, 0.94);
  --text: #172027;
  --muted: #697681;
  --line: rgba(31, 55, 74, 0.1);
  --green: #3dac55;
  --green-soft: #e8f6ea;
  --red: #e64c4c;
  --red-soft: #fff0ef;
  --amber: #e9a433;
  --amber-soft: #fff6e7;
  --blue: #2e80e7;
  --blue-soft: #eaf3ff;
  --violet: #7451db;
  --graphite: #59616e;
  --shadow-lg: 0 24px 70px rgba(29, 55, 75, 0.13);
  --shadow-card: 0 10px 28px rgba(37, 57, 72, 0.08), 0 2px 8px rgba(37, 57, 72, 0.04);
  --tg-safe-top: env(safe-area-inset-top, 0px);
  --tg-safe-right: env(safe-area-inset-right, 0px);
  --tg-safe-bottom: env(safe-area-inset-bottom, 0px);
  --tg-safe-left: env(safe-area-inset-left, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { background: var(--page); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(163, 211, 243, 0.38), transparent 30rem),
    var(--page);
}

button, input { font: inherit; }

button { color: inherit; }

button:focus-visible {
  outline: 3px solid rgba(46, 128, 231, 0.42);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: start center;
  padding: 24px;
}

.app {
  position: relative;
  width: min(100%, 430px);
  min-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero {
  position: relative;
  min-height: 210px;
  padding: var(--tg-safe-top) 0 0;
  overflow: hidden;
  color: #12222c;
  background-color: #dcecf8;
  background-image: url("../assets/main-hero-640.webp");
  background-image: image-set(
    url("../assets/main-hero-640.webp") 1x,
    url("../assets/main-hero-1280.webp") 2x
  );
  background-position: center;
  background-size: cover;
}

.hero-explainer {
  position: absolute;
  right: 12px;
  bottom: 30px;
  z-index: 2;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 4px;
  cursor: pointer;
  color: #183850;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(244, 250, 255, 0.82);
  box-shadow: 0 7px 20px rgba(22, 65, 96, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px) saturate(1.18);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.015em;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hero-explainer img {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(32, 111, 171, 0.24));
}

.hero-explainer:hover { background: rgba(255, 255, 255, 0.94); }
.hero-explainer:active { transform: scale(0.96); }

body.is-modal-open { overflow: hidden; }

.how-dialog {
  position: fixed;
  inset: 0;
  width: min(430px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(15, 39, 57, 0.32);
}

.how-dialog::backdrop {
  background: rgba(23, 41, 55, 0.48);
  backdrop-filter: blur(8px);
}

.how-dialog[open] { animation: how-dialog-in 190ms ease-out both; }

.how-dialog__panel {
  display: grid;
  max-height: calc(100dvh - 24px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0, rgba(101, 193, 246, 0.26), transparent 17rem),
    linear-gradient(180deg, #f8fcff, var(--surface));
}

.how-dialog__header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 11px;
  border-bottom: 1px solid rgba(31, 75, 104, 0.09);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.how-dialog__header > img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(46, 128, 231, 0.2));
}

.admin-dialog__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #e8f5ff, #d6edff);
  box-shadow: inset 0 0 0 1px rgba(46, 128, 231, 0.1), 0 7px 15px rgba(46, 128, 231, 0.12);
  font-size: 26px;
}

.how-dialog__header div { min-width: 0; }
.how-dialog__header small { display: block; margin-bottom: 2px; color: #638097; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.how-dialog__header h2 { margin: 0; color: #172c3c; font-size: 22px; letter-spacing: -0.045em; line-height: 1.05; }

.how-dialog__close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 0 3px;
  cursor: pointer;
  color: #607483;
  border: 1px solid rgba(37, 67, 87, 0.09);
  border-radius: 50%;
  background: rgba(233, 241, 247, 0.88);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.how-dialog__body {
  display: grid;
  gap: 9px;
  padding: 12px 13px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.how-dialog__intro {
  margin: 0 1px 2px;
  padding: 12px 13px;
  color: #435a6c;
  border: 1px solid rgba(46, 128, 231, 0.14);
  border-radius: 15px;
  background: rgba(232, 245, 255, 0.76);
  font-size: 11px;
  line-height: 1.5;
}

.how-dialog__intro strong { color: #1d6fbd; }

.how-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(37, 65, 85, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 18px rgba(37, 57, 72, 0.055);
}

.how-step__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(46, 128, 231, 0.08);
}

.how-step h3 { margin: 1px 0 5px; color: #203848; font-size: 12px; letter-spacing: -0.02em; line-height: 1.2; }
.how-step p { margin: 0; color: #61717d; font-size: 9.5px; line-height: 1.48; }
.how-step--weight .how-step__icon { background: #f1edff; }
.how-step--safety .how-step__icon { background: #edf7ff; }
.how-step--updates .how-step__icon { background: #fff5e6; }
.how-step--community .how-step__icon { background: #eaf8ec; }

.how-dialog__footer {
  padding: 10px 13px calc(10px + var(--tg-safe-bottom));
  border-top: 1px solid rgba(31, 75, 104, 0.09);
  background: rgba(248, 251, 253, 0.94);
  backdrop-filter: blur(18px);
}

.how-dialog__footer button {
  width: 100%;
  min-height: 45px;
  cursor: pointer;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
  background: linear-gradient(135deg, #3b96f2, #2174d7);
  box-shadow: 0 8px 20px rgba(46, 128, 231, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 800;
}

.admin-dialog__panel {
  background:
    radial-gradient(circle at 88% 0, rgba(79, 184, 240, 0.24), transparent 18rem),
    linear-gradient(180deg, #f8fcff, #f1f6f9);
}

.admin-dashboard { align-content: start; gap: 12px; }

.admin-dashboard__loading {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  gap: 13px;
  color: #617685;
  font-size: 11px;
}

.admin-dashboard__loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #d5e7f4;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: admin-spin 700ms linear infinite;
}

.admin-online-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: #19412b;
  border: 1px solid rgba(51, 175, 89, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 251, 238, 0.98), rgba(246, 255, 249, 0.98));
  box-shadow: 0 8px 22px rgba(44, 143, 75, 0.08);
}

.admin-online-card__pulse {
  position: relative;
  width: 14px;
  height: 14px;
  border: 3px solid #dff6e6;
  border-radius: 50%;
  background: #35ad59;
  box-shadow: 0 0 0 4px rgba(53, 173, 89, 0.1);
}

.admin-online-card__pulse::after {
  position: absolute;
  inset: -7px;
  content: "";
  border: 1px solid rgba(53, 173, 89, 0.34);
  border-radius: 50%;
  animation: admin-pulse 1.8s ease-out infinite;
}

.admin-online-card div { display: grid; gap: 2px; }
.admin-online-card small { color: #538064; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.07em; }
.admin-online-card strong { font-size: 15px; }
.admin-online-card > b { font-size: 35px; font-variant-numeric: tabular-nums; letter-spacing: -0.06em; }

.admin-section {
  padding: 12px;
  border: 1px solid rgba(37, 65, 85, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 7px 18px rgba(37, 57, 72, 0.05);
}

.admin-section__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.admin-section__heading h3 { margin: 0; color: #243a49; font-size: 13px; }
.admin-section__heading small { color: #7a8993; font-size: 8px; }
.admin-metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.admin-metric {
  display: grid;
  min-height: 76px;
  align-content: space-between;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(46, 128, 231, 0.09);
  border-radius: 13px;
  background: linear-gradient(145deg, #f8fbfd, #f1f7fb);
}

.admin-metric span { color: #637582; font-size: 8px; line-height: 1.25; }
.admin-metric strong { color: #20394a; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -0.045em; }
.admin-metric--accent { background: linear-gradient(145deg, #edf6ff, #f8fbff); }
.admin-metric--warm { border-color: rgba(225, 155, 44, 0.14); background: linear-gradient(145deg, #fff8e9, #fffdf8); }

.admin-dashboard__note {
  margin: 0;
  padding: 10px 12px;
  color: #657783;
  border: 1px solid rgba(42, 92, 128, 0.08);
  border-radius: 13px;
  background: rgba(235, 243, 248, 0.78);
  font-size: 8.5px;
  line-height: 1.45;
}

.admin-dashboard__error {
  margin: 0;
  padding: 18px;
  color: #a33d3d;
  border: 1px solid rgba(210, 62, 62, 0.16);
  border-radius: 15px;
  background: #fff3f3;
  font-size: 11px;
  line-height: 1.45;
}

@keyframes admin-spin { to { transform: rotate(360deg); } }
@keyframes admin-pulse { from { opacity: 0.8; transform: scale(0.45); } to { opacity: 0; transform: scale(1.25); } }

@keyframes how-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.hero h1 {
  max-width: 300px;
  margin: 0;
  font-size: clamp(29px, 8vw, 38px);
  font-weight: 820;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.freshness {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #45535c;
  font-size: 12px;
  font-weight: 600;
}

.freshness__dot {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 172, 85, 0.13);
}

.content {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  padding: 0 16px calc(18px + var(--tg-safe-bottom));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(247, 249, 251, 0.95), var(--surface) 75px);
}

.fuel-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.fuel-tab {
  display: flex;
  min-width: 0;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
  cursor: pointer;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: var(--graphite);
  font-size: 18px;
  font-weight: 820;
  position: relative;
  z-index: 1;
  border: 3px solid transparent;
  transition: transform 180ms ease, color 160ms ease, background 160ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fuel-tab svg { width: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.fuel-tab:active { transform: scale(0.96); }
.fuel-tab--green { background: linear-gradient(135deg, #49bb5a, #34a149); }
.fuel-tab--blue { background: linear-gradient(135deg, #398cf0, #2672dc); }
.fuel-tab--violet { background: linear-gradient(135deg, #835ee5, #6843cc); }
.fuel-tab--graphite { background: linear-gradient(135deg, #69717e, #4e5663); }
.fuel-tab.is-selected {
  z-index: 2;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(30, 48, 61, 0.2), 0 12px 24px rgba(34, 67, 91, 0.28);
  transform: scale(1.12);
}

.fuel-tabs--glass {
  gap: 7px;
  padding: 7px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(219, 231, 241, 0.66)),
    rgba(238, 245, 250, 0.72);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.95),
    inset 0 -4px 9px rgba(102, 125, 142, 0.13),
    0 13px 28px rgba(37, 67, 87, 0.14),
    0 0 0 1px rgba(125, 150, 168, 0.2);
}

.fuel-tabs--glass .fuel-tab--main {
  position: relative;
  isolation: isolate;
  height: 86px;
  flex-direction: column;
  gap: 7px;
  padding: 9px 3px 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 19px;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.62),
    inset 0 -7px 12px rgba(16, 28, 38, 0.12),
    0 7px 14px var(--fuel-glow, rgba(40, 65, 83, 0.2));
}

.fuel-tabs--glass .fuel-tab--main::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 58%;
  border-radius: 16px 16px 55% 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 62%, transparent);
  content: "";
  pointer-events: none;
}

.fuel-tabs--glass .fuel-tab--main::after {
  position: absolute;
  z-index: -1;
  right: 8px;
  bottom: 6px;
  left: 8px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(8px);
  content: "";
  pointer-events: none;
}

.fuel-tabs--glass .fuel-tab--green {
  --fuel-glow: rgba(36, 185, 84, 0.38);
  background: radial-gradient(circle at 22% 0%, #57e58a, transparent 47%), linear-gradient(145deg, #1bc764, #04aa47 62%, #139642);
}

.fuel-tabs--glass .fuel-tab--blue {
  --fuel-glow: rgba(32, 131, 239, 0.38);
  background: radial-gradient(circle at 22% 0%, #72bdff, transparent 47%), linear-gradient(145deg, #2699fa, #0879e8 62%, #166ac5);
}

.fuel-tabs--glass .fuel-tab--violet {
  --fuel-glow: rgba(118, 67, 222, 0.38);
  background: radial-gradient(circle at 22% 0%, #bd91ff, transparent 47%), linear-gradient(145deg, #965de8, #7335d3 62%, #6330b9);
}

.fuel-tabs--glass .fuel-tab--graphite {
  --fuel-glow: rgba(57, 65, 81, 0.35);
  background: radial-gradient(circle at 22% 0%, #8992a4, transparent 47%), linear-gradient(145deg, #596273, #3e4657 62%, #343b49);
}

.fuel-tabs--glass .fuel-tab--main.is-selected {
  border: 3px solid #737b84;
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    inset 0 3px 3px rgba(255, 255, 255, 0.55),
    inset 0 -7px 12px rgba(16, 28, 38, 0.14),
    0 11px 22px var(--fuel-glow),
    0 0 0 2px rgba(88, 97, 106, 0.26);
  transform: scale(1.12);
}

.fuel-tab__value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  color: #fff;
  text-shadow: 0 2px 5px rgba(17, 32, 43, 0.22);
}

.fuel-tab__value svg { width: 21px; height: 24px; stroke-width: 1.9; }
.fuel-tab__value b { font-size: 20px; line-height: 1; letter-spacing: -0.035em; }
.fuel-tabs--glass .fuel-tab--main small { color: rgba(255, 255, 255, 0.63); font-size: 8px; font-weight: 650; letter-spacing: 0.015em; }
.fuel-tabs--glass .fuel-tab--main.is-selected small { color: rgba(255, 255, 255, 0.84); }

.situation-card {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  width: 100%;
  margin-top: 13px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  border: 1px solid rgba(159, 191, 217, 0.34);
  border-radius: 25px;
  background:
    radial-gradient(circle at 83% 4%, rgba(198, 226, 247, 0.7), transparent 33%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(246, 250, 253, 0.98));
  box-shadow: 0 14px 34px rgba(43, 78, 105, 0.11), inset 0 0 0 1px rgba(255, 255, 255, 0.88);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.situation-card::before {
  position: absolute;
  z-index: -1;
  top: 72px;
  right: -14%;
  left: -14%;
  height: 108px;
  content: "";
  background:
    radial-gradient(ellipse at 18% 100%, rgba(194, 230, 211, 0.62) 0 34%, transparent 35%),
    radial-gradient(ellipse at 74% 100%, rgba(203, 233, 219, 0.72) 0 43%, transparent 44%),
    linear-gradient(180deg, rgba(224, 239, 250, 0.34), rgba(242, 249, 252, 0));
  opacity: 0.82;
}

.situation-card:active { transform: scale(0.99); box-shadow: 0 8px 20px rgba(37, 57, 72, 0.1); }

.situation-card__header {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 1px 0 12px;
}

.situation-card__title { display: flex; min-width: 0; align-items: center; gap: 7px; }
.situation-card__title-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(63, 93, 116, 0.13), inset 0 0 0 1px rgba(102, 161, 203, 0.08);
}
.situation-card__title-icon svg { width: 32px; height: 32px; }
.situation-card__title-icon path { stroke: #3e8fd4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.situation-card__title-icon circle { fill: #32b565; }
.situation-card__header strong { font-size: 17px; line-height: 1.06; letter-spacing: -0.035em; white-space: nowrap; }

.fuel-badge {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: #257a39;
  border: 1px solid rgba(61, 172, 85, 0.12);
  border-radius: 999px;
  background: rgba(225, 247, 234, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.fuel-badge::before {
  width: 18px;
  height: 22px;
  flex: 0 0 auto;
  content: "";
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M10 2C7.6 5.7 3 10.4 3 15a7 7 0 0 0 14 0c0-4.6-4.6-9.3-7-13Z'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M7 16.2a3 3 0 0 0 3 2.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M10 2C7.6 5.7 3 10.4 3 15a7 7 0 0 0 14 0c0-4.6-4.6-9.3-7-13Z'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M7 16.2a3 3 0 0 0 3 2.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fuel-badge[data-tone="blue"] { color: #2466bc; border-color: rgba(36, 102, 188, 0.12); background: rgba(227, 240, 255, 0.9); }
.fuel-badge[data-tone="violet"] { color: #6540c9; border-color: rgba(101, 64, 201, 0.12); background: rgba(240, 235, 255, 0.9); }
.fuel-badge[data-tone="graphite"] { color: #4b5562; border-color: rgba(75, 85, 98, 0.12); background: rgba(237, 240, 243, 0.92); }

.primary-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 5px;
  padding: 9px;
  border: 1px solid rgba(172, 191, 206, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 22px rgba(53, 82, 104, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.stat {
  position: relative;
  display: grid;
  grid-template-columns: 43px auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  min-width: 0;
  min-height: 118px;
  padding: 15px 5px 13px;
  overflow: hidden;
  border: 1px solid rgba(72, 176, 98, 0.18);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(238, 250, 242, 0.98), rgba(248, 252, 249, 0.86));
}

.stat::after {
  position: absolute;
  right: -18%;
  bottom: -27px;
  left: -18%;
  height: 54px;
  content: "";
  border-radius: 50% 50% 0 0;
  background: rgba(80, 190, 111, 0.08);
  transform: rotate(5deg);
}

.stat__icon {
  position: relative;
  z-index: 1;
  display: grid;
  grid-row: 1;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--green);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 13px rgba(50, 90, 70, 0.09);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.stat strong { position: relative; z-index: 1; font-size: 37px; line-height: 1; letter-spacing: -0.055em; }
.stat small { position: relative; z-index: 1; grid-column: 1 / 3; align-self: start; justify-self: center; color: #65727b; font-size: 11px; line-height: 1.15; white-space: nowrap; }
.stat--available strong { color: #2b963f; }
.stat--unavailable { border-color: rgba(217, 68, 68, 0.16); background: linear-gradient(145deg, rgba(255, 239, 239, 0.98), rgba(255, 249, 249, 0.88)); }
.stat--unavailable::after { background: rgba(228, 72, 72, 0.07); transform: rotate(-5deg); }
.stat--unavailable .stat__icon { color: var(--red); }
.stat--unavailable strong { color: #d94444; }
.stat--unknown { border-color: rgba(115, 130, 143, 0.15); background: linear-gradient(145deg, rgba(246, 247, 250, 0.98), rgba(252, 252, 253, 0.9)); }
.stat--unknown::after { background: rgba(121, 137, 150, 0.06); }
.stat--unknown .stat__icon { color: #778591; }
.stat--unknown strong { color: #6f7b86; }

.transition-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 13px;
  padding: 0 11px;
  border: 1px solid rgba(172, 191, 206, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 18px rgba(53, 82, 104, 0.05);
}

.transition {
  display: flex;
  min-height: 61px;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 8px 2px;
  color: #865f1d;
  font-size: 12px;
  line-height: 1.2;
}

.transition + .transition { border-top: 1px solid rgba(111, 131, 146, 0.13); }
.transition__icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  color: #d38a18;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff6df, #fff0ce);
  box-shadow: inset 0 0 0 1px rgba(226, 154, 40, 0.08);
}
.transition__icon svg { width: 29px; height: 29px; }
.transition__icon circle { stroke: currentColor; stroke-width: 1.8; stroke-dasharray: 2.8 2.8; }
.transition__icon path { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.transition__text { min-width: 0; flex: 1 1 auto; color: #26313a; }
.transition strong { margin-right: 3px; color: #b8730c; font-size: 18px; }
.transition__chevron { flex: 0 0 auto; padding: 0 4px; color: #73818b; font-size: 29px; font-weight: 350; line-height: 1; }
.transition.is-zero .transition__icon { color: #8f9ba4; background: #f2f5f7; }
.transition.is-zero .transition__text,
.transition.is-zero strong { color: #77828b; }

.card-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 7px 8px 7px 17px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #2d86e8, #3477df 62%, #438ceb);
  box-shadow: 0 10px 22px rgba(45, 126, 223, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.23);
  font-size: 15px;
  font-weight: 780;
}
.card-link span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #2d7fe1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 11px rgba(19, 74, 137, 0.2);
  font-size: 24px;
  line-height: 1;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.action-card[hidden] { display: none; }

.action-card {
  position: relative;
  display: flex;
  min-height: 82px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 11px 16px 10px 10px;
  cursor: pointer;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease;
}
.action-card:active { transform: scale(0.98); }
.action-card--share { background: linear-gradient(145deg, #eef8ff, #dfeeff); }
.action-card--install { background: linear-gradient(145deg, #f1fff6, #dcf4e5); }

.action-card__emoji { width: 20px; flex: 0 0 20px; text-align: center; font-size: 18px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(40, 55, 65, 0.1)); }
.action-card__icon { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; }
.action-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.action-card__icon--install { color: #258c4c; filter: drop-shadow(0 4px 7px rgba(38, 139, 76, 0.12)); }
.action-card__text { display: grid; min-width: 0; gap: 2px; }
.action-card__text strong { font-size: 13px; letter-spacing: -0.035em; line-height: 1.12; }
.action-card__text small { max-width: 100%; color: #66727a; font-size: 8px; line-height: 1.3; }
.action-card__arrow { position: absolute; top: 6px; right: 6px; color: rgba(40, 55, 65, 0.62); font-size: 14px; line-height: 1; }

.trust-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 4px 3px 2px;
  color: #78848c;
}
.trust-note > span { display: grid; width: 28px; height: 28px; place-items: center; color: #678094; border-radius: 9px; background: #edf1f4; }
.trust-note svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.trust-note p { margin: 0; font-size: 9px; line-height: 1.4; }
.trust-note strong { color: #56636d; }
.trust-note time { font-size: 10px; font-variant-numeric: tabular-nums; }

.contact-card {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 13px;
  cursor: pointer;
  text-align: left;
  color: #273b49;
  border: 1px solid rgba(49, 124, 203, 0.13);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(244, 250, 255, 0.98), rgba(228, 240, 253, 0.96));
  box-shadow: 0 8px 22px rgba(39, 93, 139, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.contact-card:active { transform: scale(0.985); box-shadow: 0 4px 12px rgba(39, 93, 139, 0.08); }
.contact-card__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.82); font-size: 22px; }
.contact-card__text { display: grid; gap: 2px; }
.contact-card__text strong { font-size: 12px; }
.contact-card__text small { color: #6b7b87; font-size: 9px; }
.contact-card__arrow { color: #60798c; font-size: 23px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 3px 2px;
  color: #8a959d;
  border-top: 1px solid rgba(52, 76, 92, 0.08);
  font-size: 8px;
}

.site-footer[hidden] { display: none; }

.site-footer button {
  padding: 6px 9px;
  cursor: pointer;
  color: #60727f;
  border: 1px solid rgba(50, 83, 105, 0.12);
  border-radius: 9px;
  background: rgba(241, 246, 249, 0.9);
  font-size: 8px;
  font-weight: 750;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(18px, calc(var(--tg-safe-bottom) + 10px));
  width: min(calc(100% - 40px), 386px);
  padding: 12px 15px;
  pointer-events: none;
  opacity: 0;
  color: #fff;
  border-radius: 13px;
  background: rgba(25, 35, 43, 0.94);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 12px;
  line-height: 1.4;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.stations-view {
  min-height: 100dvh;
  background: var(--surface);
}

.stations-hero {
  position: relative;
  min-height: 168px;
  padding: calc(20px + var(--tg-safe-top)) 22px 26px;
  overflow: hidden;
  background-image: url("../assets/stations-hero-640.webp");
  background-image: image-set(
    url("../assets/stations-hero-640.webp") 1x,
    url("../assets/stations-hero-1280.webp") 2x
  );
  background-position: center 22%;
  background-size: cover;
}

.stations-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(249, 252, 253, 0.98) 0%, rgba(249, 252, 253, 0.84) 44%, rgba(249, 252, 253, 0.12) 82%);
}

.back-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 0 3px;
  cursor: pointer;
  color: #21303a;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 7px 18px rgba(42, 67, 84, 0.1);
  backdrop-filter: blur(12px);
  font-size: 29px;
  line-height: 1;
}

.stations-hero__content {
  position: relative;
  z-index: 1;
  margin-top: 13px;
}

.stations-hero h2 {
  max-width: 310px;
  margin: 0;
  font-size: 30px;
  font-weight: 830;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.stations-freshness {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: #4d5961;
  font-size: 11px;
  font-weight: 650;
}

.stations-content {
  position: relative;
  z-index: 2;
  margin-top: -12px;
  padding: 0 12px calc(18px + var(--tg-safe-bottom));
}

.status-legend {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
}

.status-legend__main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 13px 6px 11px;
}

.legend-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  padding: 0 8px;
}

.legend-item + .legend-item { border-left: 1px solid var(--line); }

.legend-dot {
  width: 8px;
  height: 8px;
  margin-top: 3px;
  border-radius: 50%;
  background: #87939e;
}

.legend-item--available .legend-dot { background: var(--green); }
.legend-item--unavailable .legend-dot { background: var(--red); }
.legend-item--unknown .legend-dot { background: #7c8792; }
.legend-item span:last-child { display: grid; gap: 3px; min-width: 0; }
.legend-item strong { font-size: 10px; line-height: 1.15; }
.legend-item small { color: var(--muted); font-size: 7px; line-height: 1.25; }

.status-legend__pending {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 7px;
  border-top: 1px solid var(--line);
  background: #fffaf0;
}

.status-legend__pending span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #886321;
  font-size: 8px;
  line-height: 1.2;
  text-align: center;
}

.status-legend__pending i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
}

.fuel-tabs--stations { margin-top: 12px; }

.stations-heading {
  margin: 17px 5px 10px;
}

.stations-heading h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.stations-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.stations-list {
  display: grid;
  gap: 7px;
}

.station-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 128px 12px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 82px;
  padding: 10px 11px;
  cursor: pointer;
  text-align: left;
  border: 1px solid rgba(35, 59, 76, 0.08);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 5px 16px rgba(37, 57, 72, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.station-card:active { transform: scale(0.985); box-shadow: 0 3px 10px rgba(37, 57, 72, 0.05); }

.station-brand-logo {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 5px;
  border: 1px solid rgba(35, 59, 76, 0.1);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(37, 57, 72, 0.08);
}

.station-brand-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.station-brand-logo small {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #88939d;
  font-size: 7px;
  font-weight: 850;
}
.station-card--available .station-brand-logo small { background: var(--green); }
.station-card--appearing .station-brand-logo small,
.station-card--checking .station-brand-logo small { background: var(--amber); }
.station-card--unavailable .station-brand-logo small { background: var(--red); }

.station-info,
.station-state {
  display: grid;
  min-width: 0;
}

.station-info { gap: 2px; }
.station-info strong { overflow: hidden; font-size: 13px; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }
.station-nickname {
  overflow: hidden;
  color: #243746;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.station-info small {
  display: -webkit-box;
  overflow: hidden;
  color: #5f6b74;
  font-size: 8px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.station-state { align-content: center; justify-items: start; gap: 3px; }

.station-status {
  max-width: 100%;
  padding: 4px 6px;
  overflow: hidden;
  color: #277e3a;
  border-radius: 7px;
  background: var(--green-soft);
  font-size: 8px;
  font-weight: 780;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-card--appearing .station-status,
.station-card--checking .station-status { color: #8a611a; background: var(--amber-soft); }
.station-card--unavailable .station-status { color: #c83f3f; background: var(--red-soft); }
.station-card--unknown .station-status { color: #66717a; background: #edf0f2; }

.station-queue {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #54616a;
  font-size: 8px;
  line-height: 1.2;
}

.station-queue i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8b96a0;
}

.station-queue i[data-queue="0–1 ч"] { background: #40b45a; }
.station-queue i[data-queue="1–2 ч"] { background: #98c937; }
.station-queue i[data-queue="3–4 ч"] { background: #eea12c; }
.station-queue i[data-queue="5–6 ч"] { background: #e95046; }
.station-queue i[data-queue="6+ ч"] { background: #b51423; }
.station-queue--muted { color: #75818a; }

.station-tanker {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #9b6410;
  font-size: 8px;
  font-weight: 800;
}
.station-updated { color: #97a1a8; font-size: 7px; }
.station-chevron { color: #747f87; font-size: 23px; line-height: 1; }

.queue-scale {
  margin-top: 12px;
  padding: 13px 10px 12px;
  border: 1px solid rgba(35, 59, 76, 0.08);
  border-radius: 17px;
  background: var(--card);
  box-shadow: 0 5px 16px rgba(37, 57, 72, 0.05);
}

.queue-scale h3 { margin: 0 0 10px; font-size: 11px; }
.queue-scale__items { display: grid; grid-template-columns: repeat(5, 1fr); }
.queue-scale__items > div { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 0 3px; text-align: center; }
.queue-scale__items > div + div { border-left: 1px solid var(--line); }
.queue-scale__items b { font-size: 8px; }
.queue-scale__items small { color: var(--muted); font-size: 6px; line-height: 1.15; }
.queue-color { width: 9px; height: 9px; border-radius: 50%; background: #40b45a; }
.queue-color--two { background: #98c937; }
.queue-color--three { background: #eea12c; }
.queue-color--four { background: #e95046; }
.queue-color--five { background: #b51423; }

.back-home {
  width: 100%;
  height: 46px;
  margin-top: 11px;
  cursor: pointer;
  color: #303b43;
  border: 1px solid rgba(35, 59, 76, 0.11);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(37, 57, 72, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.trust-note--stations { margin: 15px 4px 0; }

.station-detail-view {
  min-height: 100dvh;
  background: var(--surface);
}

.detail-hero {
  --detail-accent: #f2c037;
  position: relative;
  display: flex;
  min-height: 190px;
  overflow: hidden;
  padding: calc(16px + var(--tg-safe-top)) 18px 21px;
  isolation: isolate;
  background-color: #23343f;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(248, 251, 253, 0.08) 45%, rgba(243, 248, 252, 0.82) 100%),
    linear-gradient(90deg, rgba(247, 251, 254, 0.62) 0%, rgba(247, 251, 254, 0.24) 48%, rgba(247, 251, 254, 0) 76%),
    var(--detail-hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.16);
}

.detail-hero--rosneft {
  --detail-accent: #f3c322;
  --detail-hero-image: image-set(
    url("../assets/stations/heroes/rosneft-600.webp") 1x,
    url("../assets/stations/heroes/rosneft.webp") 2x
  );
}

.detail-hero--gazpromneft {
  --detail-accent: #5bbcf1;
  --detail-hero-image: image-set(
    url("../assets/stations/heroes/gazpromneft-600.webp") 1x,
    url("../assets/stations/heroes/gazpromneft.webp") 2x
  );
  background-position: 53% center;
}

.detail-hero--lukoil {
  --detail-accent: #ffcc2f;
  --detail-hero-image: image-set(
    url("../assets/stations/heroes/lukoil-600.webp") 1x,
    url("../assets/stations/heroes/lukoil.webp") 2x
  );
}

.detail-hero--ufimneft {
  --detail-accent: #65d88a;
  --detail-hero-image: image-set(
    url("../assets/stations/heroes/ufimneft-600.webp") 1x,
    url("../assets/stations/heroes/ufimneft.webp") 2x
  );
}

.detail-back-icon {
  position: absolute;
  top: calc(12px + var(--tg-safe-top));
  left: 12px;
  z-index: 2;
  width: 43px;
  height: 43px;
  padding-bottom: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(5, 15, 23, 0.22);
}

.detail-hero__copy {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-end;
  padding-top: 52px;
}

.detail-hero h2 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #142637;
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.detail-brand {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.detail-brand img {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  padding: 9px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(42, 78, 102, 0.18);
}

.detail-brand__identity {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.detail-brand h2 { min-width: 0; font-size: 27px; }

.detail-brand__identity > strong {
  overflow: hidden;
  color: #2a4052;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.detail-brand__identity > small {
  display: flex;
  overflow: hidden;
  align-items: center;
  gap: 5px;
  color: #506474;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.detail-brand__identity > small span { flex: 0 0 auto; color: var(--detail-accent); font-size: 10px; text-shadow: none; }

.tanker-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  color: #925f0d;
  border: 1px solid rgba(231, 158, 38, 0.45);
  border-radius: 999px;
  background: #fff8e8;
  font-size: 9px;
  font-weight: 800;
}

.tanker-badge--hero {
  margin-top: 12px;
  color: #81520b;
  border-color: rgba(215, 148, 40, 0.52);
  background: rgba(255, 248, 231, 0.9);
  box-shadow: 0 5px 15px rgba(42, 78, 102, 0.12);
  backdrop-filter: blur(9px);
  text-shadow: none;
}

.detail-hero__copy > p {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  max-width: 100%;
  margin: 8px 0 0;
  color: #5f6b74;
  font-size: 9px;
  line-height: 1.35;
}

.detail-hero__copy > p span { color: #697883; font-size: 16px; line-height: 0.8; }

.detail-fuel {
  display: grid;
  width: 100%;
  grid-template-columns: 29px 1fr;
  margin-top: 0;
  padding: 8px 10px;
  border: 1px solid rgba(35, 59, 76, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(37, 57, 72, 0.09);
}

.detail-fuel > span { display: grid; grid-row: 1 / 3; place-items: center; color: var(--green); }
.detail-fuel svg { width: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.detail-fuel small { color: #6f7b84; font-size: 7px; }
.detail-fuel strong { font-size: 14px; line-height: 1.05; }

.detail-content {
  display: grid;
  gap: 10px;
  padding: 11px 12px calc(18px + var(--tg-safe-bottom));
}

.detail-metrics,
.recent-reports,
.report-panel,
.queue-panel {
  overflow: hidden;
  border: 1px solid rgba(35, 59, 76, 0.08);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 5px 16px rgba(37, 57, 72, 0.05);
}

.detail-metrics { padding: 6px 12px; }

.detail-metrics > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 43px;
}

.detail-metrics > div + div { border-top: 1px solid var(--line); }
.detail-metrics p { margin: 0; color: #51606a; font-size: 10px; }
.detail-metrics strong { max-width: 145px; font-size: 11px; text-align: right; }
.metric-icon { font-size: 20px; font-weight: 800; text-align: center; }
.metric-icon--blue { color: var(--blue); }
.metric-icon--status { color: var(--green); }
.metric-icon--amber { color: var(--amber); }
.metric-status--available { color: #2d963f; }
.metric-status--appearing,
.metric-status--checking { color: #a16b16; }
.metric-status--unavailable { color: #d74343; }
.metric-status--unknown { color: #68747d; }

.recent-reports,
.report-panel,
.queue-panel { padding: 12px; }
.recent-reports h3,
.report-panel h3,
.queue-panel h3 { margin: 0 0 9px; font-size: 14px; letter-spacing: -0.02em; }
.report-panel__heading {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  color: #215c31;
  border: 2px solid rgba(48, 166, 78, 0.42);
  border-radius: 14px;
  background: linear-gradient(135deg, #effaf2, #e1f5e7);
  box-shadow: 0 7px 17px rgba(38, 131, 67, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.report-panel__heading > span:first-child { min-width: 0; font-size: 15px; font-weight: 850; line-height: 1.08; }
.report-panel__heading--blue { color: #205b9f; border-color: rgba(46, 128, 231, 0.42); background: linear-gradient(135deg, #f0f7ff, #dfeeff); box-shadow: 0 7px 17px rgba(39, 108, 194, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72); }
.report-panel__heading--violet { color: #5839ae; border-color: rgba(116, 81, 219, 0.4); background: linear-gradient(135deg, #f7f4ff, #ebe5ff); box-shadow: 0 7px 17px rgba(94, 64, 181, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.72); }
.report-panel__heading--graphite { color: #404a55; border-color: rgba(89, 97, 110, 0.36); background: linear-gradient(135deg, #f6f8f9, #e7ebee); box-shadow: 0 7px 17px rgba(65, 76, 86, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72); }
.report-fuel-badge {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  cursor: default;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, #45b95b, #279740);
  box-shadow: 0 7px 15px rgba(36, 137, 61, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}
.report-fuel-badge::before { display: grid; width: 17px; height: 17px; place-items: center; content: "✓"; border-radius: 50%; background: rgba(255, 255, 255, 0.2); font-size: 11px; line-height: 1; }
.report-fuel-badge svg { width: 19px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.report-fuel-badge--blue { color: #fff; border-color: rgba(255, 255, 255, 0.34); background: linear-gradient(135deg, #4296f2, #246fcf); box-shadow: 0 7px 15px rgba(36, 102, 188, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.report-fuel-badge--violet { color: #fff; border-color: rgba(255, 255, 255, 0.34); background: linear-gradient(135deg, #8565e7, #6441c8); box-shadow: 0 7px 15px rgba(101, 64, 201, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.report-fuel-badge--graphite { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: linear-gradient(135deg, #707985, #4c5561); box-shadow: 0 7px 15px rgba(64, 73, 83, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.report-other-fuels {
  margin-top: 12px;
  margin-bottom: 12px;
  padding-top: 11px;
  padding-bottom: 11px;
  border-top: 1px solid rgba(35, 59, 76, 0.09);
  border-bottom: 1px solid rgba(35, 59, 76, 0.09);
}
.report-other-fuels > p { margin: 0 0 8px; color: #63717b; font-size: 11px; font-weight: 680; }
.report-other-fuels__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.report-fuel-option {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 5px;
  cursor: pointer;
  color: #287f3d;
  border: 1px solid rgba(61, 172, 85, 0.2);
  border-radius: 13px;
  background: #f0faf2;
  box-shadow: 0 4px 10px rgba(37, 57, 72, 0.05);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.report-fuel-option:active { transform: scale(0.96); box-shadow: none; }
.report-fuel-option svg { width: 17px; height: 19px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.report-fuel-option--blue { color: #2466bc; border-color: rgba(36, 102, 188, 0.18); background: #eef6ff; }
.report-fuel-option--violet { color: #6540c9; border-color: rgba(101, 64, 201, 0.18); background: #f4f0ff; }
.report-fuel-option--graphite { color: #4b5562; border-color: rgba(75, 85, 98, 0.17); background: #f2f4f6; }
.recent-reports__list { display: grid; gap: 7px; }

.recent-report {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(61, 172, 85, 0.14);
  border-radius: 11px;
  background: linear-gradient(90deg, #f1faf2, #f9fcf9);
}

.recent-report--no { border-color: rgba(230, 76, 76, 0.13); background: linear-gradient(90deg, #fff1f1, #fffafa); }
.recent-report__icon { display: grid; width: 31px; height: 31px; place-items: center; color: #fff; border-radius: 50%; background: var(--green); font-size: 20px; font-weight: 850; }
.recent-report--no .recent-report__icon { background: var(--red); }
.recent-report > span:nth-child(2) { display: grid; gap: 2px; }
.recent-report strong { font-size: 11px; }
.recent-report small { color: #6b7780; font-size: 8px; }
.recent-report__queue { color: #59666f; font-size: 9px; text-align: right; }
.recent-report--yes .recent-report__queue b { color: #318e42; }

.report-status-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.report-status-button { min-height: 48px; cursor: pointer; color: #fff; border: 3px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 780; box-shadow: 0 6px 14px rgba(37, 57, 72, 0.1); transition: transform 160ms ease, border-color 160ms ease; }
.report-status-button--yes { background: linear-gradient(135deg, #4cba54, #2d9b3e); }
.report-status-button--no { background: linear-gradient(135deg, #f25252, #da3939); }
.report-status-button.is-selected { border-color: #6d7680; box-shadow: 0 0 0 2px #fff, 0 8px 17px rgba(37, 57, 72, 0.18); transform: scale(1.025); }
.report-status-button:disabled { cursor: default; opacity: 0.62; }

.report-tanker-button {
  width: 100%;
  min-height: 46px;
  margin-top: 9px;
  cursor: pointer;
  color: #744b0c;
  border: 2px solid #e3a23b;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff5d7, #ffe2a3);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(177, 116, 20, 0.12);
}
.report-tanker-button:disabled { cursor: default; opacity: 0.72; box-shadow: none; }

.report-tanker-status {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 8px 12px;
  color: #744b0c;
  border: 1px solid #e7b45d;
  border-radius: 10px;
  background: #fff8e5;
}
.report-tanker-status > span:first-child { font-size: 21px; }
.report-tanker-status > span:last-child { display: grid; gap: 2px; }
.report-tanker-status strong { font-size: 12px; }
.report-tanker-status small { color: #916b2d; font-size: 9px; }

.queue-panel { transition: opacity 160ms ease; }
.queue-panel.is-disabled { opacity: 0.5; }
.queue-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.queue-option { display: grid; min-width: 0; height: 58px; place-items: center; gap: 3px; padding: 5px 2px; cursor: pointer; color: #53616b; border: 1px solid rgba(35, 59, 76, 0.12); border-radius: 9px; background: #fff; transition: transform 150ms ease, border-color 150ms ease, background 150ms ease; }
.queue-option span { overflow: hidden; color: var(--green); font-size: 8px; letter-spacing: -1px; white-space: nowrap; }
.queue-option:nth-child(2) span { color: #8ebf33; }
.queue-option:nth-child(3) span { color: #e9a12c; }
.queue-option:nth-child(4) span { color: #e75449; }
.queue-option:nth-child(5) span { color: #b91f2c; }
.queue-option b { font-size: 8px; white-space: nowrap; }
.queue-option.is-selected { border: 2px solid #4aa557; background: #f3fbf4; box-shadow: 0 0 0 2px rgba(74, 165, 87, 0.1); transform: translateY(-2px); }
.queue-option:disabled { cursor: default; }

.drivers-note {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  padding: 13px;
  color: #42586a;
  border: 1px solid rgba(46, 128, 231, 0.24);
  border-radius: 14px;
  background: #edf6ff;
}
.drivers-note > span { display: grid; place-items: center; color: var(--blue); border: 3px solid var(--blue); border-radius: 16px; font-size: 25px; }
.drivers-note strong { font-size: 11px; }
.drivers-note ul { margin: 5px 0 0; padding-left: 15px; color: #586a77; font-size: 8px; line-height: 1.45; }

.back-to-stations { margin-top: 0; }

@media (max-width: 460px) {
  .app-shell { display: block; padding: 0; }
  .app { width: 100%; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
}

@media (max-width: 360px) {
  .hero { padding-right: 18px; padding-left: 18px; }
  .hero-explainer { right: 9px; gap: 3px; padding-right: 7px; font-size: 8px; }
  .hero-explainer img { width: 25px; height: 25px; }
  .content { padding-right: 12px; padding-left: 12px; }
  .fuel-tabs { gap: 6px; padding: 7px; }
  .fuel-tab { gap: 4px; height: 54px; font-size: 16px; }
  .fuel-tab svg { width: 16px; }
  .fuel-tab.is-selected { transform: scale(1.09); }
  .fuel-tabs--glass { gap: 5px; padding: 6px; }
  .fuel-tabs--glass .fuel-tab--main { height: 78px; gap: 6px; border-radius: 17px; }
  .fuel-tabs--glass .fuel-tab--main.is-selected { transform: scale(1.1); }
  .fuel-tab__value { gap: 3px; }
  .fuel-tab__value svg { width: 18px; }
  .fuel-tab__value b { font-size: 17px; }
  .fuel-tabs--glass .fuel-tab--main small { font-size: 7px; }
  .situation-card { padding: 12px; }
  .situation-card__header { gap: 6px; }
  .situation-card__title { gap: 6px; }
  .situation-card__title-icon { width: 43px; height: 43px; flex-basis: 43px; border-radius: 14px; }
  .situation-card__title-icon svg { width: 30px; height: 30px; }
  .situation-card__header strong { font-size: 16px; }
  .fuel-badge { min-height: 38px; gap: 4px; padding: 7px 8px; font-size: 12px; }
  .fuel-badge::before { width: 15px; height: 18px; }
  .primary-stats { gap: 6px; padding: 7px; }
  .stat { grid-template-columns: 35px auto; column-gap: 5px; min-height: 104px; padding-right: 3px; padding-left: 3px; }
  .stat__icon { width: 35px; height: 35px; font-size: 23px; }
  .stat strong { font-size: 31px; }
  .stat small { font-size: 9px; }
  .transition { gap: 9px; font-size: 11px; }
  .transition__icon { width: 39px; height: 39px; flex-basis: 39px; }
  .transition strong { font-size: 16px; }
  .card-link { font-size: 14px; }
  .quick-actions { gap: 7px; }
  .action-card { min-height: 78px; padding-right: 12px; padding-left: 8px; }
  .action-card__text strong { font-size: 12px; }
  .action-card__text small { font-size: 7px; }
  .station-card { grid-template-columns: 37px minmax(0, 1fr) 110px 9px; gap: 6px; padding-right: 8px; padding-left: 8px; }
  .station-brand-logo { width: 35px; height: 35px; padding: 4px; }
  .station-info strong { font-size: 12px; }
  .station-nickname { font-size: 9px; }
  .station-status { font-size: 7px; }
  .station-queue { font-size: 7px; }
  .detail-hero { min-height: 179px; padding-right: 13px; padding-left: 13px; }
  .detail-brand { gap: 9px; }
  .detail-brand img { width: 58px; height: 58px; flex-basis: 58px; padding: 7px; border-radius: 15px; }
  .detail-brand h2 { font-size: 22px; }
  .detail-brand__identity > strong { font-size: 13px; }
  .detail-brand__identity > small { font-size: 9px; }
  .detail-metrics strong { max-width: 120px; font-size: 10px; }
  .recent-report { grid-template-columns: 30px minmax(0, 1fr) auto; padding-right: 8px; padding-left: 8px; }
  .recent-report__queue { font-size: 8px; }
  .queue-options { gap: 4px; }
  .queue-option b { font-size: 7px; }
}

@media (max-width: 330px) {
  .situation-card__header,
  .situation-card__title { gap: 4px; }
  .situation-card__title-icon { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; }
  .situation-card__title-icon svg { width: 27px; height: 27px; }
  .situation-card__header strong { font-size: 14px; }
  .fuel-badge { min-height: 36px; gap: 3px; padding: 6px; font-size: 11px; }
  .fuel-badge::before { width: 14px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #11171c;
  --surface: #182027;
  --card: rgba(34, 44, 52, 0.96);
  --text: #f2f5f7;
  --muted: #9ba8b1;
  --line: rgba(224, 237, 246, 0.11);
  --shadow-lg: none;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.17);
}
[data-theme="dark"] .content { background: linear-gradient(180deg, rgba(24, 32, 39, 0.95), var(--surface) 75px); }
  [data-theme="dark"] .fuel-tabs { background: rgba(34, 44, 52, 0.95); }
[data-theme="dark"] .situation-card { border-color: rgba(255, 255, 255, 0.1); background: radial-gradient(circle at 83% 4%, rgba(49, 89, 119, 0.55), transparent 33%), linear-gradient(180deg, #27343e, #202b34); box-shadow: var(--shadow-card); }
[data-theme="dark"] .situation-card::before { opacity: 0.16; }
[data-theme="dark"] .situation-card__title-icon { border-color: rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.08); box-shadow: none; }
[data-theme="dark"] .primary-stats,
[data-theme="dark"] .transition-stats { border-color: var(--line); background: rgba(26, 35, 42, 0.68); box-shadow: none; }
[data-theme="dark"] .stat--available { background: linear-gradient(145deg, rgba(39, 77, 50, 0.72), rgba(34, 48, 40, 0.82)); }
[data-theme="dark"] .stat--unavailable { background: linear-gradient(145deg, rgba(83, 43, 43, 0.7), rgba(49, 36, 37, 0.82)); }
[data-theme="dark"] .stat--unknown { background: linear-gradient(145deg, rgba(60, 70, 78, 0.8), rgba(38, 48, 56, 0.85)); }
[data-theme="dark"] .stat__icon { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
[data-theme="dark"] .stat small,
[data-theme="dark"] .transition__text { color: #c4cdd3; }
[data-theme="dark"] .transition__icon { background: rgba(211, 138, 24, 0.13); }
[data-theme="dark"] .transition.is-zero .transition__icon { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .report-fuel-badge { box-shadow: none; }
[data-theme="dark"] .report-other-fuels { border-color: var(--line); }
[data-theme="dark"] .report-panel__heading { color: var(--text); background: rgba(35, 69, 45, 0.78); }
[data-theme="dark"] .report-panel__heading--blue { background: rgba(34, 63, 96, 0.8); }
[data-theme="dark"] .report-panel__heading--violet { background: rgba(58, 45, 94, 0.82); }
[data-theme="dark"] .report-panel__heading--graphite { background: rgba(53, 61, 69, 0.84); }
[data-theme="dark"] .trust-note > span { background: #27323a; }
[data-theme="dark"] .contact-card { color: var(--text); border-color: var(--line); background: linear-gradient(145deg, #25323d, #202b34); }
[data-theme="dark"] .contact-card__icon { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .hero-explainer { color: #dcefff; border-color: rgba(255, 255, 255, 0.22); background: rgba(29, 51, 67, 0.78); }
[data-theme="dark"] .how-dialog { border-color: rgba(255, 255, 255, 0.12); }
[data-theme="dark"] .how-dialog__panel { background: radial-gradient(circle at 90% 0, rgba(46, 128, 231, 0.18), transparent 17rem), var(--surface); }
[data-theme="dark"] .how-dialog__header,
[data-theme="dark"] .how-dialog__footer { background: rgba(27, 38, 46, 0.94); border-color: var(--line); }
[data-theme="dark"] .how-dialog__header h2,
[data-theme="dark"] .how-step h3 { color: var(--text); }
[data-theme="dark"] .how-dialog__intro,
[data-theme="dark"] .how-step { color: var(--text); border-color: var(--line); background: rgba(38, 50, 59, 0.92); }
[data-theme="dark"] .how-step p { color: var(--muted); }
[data-theme="dark"] .station-nickname { color: #e8f0f5; }
[data-theme="dark"] .site-footer { color: #84929c; border-color: var(--line); }
[data-theme="dark"] .site-footer button { color: #bac7cf; border-color: var(--line); background: #26323a; }
[data-theme="dark"] .admin-dialog__panel { background: radial-gradient(circle at 88% 0, rgba(46, 128, 231, 0.18), transparent 18rem), var(--surface); }
[data-theme="dark"] .admin-section { border-color: var(--line); background: rgba(34, 44, 52, 0.94); }
[data-theme="dark"] .admin-section__heading h3,
[data-theme="dark"] .admin-metric strong { color: var(--text); }
[data-theme="dark"] .admin-metric { border-color: var(--line); background: #222d35; }
[data-theme="dark"] .admin-metric span,
[data-theme="dark"] .admin-section__heading small { color: var(--muted); }
[data-theme="dark"] .admin-online-card { color: #dff5e5; border-color: rgba(68, 184, 99, 0.25); background: linear-gradient(135deg, #20362a, #23342c); }
[data-theme="dark"] .admin-online-card small { color: #97bda3; }
[data-theme="dark"] .admin-dashboard__note { color: var(--muted); border-color: var(--line); background: #222d35; }

@media (min-width: 461px) {
  [data-telegram="true"] .app-shell { padding: 0; }
  [data-telegram="true"] .app { width: 100%; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
}
