:root {
  color-scheme: light;
  --green: #3e8a55;
  --green-2: #55c568;
  --yellow: #d6a112;
  --red: #e2544d;
  --ink: #111827;
  --muted: #667085;
  --line: #e7ebef;
  --panel: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #e8edf2;
}

button {
  font: inherit;
}

.app-shell,
.map {
  width: 100vw;
  height: 100dvh;
}

.app-shell {
  position: relative;
  overflow: hidden;
}

.map {
  position: absolute;
  inset: 0;
  background: #eef2f4;
}

.leaflet-container {
  background: #eef2f4;
  font-family: inherit;
}

.leaflet-control-attribution {
  border-radius: 8px 0 0 0;
  color: #718096;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(8px);
  font-size: 10px;
}

.leaflet-attribution-flag {
  display: none !important;
}

.navbar {
  pointer-events: none;
  position: absolute;
  z-index: 800;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(76px + env(safe-area-inset-top));
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.pill,
.icon-btn,
.filter-chip,
.tab,
.fab {
  pointer-events: auto;
  border: 0;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.brand:active,
.pill:active,
.icon-btn:active,
.filter-chip:active,
.tab:active,
.fab:active {
  transform: scale(0.97);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  min-width: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #1b2b20;
  box-shadow: none;
  font-size: 22px;
  font-weight: 850;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(145deg, #3e9557, #61b36a);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 22px;
  border-radius: 10px 10px 12px 12px;
  left: 11px;
  top: 8px;
  background: white;
}

.top-actions {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.pill,
.icon-btn {
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.11);
  font-weight: 800;
}

.pill {
  padding: 0 15px;
}

.pill.green {
  background: var(--green);
  color: white;
}

.icon-btn {
  width: 48px;
  font-size: 20px;
}

.top-actions .icon-btn {
  width: 48px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
}

.icon-btn svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-launch {
  position: absolute;
  z-index: 790;
  left: 12px;
  top: max(56px, calc(env(safe-area-inset-top) + 56px));
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #435047;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(20, 38, 26, 0.1);
  cursor: pointer;
  font-weight: 800;
}

.filter-launch.active {
  color: white;
  background: var(--green);
}

.fuel-filter {
  position: absolute;
  z-index: 790;
  top: max(88px, calc(env(safe-area-inset-top) + 88px));
  left: 20px;
  right: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 34px 10px 0;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
}

.fuel-filter::-webkit-scrollbar {
  display: none;
}

.fuel-filter-chip {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(223, 231, 225, 0.9);
  border-radius: 999px;
  padding: 0 12px;
  color: #354238;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(20, 38, 26, 0.09);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.fuel-filter-chip.active {
  border-color: transparent;
  color: white;
  background: var(--green);
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #435047;
  background: #f0f3f1;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.active {
  color: white;
  background: var(--green);
}

.filter-chip.status-limited.active {
  background: var(--yellow);
}

.filter-chip.status-empty.active {
  background: var(--red);
}

.filter-chip.status-unknown.active {
  background: #6f7b74;
}

.filter-group-title {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.filter-summary {
  margin-top: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  color: #35543f;
  background: #eaf6ee;
  font-size: 13px;
  line-height: 1.35;
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 14px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.confirm-actions .done-btn,
.confirm-actions .clear-btn {
  margin-top: 0;
  min-height: 54px;
  border-radius: 16px;
  font-size: 17px;
}

.confirm-actions .confirm-no {
  color: var(--red);
  background: #fff0f0;
}

.confirm-actions .confirm-yes {
  background: var(--green);
}

.clear-btn {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: #314038;
  background: #eef2ef;
  cursor: pointer;
  font-weight: 850;
}

.side-panel {
  position: absolute;
  z-index: 780;
  top: 118px;
  left: 12px;
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100dvh - 204px);
  overflow: auto;
  border-radius: 8px;
  padding: 15px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0;
}

.trust-note {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px;
  color: #35543f;
  background: #eaf6ee;
  font-size: 13px;
  line-height: 1.35;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.available {
  background: var(--green-2);
}

.limited {
  background: var(--yellow);
}

.empty {
  background: var(--red);
}

.unknown {
  background: #9aa49d;
}

.station-list {
  display: grid;
  gap: 8px;
}

.station-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
  text-align: left;
  cursor: pointer;
}

.station-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.station-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.status-available {
  background: var(--green-2);
}

.status-limited {
  background: var(--yellow);
}

.status-empty {
  background: var(--red);
}

.status-unknown {
  background: #8c9690;
}

.fab {
  position: absolute;
  z-index: 790;
  right: 18px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  min-height: 56px;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--green);
  color: white;
  box-shadow: 0 12px 34px rgba(22, 128, 71, 0.38);
  font-size: 17px;
  font-weight: 850;
}

.map-controls {
  position: absolute;
  z-index: 790;
  right: 16px;
  top: max(144px, calc(env(safe-area-inset-top) + 144px));
  display: grid;
  gap: 10px;
}

.zoom-box {
  display: grid;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(20, 38, 26, 0.16);
}

.zoom-box button,
.geo-btn {
  width: 44px;
  height: 44px;
  border: 0;
  cursor: pointer;
  color: #28322b;
  background: transparent;
  font-size: 24px;
  font-weight: 500;
}

.zoom-box button + button {
  border-top: 1px solid #d9dedb;
}

.geo-btn {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(20, 38, 26, 0.16);
  font-size: 19px;
  transform: rotate(-45deg);
}

.bottom-fab-row {
  position: absolute;
  z-index: 790;
  left: 20px;
  right: 20px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  pointer-events: none;
}

.bottom-rounds {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.round-fab {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.15);
  cursor: pointer;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.round-fab:active {
  transform: scale(0.97);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(22, 128, 71, 0.18);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  width: 34px;
  height: 34px;
  margin-left: 3px;
  margin-top: 3px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #168047;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
  font: 800 13px/28px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sheet {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 0;
  width: min(430px, 100vw);
  max-height: min(80dvh, 700px);
  overflow: auto;
  transform: translateX(-50%);
  border-radius: 30px 30px 0 0;
  padding: 16px 20px calc(22px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -22px 54px rgba(15, 23, 42, 0.16), 0 -2px 12px rgba(15, 23, 42, 0.05);
  scrollbar-width: none;
}

.sheet::-webkit-scrollbar {
  display: none;
}

.sheet h2 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.sheet-grid {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.sheet-handle {
  width: 62px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
}

.station-header,
.simple-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding-right: 44px;
}

.station-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 0;
  border-radius: 18px;
  color: #172033;
  background: #f6e8e8;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title {
  margin: 18px 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fuel-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.fuel-report-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.fuel-report-row {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 106px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 14px;
  color: #667085;
  background: white;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.fuel-report-row > i {
  align-self: stretch;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
}

.fuel-report-main {
  min-width: 0;
}

.fuel-report-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.fuel-report-title strong {
  color: #111827;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.fuel-report-title span {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.fuel-report-meta {
  margin-top: 8px;
  color: #8b93a1;
  font-size: 14px;
  font-weight: 800;
}

.price-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 212px;
  min-height: 38px;
  margin-top: 10px;
  border: 1px dashed #cfd5df;
  border-radius: 14px;
  padding: 0 6px 0 10px;
  color: #8b93a1;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 900;
}

.price-field input {
  width: 88px;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.price-field input::placeholder {
  color: #9ca3af;
}

.price-field button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--green);
  cursor: pointer;
  font-size: 16px;
  font-weight: 950;
}

.fuel-row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.fuel-row-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-size: 17px;
  font-weight: 950;
}

.row-actions-title {
  grid-column: 1 / -1;
  color: #8b93a1;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

.fuel-row-actions .row-yes {
  color: var(--green);
}

.fuel-row-actions .row-no {
  color: var(--red);
}

.fuel-card,
.fuel-status-card {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 72px;
  border: 0;
  border-radius: 18px;
  padding: 14px;
  color: #18221c;
  background: #f4f6f9;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: left;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.fuel-card p {
  margin: 0 0 3px;
  color: currentColor;
  opacity: 0.7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fuel-card strong {
  display: block;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.fuel-card-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  font-size: 11px;
  font-weight: 900;
}

.fuel-card-status span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: white;
  background: #94a3b8;
}

.fuel-card-status b {
  white-space: nowrap;
  font-size: 13px;
}

.tone-available {
  color: #27633b;
  background: #e9f8ee;
}

.tone-empty {
  color: #832827;
  background: #fff0f0;
}

.tone-limited {
  color: #78350f;
  background: rgba(245, 158, 11, 0.15);
}

.tone-unknown {
  color: #667085;
  background: #f3f6fa;
}

.tone-available .fuel-card-status span {
  background: var(--green-2);
}

.tone-empty .fuel-card-status span {
  background: var(--red);
}

.tone-limited .fuel-card-status span {
  background: var(--yellow);
}

.fuel-status-card b {
  color: #657068;
  font-size: 12px;
  white-space: nowrap;
}

.fuel-status-card.available,
.fuel-status-card.active.available {
  border-color: rgba(33, 163, 91, 0.55);
}

.fuel-status-card.limited,
.fuel-status-card.active.limited {
  border-color: rgba(214, 161, 18, 0.65);
}

.fuel-status-card.empty,
.fuel-status-card.active.empty {
  border-color: rgba(211, 75, 75, 0.58);
}

.fuel-status-card.active {
  box-shadow: 0 0 0 3px rgba(22, 128, 71, 0.12);
}

.selected-fuel {
  color: #657068;
  font-weight: 850;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 16px;
}

.report-choice {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 2px solid #d9dedb;
  border-radius: 14px;
  padding: 10px 12px;
  color: #202a24;
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  text-align: left;
}

.report-choice span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  font-size: 22px;
}

.report-choice.available {
  border-color: var(--green);
}

.report-choice.available span {
  color: #62ff55;
}

.report-choice.limited {
  border-color: #9f951f;
}

.report-choice.limited span {
  color: #e3d12c;
}

.report-choice.queue {
  border-color: #a5682a;
}

.report-choice.queue span {
  color: #f59e0b;
}

.report-choice.empty {
  border-color: #aa3152;
}

.report-choice.empty span {
  color: var(--red);
}

.report-choice:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fuel-row {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid #e1e7e3;
  border-radius: 16px;
  padding: 10px;
  background: #fff;
}

.fuel-row i {
  align-self: stretch;
  border-radius: 99px;
}

.row-title {
  color: #152019;
  font-size: 19px;
  font-weight: 850;
}

.row-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.feedback-box {
  margin: 24px 0 20px;
}

.feedback-box > p {
  margin: 0 0 12px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  font-weight: 850;
}

.report-fuel-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 16px;
}

.report-fuel-picker button {
  min-width: 52px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #111827;
  background: rgba(226, 232, 240, 0.82);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.report-fuel-picker button.active {
  color: white;
  background: #111827;
}

.report-actions,
.vote-actions,
.sheet-actions {
  display: flex;
  gap: 7px;
}

.report-actions {
  gap: 12px;
}

.report-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.report-actions .report-yes {
  color: var(--green);
}

.report-actions .report-no {
  color: var(--red);
}

.vote-actions button,
.sheet-actions a,
.sheet-actions button,
.form-actions button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  text-align: center;
  background: #f3f6f8;
  color: #26322a;
  font-weight: 850;
  cursor: pointer;
}

.vote-actions .yes,
.sheet-actions .route,
.form-actions .primary {
  background: #111827;
  color: white;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.vote-actions .no {
  border: 1px solid #e0e4e1;
  background: white;
  color: var(--red);
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.sheet-close {
  position: absolute;
  top: 13px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(226, 232, 240, 0.9);
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.comment {
  border-radius: 8px;
  padding: 10px;
  background: #f5f7f5;
  color: #3f4b43;
  font-size: 13px;
}

.modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(28, 38, 45, 0.42);
  backdrop-filter: blur(1px);
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, 88dvh);
  overflow: auto;
  border-radius: 28px;
  padding: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(10, 16, 13, 0.42);
}

.consent-overlay.hidden {
  display: none;
}

.consent-card {
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.consent-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.consent-card p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.45;
}

.consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.consent-links a {
  color: var(--green);
  font-weight: 800;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  text-align: left;
  background: #f3f6f4;
  cursor: pointer;
}

.switch-row span {
  display: grid;
  gap: 3px;
}

.switch-row small {
  color: var(--muted);
  font-size: 12px;
}

.switch-row i {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--green);
}

.switch-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.done-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: #06b342;
  cursor: pointer;
  font-weight: 850;
}

.field-label {
  display: block;
  margin: 14px 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.text-field {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8faf8;
  font: inherit;
  outline: none;
}

.text-field:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 128, 71, 0.12);
}

.add-hint {
  position: absolute;
  z-index: 860;
  top: max(64px, calc(env(safe-area-inset-top) + 64px));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  color: white;
  background: rgba(22, 27, 24, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  font-size: 14px;
}

.add-hint button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-weight: 800;
}

.close {
  position: sticky;
  float: right;
  top: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef2ef;
  cursor: pointer;
  font-size: 24px;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.doc-links a {
  color: var(--green);
  font-weight: 800;
}

.cookie {
  position: fixed;
  z-index: 1200;
  left: 12px;
  right: 12px;
  bottom: max(72px, calc(env(safe-area-inset-bottom) + 72px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  padding: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.cookie p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.hidden {
  display: none;
}

.marker-pin {
  width: 28px;
  height: 28px;
  border: 3px solid white;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.marker-pin span {
  display: block;
  width: 8px;
  height: 8px;
  margin: 7px;
  border-radius: 50%;
  background: white;
}

.marker-available {
  background: var(--green-2);
}

.marker-limited {
  background: var(--yellow);
}

.marker-empty {
  background: var(--red);
}

.marker-unknown {
  background: #8c9690;
}

@media (max-width: 720px) {
  .side-panel {
    top: max(112px, calc(env(safe-area-inset-top) + 112px));
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-height: none;
    width: calc(100vw - 24px);
    border-radius: 16px;
  }

  .sheet {
    width: 100vw;
    max-height: 78dvh;
    border-radius: 26px 26px 0 0;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .fuel-row {
    grid-template-columns: 5px minmax(0, 1fr) auto;
    padding: 9px;
  }

  .fuel-report-row {
    grid-template-columns: 5px minmax(0, 1fr);
    gap: 10px;
  }

  .fuel-row-actions {
    grid-column: 2;
  }

  .fuel-row-actions button {
    min-width: 0;
  }

  .vote-actions {
    flex-direction: column;
    gap: 6px;
  }

  .vote-actions button {
    min-width: 72px;
    padding: 8px 12px;
  }

  .fuel-status-card {
    min-width: 0;
    font-size: 14px;
  }

  .fuel-card {
    min-height: 66px;
    padding: 11px;
  }

  .fuel-card strong {
    font-size: 19px;
  }

  .fuel-status-card b {
    font-size: 11px;
  }

  .report-choice {
    min-width: 0;
    font-size: 14px;
  }

  h1 {
    font-size: 19px;
  }

  .fab {
    bottom: calc(18px + env(safe-area-inset-bottom));
    min-height: 54px;
    padding: 0 20px;
  }

  .map-controls {
    right: 14px;
    top: max(132px, calc(env(safe-area-inset-top) + 132px));
  }

  .bottom-fab-row {
    left: 14px;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .bottom-rounds {
    gap: 8px;
  }

  .round-fab {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .fuel-filter {
    top: max(86px, calc(env(safe-area-inset-top) + 86px));
    left: 14px;
    padding-bottom: 10px;
  }

  .fuel-filter-chip {
    min-height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .sheet {
    width: 100vw;
    max-height: 86dvh;
    border-radius: 26px 26px 0 0;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 82dvh;
    border-radius: 22px 22px 0 0;
  }

  .cookie {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (min-width: 721px) {
  body {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    background: radial-gradient(circle at 50% 20%, #f6faf8 0, #dce8ef 42%, #c9d8e0 100%);
  }

  .app-shell {
    width: min(430px, 100vw);
    height: min(860px, calc(100dvh - 48px));
    border-radius: 36px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
  }

  .brand {
    max-width: calc(100% - 116px);
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-shell,
  .map {
    max-width: 430px;
  }

  .sheet {
    bottom: max(24px, calc((100dvh - 860px) / 2));
    width: min(430px, 100vw);
  }

  .modal {
    background: rgba(15, 23, 42, 0.28);
  }
}
