.atlas-shell {
  --atlas-ink: var(--ink, #171814);
  --atlas-muted: var(--muted, #5d665f);
  --atlas-line: var(--line, rgba(20, 26, 22, 0.14));
  --atlas-paper: var(--paper-soft, #fffdfa);
  --atlas-wash: rgba(31, 107, 67, 0.07);
  --atlas-green: var(--green, var(--forest, #1f6b43));
  --atlas-deep: var(--green-deep, var(--forest-deep, #092a1c));
  --atlas-label-track: 0.078em;
  color: var(--atlas-ink);
}

.atlas-shell button,
.atlas-shell input,
.atlas-shell select {
  font: inherit;
}

.atlas-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.58fr);
  gap: clamp(20px, 3.8vw, 56px);
  align-items: start;
}

.atlas-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 44px);
  align-items: start;
}

.atlas-card {
  border: 0;
  border-top: 1px solid var(--atlas-line);
  border-bottom: 1px solid var(--atlas-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.atlas-controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: clamp(16px, 2vw, 24px) 0;
}

.atlas-control-row {
  display: contents;
}

.atlas-field {
  display: grid;
  gap: 7px;
}

.atlas-field label,
.atlas-label {
  color: var(--atlas-muted);
}

.atlas-field select,
.atlas-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--atlas-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--atlas-ink);
  padding: 9px 8px;
  font-size: 0.88rem;
}

.atlas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.atlas-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(31, 107, 67, 0.28);
  border-radius: 999px;
  background: var(--atlas-deep);
  color: #fff;
  padding: 10px 15px;
  cursor: pointer;
  transition: transform 180ms var(--ease, ease), background 180ms var(--ease, ease);
}

.atlas-action.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--atlas-deep);
}

.atlas-action:hover {
  transform: translateY(-1px);
}

.atlas-map-card {
  position: relative;
  min-height: clamp(520px, 70vh, 780px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(247, 250, 244, 0.78)),
    radial-gradient(circle at 22% 12%, rgba(47, 123, 76, 0.12), transparent 36rem);
}

.atlas-map-card.is-compact {
  min-height: clamp(420px, 52vw, 650px);
}

.atlas-map-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.3vw, 30px) clamp(18px, 2.5vw, 34px) 0;
}

.atlas-map-title {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: 0;
}

.atlas-map-note {
  max-width: 300px;
  margin: 0;
  color: var(--atlas-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.atlas-map-frame {
  position: relative;
  height: clamp(430px, 58vh, 660px);
  padding: 12px clamp(12px, 2vw, 28px) clamp(18px, 2vw, 28px);
}

.atlas-map-card.is-compact .atlas-map-frame {
  height: clamp(340px, 42vw, 530px);
}

.atlas-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.atlas-district {
  stroke: rgba(24, 44, 31, 0.42);
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 180ms var(--ease, ease), opacity 180ms var(--ease, ease), stroke 180ms var(--ease, ease);
}

.atlas-district:hover,
.atlas-district.is-selected {
  stroke: var(--atlas-deep);
  stroke-width: 1.4;
}

.atlas-district.is-muted {
  opacity: 0.28;
}

.atlas-marker {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.6;
  filter: drop-shadow(0 6px 10px rgba(15, 47, 29, 0.16));
}

.atlas-marker.is-project {
  r: 6.8px;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 2;
  filter: drop-shadow(0 8px 12px rgba(11, 35, 22, 0.24));
}

.atlas-marker-label {
  fill: var(--atlas-deep);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 4px;
  font-family: var(--mono, monospace);
  font-size: 8.5px;
  letter-spacing: var(--atlas-label-track);
  text-transform: uppercase;
  pointer-events: none;
}

.atlas-legend {
  position: absolute;
  left: clamp(18px, 2vw, 30px);
  bottom: clamp(18px, 2vw, 30px);
  width: min(270px, calc(100% - 36px));
  border: 1px solid rgba(16, 21, 18, 0.10);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 13px;
}

.atlas-legend-title {
  margin: 0 0 8px;
  color: var(--atlas-muted);
}

.atlas-legend-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
}

.atlas-legend-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--atlas-muted);
  font-size: 0.72rem;
}

