@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Noto+Sans+SC:wght@400;500;700&display=swap");

@font-face {
  font-family: "OuyangxunKaishu";
  src: url("../../assets/font/%E6%AD%A3%E6%AC%A7%E9%98%B3%E8%AF%A2%E6%A5%B7%E4%B9%A6%2B%E7%AE%80%E7%B9%81.TTF") format("truetype");
  font-display: swap;
}

:root {
  --bg: #081421;
  --bg-soft: #102131;
  --panel: rgba(12, 26, 40, 0.78);
  --panel-strong: rgba(9, 20, 31, 0.92);
  --line: rgba(185, 215, 229, 0.16);
  --text: #eef4f6;
  --muted: #8ea4ae;
  --accent: #7fe0d2;
  --sand: #e3d2b1;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ouyang: "OuyangxunKaishu", "STKaiti", "KaiTi", "Kaiti SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(35, 76, 96, 0.55), transparent 32%),
    radial-gradient(circle at 78% 14%, rgba(29, 83, 86, 0.24), transparent 28%),
    linear-gradient(180deg, #081421 0%, #0d1f2f 100%);
  font-family: var(--sans);
}

a, button { color: inherit; }
button { font: inherit; }

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,0.12) 0 0.7px, transparent 1px),
    radial-gradient(circle at 74% 63%, rgba(127,224,210,0.12) 0 0.8px, transparent 1.2px),
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,0.015) 6px 7px);
  background-size: 14px 14px, 18px 18px, auto;
}

.masthead,
.hero,
.workspace {
  position: relative;
  z-index: 20;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 4vw;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(227, 210, 177, 0.66);
  color: var(--sand);
  font-family: var(--serif);
  font-size: 1.1rem;
  transform: rotate(-5deg);
}

.brand span:last-child {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.masthead-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.masthead-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.masthead-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(127, 224, 210, 0.24);
  border-radius: 999px;
  background: rgba(127, 224, 210, 0.08);
  color: #eef8f6;
  text-decoration: none;
  font-size: 0.82rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.masthead-link:hover,
.masthead-link:focus-visible {
  background: rgba(127, 224, 210, 0.16);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.7fr);
  gap: 2rem;
  padding: 5rem 4vw 2.5rem;
}

.eyebrow,
.panel-head p,
.card-label,
.legend-wrap p {
  margin: 0 0 0.8rem;
  color: #7db6b0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 48rem;
  margin: 1.4rem 0 0;
  color: #c8d5da;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.9;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 12rem));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-metrics div,
.hero-card,
.map-panel,
.info-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-metrics div {
  padding: 1rem 1rem 1.1rem;
}

.hero-metrics span,
.hero-card span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-metrics strong {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.hero-metrics small {
  color: #afc0c6;
  font-size: 0.82rem;
}

.hero-card {
  align-self: end;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(180deg, rgba(12, 27, 42, 0.92), rgba(9, 20, 31, 0.86));
}

.hero-card strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--sand);
  font-family: var(--serif);
  font-size: 2rem;
}

.hero-card p {
  margin: 0.8rem 0 0;
  color: #c3d1d6;
  line-height: 1.8;
  font-size: 0.95rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.72fr);
  gap: 1.5rem;
  padding: 0 4vw 4rem;
}

.map-panel,
.info-card {
  border-radius: 1.4rem;
}

.map-panel {
  padding: 1.25rem;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
}

.ghost-button {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(127, 224, 210, 0.36);
  border-radius: 999px;
  background: rgba(127, 224, 210, 0.08);
  color: #d9ece8;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: rgba(127, 224, 210, 0.16);
  transform: translateY(-1px);
}

.map-stage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 30% 22%, rgba(90, 158, 154, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(7, 17, 27, 0.92), rgba(14, 30, 43, 0.94));
}

.map-container,
.map-container svg {
  width: 100%;
  height: 100%;
}

.map-container {
  min-height: 680px;
}

