:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff5f7;
  --text: #172033;
  --muted: #667085;
  --line: #eadde1;
  --green: #13b86a;
  --yellow: #f59e0b;
  --red: #e11d48;
  --blue: #e11d48;
  --purple: #be123c;
  --gray: #64748b;
  --focus: #e11d48;
  --petrol: #e11d48;
  --amber-soft: #fff7ed;
  --mint-soft: #f0fdf4;
  --sky-soft: #fff1f2;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.button-like {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

button:hover,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin: 10px auto 0;
  width: min(1180px, calc(100% - 20px));
  border: 1px solid rgba(216, 224, 219, 0.88);
  border-radius: 8px;
  padding: 8px 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(233, 247, 239, 0.94));
  box-shadow: 0 14px 40px rgba(20, 39, 31, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(136, 19, 55, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.view-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tab {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.service-tab {
  display: none;
  color: var(--muted);
}

.tab.is-active,
.chip.is-active {
  border-color: var(--petrol);
  background: var(--petrol);
  color: #fff;
}

.view {
  display: none;
}

.view.is-active {
  display: grid;
}

.workspace {
  position: relative;
  display: block;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}

.workspace.view.is-active {
  display: block;
}

.filters-panel,
.drawer {
  overflow: auto;
  border: 1px solid rgba(216, 224, 219, 0.95);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(20, 39, 31, 0.18);
}

.filters-panel {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 8;
  width: min(390px, calc(100% - 36px));
  max-height: calc(100vh - 100px);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 251, 0.98)),
    var(--surface);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}

.filter-group {
  margin-top: 16px;
}

.filter-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

.notice {
  margin: 12px 0;
  border-left: 3px solid var(--yellow);
  padding: 8px 10px;
  background: var(--amber-soft);
  color: #59400e;
  font-size: 13px;
  line-height: 1.35;
}

.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px;
  font-size: 15px;
}

.list-heading span {
  color: var(--muted);
  font-size: 13px;
}

.station-list {
  display: grid;
  gap: 8px;
  max-height: min(42vh, 390px);
  overflow: auto;
  padding-right: 2px;
}

.list-more {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: #f8faf8;
  font-size: 13px;
  line-height: 1.35;
}

.station-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 10px;
  text-align: left;
}

.station-item.is-selected {
  border-color: #e11d48;
  background: #fff1f2;
}

.station-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.station-title strong {
  font-size: 14px;
}

.station-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.green,
.pin.green,
.cluster.green {
  background: var(--green);
}

.badge.yellow,
.pin.yellow,
.cluster.yellow {
  background: var(--yellow);
}

.badge.red,
.pin.red,
.cluster.red {
  background: var(--red);
}

.badge.blue,
.pin.blue,
.cluster.blue {
  background: var(--blue);
}

.badge.purple,
.pin.purple,
.cluster.purple {
  background: var(--purple);
}

.badge.gray,
.pin.gray,
.cluster.gray {
  background: var(--gray);
}

.pin.accent,
.cluster.accent {
  background: var(--marker-color);
}

.map-panel {
  position: absolute;
  inset: 0;
  min-width: 0;
  background: #dfe8df;
}

.map-toolbar {
  display: grid;
  position: absolute;
  top: 82px;
  right: 18px;
  z-index: 5;
  gap: 6px;
  justify-items: end;
}

.zoom-controls {
  display: grid;
  gap: 6px;
}

.map-style-control {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(216, 224, 219, 0.95);
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(20, 39, 31, 0.14);
}

.map-style {
  min-height: 30px;
  border: 0;
  padding: 0 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.map-style.is-active {
  background: var(--petrol);
  color: #fff;
}

.zoom-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 20px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(20, 39, 31, 0.14);
}

.map-toolbar span {
  display: none;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.ghost {
  min-height: 34px;
  background: #eef3f0;
}

#install-button {
  display: none;
}

.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #edf4ef;
  cursor: grab;
  touch-action: none;
}

.map-stage:active {
  cursor: grabbing;
}

.osm-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.osm-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  will-change: left, top, width, height;
}

.osm-attribution {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  border-radius: 6px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #e11d48;
  font-size: 12px;
  text-decoration: none;
}

