:root {
  --bg: #edf4ee;
  --panel: rgba(255, 255, 255, 0.92);
  --header-red: #c52131;
  --header-red-strong: #a81826;
  --ink: #143127;
  --muted: #5d726a;
  --accent: #205f4b;
  --accent-strong: #17493a;
  --line-free: rgba(255, 255, 255, 0.1);
  --line-free-outline: #d98a2b;
  --line-reserved: #f4e7a1;
  --line-done: #8fcf9e;
  --border: rgba(20, 49, 39, 0.12);
  --shadow: 0 20px 50px rgba(27, 57, 43, 0.14);
  --danger: #c96f6f;
  --danger-strong: #b55454;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(58, 130, 99, 0.18), transparent 32%),
    linear-gradient(180deg, #f5fbf7 0%, #e8f1ea 100%);
}

@keyframes ownStreetPulse {
  0%, 100% {
    stroke-opacity: 0.68;
  }
  50% {
    stroke-opacity: 1;
  }
}

.own-street-outline {
  animation: ownStreetPulse 1.8s ease-in-out infinite;
}

.own-street-outline-reserved {
  filter: drop-shadow(0 0 1px rgba(200, 168, 60, 0.45));
}

.own-street-outline-done {
  filter: drop-shadow(0 0 1px rgba(79, 153, 100, 0.42));
}

.streetHoverTooltip {
  border: 0;
  border-radius: 12px;
  background: rgba(20, 49, 39, 0.92);
  color: #fffdf8;
  box-shadow: 0 10px 24px rgba(20, 49, 39, 0.2);
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.streetHoverTooltip::before {
  border-top-color: rgba(20, 49, 39, 0.92);
}

.appShell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

@supports (min-height: 100dvh) {
  .appShell {
    min-height: 100dvh;
  }
}

.topBar,
.bottomBar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  z-index: 500;
}

.topBar {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--header-red) 0%, var(--header-red-strong) 100%);
  color: #fff8f7;
}

.bottomBar {
  position: static;
  bottom: auto;
}

.topBarMain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.topBarBrand {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: rgba(255, 241, 238, 0.82);
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.currentActionName {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.78em;
  font-weight: 500;
  color: rgba(255, 241, 238, 0.88);
}

.actionCountdown {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 247, 219, 0.96);
}

h2 {
  font-size: 1.15rem;
}

.nameField,
.actionForm,
.actionSelect {
  display: grid;
  gap: 0.35rem;
}

.nameField span,
.actionForm label,
.actionSelect label {
  font-size: 0.9rem;
  color: var(--muted);
}

.nameField {
  position: relative;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 0.45rem 0.8rem;
  min-width: min(460px, 100%);
  padding: 1.55rem 0.85rem 0.7rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 241, 184, 0.98), rgba(255, 251, 231, 0.96));
  border: 1px solid rgba(217, 184, 87, 0.5);
  box-shadow: 0 12px 30px rgba(94, 18, 24, 0.2);
}

.nameFieldStepArrow {
  position: absolute;
  top: calc(-2.75rem + 2px);
  right: -0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11.8rem;
  height: 5.6rem;
  padding: 0.3rem 1.2rem 1.1rem 3.9rem;
  background: url("/name-step-arrow-small.png") center / contain no-repeat;
  color: #fffef9;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.02;
  text-align: center;
  text-shadow:
    0 0 10px rgba(255, 249, 224, 0.95),
    0 0 18px rgba(255, 220, 150, 0.65),
    0 1px 0 rgba(110, 23, 7, 0.08);
  transform: none;
  filter: drop-shadow(0 10px 16px rgba(94, 18, 24, 0.16));
  z-index: 2;
  pointer-events: none;
}

.nameFieldStepArrow::after {
  content: none;
}

.nameField span {
  font-weight: 700;
  color: #6d5510;
  white-space: nowrap;
}

.nameField .nameFieldStepArrow,
.nameField.is-missing .nameFieldStepArrow {
  color: #fffef9;
}