.map-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  max-width: 14rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.9rem;
  background: rgba(8, 20, 33, 0.92);
  color: #f0f6f7;
  font-size: 0.82rem;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 16px));
  transition: opacity 0.15s ease;
}

.map-tooltip.is-visible {
  opacity: 1;
}

.legend-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-top: 1rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.choropleth-legend {
  display: grid;
  gap: 0.55rem;
}

.legend-ramp {
  width: min(100%, 24rem);
  height: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}

.legend-scale {
  display: flex;
  justify-content: space-between;
  width: min(100%, 24rem);
  color: var(--muted);
  font-size: 0.76rem;
}

.legend-item,
.district-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 0.8rem;
}

.pcn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: #d6e4e9;
  font-size: 0.82rem;
}

.legend-swatch-outline {
  border: 1px solid rgba(255,255,255,0.36);
  background: rgba(255,255,255,0.04);
}

.legend-swatch-line {
  background: linear-gradient(90deg, #ef343f, #04b799, #d0006e);
}

.legend-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
}

.map-footnote {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.map-footnote p {
  margin: 0.28rem 0;
  text-transform: none;
  letter-spacing: 0;
}

.map-footnote code {
  color: #d8ebe6;
  font-family: ui-monospace, "SFMono-Regular", monospace;
}

.info-panel {
  display: grid;
  gap: 1rem;
}

.info-card {
  padding: 1.15rem;
}

.current-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.05;
}

.district-pill {
  margin-top: 0.8rem;
  color: #dcf0ec;
}

.card-note {
  margin: 1rem 0 0;
  color: #b8c8ce;
  line-height: 1.8;
  font-size: 0.9rem;
}

.district-summary {
  display: grid;
  gap: 0.6rem;
}

.district-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.95rem;
  background: rgba(255,255,255,0.03);
}

.district-row.is-active {
  border-color: rgba(127, 224, 210, 0.32);
  background: rgba(127, 224, 210, 0.08);
}

.district-row strong {
  font-size: 0.94rem;
  font-weight: 500;
}

.district-row span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.area-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  padding: 0.58rem 0.72rem;
  border-left: 2px solid rgba(127, 224, 210, 0.16);
  background: rgba(255,255,255,0.03);
  color: #d5e2e7;
  font-size: 0.88rem;
}

.area-list li.is-focus {
  border-left-color: var(--accent);
  background: rgba(127, 224, 210, 0.08);
  color: #f5fbfc;
}

.area-list li.is-empty {
  color: var(--muted);
}

.planning-area {
  cursor: pointer;
  transition: fill-opacity 0.18s ease, stroke 0.18s ease, stroke-width 0.18s ease, transform 0.18s ease;
}

.planning-area.is-muted {
  fill-opacity: 0.48;
}

.planning-area.is-hovered,
.planning-area.is-selected {
  fill-opacity: 1;
  stroke: #e7f7f5;
  stroke-width: 2.4;
}

.selection-dot {
  fill: #f5fbfc;
  stroke: rgba(8, 20, 33, 0.9);
  stroke-width: 2;
}

.selection-label {
  fill: #f5fbfc;
  font-family: var(--sans);
  font-size: 12px;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(8, 20, 33, 0.72);
  stroke-width: 4px;
  stroke-linejoin: round;
}

@media (max-width: 1080px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-card {
    max-width: 28rem;
  }
}

