:root {
  --bg: #ece8dc;
  --bg-soft: #f7f4eb;
  --panel: rgba(255, 252, 246, 0.94);
  --panel-strong: #fffdf7;
  --line: rgba(43, 69, 64, 0.1);
  --line-strong: rgba(43, 69, 64, 0.16);
  --text: #243333;
  --muted: #72827a;
  --accent: #3a7b59;
  --accent-deep: #28563f;
  --accent-soft: rgba(58, 123, 89, 0.1);
  --warning: #b94d3c;
  --shadow: 0 24px 60px rgba(35, 51, 51, 0.12);
  --shadow-soft: 0 14px 32px rgba(35, 51, 51, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(58, 123, 89, 0.13), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(183, 145, 88, 0.13), transparent 22%),
    linear-gradient(135deg, #f7f3ea 0%, #ece7d8 100%);
}

code {
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.92em;
}

.map-page::before,
.map-page::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.55;
}

.map-page::before {
  top: 18px;
  right: 72px;
  width: 180px;
  height: 180px;
  background: rgba(58, 123, 89, 0.1);
}

.map-page::after {
  bottom: 44px;
  left: 44px;
  width: 220px;
  height: 220px;
  background: rgba(208, 177, 122, 0.12);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 390px) 1fr;
  gap: 22px;
  min-height: 100vh;
  padding: 18px;
}

.sidebar,
.map-panel {
  min-height: calc(100vh - 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 244, 235, 0.94));
  backdrop-filter: blur(18px);
}