.nameFieldHint {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #7b6830;
  display: none;
}

.nameSuggestions {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.35rem;
  padding-top: 0.1rem;
}

.nameSuggestionButton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1px solid rgba(201, 165, 55, 0.28);
  box-shadow: none;
}

.nameSuggestionButton:hover {
  background: rgba(255, 250, 231, 0.98);
  transform: none;
}

.nameSuggestionName {
  font-weight: 600;
}

.nameSuggestionId {
  font-size: 0.78rem;
  color: var(--muted);
}

.nameField input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(201, 165, 55, 0.42);
  background: rgba(255, 255, 255, 0.98);
}

.nameField input:focus {
  outline: none;
  border-color: rgba(184, 141, 21, 0.8);
  box-shadow: 0 0 0 4px rgba(233, 207, 117, 0.28);
}

.nameField.is-missing {
  border-color: rgba(193, 89, 89, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 216, 216, 0.2), 0 14px 32px rgba(94, 18, 24, 0.22);
}

.nameField.is-missing .nameFieldHint,
.nameField.is-missing span {
  color: #a13535;
}

.nameField.is-missing .nameFieldHint {
  display: block;
}

.nameField.is-missing input {
  border-color: rgba(193, 89, 89, 0.78);
  background: rgba(255, 250, 250, 0.98);
}

input,
select,
button {
  font: inherit;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.8rem 0.95rem;
}

input,
select {
  background: rgba(255, 255, 255, 0.95);
  min-width: 220px;
}

button {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.mainLayout {
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 1rem;
  align-items: start;
}

.mapColumn {
  min-width: 0;
}

.helpBanner {
  position: relative;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: var(--accent-strong);
  line-height: 1.5;
}

.helpBanner p {
  margin: 0;
}

.helpBannerContent {
  display: block;
}

.helpBannerClose {
  position: absolute;
  top: -0.55rem;
  left: -0.55rem;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(32, 95, 75, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
  font-size: 1.2rem;
  line-height: 1;
  z-index: 2;
}

.helpBannerClose:hover {
  background: rgba(245, 250, 246, 0.98);
}

.helpBannerCollapsed {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-strong);
  border: 1px solid rgba(32, 95, 75, 0.14);
}

.helpBannerCollapsed:hover {
  background: rgba(245, 250, 246, 0.98);
}

.helpBanner.is-collapsed {
  padding: 0.75rem 0.85rem;
}

.helpBanner.is-collapsed .helpBannerContent,
.helpBanner.is-collapsed .helpBannerClose {
  display: none;
}

.helpBannerSteps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.helpBannerStep {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 250, 246, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(32, 95, 75, 0.1);
}

.helpBannerStepIcon {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  color: #205f4b;
  background: rgba(32, 95, 75, 0.08);
  box-shadow: inset 0 0 0 1px rgba(32, 95, 75, 0.08);
}

.helpBannerStepIcon svg {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
}

.helpBannerStepBody {
  display: grid;
  gap: 0.2rem;
}

.helpBannerStepTitle {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.helpBannerStepBody p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.92rem;
}

.mapPanel {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: min(72vh, 52rem);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

#map {
  height: 100%;
  width: 100%;
}

.summaryPanel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.9rem;
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  z-index: 450;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.mapRefreshInfo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(93, 114, 106, 0.92);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  z-index: 450;
  box-shadow: 0 8px 20px rgba(20, 49, 39, 0.08);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(20, 49, 39, 0.08);
}

.free {
  background: var(--line-free);
  border-color: var(--line-free-outline);
}

.reserved {
  background: var(--line-reserved);
}

.done {
  background: var(--line-done);
}

.summaryPanel {
  margin-top: 0;
  min-height: calc(100vh - 320px);
  overflow: auto;
}

.helpDock {
  position: relative;
  min-width: 0;
  flex: 0 0 auto;
}

.helpDockHeader {
  z-index: 650;
  margin-left: auto;
}

.helpTrigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: auto;
  min-width: 8.5rem;
  background: rgba(32, 95, 75, 0.08);
  color: var(--accent-strong);
  border: 1px solid rgba(32, 95, 75, 0.16);
}

.topBar .helpTrigger {
  background: rgba(255, 255, 255, 0.16);
  color: #fff8f7;
  border-color: rgba(255, 255, 255, 0.22);
}

.topBar .helpIcon {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--header-red-strong);
}

.helpLabel {
  font-weight: 600;
}

.helpIcon {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(32, 95, 75, 0.12);
  font-weight: 700;
  line-height: 1;
}

.helpPopover {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  padding: 1rem 1rem 0.95rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(20, 49, 39, 0.1);
  box-shadow: 0 22px 40px rgba(27, 57, 43, 0.18);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px));
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  overflow: auto;
  z-index: 900;
}

.helpPopoverClose {
  position: sticky;
  top: 0;
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.15rem -0.15rem 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 49, 39, 0.12);
  background: rgba(244, 248, 245, 0.96);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 49, 39, 0.08);
  z-index: 1;
}

.helpPopoverClose:hover,
.helpPopoverClose:focus-visible {
  background: rgba(235, 242, 237, 0.98);
  color: var(--ink);
}

.helpDock.is-open .helpPopover {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.helpPopoverTitle {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.helpCopy {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  line-height: 1.45;
}

.helpCopy p {
  margin: 0;
  font-size: 0.94rem;
}

.helpSteps {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.helpStep {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5faf6, #fbfdfb);
  border: 1px solid #d9e3dc;
}

.helpStepIcon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 16px;
  color: #205f4b;
  background: rgba(32, 95, 75, 0.1);
  box-shadow: inset 0 0 0 1px rgba(32, 95, 75, 0.08);
}

.helpStepIcon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.helpStepBody {
  display: grid;
  gap: 0.25rem;
}

.helpStepTitle {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.helpStepBody p:last-child {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}

.helpExamples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.helpExample {
  margin: 0;
  padding: 0.65rem;
  border-radius: 16px;
  background: #f8fbf8;
  border: 1px solid #d9e3dc;
}

.helpExample svg {
  width: 100%;
  height: auto;
  display: block;
}

.helpExample figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.supportSummary {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.summaryActions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.summaryPanel .nameField {
  min-width: 0;
}

.summaryHeader {
  margin-top: 1rem;
}

.summaryHeader .eyebrow {
  color: rgba(20, 49, 39, 0.55);
}

.leaflet-control-zoom {
  border: 0;
  box-shadow: 0 16px 30px rgba(27, 57, 43, 0.16);
}

.leaflet-control-zoom a {
  width: 2.35rem;
  height: 2.35rem;
  line-height: 2.35rem;
  border: 1px solid rgba(20, 49, 39, 0.08);
  color: var(--ink);
}

.leaflet-touch .leaflet-control-zoom a {
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
}

.summaryActionRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.summaryActionButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
}

.summaryActionButton.secondary {
  background: rgba(32, 95, 75, 0.12);
  color: var(--accent-strong);
  border: 1px solid rgba(32, 95, 75, 0.18);
}

.summaryActionButton.compact {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.buttonIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 2.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.buttonIcon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.supportCard {
  position: relative;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(244, 249, 245, 0.95);
  border: 1px solid rgba(20, 49, 39, 0.08);
}

.supportCard.is-current-supporter {
  background: linear-gradient(135deg, rgba(255, 251, 234, 0.98), rgba(244, 249, 245, 0.98));
  border: 1px solid rgba(201, 165, 55, 0.62);
  box-shadow:
    0 14px 28px rgba(27, 57, 43, 0.12),
    inset 0 0 0 2px rgba(244, 231, 161, 0.72);
}

.supportCard:hover .supportPopover,
.supportCard:focus-within .supportPopover,
.supportCard.is-open .supportPopover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.supportTrigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.supportName {
  font-size: 1rem;
  font-weight: 600;
}

.supportCard.is-current-supporter .supportName {
  color: #6d5510;
}

.supportCard.is-current-supporter .supportTrigger::after {
  content: 'Aktiv';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgba(201, 165, 55, 0.16);
  color: #8a6b13;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.supportBadges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.supportBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 0.84rem;
}

.supportCount {
  font-weight: 600;
  color: var(--ink);
}

.supportPopover {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: auto;
  right: 0;
  width: 75%;
  z-index: 30;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(20, 49, 39, 0.12);
  box-shadow: 0 18px 32px rgba(27, 57, 43, 0.16);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.supportPopoverTitle {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.supportGroup + .supportGroup {
  margin-top: 0.75rem;
}

.supportGroupTitle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.supportList {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
}

.supportList li + li {
  margin-top: 0.2rem;
}

.emptySummary {
  color: var(--muted);
  line-height: 1.5;
}

.bottomBar {
  position: static;
  bottom: auto;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

.actionForm {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.actionForm label {
  grid-column: 1 / -1;
}

.fieldNote {
  grid-column: 1 / -1;
  margin: -0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.message {
  min-width: 220px;
  color: var(--muted);
  font-size: 0.95rem;
  padding-top: 0.25rem;
}

.progressSummary {
  flex: 1 1 760px;
  display: grid;
  grid-template-columns: minmax(560px, 1fr);
  gap: 0.9rem;
  align-items: start;
  justify-content: center;
}

.progressCard {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 49, 39, 0.08);
  width: min(100%, 980px);
  margin: 0 auto;
}

.progressCardLayout {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(12rem, 1fr);
  column-gap: 2.75rem;
  row-gap: 1rem;
  align-items: start;
}

.progressOpenStreets {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.progressOpenStreetsTitle {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.progressOpenStreetsList {
  margin: 0;
  padding-left: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
  max-height: 12.5rem;
  overflow: auto;
  list-style-position: inside;
}

.progressOpenStreetsList li {
  width: 100%;
}

.progressOpenStreetsList li + li {
  margin-top: 0.16rem;
}

.progressOpenStreetsEmpty {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}

.progressChart {
  min-width: 0;
  justify-self: end;
  width: 100%;
  max-width: 12rem;
}

.progressTitle,
.progressSubtitle,
.progressMeta {
  margin: 0;
}

.progressTitle {
  font-size: 0.96rem;
  font-weight: 700;
}

.progressDonut {
  width: 8.6rem;
  height: 8.6rem;
  margin: 0.75rem auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.progressDonutInner {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink);
  padding: 0.5rem;
}

.progressDonutValue {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.progressDonutSubvalue {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.64rem;
  line-height: 1.1;
  color: var(--muted);
}

.progressSubtitle {
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.progressLegend {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.progressLegendItem {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.progressLegendSwatch {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  display: inline-block;
}

.progressMeta {
  grid-column: 1 / -1;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.emptyState {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  background: rgba(237, 244, 238, 0.78);
  z-index: 420;
}

.hidden {
  display: none;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 0.35rem;
}

.popupActionRow {
  margin-top: 0.75rem;
}

.popupButton {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.popupButton.secondary {
  margin-top: 0.55rem;
  background: rgba(32, 95, 75, 0.12);
  color: var(--accent-strong);
  border: 1px solid rgba(32, 95, 75, 0.18);
}

.popupButton.danger {
  background: rgba(201, 111, 111, 0.16);
  color: var(--danger-strong);
  border: 1px solid rgba(201, 111, 111, 0.22);
}

.popupHint {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.optionsPanel {
  min-width: min(100%, 460px);
  margin-right: auto;
}

.optionsGrid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  margin-top: 0.85rem;
}

.optionsColumn {
  min-width: 0;
  display: grid;
  gap: 0.95rem;
}

.optionsGroup {
  padding: 0.9rem 1rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(20, 49, 39, 0.08);
}

.optionsGroupHeader {
  margin-bottom: 0.25rem;
}

.optionsGroupHeader label {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.optionsMetaCount {
  font-weight: 600;
  color: var(--muted);
}

.optionsPanel summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  user-select: none;
}

.optionsPanel summary::-webkit-details-marker {
  display: none;
}

.optionsIcon {
  display: inline-grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  border: 1px solid rgba(20, 49, 39, 0.12);
  transition: transform 0.15s ease;
}

.optionsPanel[open] .optionsIcon {
  transform: rotate(45deg);
}

.optionsPanel .actionForm {
  margin-top: 0.75rem;
}

.notificationForm {
  margin-top: 0.75rem;
}

.secondaryActionButton {
  width: 100%;
  margin-top: 0.75rem;
  background: rgba(32, 95, 75, 0.12);
  color: var(--accent-strong);
  border: 1px solid rgba(32, 95, 75, 0.18);
}

.supporterManagerHeader label {
  font-size: 0.9rem;
  color: var(--muted);
}

.supporterOptionsList {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
  max-height: 39rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.supporterOptionRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 49, 39, 0.08);
}

.supporterOptionRow.is-active {
  border-color: rgba(32, 95, 75, 0.28);
  box-shadow: inset 0 0 0 1px rgba(32, 95, 75, 0.12);
}

.supporterOptionMeta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.supporterOptionId {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.supporterOptionName {
  min-width: 0;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.supporterEditButton {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border-radius: 12px;
}

.supporterEditButton svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.supporterOptionsEmpty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footerNote {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.footerNoteImage {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  display: block;
}

@media (max-width: 860px) {
  .mainLayout {
    grid-template-columns: 1fr;
  }

  .topBar,
  .bottomBar {
    align-items: stretch;
    flex-direction: column;
  }

  .progressSummary {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .progressCardLayout {
    grid-template-columns: 1fr;
  }

  .footerNote {
    align-self: flex-start;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }

  .topBar {
    padding: 0.8rem 1rem;
    transition: padding 0.18s ease, transform 0.18s ease;
  }

  .topBarMain {
    flex-direction: column;
    align-items: stretch;
    transition: gap 0.18s ease;
  }

  .nameField {
    grid-template-columns: 1fr;
    min-width: 0;
    transition:
      max-height 0.18s ease,
      opacity 0.16s ease,
      transform 0.18s ease,
      margin 0.18s ease,
      padding 0.18s ease;
    max-height: 18rem;
    opacity: 1;
    overflow: hidden;
  }

  .nameFieldStepArrow {
    top: -1.95rem;
    right: -0.35rem;
    width: 9.2rem;
    height: 4.4rem;
    padding: 0.2rem 0.8rem 0.85rem 3rem;
    font-size: 0.74rem;
  }

  .nameField input,
  .actionSelect select,
  .actionForm input,
  .actionForm button {
    width: 100%;
  }

  .optionsGrid {
    grid-template-columns: 1fr;
  }

  .actionForm {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .topBar.is-compact {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .topBar.is-compact .eyebrow {
    display: none;
  }

  .topBar.is-compact .topBarMain {
    gap: 0.45rem;
  }

  .mapPanel {
    aspect-ratio: auto;
    height: min(58dvh, 34rem);
    width: calc(100% - 2.4rem);
    margin-left: 1.2rem;
    margin-right: 1.2rem;
  }

  .helpBannerSteps {
    grid-template-columns: 1fr;
  }

  .helpPopover {
    width: min(100vw - 1rem, 720px);
    max-height: calc(100dvh - 1.5rem);
    padding: 0.95rem 0.95rem 0.9rem;
  }

  .helpExamples {
    grid-template-columns: 1fr;
  }

  .helpStep {
    grid-template-columns: 1fr;
  }

  .helpStepIcon {
    width: 2.4rem;
    height: 2.4rem;
  }

  .legend {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .summaryPanel {
    min-height: 240px;
  }
}