@media (max-width: 720px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
  }

  .masthead-tools {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .panel-head,
  .legend-wrap {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: stretch;
  }

  .legend-wrap {
    display: grid;
  }

  .map-stage,
  .map-container {
    min-height: 460px;
  }

  .current-card strong {
    font-size: 1.7rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(127, 224, 210, 0.28);
  border-radius: 999px;
  background: rgba(127, 224, 210, 0.08);
  color: #eef8f6;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.action-link:hover,
.action-link:focus-visible {
  background: rgba(127, 224, 210, 0.16);
  transform: translateY(-1px);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.route-legend {
  display: grid;
  gap: 0.6rem;
}

.route-legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.78rem 0.84rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.95rem;
  background: rgba(255,255,255,0.03);
  color: #e8f3f5;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.route-legend-item:hover,
.route-legend-item:focus-visible {
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}

.route-legend-item span {
  font-size: 0.88rem;
  line-height: 1.35;
}

.route-legend-item strong {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.route-legend-item.is-off,
.district-row.is-off {
  opacity: 0.48;
}

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

.stat-box {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.95rem;
  background: rgba(255,255,255,0.03);
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.stat-box strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.7rem;
  font-weight: 700;
}

.json-preview {
  width: 100%;
  min-height: 16rem;
  padding: 0.95rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  background: rgba(5, 13, 20, 0.52);
  color: #dcebf0;
  font: 0.82rem/1.6 ui-monospace, "SFMono-Regular", monospace;
  resize: vertical;
}

.export-buttons {
  margin-top: 0.95rem;
}

.danger-button {
  border-color: rgba(255, 135, 135, 0.28);
  background: rgba(255, 135, 135, 0.08);
}

.danger-button:hover,
.danger-button:focus-visible {
  background: rgba(255, 135, 135, 0.16);
}

.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.area-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.area-list li strong {
  color: #f7fbfc;
  font-size: 0.92rem;
}

.visit-badge-circle {
  fill: rgba(6, 16, 26, 0.9);
  stroke: rgba(255,255,255,0.18);
  stroke-width: 1.2;
}

.visit-badge-text {
  fill: #f6fbfc;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.planning-area-base {
  cursor: default;
}

.route-segment {
  cursor: pointer;
  transition: stroke-opacity 0.16s ease, stroke-width 0.16s ease;
}

.planner-meta {
  row-gap: 0.7rem;
}

.planner-dot,
.planner-line {
  display: inline-block;
  vertical-align: middle;
}

.planner-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
}

body.planner-page,
body.planner-page button,
body.planner-page input,
body.planner-page textarea {
  font-family: var(--ouyang);
}

body.planner-page .masthead {
  padding: 0.95rem 4vw 0.75rem;
}

body.planner-page .brand span:last-child,
body.planner-page .masthead-note,
body.planner-page .card-label {
  text-transform: none;
  letter-spacing: 0.08em;
}

body.planner-page .brand span:last-child {
  font-size: 0.94rem;
}

body.planner-page .masthead-note {
  font-size: 0.82rem;
}

body.planner-page .planner-main {
  position: relative;
  z-index: 20;
  padding: 1.1rem 4vw 3rem;
}

body.planner-page .planner-titlebar {
  margin-bottom: 0.95rem;
}

body.planner-page .planner-titlebar h1 {
  margin: 0;
  font-family: var(--ouyang);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
}

body.planner-page .planner-layout {
  grid-template-columns: minmax(0, 1.75fr) minmax(17.5rem, 0.56fr);
  gap: 1rem;
  padding: 0;
  align-items: start;
}

body.planner-page .planner-map-panel {
  padding: 0.95rem;
}

body.planner-page .planner-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
}

body.planner-page .planner-inline-note {
  color: #d5e1e6;
  font-size: 0.92rem;
  line-height: 1.68;
}

body.planner-page .planner-utility-actions {
  flex-shrink: 0;
}

body.planner-page .planner-map-stage,
body.planner-page .map-container {
  min-height: clamp(34rem, 74vh, 56rem);
}

body.planner-page .planner-export-panel {
  position: sticky;
  top: 1rem;
}

body.planner-page .planner-export-card {
  padding: 1rem;
}

body.planner-page .planner-route-card {
  padding: 1rem;
}

body.planner-page .planner-action-grid {
  display: grid;
  gap: 0.75rem;
}

body.planner-page .planner-action-grid .ghost-button {
  width: 100%;
  min-height: 3rem;
  justify-content: center;
  font-size: 1rem;
}

body.planner-page .ghost-button,
body.planner-page .masthead-link {
  font-family: var(--ouyang);
}

body.planner-page .planner-summary,
body.planner-page #planner-summary {
  margin-top: 0.25rem;
  color: #f0f6f7;
  font-size: 0.98rem;
  line-height: 1.72;
}

body.planner-page #planner-export-note {
  margin-top: 0;
  color: #9fb5b6;
  font-size: 0.88rem;
  line-height: 1.72;
}