.pins-layer {
  position: absolute;
  inset: 0;
}

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
  transition: left 0.08s linear, top 0.08s linear, transform 0.12s ease, opacity 0.12s ease;
}

.cluster {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  transition: left 0.08s linear, top 0.08s linear, transform 0.12s ease, opacity 0.12s ease;
}

.cluster:hover,
.cluster:focus-visible,
.pin:hover,
.pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

.pin::after {
  content: attr(data-label);
  position: absolute;
  left: 18px;
  top: -8px;
  min-width: 76px;
  border-radius: 6px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.pin:hover::after,
.pin:focus-visible::after {
  opacity: 1;
}

.drawer {
  position: absolute;
  top: 82px;
  right: 18px;
  z-index: 9;
  width: min(390px, calc(100% - 36px));
  max-height: calc(100vh - 108px);
  padding: 18px;
}

.drawer:empty {
  display: none;
}

.drawer h2,
.ops-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.drawer-subtitle,
.ops-header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.drawer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.fuel-statuses,
.history-list,
.report-form,
.ops-columns {
  display: grid;
  gap: 10px;
}

.fuel-row,
.history-row,
.metric-box,
.ops-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.fuel-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
}

.fuel-row p,
.history-row p,
.metric-box p,
.ops-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.report-form {
  margin-top: 18px;
}

.report-form label,
.partner-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.report-form button,
.partner-form button {
  border-color: var(--petrol);
  background: var(--petrol);
  color: #fff;
  font-weight: 800;
}

.ops-grid {
  gap: 18px;
  padding: 22px;
}

.ops-header {
  max-width: 980px;
}

.ops-columns {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.partner-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  max-width: 1200px;
}

.code-output {
  max-width: 1200px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #18231f;
  color: #eaf1ed;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-links a,
.breadcrumbs a {
  color: #0f766e;
}

.seo-block {
  padding: 28px 22px 56px;
  background: var(--surface);
}

.seo-block h1 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.seo-block p {
  max-width: 840px;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.seo-faq {
  display: grid;
  gap: 8px;
  max-width: 840px;
}

.seo-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

@media (max-width: 1100px) {
  .drawer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    width: auto;
    z-index: 30;
    max-height: 74vh;
    border-radius: 8px 8px 0 0;
    border-top: 1px solid var(--line);
    box-shadow: 0 -18px 50px rgba(20, 39, 31, 0.22);
  }

  .drawer:empty {
    display: none;
  }

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

@media (max-width: 760px) {
  .topbar {
    align-items: center;
    min-height: 54px;
    margin-top: 8px;
  }

  .brand span:last-child {
    display: none;
  }

  .service-tab {
    display: none;
  }

  .workspace {
    min-height: 100vh;
  }

  .map-toolbar {
    top: 74px;
    right: 10px;
    left: 10px;
  }

  .filters-panel {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: 46vh;
    border-radius: 8px;
  }

  .filter-group {
    margin-top: 10px;
  }

  .station-list {
    max-height: 22vh;
  }

  .ops-columns,
  .partner-form {
    grid-template-columns: 1fr;
  }
}

/* MapLibre product shell */
.topbar {
  display: none;
}

.workspace {
  min-height: 100vh;
  background: #e7eee9;
}

.map-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #edf4ef;
}

.maplibregl-ctrl-top-right {
  top: 16px;
  right: 16px;
}

.maplibregl-ctrl-group {
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(16, 35, 27, 0.16);
}

.maplibregl-ctrl-group button {
  width: 34px;
  height: 34px;
}

.app-panel {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100% - 24px));
  overflow: hidden;
  border: 1px solid rgba(214, 224, 218, 0.9);
  border-radius: 22px;
  background: rgba(247, 249, 252, 0.95);
  box-shadow: 0 24px 70px rgba(20, 34, 28, 0.22);
  backdrop-filter: blur(16px);
}

.panel-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  background: rgba(255, 255, 255, 0.78);
}

.brand.in-panel {
  font-size: 20px;
  letter-spacing: 0;
}