.sidebar__hero {
  display: grid;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.brand__mark svg {
  width: 24px;
  height: 24px;
  fill: #f6fff8;
}

.brand__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.brand__title {
  margin: 2px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa397;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.back-link::before {
  content: "←";
  font-size: 1rem;
}

.sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.view-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(36, 51, 51, 0.05);
}

.view-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6a776f;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.view-switcher__link:hover {
  transform: translateY(-1px);
}

.view-switcher__link--active {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(35, 51, 51, 0.08);
}

.sidebar__section {
  padding-top: 18px;
  border-top: 1px solid rgba(36, 51, 51, 0.08);
}

.sidebar__section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.sidebar__section--highlight {
  padding: 18px;
  border: 1px solid rgba(58, 123, 89, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(242, 248, 240, 0.94)),
    radial-gradient(circle at top right, rgba(58, 123, 89, 0.14), transparent 38%);
  box-shadow: var(--shadow-soft);
}

.sidebar__section--muted {
  color: var(--muted);
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(58, 123, 89, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(58, 123, 89, 0.1);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.layer-title {
  max-width: 100%;
  font-size: clamp(1.75rem, 2.5vw, 2.2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-title--sm {
  font-size: 1.1rem;
  line-height: 1.2;
}

.section-text,
.search__hint {
  margin: 10px 0 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

.section-meta {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-card {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.status-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a6afa7;
}

.status-card__value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  color: var(--accent-deep);
}

.status-card__value::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.stats-card {
  min-width: 0;
  margin: 0;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.82);
}

.stats-card--wide {
  grid-column: 1 / -1;
}

.stats-card dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a6afa7;
}

.stats-card dd {
  margin: 7px 0 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.search {
  display: grid;
  gap: 9px;
}

.search__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 1px solid rgba(58, 123, 89, 0.18);
  border-radius: 15px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font: inherit;
  color: var(--text);
}

.search input::placeholder {
  color: #a2aca2;
}

.search input:focus {
  outline: 0;
  border-color: rgba(58, 123, 89, 0.38);
  box-shadow: 0 0 0 4px rgba(58, 123, 89, 0.12);
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: min(42vh, 420px);
  overflow: auto;
  counter-reset: result-item;
}

.result-card {
  border: 1px solid rgba(36, 51, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.result-card:hover {
  transform: translateY(-1px);
  border-color: rgba(58, 123, 89, 0.16);
  box-shadow: 0 10px 24px rgba(35, 51, 51, 0.08);
}

.result-card button {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px 14px 54px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.result-card button:disabled {
  cursor: default;
}

.result-card button::before {
  counter-increment: result-item;
  content: counter(result-item, decimal-leading-zero);
  position: absolute;
  top: 15px;
  left: 16px;
  min-width: 26px;
  padding: 4px 0;
  border-radius: 10px;
  background: rgba(36, 51, 51, 0.06);
  color: #92a098;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.result-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}

.result-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.info-strip__item {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(58, 123, 89, 0.12);
  border-radius: 999px;
  background: rgba(58, 123, 89, 0.08);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.map-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 251, 241, 0.88), rgba(244, 238, 223, 0.78)),
    radial-gradient(circle at top right, rgba(58, 123, 89, 0.07), transparent 28%);
}

.map-chrome {
  position: absolute;
  inset: 18px 18px auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  z-index: 700;
  pointer-events: none;
}

.map-floating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.map-floating > * {
  pointer-events: auto;
}

.toolbar-button,
.layer-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(36, 51, 51, 0.08);
  box-shadow: 0 10px 24px rgba(35, 51, 51, 0.12);
  backdrop-filter: blur(14px);
  white-space: nowrap;
}

.toolbar-button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #f6fff8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.toolbar-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.layer-pill {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.layer-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(58, 123, 89, 0.9);
}

.layer-pill--ghost {
  color: #5f7167;
}

.layer-pill--ghost::before {
  background: rgba(95, 113, 103, 0.32);
}

#map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 36px);
  background: #ebe6d5;
}

#map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 248, 225, 0.18), rgba(255, 248, 225, 0.18)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 50%);
  pointer-events: none;
  z-index: 320;
}

.map-hud {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  z-index: 700;
  pointer-events: none;
}

.map-hud__item {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(36, 51, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(35, 51, 51, 0.1);
  backdrop-filter: blur(14px);
}

.map-hud__item:first-child {
  flex: 1.2;
}

.map-hud__item:not(:first-child) {
  min-width: 160px;
}

.map-hud__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ba59b;
}

.map-hud__item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
}

.popup-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.popup-table {
  width: 100%;
  border-collapse: collapse;
}

.popup-table th,
.popup-table td {
  padding: 7px 0;
  border-bottom: 1px solid rgba(36, 51, 51, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
}

.popup-table th {
  width: 42%;
  padding-right: 12px;
  color: var(--muted);
  font-weight: 700;
}

.map-status {
  color: var(--warning);
}

.leaflet-container {
  font: inherit;
}

.leaflet-control-zoom,
.leaflet-control-layers {
  border: 0;
  box-shadow: 0 10px 24px rgba(35, 51, 51, 0.12);
}

.leaflet-top.leaflet-right {
  top: 74px;
  right: 18px;
}

.leaflet-bar a,
.leaflet-control-layers-toggle {
  width: 42px;
  height: 42px;
  border-bottom-color: rgba(36, 51, 51, 0.08);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.leaflet-bar a:hover,
.leaflet-bar a:focus {
  background-color: #fff;
  color: var(--accent-deep);
}

.leaflet-control-layers-expanded {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.leaflet-control-scale {
  margin-left: 18px;
  margin-bottom: 18px;
}

.leaflet-control-scale-line {
  border-color: rgba(36, 51, 51, 0.36);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(255, 253, 248, 0.98);
  color: var(--text);
}

.leaflet-popup-content-wrapper {
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(35, 51, 51, 0.16);
}

.leaflet-popup-content {
  margin: 16px 18px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .map-panel {
    min-height: auto;
  }

  #map {
    min-height: 72vh;
  }
}

@media (max-width: 760px) {
  .app-shell {
    gap: 16px;
    padding: 12px;
  }

  .sidebar,
  .map-panel {
    border-radius: 24px;
  }

  .sidebar {
    padding: 14px;
  }

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

  .layer-title {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }

  .stats-card--wide {
    grid-column: auto;
  }

  .map-chrome {
    inset: 12px 12px auto;
    flex-direction: column;
    align-items: stretch;
  }

  .map-floating--right {
    justify-content: flex-start;
  }

  .toolbar-button,
  .layer-pill {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.86rem;
  }

  .leaflet-top.leaflet-right {
    top: 118px;
    right: 12px;
  }

  .map-hud {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
  }

  .map-hud__item,
  .map-hud__item:not(:first-child) {
    min-width: 0;
  }
}

.landing-page {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(58, 123, 89, 0.16), transparent 20%),
    radial-gradient(circle at 85% 10%, rgba(196, 156, 92, 0.14), transparent 18%),
    linear-gradient(180deg, #f5f0e4 0%, #ece5d5 100%);
}

.landing-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(36, 51, 51, 0.08);
  border-radius: 26px;
  background: rgba(255, 252, 246, 0.8);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.landing-brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.landing-brand__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
}

.landing-brand__mark svg {
  width: 26px;
  height: 26px;
  fill: #f6fff8;
}

.landing-brand strong,
.landing-brand small {
  display: block;
}

.landing-brand strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.landing-brand small {
  max-width: 360px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.landing-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-nav__links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(36, 51, 51, 0.05);
}

.landing-main {
  display: grid;
  gap: 28px;
  padding-top: 26px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 24px;
}

.landing-hero__copy,
.landing-hero__panel,
.landing-section,
.cta-card {
  border: 1px solid rgba(36, 51, 51, 0.08);
  border-radius: 32px;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.landing-hero__copy {
  padding: 38px;
}

.landing-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(58, 123, 89, 0.12);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.landing-chip--soft {
  background: rgba(36, 51, 51, 0.06);
  color: #53645d;
}

.landing-hero h1,
.landing-section h2,
.cta-card h2 {
  margin: 16px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.landing-section h2,
.cta-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.landing-hero p,
.landing-section p,
.cta-card p,
.feature-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.landing-actions,
.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  font-weight: 800;
  text-decoration: none;
}

.landing-button--primary {
  color: #f7fff8;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 16px 36px rgba(40, 86, 63, 0.2);
}

.landing-button--secondary {
  color: var(--text);
  background: rgba(36, 51, 51, 0.06);
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
}

.landing-metrics div {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(36, 51, 51, 0.08);
}

.landing-metrics dt {
  color: #92a097;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-metrics dd {
  margin: 8px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 800;
}

.landing-hero__panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 24px;
}

.showcase-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(244, 238, 223, 0.9), rgba(255, 250, 239, 0.88)),
    radial-gradient(circle at top right, rgba(58, 123, 89, 0.11), transparent 28%);
  overflow: hidden;
}

