:root {
  color-scheme: light;
  --ink: #10231d;
  --muted: #64736e;
  --paper: #f5f4ee;
  --panel: #fffefa;
  --line: #dfdfd6;
  --brand: #0d5a43;
  --brand-dark: #0d3328;
  --lime: #c9f169;
  --shadow: 0 18px 60px rgba(19, 45, 36, .10);
  --radius: 22px;
  --CAN_REFUEL: #158257;
  --LIKELY_AVAILABLE: #77a827;
  --CONFLICT: #7856c7;
  --LIMITED: #d58a13;
  --LIKELY_NOT: #d5653f;
  --CONFIRMED_NO: #b8333a;
  --NO_FRESH_DATA: #8a9691;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% -10%, rgba(201, 241, 105, .28), transparent 32rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { width: min(1240px, 100%); margin: 0 auto; min-height: 100vh; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 48px);
  /* viewport-fit=cover plus a translucent iOS status bar puts the notch over
     the page, so the shell has to keep clear of the device insets itself. */
  padding-top: calc(22px + env(safe-area-inset-top, 0px));
  padding-left: calc(clamp(18px, 4vw, 48px) + env(safe-area-inset-left, 0px));
  padding-right: calc(clamp(18px, 4vw, 48px) + env(safe-area-inset-right, 0px));
}
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.install-button { border: 1px solid var(--brand); background: var(--brand); color: white; border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 800; cursor: pointer; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-dark); transform: rotate(-4deg); }
.brand-mark span { width: 17px; height: 22px; border: 3px solid var(--lime); border-radius: 4px 4px 8px 8px; position: relative; }
.brand-mark span::after { content: ""; position: absolute; width: 7px; height: 9px; border: 2px solid var(--lime); border-left: 0; border-radius: 0 5px 5px 0; right: -8px; top: 3px; }
.icon-button, .drawer-close {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .6); border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer; font-weight: 700;
}
main { padding: 0 clamp(18px, 4vw, 48px) 48px; }
.hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; padding: 45px 0 30px; }
.eyebrow { margin: 0 0 9px; color: var(--brand); font-weight: 800; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 710px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6.2vw, 78px); line-height: .94; letter-spacing: -.052em; font-weight: 500; }
h1 em { color: var(--brand); font-weight: 500; }
.hero-copy { max-width: 610px; margin: 22px 0 0; color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.55; }
.snapshot-card { display: flex; align-items: center; gap: 11px; min-width: 225px; padding: 14px 16px; background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 15px; }
.snapshot-card strong, .snapshot-card small { display: block; }
.snapshot-card strong { font-size: 13px; }
.snapshot-card small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.snapshot-stack { display: grid; gap: 7px; align-content: start; }
.refresh-button { border: 0; background: transparent; color: var(--brand); font-size: 12px; font-weight: 750; cursor: pointer; padding: 3px 8px; text-align: left; }
.refresh-button:hover { text-decoration: underline; }
.refresh-button:disabled { color: var(--muted); cursor: wait; text-decoration: none; }
.pulse { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--LIKELY_AVAILABLE); box-shadow: 0 0 0 5px rgba(119, 168, 39, .12); }
.pulse.stale { background: var(--LIMITED); box-shadow: 0 0 0 5px rgba(213, 138, 19, .12); }
.control-panel { background: var(--brand-dark); color: white; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); box-shadow: var(--shadow); }
.location-row, .grade-row, .search-row { display: flex; align-items: center; gap: 14px; }
.location-row { justify-content: space-between; }
.grade-row { margin-top: 25px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); }
.search-row { margin-top: 19px; }
.field-label { width: 62px; flex: 0 0 auto; color: rgba(255,255,255,.65); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.55); }
.segmented button { border: 0; border-radius: 8px; background: transparent; padding: 8px 13px; cursor: pointer; font-size: 13px; }
.segmented button.active { background: var(--panel); box-shadow: 0 2px 8px rgba(0,0,0,.07); font-weight: 700; }
.control-panel .segmented { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.control-panel .segmented button { color: rgba(255,255,255,.68); }
.control-panel .segmented button.active { color: var(--brand-dark); background: var(--lime); }
.locate-button { border: 1px solid rgba(255,255,255,.28); background: transparent; color: white; padding: 10px 14px; border-radius: 11px; cursor: pointer; }
.locate-button:hover { background: rgba(255,255,255,.08); }
.grade-picker { display: grid; grid-template-columns: repeat(6, minmax(55px, 1fr)); gap: 8px; flex: 1; }
.grade-picker button { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); color: white; border-radius: 12px; padding: 12px 10px; cursor: pointer; font-weight: 750; }
.grade-picker button.active { background: var(--lime); color: var(--brand-dark); border-color: var(--lime); }
.search-box { display: flex; flex: 1; align-items: center; gap: 9px; background: white; color: var(--ink); border-radius: 12px; padding: 0 13px; }
.search-box input { width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; }
.nearby-search-button { flex: 0 0 auto; border: 1px solid var(--lime); background: var(--lime); color: var(--brand-dark); border-radius: 12px; padding: 12px 14px; font-weight: 800; cursor: pointer; }
.nearby-search-button:disabled { opacity: .68; cursor: wait; }
.search-context { min-height: 21px; margin-top: 9px; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.35; }
.search-context strong { color: white; }
.search-context button { margin-left: 8px; border: 0; border-bottom: 1px solid rgba(255,255,255,.7); padding: 0; background: transparent; color: white; cursor: pointer; }
select { color: white; border: 1px solid rgba(255,255,255,.18); background: #173f34; border-radius: 12px; padding: 12px 34px 12px 13px; }
.results-head { display: flex; align-items: end; justify-content: space-between; margin: 35px 0 16px; }
.results-head h2 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.identity-note { display: block; color: var(--muted); margin-top: 4px; max-width: 560px; line-height: 1.35; }
.status-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 14px; scrollbar-width: none; }
.status-strip::-webkit-scrollbar { display: none; }
.status-chip { flex: 0 0 auto; display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.55); border-radius: 99px; padding: 8px 11px; cursor: pointer; font-size: 12px; }
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--status-color); }
.status-chip.active { border-color: var(--status-color); background: white; box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.status-chip:disabled { opacity: .55; cursor: default; }
.timeline-filter { font-weight: 800; color: var(--brand); }
.content-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(440px, 1.35fr); gap: 18px; min-height: 600px; }
.station-list { display: flex; flex-direction: column; gap: 9px; max-height: 680px; overflow: auto; padding-right: 5px; }
.station-card { background: var(--panel); border: 1px solid transparent; border-radius: 16px; transition: border-color .18s, transform .18s; }
.station-card:hover { border-color: var(--line); transform: translateY(-1px); }
.card-main { width: 100%; display: grid; grid-template-columns: 11px 1fr auto; gap: 13px; align-items: start; border: 0; background: transparent; text-align: left; padding: 17px; cursor: pointer; }
.status-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--status-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-color) 14%, transparent); }
.card-copy, .card-copy > span { display: block; min-width: 0; }
.card-topline { display: flex !important; justify-content: space-between; gap: 10px; }
.network { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.distance { color: var(--muted); font-size: 12px; }
.address { margin-top: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-label { margin-top: 10px; color: var(--status-color); font-weight: 850; font-size: 12px; letter-spacing: .025em; }
.timeline-badge { width: fit-content; margin-top: 7px; padding: 5px 8px; border-radius: 8px; background: #e8f8be; color: #31551b; font-size: 10px; font-weight: 850; }
.timeline-badge[data-tone="fresh"] { background: var(--lime); color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(201,241,105,.22); }
.timeline-badge[data-tone="negative"] { background: #f8e2df; color: var(--CONFIRMED_NO); }
.facts { margin-top: 5px; color: var(--muted); font-size: 11px; }
.chevron { color: #9aa59f; font-size: 24px; line-height: 1; }
.empty-state, .loading-state { padding: 42px 22px; text-align: center; color: var(--muted); background: rgba(255,255,255,.5); border-radius: 16px; }
.map-wrap { position: relative; min-height: 600px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #dce5dc; }
#map { position: absolute; inset: 0; touch-action: none; cursor: grab; overscroll-behavior: contain; }
#map:active { cursor: grabbing; }
.map-area-button { position: absolute; z-index: 500; left: 50%; top: 14px; transform: translateX(-50%); border: 0; border-radius: 99px; background: var(--brand-dark); color: white; padding: 10px 16px; box-shadow: 0 6px 22px rgba(0,0,0,.22); cursor: pointer; display: none; }
/* A `display` rule beats the hidden attribute, so this overlay stayed on top
   of the map and swallowed every drag and click even while invisible. */
[hidden] { display: none !important; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--muted); }
.fuel-marker { width: 18px; height: 18px; border-radius: 50% 50% 50% 2px; transform: rotate(-45deg); border: 2px solid white; background: var(--marker); box-shadow: 0 2px 9px rgba(0,0,0,.3); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.popup-title { font-weight: 800; margin-bottom: 3px; }
.popup-status { color: var(--popup-color); font-weight: 750; margin-top: 7px; }
.popup-open { border: 0; background: var(--brand-dark); color: white; padding: 7px 10px; border-radius: 8px; margin-top: 9px; cursor: pointer; }
footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 0 clamp(18px,4vw,48px); padding: 24px 0 calc(38px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer button { border: 0; background: transparent; color: var(--brand); cursor: pointer; font-weight: 750; }
/* This line grew when the Yandex attribution was added to it; with
   nowrap it made the document 675px wide on a 375px screen, which is what
   made the right edge slide away under a pinch. */
.map-credit { white-space: normal; }
.map-credit a { color: inherit; }
.scrim { position: fixed; z-index: 900; inset: 0; background: rgba(6, 24, 18, .46); backdrop-filter: blur(3px); }
.drawer { position: fixed; z-index: 1000; right: 0; top: 0; bottom: 0; width: min(540px, 100%); padding: calc(28px + env(safe-area-inset-top, 0px)) 28px calc(28px + env(safe-area-inset-bottom, 0px)); overflow: auto; background: var(--panel); box-shadow: -20px 0 60px rgba(5,25,18,.18); transform: translateX(102%); transition: transform .25s ease; }
.drawer.open { transform: translateX(0); }
.drawer-close { position: sticky; top: 0; float: right; z-index: 2; font-size: 24px; line-height: 1; background: var(--paper); }
.drawer h2 { margin: 38px 0 4px; font-size: 29px; letter-spacing: -.04em; }
.drawer-address { color: var(--muted); margin: 0 0 20px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.drawer-actions a, .drawer-actions button { border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--brand); padding: 9px 12px; text-decoration: none; font-size: 12px; font-weight: 750; cursor: pointer; }
.drawer-actions a:hover, .drawer-actions button:hover { border-color: var(--brand); }
.drawer-status { padding: 17px; border-left: 5px solid var(--status-color); background: color-mix(in srgb, var(--status-color) 8%, white); border-radius: 4px 14px 14px 4px; }
.drawer-status strong { display: block; color: var(--status-color); font-size: 15px; }
.drawer-status p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; }
.about-secondary { margin-top: 10px; }
.timeline-panel { margin-top: 10px; padding: 16px; border: 1px solid #d9e5b9; border-radius: 14px; background: #f8fbeF; }
.timeline-panel.fresh { border-color: #a6ce42; background: linear-gradient(135deg, #f5ffd8, #fffefa); }
.timeline-panel.neutral { border-color: var(--line); background: var(--paper); }
.timeline-kicker { display: block; margin-bottom: 5px; color: var(--brand); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.timeline-panel strong { display: block; font-size: 14px; }
.timeline-panel p { margin: 6px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.timeline-panel dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0; }
.timeline-panel dl div { padding: 8px; border-radius: 9px; background: rgba(255,255,255,.72); }
.timeline-panel dt { color: var(--muted); font-size: 9px; }
.timeline-panel dd { margin: 3px 0 0; font-size: 11px; font-weight: 800; }
.grade-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 26px; }
.grade-cell { border: 1px solid var(--line); border-radius: 11px; padding: 10px; background: white; }
.grade-cell b, .grade-cell small { display: block; }
.grade-cell small { color: var(--cell-color); font-size: 9px; font-weight: 800; margin-top: 4px; }
.section-title { margin: 25px 0 11px; font-size: 14px; }
.evidence-list { display: flex; flex-direction: column; gap: 8px; }
.evidence-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: white; }
.evidence-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.evidence-head strong { color: var(--evidence-color); }
.evidence-meta { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.source-list { margin-top: 15px; display: grid; gap: 8px; }
.source-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.source-row span { float: right; color: var(--muted); font-size: 10px; }
.source-row small { display: block; clear: both; color: var(--muted); margin-top: 4px; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 25px; }
  .snapshot-card { width: fit-content; }
  .content-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 64vh; display: none; }
  .content-grid.map-mode .station-list { display: none; }
  .content-grid.map-mode .map-wrap { display: block; }
  .station-list { max-height: none; }
}
@media (min-width: 851px) { .view-switch { display: none; } }
@media (max-width: 620px) {
  .topbar { padding-top: calc(15px + env(safe-area-inset-top, 0px)); }
  .install-button { padding: 8px 10px; }
  .hero { padding-bottom: 22px; }
  h1 { font-size: 45px; }
  .location-row, .grade-row, .search-row { align-items: stretch; }
  .location-row, .search-row { flex-direction: column; }
  .compact { width: 100%; }
  .compact button { flex: 1; padding-inline: 7px; }
  .locate-button { width: 100%; }
  .grade-row { display: block; }
  .field-label { display: block; margin-bottom: 9px; width: auto; }
  .grade-picker { grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .grade-picker button { padding: 11px 3px; font-size: 12px; }
  select { width: 100%; }
  .nearby-search-button { width: 100%; min-height: 48px; }
  footer { align-items: flex-start; flex-direction: column; }
  .drawer { padding: 20px; }
}

.trust-panel {
  margin: 14px 0 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(13, 51, 40, .12);
  background: rgba(255, 255, 255, .72);
}
.trust-head { display: flex; flex-direction: column; gap: 2px; }
.trust-kicker { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #6d7a74; }
.trust-head strong { font-size: 1.05rem; color: var(--trust-color); }
.trust-bar { margin: 10px 0 12px; height: 8px; border-radius: 999px; background: rgba(13, 51, 40, .1); overflow: hidden; }
.trust-bar span { display: block; height: 100%; border-radius: 999px; background: var(--trust-color); }
.trust-panel dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 14px; margin: 0 0 10px; }
.trust-panel dt { font-size: .72rem; color: #6d7a74; }
.trust-panel dd { margin: 0; font-size: .92rem; font-weight: 600; }
.trust-panel p { margin: 0; font-size: .78rem; line-height: 1.45; color: #6d7a74; }

.list-more {
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(13, 51, 40, .28);
  background: rgba(255, 255, 255, .6);
  font: inherit;
  font-weight: 600;
  color: #0d3328;
  cursor: pointer;
}
.list-more:hover { background: #fff; }

.install-steps { margin: 12px 0 18px; padding-left: 22px; display: grid; gap: 10px; }
.install-steps li { line-height: 1.5; }

.status-chip[disabled] { opacity: .42; cursor: default; }

/* Card rebuilt around one question: do I drive there, and how long do I wait. */
.station-card {
  /* The decision colour now lives on the card edge; the old dot/chevron grid
     columns are gone. */
  border-left: 4px solid var(--status-color);
}
.station-card .card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 15px 16px;
  text-align: left;
}
.station-card .card-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.station-card .address { white-space: normal; }
.station-card .facts, .station-card .meta-line, .station-card .timeline-badge { margin-top: 0; }
.card-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.grade-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.grade-chip {
  display: inline-flex; align-items: center; gap: 3px;
  border-radius: 8px; padding: 3px 7px; font-size: 12px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap;
}
.grade-chip.yes { background: #dff3e6; color: #0f6b45; }
.grade-chip.likely { background: #eaf4d6; color: #46660f; }
.grade-chip.limited { background: #fbeed2; color: #8a5405; }
.grade-chip.conflict { background: #ece5fb; color: #4c3a8e; }
.grade-chip.no { background: #f8e2e2; color: #8f2a30; }
.grade-chip.unknown { background: rgba(13, 51, 40, .06); color: #6d7a74; }
.grade-chip.selected { border-color: currentColor; }
.verdict { display: flex; align-items: center; gap: 7px; font-weight: 750; font-size: 14px; }
.verdict-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.wait { font-weight: 600; color: #6d7a74; font-size: 13px; }
.meta-line { font-size: 12px; color: #8a9691; }
.station-card .facts { font-size: 13px; color: #4a5b54; line-height: 1.4; }

/* On a phone the answer has to be on the first screen, not a screen and a half
   down past a magazine headline and a full filter panel. */
@media (max-width: 620px) {
  .hero { padding: 10px 0 12px; gap: 12px; }
  .hero .eyebrow, .hero .hero-copy { display: none; }
  h1 { font-size: 27px; line-height: 1.08; letter-spacing: -.02em; }
  .snapshot-stack { grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
  .snapshot-card { width: auto; min-width: 0; padding: 9px 11px; }
  .snapshot-card strong { font-size: 12px; }
  .snapshot-card small { font-size: 10px; }
  .refresh-button { margin: 0; white-space: nowrap; font-size: 12px; }

  .control-panel { padding: 12px; border-radius: 18px; }
  .location-row, .search-row { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .location-row { align-items: center; }
  .compact { width: auto; flex: 1 1 100%; min-width: 0; }
  .compact button { padding: 9px 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .locate-button { width: 100%; flex: 1 1 100%; padding: 9px 11px; font-size: 12px; justify-content: center; }
  .grade-chip { font-size: 11px; padding: 3px 6px; }
  .grade-row { margin-top: 12px; padding-top: 12px; }
  .field-label { display: none; }
  .grade-picker button { padding: 10px 2px; font-size: 13px; font-weight: 800; }
  .search-row { margin-top: 10px; }
  .search-box { flex: 1 1 55%; min-width: 0; }
  .nearby-search-button { width: auto; flex: 1 1 38%; min-height: 40px; padding-inline: 8px; font-size: 12px; white-space: nowrap; }
  select { width: auto; flex: 1 1 100%; font-size: 13px; padding-block: 9px; }
  .search-context { margin-top: 9px; font-size: 11px; }

  .results-head { margin: 16px 0 10px; }
  .results-head h2 { font-size: 20px; }
  .results-head .eyebrow { display: none; }
  .identity-note { display: none; }
  .status-strip { margin-bottom: 10px; }
  .station-card .card-main { padding: 13px 13px; gap: 6px; }
  .network { font-size: 14px; }
  .address { font-size: 11px; }
}

.vote-panel { margin: 14px 0 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(13,51,40,.12); background: rgba(255,255,255,.72); }
.vote-panel p { margin: 8px 0 12px; font-size: .78rem; line-height: 1.45; color: #6d7a74; }
.vote-list { display: grid; gap: 8px; }
.vote-row { display: grid; grid-template-columns: 52px minmax(0,1fr) 74px; gap: 10px; align-items: center; }
.vote-side { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.vote-side.yes { color: #158257; }
.vote-side.no { color: #b8333a; }
.vote-name { font-size: 12px; font-weight: 650; min-width: 0; }
.vote-name small { display: block; font-weight: 500; color: #8a9691; font-size: 10px; }
.vote-bar { height: 6px; border-radius: 999px; background: rgba(13,51,40,.1); overflow: hidden; }
.vote-bar span { display: block; height: 100%; border-radius: 999px; background: #4a5b54; }
.vote-row:has(.vote-side.yes) .vote-bar span { background: #158257; }
.vote-row:has(.vote-side.no) .vote-bar span { background: #b8333a; }

.collector-banner {
  display: grid; gap: 4px; margin: 0 0 12px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid rgba(213, 138, 19, .35);
  background: rgba(251, 238, 210, .75); color: #6b4405;
}
.collector-banner strong { font-size: 13px; }
.collector-banner span { font-size: 12px; line-height: 1.4; }
.collector-banner button {
  justify-self: start; margin-top: 4px; border: 0; background: transparent;
  color: #8a5405; font: inherit; font-size: 12px; font-weight: 700;
  text-decoration: underline; cursor: pointer; padding: 0;
}

.build-stamp { color: #9aa59f; font-size: 11px; }

.yandex-panel { margin: 14px 0 4px; padding: 13px 15px; border-radius: 16px; border: 1px solid rgba(13,51,40,.12); background: rgba(255,255,255,.72); }
.yandex-panel strong { display: block; font-size: .95rem; }
.yandex-panel p { margin: 6px 0 0; font-size: .82rem; line-height: 1.45; }
.yandex-panel .yandex-note, .yandex-panel .yandex-stale { color: #6d7a74; font-size: .76rem; }
.yandex-panel.agree { border-color: rgba(21,130,87,.35); }
.yandex-panel.agree strong { color: #158257; }
.yandex-panel.disagree { border-color: rgba(184,51,58,.38); background: rgba(248,226,226,.5); }
.yandex-panel.disagree strong { color: #b8333a; }
.yandex-flag { display: block; font-size: 12px; font-weight: 650; color: #8f2a30; background: rgba(248,226,226,.7); border-radius: 8px; padding: 5px 8px; }

/* Installed on a home screen the app should behave like an app: no pinch zoom
   of the whole page, no rubber-band scroll past the edges. The map keeps its
   own gestures because it sets touch-action itself. */
html, body { overscroll-behavior: none; }
/* iOS ignores user-scalable=no while browsing and honours it only in a window
   installed on the home screen, so the gesture is blocked in CSS as well; the
   map sets its own touch-action and keeps pinch-to-zoom. */
body { touch-action: pan-y; -webkit-text-size-adjust: 100%; }
.app-shell { touch-action: pan-y; }
#map, .leaflet-container { touch-action: none; }

/* Where the driver is standing, so "рядом" is something you can see. */
.me-marker {
  width: 16px; height: 16px; border-radius: 50%;
  background: #1b6ef3; border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(27,110,243,.3), 0 2px 6px rgba(0,0,0,.35);
}

/* In map view the list is hidden, which also hid the explanation of why the
   map is empty. An empty result must always be able to say why. */
.content-grid.map-mode .station-list:has(.empty-state) { display: block; max-height: none; }

.vote-row.expired { opacity: .72; }
.vote-row.expired .vote-bar span { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0 3px, transparent 3px 6px); }
.legal { max-width: 60ch; color: #9aa59f; font-size: 11px; line-height: 1.45; }

/* Standing at the pump: the answer about this one station, big enough to read
   while holding the nozzle. */
.here-panel {
  display: grid; gap: 6px; margin-bottom: 10px; padding: 15px 16px;
  border-radius: 18px; border: 2px solid var(--brand); background: #fff;
  box-shadow: 0 6px 20px rgba(13, 51, 40, .1);
}
.here-kicker { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.here-panel strong { font-size: 17px; }
.here-address { color: var(--muted); font-size: 12px; }
.here-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; margin-top: 6px; }
.here-grade { border-radius: 10px; padding: 7px 9px; display: grid; gap: 1px; }
.here-grade b { font-size: 12px; }
.here-grade span { font-size: 11px; font-weight: 650; }
.here-grade.yes { background: #dff3e6; color: #0f6b45; }
.here-grade.likely { background: #eaf4d6; color: #46660f; }
.here-grade.limited { background: #fbeed2; color: #8a5405; }
.here-grade.conflict { background: #ece5fb; color: #4c3a8e; }
.here-grade.no { background: #f8e2e2; color: #8f2a30; }
.here-grade.unknown { background: rgba(13, 51, 40, .06); color: #6d7a74; }
.here-note { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: #4a5b54; }
.here-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.here-actions button, .here-actions a {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px;
  background: rgba(255, 255, 255, .7); font: inherit; font-size: 12px; font-weight: 700;
  color: var(--brand-dark); text-decoration: none; cursor: pointer;
}

.mark-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.mark-row > span { flex: 1 1 100%; font-size: 12px; color: var(--muted); }
.mark { border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.mark.yes { background: #dff3e6; color: #0f6b45; border-color: rgba(21,130,87,.35); }
.mark.no { background: #f8e2e2; color: #8f2a30; border-color: rgba(184,51,58,.35); }
.here-mine, .own-mark { font-size: 12px; font-weight: 700; color: #0f6b45; background: #dff3e6; border-radius: 8px; padding: 5px 8px; margin: 0; }

/* Nothing may make the document wider than the screen. A single long line
   sliding the whole layout sideways is indistinguishable from a broken app. */
html, body { max-width: 100%; overflow-x: hidden; }
.app-shell, main, footer, .hero, .control-panel, .results-head, .content-grid { max-width: 100%; min-width: 0; }
.drawer { max-width: 100vw; }
