:root {
  --bg: #f5f5f7;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-dark: #111114;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.16);
  --blue: #0071e3;
  --blue-2: #2997ff;
  --purple: #a855f7;
  --pink: #ff375f;
  --green: #30d158;
  --orange: #ff9f0a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.10);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.07);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

body.light {
  color-scheme: light;
}

body:not(.light) {
  --bg: #000000;
  --bg-soft: #111114;
  --surface: rgba(28, 28, 30, 0.72);
  --surface-strong: rgba(36, 36, 38, 0.9);
  --surface-dark: #f5f5f7;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --muted-2: #8e8e93;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 113, 227, 0.16), transparent 28%),
    radial-gradient(circle at 78% 0%, rgba(168, 85, 247, 0.13), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg) 45%, var(--bg-soft));
  color: var(--text);
  overflow-x: hidden;
}

body:not(.light) {
  background:
    radial-gradient(circle at 18% 6%, rgba(0, 113, 227, 0.28), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(168, 85, 247, 0.24), transparent 28%),
    linear-gradient(180deg, #000, #07070a 52%, #111114);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.aurora {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -3;
}

.aurora-blue {
  top: -250px;
  left: -180px;
  background: var(--blue-2);
}

.aurora-purple {
  right: -220px;
  top: 230px;
  background: var(--purple);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, transparent 88%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 20px;
  backdrop-filter: blur(22px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff2d55, #ff3b30 45%, #ff9500);
  box-shadow: 0 12px 30px rgba(255, 45, 85, 0.26);
  font-size: 14px;
  padding-left: 1px;
}

.brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  box-shadow: var(--shadow-soft);
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: 0.22s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 85%, transparent);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0 52px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.075em;
  font-weight: 850;
}

.hero-text {
  margin: 28px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.47;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 750;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-btn {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(0, 113, 227, 0.28);
}

.secondary-btn,
.ghost-btn {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 80%, transparent);
  border-color: var(--line);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  background: #0077ed;
  box-shadow: 0 22px 46px rgba(0, 113, 227, 0.34);
}

.secondary-btn:hover,
.ghost-btn:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.source-pill {
  margin-top: 24px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  backdrop-filter: blur(18px);
  font-size: 13px;
}

.source-pill span {
  color: var(--muted-2);
  font-weight: 750;
}

.source-pill a {
  color: var(--blue);
  font-weight: 800;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 42px;
  padding: 22px;
  min-height: 520px;
  background:
    radial-gradient(circle at 20% 0%, rgba(41, 151, 255, 0.26), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(168, 85, 247, 0.24), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 76%, transparent), color-mix(in srgb, var(--surface) 82%, transparent));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(145%);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -22% -10%;
  height: 54%;
  background: linear-gradient(135deg, rgba(0,113,227,0.24), rgba(168,85,247,0.16));
  border-radius: 50% 50% 0 0;
  filter: blur(2px);
}

.device-window {
  position: relative;
  z-index: 1;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  border: 1px solid var(--line);
}

.device-window span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.device-window span:nth-child(1) { background: #ff5f57; }
.device-window span:nth-child(2) { background: #ffbd2e; }
.device-window span:nth-child(3) { background: #28c840; }

.hero-visual-top {
  position: relative;
  z-index: 1;
  margin: 72px 0 34px;
}

.hero-visual-top p,
.hero-card > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-visual-top strong,
.hero-card > strong {
  display: block;
  max-width: 320px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-meter {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 15px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-strong) 52%, transparent);
  border: 1px solid var(--line);
}

.hero-meter span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-meter div {
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.hero-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  animation: meterIn 1.4s ease both;
}

@keyframes meterIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.mini-stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.mini-stat-grid span {
  padding: 18px 14px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-strong) 58%, transparent);
  border: 1px solid var(--line);
}

.mini-stat-grid b,
.mini-stat-grid small {
  display: block;
}

.mini-stat-grid b {
  font-size: 24px;
  letter-spacing: -0.045em;
}

.mini-stat-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.kpi-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px 0 34px;
}

.kpi-card,
.chart-card,
.control-panel,
.insight-section,
.table-section {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(150%);
}