.showcase-card__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 150, 134, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 150, 134, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.showcase-card__polygon,
.showcase-card__line,
.showcase-card__pulse,
.showcase-card__hud {
  position: absolute;
}

.showcase-card__polygon {
  border: 2px solid rgba(71, 136, 105, 0.3);
  background: rgba(84, 156, 118, 0.18);
}

.showcase-card__polygon--main {
  inset: 28% 34% 18% 20%;
  clip-path: polygon(20% 8%, 74% 0%, 88% 38%, 66% 82%, 14% 90%, 0% 46%);
}

.showcase-card__polygon--two {
  inset: 14% 12% 48% 54%;
  clip-path: polygon(6% 16%, 72% 0%, 100% 42%, 82% 90%, 28% 100%, 0% 54%);
  background: rgba(162, 190, 98, 0.18);
}

.showcase-card__polygon--three {
  inset: 56% 8% 10% 58%;
  clip-path: polygon(14% 0%, 86% 6%, 100% 42%, 72% 100%, 20% 92%, 0% 52%);
  background: rgba(180, 160, 90, 0.18);
}

.showcase-card__line {
  background: rgba(255, 249, 237, 0.88);
  box-shadow: 0 0 0 1px rgba(218, 204, 177, 0.2);
}

.showcase-card__line--h {
  left: 0;
  right: 0;
  top: 52%;
  height: 10px;
  transform: rotate(1.6deg);
}

.showcase-card__line--v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 7px;
}

.showcase-card__pulse {
  left: calc(50% - 14px);
  top: calc(52% - 14px);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(58, 123, 89, 0.24);
  box-shadow: 0 0 0 12px rgba(58, 123, 89, 0.1);
}

.showcase-card__hud {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(35, 51, 51, 0.1);
}

.showcase-card__hud span {
  color: #97a399;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-card__hud strong {
  font-size: 1rem;
}

.showcase-card__hud--top {
  top: 20px;
  right: 20px;
}

.showcase-card__hud--bottom {
  left: 20px;
  bottom: 20px;
}

.landing-section {
  padding: 34px;
}

