body {
  width: min(1120px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: auto;
  padding: max(20px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 48px max(14px, env(safe-area-inset-left));
  font-family: var(--font);
  background:
    radial-gradient(circle at 46% -10%, rgba(255, 47, 146, 0.18), transparent 38rem),
    linear-gradient(180deg, var(--bg), var(--bg-1));
  color: var(--ink);
}

a {
  color: var(--pink-soft);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pink-soft);
  outline-offset: 3px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-7);
}

.brand,
.eyebrow {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.12em;
}

.brand strong,
.eyebrow {
  color: var(--pink-2);
}

.header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 10vw, 4rem);
  font-weight: 740;
  line-height: 0.95;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-chip,
.back {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.privacy-chip {
  color: var(--pink-soft);
}

.loading,
.error,
.section {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
}

.loading,
.error {
  padding: var(--space-6);
}

.error {
  color: var(--pink-soft);
}

.main {
  display: grid;
  gap: var(--space-4);
}

.section {
  padding: var(--space-5);
  overflow: hidden;
}

.section h2,
.section summary {
  margin: 0 0 var(--space-4);
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
}

.section summary {
  cursor: pointer;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.hero-number {
  grid-column: span 2;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 47, 146, 0.24), rgba(255, 255, 255, 0.04));
}

.hero-number strong {
  font-size: clamp(3rem, 12vw, 5.2rem);
  font-weight: 740;
  line-height: 0.9;
}

.hero-number span {
  color: var(--ink-dim);
  font-size: 1.05rem;
  font-weight: 650;
}

.metric,
.card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.metric-value,
.card-value {
  overflow: hidden;
  color: var(--pink-soft);
  font-size: 1.35rem;
  font-weight: 730;
  text-overflow: ellipsis;
}

.metric-label,
.card-label,
.muted {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 550;
}

.bar-list,
.ranked-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.bar-row,
.ranked-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
}

.ranked-list li {
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  counter-increment: tag;
  list-style: none;
}

.ranked-list li::before {
  content: counter(tag);
  color: var(--ink-ghost);
  font-size: 12px;
  font-weight: 650;
}

.bar-row span,
.ranked-list span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row strong,
.ranked-list strong {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 650;
}

.bar-row i,
.ranked-list i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
}

.ranked-list i {
  grid-column: 2 / -1;
}

.bar-row b,
.ranked-list b,
.bar {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
  box-shadow: 0 0 14px rgba(255, 47, 146, 0.22);
}

.section h3 {
  margin: var(--space-5) 0 var(--space-3);
  color: var(--ink-dim);
  font-size: 0.9rem;
  font-weight: 680;
}

.section h3:first-child {
  margin-top: 0;
}

#distributions,
#explicitness-dims,
#acquisition-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.dist-block {
  min-width: 0;
  overflow-x: auto;
}

.dist-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink-dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.dist-table th,
.dist-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

.dist-table th {
  color: var(--ink-faint);
  font-weight: 650;
}

.bar-cell {
  width: 44%;
}

.bar {
  height: 6px;
}

.privacy-note {
  color: var(--ink-faint);
  line-height: 1.65;
}

.privacy-note h2 {
  color: var(--pink-soft);
}

@media (max-width: 680px) {
  .header {
    display: grid;
  }

  .header-actions {
    justify-content: space-between;
  }

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

  .hero-number {
    grid-column: 1 / -1;
  }

  .section {
    padding: var(--space-4);
    border-radius: 16px;
  }

  #distributions,
  #explicitness-dims,
  #acquisition-tables {
    grid-template-columns: 1fr;
  }
}