body.planner-page .planner-route-breakdown {
  margin-top: 0.25rem;
}

body.planner-page .planner-route-breakdown li {
  padding: 0.68rem 0.78rem;
  border-left: 2px solid rgba(127, 224, 210, 0.22);
  background: rgba(255,255,255,0.035);
}

body.planner-page .planner-route-breakdown li span {
  line-height: 1.55;
}

body.planner-page .planner-route-breakdown li strong {
  white-space: nowrap;
}

body.planner-page .planner-disclaimer {
  margin-top: 0.75rem;
  color: #a7b9bc;
  font-size: 0.88rem;
  line-height: 1.7;
}

body.planner-page .map-tooltip,
body.planner-page .planner-index {
  font-family: var(--ouyang);
}

@media (max-width: 1080px) {
  body.planner-page .planner-layout {
    grid-template-columns: 1fr;
  }

  body.planner-page .planner-export-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body.planner-page .planner-map-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.planner-page .planner-utility-actions {
    justify-content: flex-start;
  }

  body.planner-page .planner-map-stage,
  body.planner-page .map-container {
    min-height: 32rem;
  }
}

.planner-dot-waypoint {
  border: 2px solid #eef8fb;
  background: transparent;
}

.planner-dot-snapped {
  background: #7fe0d2;
  border: 1px solid #072030;
}

.planner-line {
  width: 1.2rem;
  height: 0.22rem;
  border-radius: 999px;
}

.planner-line-route {
  background: #ffe6a3;
}

.planner-route {
  filter: drop-shadow(0 0 10px rgba(255, 230, 163, 0.24));
}

.planner-route-target {
  filter: drop-shadow(0 0 10px rgba(127, 224, 210, 0.22));
}

.planner-target-input {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.planner-target-input span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-target-input input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.95rem;
  background: rgba(5, 13, 20, 0.52);
  color: #e8f2f5;
  font: inherit;
}

.planner-target-input input:focus {
  outline: 2px solid rgba(127, 224, 210, 0.3);
  outline-offset: 2px;
}

.planner-stats-grid {
  margin-bottom: 0.9rem;
}

.planner-zoom-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: grid;
  gap: 0.5rem;
}

.planner-zoom-button {
  min-width: 2.8rem;
  min-height: 2.8rem;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.planner-zoom-reset {
  min-width: 3.6rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(127, 224, 210, 0.28);
  border-radius: 999px;
  background: rgba(127, 224, 210, 0.08);
  color: #eef8f6;
  cursor: pointer;
}

.file-input {
  display: block;
  width: 100%;
  margin-bottom: 0.95rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.compact-preview {
  min-height: 11rem;
}

.import-actions {
  margin-top: 0.95rem;
}

.planner-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: rgba(4, 10, 16, 0.72);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.planner-modal.is-visible {
  display: grid;
}

.planner-modal-card {
  width: min(100%, 28rem);
  padding: 1.3rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(12, 27, 42, 0.98), rgba(9, 20, 31, 0.94));
  box-shadow: var(--shadow);
}

.planner-modal-card strong {
  display: block;
  margin-bottom: 0.7rem;
  color: #f4fafb;
  font-size: 1.35rem;
}

.planner-index {
  fill: #f7fbfd;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(8, 20, 33, 0.72);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.planner-waypoint,
.planner-snapped,
.planner-snap-link {
  pointer-events: none;
}

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

  .button-group {
    justify-content: flex-start;
  }
}