.landing-section--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.landing-section--cta {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.landing-section__head {
  max-width: 880px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feature-card,
.dataset-panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(36, 51, 51, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.feature-card h3,
.dataset-panel h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.feature-card a,
.feature-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.dataset-panel--accent {
  background:
    linear-gradient(180deg, rgba(46, 84, 63, 0.95), rgba(32, 62, 47, 0.96)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 28%);
  color: #eff7f2;
}

.dataset-panel--accent p,
.dataset-panel--accent h3,
.dataset-panel--accent span,
.dataset-panel--accent strong {
  color: inherit;
}

.dataset-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.dataset-list div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(36, 51, 51, 0.04);
}

.dataset-list span {
  display: block;
  color: #92a097;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dataset-list strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(36, 51, 51, 0.06);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.tag-cloud--light span {
  background: rgba(255, 255, 255, 0.12);
  color: #eff7f2;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(245, 249, 244, 0.96), rgba(233, 240, 231, 0.92)),
    radial-gradient(circle at right center, rgba(58, 123, 89, 0.16), transparent 22%);
}

@media (max-width: 1180px) {
  .landing-hero,
  .landing-section--split,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .landing-shell {
    padding: 14px;
  }

  .landing-nav,
  .landing-hero__copy,
  .landing-hero__panel,
  .landing-section,
  .cta-card {
    border-radius: 24px;
  }

  .landing-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-nav__links {
    width: 100%;
  }

  .landing-nav__links a {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .landing-hero__copy,
  .landing-hero__panel,
  .landing-section,
  .cta-card {
    padding: 22px;
  }

  .landing-hero__panel {
    min-height: 420px;
  }

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

  .landing-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(58, 123, 89, 0.12), transparent 18%),
    linear-gradient(180deg, #f4efe3 0%, #ebe3d2 100%);
}

.admin-login-shell,
.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px;
}

.admin-login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.admin-login-card,
.admin-panel,
.admin-header,
.admin-alert,
.admin-submit-bar {
  border: 1px solid rgba(36, 51, 51, 0.08);
  border-radius: 28px;
  background: rgba(255, 252, 246, 0.84);
  box-shadow: var(--shadow-soft);
}

.admin-login-card {
  width: min(100%, 620px);
  padding: 32px;
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0 8px;
}

.admin-login-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.admin-login-brand strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
}

.admin-login-brand span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3px;
}

.admin-login-divider {
  height: 1px;
  background: var(--line-strong);
  margin: 20px 0 24px;
}

.admin-login-back {
  display: block;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
}

.admin-login-back:hover {
  color: var(--accent);
}

.admin-login-card h1,
.admin-header h1,
.admin-panel h2 {
  margin: 16px 0 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.04;
}

.admin-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-panel h2 {
  font-size: 1.4rem;
}

.admin-login-card p,
.admin-header p,
.admin-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-form,
.admin-settings {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.admin-form label,
.admin-grid label {
  display: grid;
  gap: 8px;
}

.admin-form span,
.admin-grid span {
  font-size: 0.86rem;
  font-weight: 800;
  color: #6b7a73;
}

.admin-form input,
.admin-grid input,
.admin-grid textarea,
.admin-grid select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(36, 51, 51, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  color: var(--text);
}

.admin-grid textarea {
  min-height: 112px;
  resize: vertical;
}

.admin-submit {
  width: 100%;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.admin-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header__actions form {
  margin: 0;
}

.admin-alert {
  margin-top: 18px;
  padding: 16px 18px;
  font-weight: 700;
}

.admin-alert--success {
  color: #255940;
  background: rgba(78, 151, 111, 0.14);
}

.admin-alert--danger {
  color: #8a382b;
  background: rgba(185, 77, 60, 0.12);
}

.admin-panel {
  padding: 26px;
}

.admin-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

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

.admin-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-field--full {
  grid-column: 1 / -1;
}

.admin-boundaries {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.admin-boundary-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 51, 51, 0.08);
}

.admin-boundary-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-boundary-card__head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-toggle input {
  width: 18px;
  height: 18px;
}

.admin-submit-bar {
  padding: 18px 22px;
}

@media (max-width: 900px) {
  .admin-header,
  .admin-header__actions,
  .admin-boundary-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-grid--2,
  .admin-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-login-shell,
  .admin-shell {
    padding: 14px;
  }

  .admin-login-card,
  .admin-panel,
  .admin-header,
  .admin-alert,
  .admin-submit-bar {
    border-radius: 22px;
  }

  .admin-login-card,
  .admin-panel,
  .admin-header {
    padding: 22px;
  }
}