.brand.in-panel .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #06130f;
  box-shadow: inset 0 0 0 3px #e11d48;
  color: #fff;
}

.brand-green {
  color: #e11d48;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  max-width: 170px;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  color: #1d2b25;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-chip::before {
  content: "⌖";
  margin-right: 8px;
  color: #e11d48;
}

.driver-note {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  margin: 0 18px 10px;
  border: 1px solid #dbe6df;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
}

.app-panel .search-row {
  margin: 0 18px 10px;
}

.app-panel input,
.app-panel select,
.app-panel textarea {
  border-radius: 12px;
  border-color: #d9e2dd;
  background: #fff;
}

.app-panel #nearby-button {
  border-radius: 12px;
  color: #e11d48;
  font-weight: 500;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 18px 12px;
}

.quick-actions button,
.list-heading button,
.map-style-switch button {
  min-height: 36px;
  border-color: #d9e2dd;
  border-radius: 999px;
  padding: 0 13px;
  background: #fff;
  color: #42514b;
  font-size: 13px;
  font-weight: 800;
}

#smart-pick,
.style-choice.is-active {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.quick-actions #install-button:not([hidden]) {
  display: inline-flex;
  align-items: center;
}

.filters-box {
  margin: 0 18px 12px;
  border: 1px solid #dfe8e3;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.filters-box .filter-group:first-child {
  margin-top: 0;
}

.chip {
  border-color: #d8e1dc;
  border-radius: 999px;
  background: #fff;
  color: #2d3b35;
  font-weight: 700;
}

.chip.is-active {
  border-color: #e11d48;
  background: #e11d48;
  color: #fff;
}

.panel-screen {
  display: none;
  min-height: 0;
  overflow: auto;
  padding: 4px 12px 96px;
}

.panel-screen.is-active {
  display: block;
  flex: 1;
}

.panel-title {
  margin: 8px 0 0;
  color: #172033;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.screen-muted {
  margin: 3px 0 12px;
  color: #64748b;
  font-size: 13px;
}

.list-heading {
  margin: 10px 6px 12px;
  font-size: 16px;
}

.list-heading strong {
  font-size: 16px;
}

.station-list {
  display: grid;
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding: 0 0 8px;
}

.station-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 30px;
  gap: 12px;
  width: 100%;
  min-height: 104px;
  border: 1px solid #dde6e1;
  border-radius: 20px;
  padding: 14px;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 26px rgba(29, 45, 37, 0.08);
}

.station-card.is-selected {
  border-color: #65dd9a;
  box-shadow: inset 4px 0 0 #25c56d, 0 12px 30px rgba(24, 152, 83, 0.13);
}

.station-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  border: 1px solid color-mix(in srgb, var(--marker-color), #fff 65%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--marker-color), #fff 88%);
  color: #18243d;
  font-size: 24px;
  font-weight: 900;
}

.station-logo.has-logo {
  overflow: hidden;
  padding: 5px;
  background: #fff;
}

.station-logo.has-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.station-logo.big {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
}

.station-body,
.station-topline,
.station-address,
.station-meta,
.station-side {
  min-width: 0;
}

.station-body {
  display: grid;
  align-content: start;
  gap: 5px;
}

.station-topline {
  display: grid;
  gap: 7px;
}

.station-topline strong {
  overflow: hidden;
  color: #18213a;
  font-size: 15px;
  line-height: 1.18;
  text-overflow: ellipsis;
}

.station-address {
  overflow: hidden;
  color: #637083;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-meta {
  color: #6f7c8e;
  font-size: 12px;
}

.station-side {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 22px;
}

.fav-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #9aa8b8;
}

.fav-dot.is-active {
  background: #dcfce7;
  color: #16a34a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.green {
  background: #dcfce7;
  color: #22c55e;
}

.status-pill.yellow {
  background: #fff3d6;
  color: #d99013;
}

.status-pill.red {
  background: #ffe1e1;
  color: #ff5f63;
}

.status-pill.purple {
  background: #efe7ff;
  color: #7c3aed;
}

.status-pill.gray {
  background: #eef2f7;
  color: #748091;
}

.map-style-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 6px 12px;
}