.kpi-card {
  min-height: 220px;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.kpi-card:hover,
.chart-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.kpi-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.kpi-card small {
  margin-top: auto;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.kpi-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.kpi-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.control-panel {
  margin: 34px 0 22px;
  border-radius: var(--radius-xl);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.15fr repeat(4, minmax(120px, 1fr)) 1.15fr auto;
  gap: 14px;
  align-items: end;
}

.control-title h2,
.card-heading h2,
.insight-main h2,
.table-heading h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

.control-title h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.control-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.control-panel input,
.control-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.control-panel input:focus,
.control-panel select:focus {
  border-color: color-mix(in srgb, var(--blue) 70%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--blue);
}

#topNValue {
  color: var(--blue);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 12px;
}

.chart-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  min-height: 470px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.chart-card-wide {
  grid-column: span 2;
  min-height: 520px;
}

.card-heading,
.table-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-heading h2,
.table-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 20%, transparent);
  background: color-mix(in srgb, var(--blue) 9%, transparent);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

canvas {
  width: 100% !important;
  height: 390px !important;
}

.chart-card-wide canvas {
  height: 420px !important;
}

.insight-section {
  margin-top: 22px;
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
}

.insight-main {
  min-height: 280px;
  border-radius: 28px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.22), transparent 32%),
    linear-gradient(135deg, #111114, #1d1d1f 52%, #333 100%);
  box-shadow: inset 0 1px rgba(255,255,255,0.08);
}

.insight-main .eyebrow {
  color: #8ec5ff;
}

.insight-main h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.98;
}

.insight-main p:last-child {
  margin: 22px 0 0;
  color: rgba(255,255,255,0.76);
  line-height: 1.65;
  font-size: 16px;
}

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

.insight-item {
  min-height: 132px;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 84%, transparent);
}

.insight-item strong,
.insight-item span {
  display: block;
}

.insight-item strong {
  letter-spacing: -0.02em;
}

.insight-item span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.table-section {
  margin: 22px 0 40px;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.table-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.table-wrap {
  overflow: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: color-mix(in srgb, var(--blue) 5%, transparent);
}

.channel-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.channel-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.bar-cell {
  display: grid;
  gap: 8px;
}

.inline-bar {
  width: 130px;
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.inline-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 42px;
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
}

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
  }

  .hero-card {
    min-height: 460px;
  }

  .kpi-section {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .control-title {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 10px 14px;
  }

  .nav-shell {
    align-items: stretch;
  }

  .brand small {
    display: none;
  }

  .nav-links {
    display: none;
  }

  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .kpi-section,
  .chart-grid,
  .insight-section,
  .insight-list,
  .control-panel {
    grid-template-columns: 1fr;
  }

  .chart-card-wide,
  .control-title {
    grid-column: span 1;
  }

  .chart-card,
  .chart-card-wide {
    min-height: 430px;
  }

  canvas,
  .chart-card-wide canvas {
    height: 330px !important;
  }

  .card-heading,
  .table-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .source-pill {
    width: 100%;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .hero-card {
    border-radius: 30px;
    padding: 16px;
  }

  .mini-stat-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card,
  .chart-card,
  .control-panel,
  .insight-section,
  .table-section {
    border-radius: 24px;
    padding: 18px;
  }
}


.active-summary {
  margin: 28px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(150%);
}

.active-summary h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.045em;
}

.active-summary p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.preset-strip {
  margin: 14px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-chip {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-strong) 80%, transparent);
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.preset-chip:hover,
.preset-chip.is-active {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 18px 38px rgba(0, 113, 227, 0.20);
}

.spotlight-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin: 0 0 28px;
}

.spotlight-card,
.team-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(150%);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 34%, transparent), transparent 68%);
  pointer-events: none;
}

.spotlight-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.spotlight-head h2,
.team-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.spotlight-meta,
.team-intro {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 650;
}

.spotlight-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.spotlight-metrics span,
.member-grid span {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
}

.spotlight-metrics small,
.member-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spotlight-metrics b {
  display: block;
  margin-top: 6px;
  font-size: clamp(19px, 2vw, 26px);
  letter-spacing: -0.04em;
}

.spotlight-bars {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.spotlight-bars label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spotlight-bars i {
  height: 10px;
  overflow: hidden;
  display: block;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.spotlight-bars em {
  width: 0%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width 0.75s ease;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.member-grid span:first-child {
  grid-column: span 2;
}

.member-grid b {
  display: block;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.member-grid small {
  margin-top: 8px;
}

tbody tr {
  cursor: pointer;
}

tbody tr.is-selected td {
  background: color-mix(in srgb, var(--blue) 10%, transparent);
}


@media (max-width: 920px) {
  .active-summary,
  .spotlight-section {
    grid-template-columns: 1fr;
  }

  .active-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .spotlight-metrics,
  .member-grid,
  .member-grid span:first-child {
    grid-template-columns: 1fr;
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .preset-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .preset-chip {
    width: 100%;
  }

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