.analytics-page .page {
  padding-top: 50px;
  padding-bottom: 76px;
}
.analytics-page .hero {
  min-height: 0;
  padding: 24px 0 42px;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
}
.analytics-page .eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.analytics-page h1 {
  font-size: clamp(40px, 5vw, 66px);
  margin: 0 0 24px;
  line-height: 1.08;
}
.analytics-page h1 em {
  font-style: normal;
  color: var(--rose);
}
.analytics-page .intro {
  font-size: 17px;
  max-width: 590px;
  margin: 0;
}
.freshness {
  padding: 32px;
  border: 1px solid #f0dce7;
  border-radius: 28px;
  background: var(--pink-soft);
}
.freshness span,
.freshness small {
  color: var(--muted);
  font-size: 13px;
}
.freshness strong {
  display: block;
  font-size: 54px;
  letter-spacing: -0.06em;
  line-height: 1.2;
  margin: 12px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
}
.stat b {
  display: block;
  font-size: 44px;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.stat span {
  font-size: 15px;
  font-weight: 600;
}
.stat small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.analytics-page .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  background: white;
}
.panel-head {
  margin-bottom: 25px;
}
.panel-head h2 {
  font-size: 24px;
  margin: 0 0 10px;
}
.panel-head p {
  font-size: 13px;
  margin: 0;
}
.gender {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gender-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--pink-soft);
}
.gender-card:last-child {
  background: var(--soft);
}
.gender-card b {
  display: block;
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.gender-card span {
  font-size: 13px;
}
.gender-card i {
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  margin-top: 20px;
  background: #d783ae;
}
.gender-card:last-child i {
  background: var(--dock);
}
.age-list,
.ranking {
  display: grid;
  gap: 16px;
}
.age-row {
  display: grid;
  grid-template-columns: 48px 1fr 35px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.age-bar {
  height: 9px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
}
.age-bar i {
  height: 100%;
  display: block;
  background: var(--pink);
  border-radius: 999px;
}
.age-row b {
  text-align: right;
}
.rank-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.rank-badge {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: var(--soft);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
}
.rank-row:first-child .rank-badge {
  background: #fff5df;
  color: var(--yellow);
}
.rank-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.rank-row b {
  font-size: 13px;
}
.names-panel {
  grid-column: 1/-1;
}
.name-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.name-group {
  padding: 24px;
  border-radius: 20px;
  background: #fafafd;
}
.name-group h3 {
  font-size: 17px;
  margin: 0 0 24px;
}
.map {
  position: relative;
  min-height: 180px;
  background: var(--soft);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 24px;
}
.map:before {
  content: "";
  position: absolute;
  inset: 40% 0 auto;
  height: 1px;
  background: #e0e4ef;
  box-shadow:
    0 40px #e0e4ef,
    0 -40px #e0e4ef;
  transform: rotate(-9deg);
}
.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 6px #f7d5e9;
}
.pin.primary {
  top: 55%;
  left: 48%;
  background: var(--gold);
  box-shadow: 0 0 0 6px #f2c56b30;
}
.pin span {
  position: absolute;
  bottom: 20px;
  left: -20px;
  font-size: 12px;
  white-space: nowrap;
  font-style: normal;
}
.pin.p2 {
  top: 38%;
  left: 24%;
}
.pin.p3 {
  top: 72%;
  left: 75%;
}
.pin.p4 {
  top: 27%;
  left: 65%;
}
.footnote {
  font-size: 12px;
  text-align: center;
  max-width: 720px;
  margin: 32px auto 0;
}
.loading {
  color: #8790a9;
}
.analytics-error {
  padding: 22px;
  background: var(--pink-soft);
  border-radius: 20px;
  margin-bottom: 28px;
}
.analytics-error p {
  font-size: 14px;
  margin: 0 0 15px;
}
@media (max-width: 900px) {
  .analytics-page .hero {
    gap: 30px;
  }
  .panel {
    padding: 24px;
  }
  .freshness {
    padding: 26px;
  }
  .name-columns {
    gap: 16px;
  }
}
@media (max-width: 720px) {
  .analytics-page .page {
    padding-top: 24px;
    padding-bottom: 48px;
  }
  .analytics-page .hero,
  .stats,
  .analytics-page .grid,
  .name-columns {
    grid-template-columns: 1fr;
  }
  .analytics-page .hero {
    padding: 16px 0 28px;
  }
  .analytics-page h1 {
    font-size: 42px;
  }
  .analytics-page .intro {
    font-size: 15px;
  }
  .freshness strong {
    font-size: 46px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 24px;
  }
  .stat b {
    font-size: 37px;
  }
  .panel {
    padding: 22px;
  }
  .gender-card {
    padding: 19px;
  }
  .names-panel {
    grid-column: auto;
  }
  .analytics-page .eyebrow {
    font-size: 11px;
  }
}