.map-hint,
.empty-state {
  margin: 0 6px 12px;
  border: 1px dashed #cfdad4;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.badge-card {
  display: grid;
  gap: 6px;
  margin: 14px 0 22px;
  border: 1px solid #dde6e1;
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(29, 45, 37, 0.07);
}

.badge-card strong {
  color: #18213a;
}

.badge-card span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.progress-dots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.progress-dots i {
  height: 6px;
  border-radius: 999px;
  background: #e3e9ee;
}

.suggest-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px 12px;
  width: 100%;
  min-height: 82px;
  margin: 18px 0 0;
  border: 1px dashed #cdd8d2;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  text-align: left;
}

.suggest-card span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #dcfce7;
  color: #16a34a;
}

.suggest-card strong {
  color: #253044;
}

.suggest-card small {
  color: #64748b;
}

.bottom-nav {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 20;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border: 1px solid rgba(211, 221, 216, 0.9);
  border-radius: 24px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(18, 36, 28, 0.18);
  backdrop-filter: blur(16px);
}

.bottom-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #7b8794;
  font-size: 13px;
  font-weight: 900;
}

.bottom-tab.is-active {
  background: #fff;
  color: #162033;
  box-shadow: inset 0 0 0 2px #e11d48;
}

.drawer {
  top: 12px;
  right: 12px;
  z-index: 22;
  width: min(390px, calc(100% - 424px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(214, 224, 218, 0.92);
  border-radius: 22px;
  padding: 0 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(20, 34, 28, 0.22);
  backdrop-filter: blur(16px);
}

.drawer-handle {
  width: 44px;
  height: 5px;
  margin: 10px auto 14px;
  border-radius: 999px;
  background: #d2d9df;
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 44px 36px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  margin-right: -16px;
  margin-left: -16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid #edf1f4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.drawer-head h2 {
  margin: 0;
  overflow: hidden;
  color: #172033;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-head p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-toggle,
.drawer-close {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0;
  color: #64748b;
  font-size: 21px;
}

.favorite-toggle.is-active {
  border-color: #8fe6b5;
  background: #dcfce7;
  color: #16a34a;
}

.drawer-close {
  border: 0;
  background: transparent;
  font-size: 28px;
}

.status-panel {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px 12px;
  border: 1px solid #cdeedc;
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #eafff1, #f7fff9);
}

.status-panel.yellow {
  border-color: #ffe0a7;
  background: linear-gradient(135deg, #fff8e7, #fffdf7);
}

.status-panel.red {
  border-color: #ffc9c9;
  background: linear-gradient(135deg, #fff0f0, #fffafa);
}

.status-panel.purple {
  border-color: #dacbff;
  background: linear-gradient(135deg, #f4efff, #fff);
}

.status-panel.gray {
  border-color: #d9e1ea;
  background: linear-gradient(135deg, #f4f7fb, #fff);
}

.status-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #d8ffe6;
  color: #16a34a;
  font-size: 24px;
}

.status-panel strong {
  display: block;
  color: #25c56d;
  font-size: 24px;
  line-height: 1.05;
}

.status-panel.yellow strong {
  color: #d99013;
}

.status-panel.red strong {
  color: #ff5f63;
}

.status-panel.purple strong {
  color: #7c3aed;
}

.status-panel.gray strong {
  color: #748091;
}

.status-panel p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.confidence,
.confidence-bar,
.drawer-actions,
.route-menu {
  grid-column: 1 / -1;
}

.confidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 13px;
}

.confidence strong {
  color: #d99013;
  font-size: 22px;
}

.confidence-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8e1;
}

.confidence-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d99013;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px 0 0;
}

.drawer-actions button {
  min-height: 44px;
  border-radius: 12px;
  color: #42514b;
  font-size: 13px;
  font-weight: 600;
}

.drawer-action-primary {
  border-color: #19b866;
  background: #20c66d;
  color: #fff;
}

.drawer-action-route,
.drawer-action-share {
  border-color: #a8ecc5;
  background: #effdf5;
  color: #16a34a;
}

.drawer-action-muted {
  border-color: #dde6e1;
  background: #f8fafc;
  color: #526174;
}

.route-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  border: 1px solid #e8dce0;
  border-radius: 14px;
  padding: 8px;
  background: #fff;
}

.route-menu[hidden] {
  display: none;
}

.route-menu-title {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: #64748b;
  font-size: 11px;
}

.route-link {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid #edf1f4;
  border-radius: 10px;
  padding: 5px 7px;
  background: #fbfcfd;
  color: #253044;
  text-decoration: none;
}

.route-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.route-logo svg {
  display: block;
  width: 24px;
  height: 24px;
}

.route-link strong,
.status-panel .route-link strong {
  overflow: hidden;
  color: #253044;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fuel-statuses {
  margin: 16px 0;
}

.quick-report-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  border: 1px solid #f1d7de;
  border-radius: 18px;
  padding: 12px;
  background: #fffafb;
}

.quick-report-panel h3 {
  margin: 0;
  font-size: 17px;
}

.quick-fuels,
.quick-status-grid {
  display: grid;
  gap: 8px;
}

.quick-fuels {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-fuels button {
  min-height: 38px;
  border-radius: 999px;
  border-color: #e7edf2;
  background: #fff;
  color: #526174;
  font-size: 13px;
  font-weight: 700;
}

.quick-fuels button.is-active {
  border-color: #e11d48;
  background: #fff1f2;
  color: #e11d48;
  box-shadow: inset 0 0 0 1px #e11d48;
}

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

.quick-status-grid button {
  min-height: 44px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.quick-status-grid .green {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #15803d;
}

.quick-status-grid .yellow {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.quick-status-grid .red {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.quick-price {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
}

.quick-price input,
.report-form input {
  min-height: 42px;
  border: 1px solid #d9e2dd;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}

.fuel-row,
.history-row {
  border-radius: 14px;
  background: #fff;
}

.drawer h3 {
  margin: 18px 0 10px;
  color: #172033;
  font-size: 22px;
  line-height: 1.1;
}

.report-form {
  border-top: 1px solid #edf1f4;
  padding-top: 16px;
}

.report-form button {
  border-radius: 14px;
  background: #e11d48;
}

.report-form label span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .app-panel {
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    width: auto;
    max-height: 74vh;
    border-radius: 22px 22px 0 0;
  }

  .map-mode {
    max-height: 278px;
  }

  .bottom-nav {
    display: grid;
  }

  .drawer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    width: auto;
    max-height: 82vh;
    border-radius: 22px 22px 0 0;
    padding-bottom: 86px;
  }
}

@media (max-width: 760px) {
  .app-panel {
    max-height: 76vh;
    border-right: 0;
    border-left: 0;
  }

  .panel-brand {
    padding: 14px 14px 10px;
  }

  .driver-note,
  .app-panel .search-row,
  .quick-actions,
  .filters-box {
    margin-right: 12px;
    margin-left: 12px;
  }

  .brand.in-panel {
    font-size: 19px;
  }

  .city-chip {
    max-width: 150px;
  }

  .station-card {
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    gap: 10px;
    min-height: 96px;
    border-radius: 18px;
    padding: 12px;
  }

  .station-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    font-size: 21px;
  }

  .drawer-head {
    grid-template-columns: 48px minmax(0, 1fr) 40px 34px;
    gap: 10px;
  }

  .status-panel {
    padding: 16px;
  }
}

/* White-red visual pass */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff5f7;
  --text: #172033;
  --muted: #667085;
  --line: #eadde1;
  --green: #13b86a;
  --yellow: #f59e0b;
  --red: #e11d48;
  --blue: #e11d48;
  --purple: #be123c;
  --gray: #64748b;
  --focus: #e11d48;
  --petrol: #e11d48;
  --amber-soft: #fff7ed;
  --mint-soft: #f0fdf4;
  --sky-soft: #fff1f2;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body,
.app-shell,
main {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  background: #fff;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

body *,
.maplibregl-map,
.maplibregl-ctrl {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

strong,
button,
.brand,
.filter-title,
.chip,
.station-topline strong,
.station-logo,
.status-pill,
.list-heading strong,
.panel-title,
.bottom-tab,
.drawer-head h2,
.status-panel strong,
.drawer h3,
.badge-card strong,
.suggest-card strong {
  font-weight: 600;
}

.workspace {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.map-panel,
.map-stage {
  background: #fff7f7;
}

.app-panel {
  border-color: rgba(244, 214, 221, 0.96);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(136, 19, 55, 0.18);
}

.panel-brand {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 247, 0.88));
}

.brand.in-panel .brand-mark {
  background: #172033;
  box-shadow: inset 0 0 0 3px #e11d48;
  color: #fff;
}

.brand-green,
.city-chip::before {
  color: #e11d48;
}

.city-chip,
.driver-note,
.filters-box,
.quick-actions button,
.list-heading button,
.map-style-switch button,
.station-card,
.badge-card,
.suggest-card,
.bottom-nav,
.drawer {
  border-color: #f1d7de;
}

.driver-note {
  background: #fff8f9;
  color: #667085;
}

.app-panel input,
.app-panel select,
.app-panel textarea {
  border-color: #efd8de;
}

.app-panel #nearby-button,
#smart-pick,
.style-choice.is-active {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.chip.is-active,
.tab.is-active {
  border-color: #e11d48;
  background: #e11d48;
  color: #fff;
}

.station-card {
  box-shadow: 0 10px 26px rgba(136, 19, 55, 0.08);
}

.station-card.is-selected {
  border-color: #fda4af;
  box-shadow: inset 4px 0 0 #e11d48, 0 12px 30px rgba(225, 29, 72, 0.13);
}

.station-logo {
  border-color: color-mix(in srgb, var(--marker-color), #fff 60%);
  background: color-mix(in srgb, var(--marker-color), #fff 88%);
  color: #172033;
}

.station-logo.has-logo {
  background: #fff;
}

.status-pill {
  font-size: 11px;
  letter-spacing: 0;
}

.status-pill.green {
  background: #dcfce7;
  color: #13b86a;
}

.status-pill.yellow {
  background: #fef3c7;
  color: #d97706;
}

.status-pill.red,
.status-pill.purple {
  background: #ffe4e6;
  color: #e11d48;
}

.status-pill.gray {
  background: #eef2f7;
  color: #64748b;
}

.fav-dot.is-active,
.favorite-toggle.is-active {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.suggest-card span {
  background: #fff1f2;
  color: #e11d48;
}

.bottom-tab {
  color: #7b8794;
}

.bottom-tab.is-active {
  color: #172033;
  box-shadow: inset 0 0 0 2px #e11d48;
}

.drawer {
  box-shadow: 0 24px 70px rgba(136, 19, 55, 0.18);
}

.status-panel {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4, #fff);
}

.status-panel.yellow {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb, #fff);
}

.status-panel.red,
.status-panel.purple {
  border-color: #fecdd3;
  background: linear-gradient(135deg, #fff1f2, #fff);
}

.status-panel.gray {
  border-color: #d9e1ea;
  background: linear-gradient(135deg, #f8fafc, #fff);
}

.status-icon {
  background: #fff1f2;
  color: #e11d48;
}

.status-panel strong {
  color: #13b86a;
  font-size: 23px;
}

.status-panel.yellow strong,
.confidence strong {
  color: #d97706;
}

.status-panel.red strong,
.status-panel.purple strong {
  color: #e11d48;
}

.status-panel.gray strong {
  color: #64748b;
}

.confidence-bar i {
  background: #e11d48;
}

.drawer-action-primary,
.report-form button {
  border-color: #e11d48;
  background: #e11d48;
  color: #fff;
}

.drawer-action-route {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.drawer-action-share {
  border-color: #e2e8f0;
  background: #fff;
  color: #526174;
}

.maplibregl-ctrl-group {
  border: 1px solid #f1d7de;
  box-shadow: 0 10px 28px rgba(136, 19, 55, 0.14);
}

.seo-block {
  display: none;
}

.quick-actions button,
.list-heading button,
.map-style-switch button,
.chip,
.bottom-tab,
.drawer-actions button,
.report-form button,
.partner-form button,
.station-topline strong,
.station-logo,
.panel-title,
.drawer h3 {
  font-weight: 500;
}

.brand,
.list-heading strong,
.status-panel strong,
.badge-card strong {
  font-weight: 600;
}

/* Interaction polish after desktop/mobile QA */
.bottom-nav {
  display: grid;
  right: auto;
  left: 24px;
  bottom: 24px;
  width: min(360px, calc(100% - 48px));
}

.fav-dot {
  border: 0;
  background: transparent;
  color: #98a2b3;
  font-size: 20px;
  line-height: 1;
}

.fav-dot.is-active,
.favorite-toggle.is-active {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.favorite-toggle {
  font-size: 22px;
  line-height: 1;
}

.history-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #f0dfe4;
  padding: 11px 12px;
}

.history-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  box-shadow: inset 0 0 0 2px currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.history-row.green .history-icon {
  background: #dcfce7;
  color: #13b86a;
}

.history-row.yellow .history-icon {
  background: #fef3c7;
  color: #d97706;
}

.history-row.red .history-icon {
  background: #ffe4e6;
  color: #e11d48;
}

.history-row.gray .history-icon {
  background: #eef2f7;
  color: #667085;
}

@media (max-width: 1100px) {
  .bottom-nav {
    right: 18px;
    left: 18px;
    bottom: 18px;
    width: auto;
  }
}

@media (max-width: 760px) {
  .app-panel {
    max-height: 50dvh;
  }

  .map-mode {
    max-height: 50dvh;
  }

  .panel-screen {
    padding-bottom: 78px;
  }
}

@media (max-width: 760px) {
  .drawer {
    max-height: 86dvh;
    padding: 0 12px 78px;
  }

  .drawer-handle {
    margin: 8px auto 6px;
  }

  .drawer-head {
    grid-template-columns: 40px minmax(0, 1fr) 34px 32px;
    gap: 8px;
    margin-right: -12px;
    margin-bottom: 8px;
    margin-left: -12px;
    padding: 8px 12px 10px;
  }

  .drawer-head .station-logo.big {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
  }

  .drawer-head h2 {
    font-size: 16px;
  }

  .drawer-head p {
    font-size: 12px;
  }

  .favorite-toggle,
  .drawer-close {
    width: 32px;
    min-height: 32px;
    font-size: 18px;
  }

  .status-panel {
    grid-template-columns: 36px 1fr;
    gap: 7px 9px;
    border-radius: 16px;
    padding: 10px;
  }

  .status-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 17px;
  }

  .status-panel strong {
    font-size: 17px;
    line-height: 1.1;
  }

  .status-panel p {
    margin-top: 3px;
    font-size: 12px;
  }

  .confidence,
  .confidence-bar {
    display: none;
  }

  .drawer-actions {
    gap: 6px;
    margin-top: 0;
  }

  .drawer-actions button {
    min-height: 34px;
    border-radius: 10px;
    padding: 5px 7px;
    font-size: 12px;
  }

  .route-menu {
    margin-top: 6px;
  }

  .quick-report-panel {
    gap: 8px;
    margin: 8px 0 10px;
    border-radius: 16px;
    padding: 10px;
  }

  .quick-report-panel h3 {
    font-size: 15px;
  }

  .quick-fuels,
  .quick-status-grid {
    gap: 6px;
  }

  .quick-fuels button {
    min-height: 34px;
    font-size: 12px;
  }

  .quick-status-grid button {
    min-height: 38px;
    border-radius: 12px;
    font-size: 13px;
  }

  .quick-price input,
  .report-form input,
  .report-form select,
  .report-form textarea {
    min-height: 40px;
    font-size: 16px;
  }

  .fuel-statuses,
  .history-list,
  .report-form {
    gap: 7px;
  }

  .fuel-statuses {
    margin: 8px 0;
  }

  .fuel-row,
  .history-row {
    grid-template-columns: 58px 1fr;
    gap: 8px;
    border-radius: 12px;
    padding: 9px;
  }

  .fuel-row p,
  .history-row p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
  }

  .drawer h3 {
    margin: 12px 0 7px;
    font-size: 17px;
  }

  .report-form {
    margin-top: 12px;
    padding-top: 12px;
  }
}
