.view-screen {
  display: none;
}

.view-screen.active {
  display: block;
}

#map-view.view-screen.active {
  display: block;
}

#controls-view.view-screen.active {
  display: flex;
}

.analysis-view {
  grid-column: 1 / -1;
  grid-row: 2;
  display: none;
  padding: 24px;
  background: #f8fafc;
  overflow-y: auto;
}

.analysis-view.active {
  display: block;
}

.analysis-hero,
.stat-card,
.chart-card {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.analysis-hero {
  padding: 28px 32px;
  margin-bottom: 24px;
}

.analysis-hero h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  color: #172033;
}

.analysis-hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #6f82a3;
}

.analysis-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 22px 24px;
}

.stat-card h3 {
  margin: 8px 0 6px;
  font-size: 20px;
  line-height: 1.2;
  color: #172033;
}

.stat-label,
.stat-card span {
  margin: 0;
  color: #6f82a3;
  font-size: 14px;
  line-height: 1.4;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chart-card {
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-card__image {
  width: 100%;
  height: 280px;
  display: block;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.chart-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #172033;
}