.atlas-side {
  display: grid;
  gap: 14px;
}

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

.atlas-kpi {
  border: 0;
  border-top: 1px solid var(--atlas-line);
  background: transparent;
  padding: 14px 0 0;
}

.atlas-kpi strong {
  display: block;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: 0;
}

.atlas-kpi span {
  display: block;
  margin-top: 7px;
  color: var(--atlas-muted);
}

.atlas-detail {
  padding: clamp(18px, 2vw, 28px) 0;
}

.atlas-detail h3 {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: 0;
}

.atlas-detail p {
  margin: 12px 0 0;
  color: var(--atlas-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

.atlas-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.atlas-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--atlas-line);
  padding-top: 10px;
}

.atlas-list-row strong {
  font-weight: 620;
}

.atlas-list-row span {
  color: var(--atlas-muted);
}

.atlas-pill-row,
.atlas-portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.atlas-pill,
.atlas-portfolio-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--atlas-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--atlas-muted);
  padding: 8px 12px;
  cursor: pointer;
}

.atlas-portfolio-tab.is-active,
.atlas-pill.is-active {
  border-color: rgba(31, 107, 67, 0.4);
  background: var(--atlas-deep);
  color: #fff;
}

.atlas-status {
  margin: 0;
  color: var(--atlas-muted);
  align-self: center;
}

.atlas-empty {
  padding: 16px;
  border: 1px dashed var(--atlas-line);
  border-radius: 6px;
  color: var(--atlas-muted);
}

.atlas-projects {
  padding: clamp(18px, 2vw, 28px) 0;
}

.atlas-projects h3 {
  margin: 8px 0 0;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.25rem, 1.7vw, 1.85rem);
  font-weight: 560;
  line-height: 1.08;
}

.atlas-project-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.atlas-project-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-top: 1px solid var(--atlas-line);
  padding-top: 12px;
}

.atlas-project-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--project-color, var(--atlas-green));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--project-color, var(--atlas-green)) 18%, transparent);
}

.atlas-project-row strong,
.atlas-project-row em,
.atlas-project-row small {
  display: block;
}

.atlas-project-row strong {
  font-weight: 660;
}

.atlas-project-row em {
  margin-top: 3px;
  color: var(--atlas-deep);
  font-style: normal;
  font-family: var(--mono, monospace);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.atlas-project-row small {
  margin-top: 5px;
  color: var(--atlas-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.atlas-mini-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.28fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: stretch;
  margin-top: clamp(24px, 4vw, 56px);
  border: 1px solid var(--atlas-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

.atlas-mini-copy {
  padding: clamp(24px, 4vw, 54px);
}

.atlas-mini-copy h3 {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: 0;
}

.atlas-mini-copy p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--atlas-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.atlas-mini-stat {
  display: grid;
  align-content: space-between;
  gap: 20px;
  min-height: 100%;
  background: var(--atlas-deep);
  color: #fff;
  padding: clamp(24px, 3.5vw, 44px);
}

.atlas-mini-stat strong {
  display: block;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: 0;
}

.atlas-mini-stat span,
.atlas-mini-stat p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1080px) {
  .atlas-panel-grid,
  .atlas-mini-proof {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .atlas-controls,
  .atlas-kpi-grid {
    grid-template-columns: 1fr;
  }

  .atlas-map-head {
    display: grid;
  }

  .atlas-map-card,
  .atlas-map-card.is-compact {
    min-height: 0;
  }

  .atlas-map-frame,
  .atlas-map-card.is-compact .atlas-map-frame {
    height: 430px;
  }

  .atlas-legend {
    position: static;
    margin: 0 18px 18px;
    width: auto;
  }

  .atlas-list-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
