:root {
  --accent: #6d28ff;
  --accent-dark: #4c16d7;
  --accent-soft: rgba(109, 40, 255, 0.1);
  --ink: #070817;
  --muted: #666d82;
  --line: #e8e9f2;
  --panel: #ffffff;
  --soft: #f7f8fc;
  --green: #0f9f6e;
  --blue: #1887e8;
  --orange: #f48118;
  --shadow: 0 24px 70px rgba(25, 23, 49, 0.1);
}

.analyst-hero,
.analyst-stats,
.analytics-toolbar,
.panel-header,
.legend,
.platform-list article,
.countries-list article,
.age-list article,
.gender-row,
.insight-list article,
.top-content-list article,
.reports-list article,
.recommendation-panel {
  display: flex;
  align-items: center;
}

.analyst-orb,
.mini-icon,
.insight-icon,
.reports-list > article > span {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0a0b18, var(--accent));
  font-weight: 820;
}

.summary-card,
.panel,
.rail-panel {
  position: static;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-main {
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px 30px 42px;
}

.analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  align-items: start;
  gap: 20px;
  min-width: 0;
}

.analytics-primary,
.analytics-rail {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.analytics-rail {
  align-content: start;
}

.analyst-hero {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 24px;
  overflow: hidden;
  border-radius: 8px;
  padding: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(109, 40, 255, 0.55), transparent 30%),
    linear-gradient(135deg, #070817, #1a0754 68%, #321094);
  box-shadow: 0 28px 80px rgba(25, 23, 49, 0.22);
}

.analyst-orb,
.analyst-copy,
.analyst-stats,
.hero-action {
  position: relative;
}

.analyst-orb {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  box-shadow: 0 24px 70px rgba(109, 40, 255, 0.38);
}

.analyst-orb span {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
}

.analyst-orb strong {
  position: relative;
  font-size: 24px;
}

.analyst-hero .eyebrow,
.recommendation-panel .eyebrow {
  color: #cfc4ff;
}

.analyst-copy h2 {
  margin: 4px 0 8px;
  font-size: 34px;
}

.analyst-copy h2 .analyst-status {
  display: inline-flex;
  margin-inline-start: 8px;
  border-radius: 999px;
  padding: 5px 8px;
  color: #d5ffe9;
  background: rgba(15, 159, 110, 0.22);
  font-size: 12px;
  vertical-align: middle;
}

.analyst-copy p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 680;
}

.hero-action {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 14px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  font-size: 13px;
  font-weight: 820;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.analyst-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.analyst-stats div {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
  padding-inline-start: 14px;
}

.analyst-stats span,
.analyst-stats strong,
.analyst-stats small {
  display: block;
}

.analyst-stats span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 680;
}

.analyst-stats strong {
  margin-top: 8px;
  color: #ffffff;
  font-size: 22px;
}

.analyst-stats small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.analytics-toolbar {
  justify-content: space-between;
  gap: 14px;
}

.analytics-tabs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-tabs button,
.period-filter,
.panel-filter,
.rail-header a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(109, 40, 255, 0.14);
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--accent);
  background: #ffffff;
  font-size: 12px;
  font-weight: 780;
  box-shadow: 0 12px 26px rgba(24, 29, 54, 0.05);
}

.analytics-tabs button {
  color: #283052;
}

.analytics-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px rgba(109, 40, 255, 0.22);
}

.period-filter {
  flex: 0 0 auto;
}

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

.summary-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 16px;
}

.summary-card > span {
  color: #283052;
  font-size: 12px;
  font-weight: 760;
}

.summary-card div:not(.sparkline) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.summary-card strong {
  font-size: 26px;
  white-space: nowrap;
}

.summary-card small {
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.sparkline svg {
  display: block;
  width: 100%;
  height: 48px;
}

.sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.panel,
.rail-panel {
  min-width: 0;
  padding: 18px;
}

.panel-header,
.rail-header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-header h2,
.rail-header h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.legend {
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #283052;
  font-size: 12px;
  font-weight: 760;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.line-chart {
  min-height: 280px;
  border: 1px solid rgba(232, 233, 242, 0.9);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(90deg, rgba(109, 40, 255, 0.05), rgba(255, 255, 255, 0.78)),
    #ffffff;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: 260px;
}

.grid-lines line {
  stroke: rgba(102, 109, 130, 0.16);
  stroke-width: 1;
}

.series-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.axis-labels text {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.platform-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.donut,
.audience-donut {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.donut {
  width: 178px;
  height: 178px;
  background: var(--donut-chart, conic-gradient(var(--accent), #111827));
}

.donut::after,
.audience-donut::after {
  position: absolute;
  inset: 32px;
  border-radius: inherit;
  content: "";
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut div,
.audience-donut div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.donut strong,
.audience-donut strong {
  font-size: 26px;
}

.donut span,
.audience-donut span,
.audience-donut small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.platform-list,
.insight-list,
.top-content-list,
.reports-list,
.content-type-list {
  display: grid;
  gap: 12px;
}

.platform-list article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  gap: 10px;
}

.mini-icon,
.insight-icon,
.reports-list > article > span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  font-size: 10px;
}

.platform-list strong,
.platform-list em,
.platform-list small {
  font-size: 13px;
}

.platform-list em {
  font-style: normal;
  font-weight: 820;
}

.platform-list small {
  color: var(--muted);
  font-weight: 720;
}

.demographics-panel {
  grid-column: span 1;
}

.demographics-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.audience-donut {
  width: 154px;
  height: 154px;
  background: conic-gradient(#6d28ff 0 38%, #a78bfa 38% 62%, #1887e8 62% 82%, #dbe4ff 82% 100%);
}

.countries-list,
.age-list {
  display: grid;
  gap: 9px;
}

.countries-list h3,
.age-list h3 {
  margin: 0 0 4px;
  color: #283052;
  font-size: 13px;
}

.countries-list article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
}

.countries-list span,
.countries-list em,
.age-list span,
.age-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.countries-list strong {
  font-size: 12px;
}

.age-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  gap: 9px;
}

.age-list i,
.content-type-list i {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(109, 40, 255, 0.12);
}

.age-list b,
.content-type-list b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #a855f7);
}

.gender-row {
  justify-content: center;
  gap: 22px;
  margin-top: 14px;
}

.gender-row > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #283052;
  font-size: 12px;
  font-weight: 780;
}

.gender-row em {
  font-style: normal;
}

.gender-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.content-type-list article {
  display: grid;
  grid-template-columns: 32px minmax(120px, 1fr) minmax(120px, 1.3fr) auto auto;
  gap: 10px;
  align-items: center;
}

.content-type-list strong,
.content-type-list em,
.content-type-list small {
  font-size: 13px;
}

.content-type-list em {
  font-style: normal;
  font-weight: 820;
}

.content-type-list small {
  color: #283052;
  font-weight: 780;
}

.recommendation-panel {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(210px, 0.7fr) auto;
  gap: 18px;
  border-radius: 8px;
  padding: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 16%, rgba(109, 40, 255, 0.55), transparent 28%),
    linear-gradient(135deg, #070817, #1a0754 68%, #321094);
  box-shadow: 0 28px 80px rgba(25, 23, 49, 0.2);
}

.analyst-orb.mini {
  width: 58px;
  height: 58px;
  box-shadow: 0 16px 38px rgba(7, 8, 23, 0.2);
}

.analyst-orb.mini strong {
  font-size: 14px;
}

.recommendation-copy h2 {
  margin: 4px 0 6px;
  font-size: 15px;
}

.recommendation-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

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

.impact-grid article {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
  padding-inline-start: 14px;
}

.impact-grid strong,
.impact-grid span {
  display: block;
}

.impact-grid strong {
  color: #ffffff;
  font-size: 22px;
}

.impact-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
}

.report-button {
  min-height: 46px;
  align-self: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--accent);
  background: #ffffff;
  font-size: 13px;
  font-weight: 820;
}

.rail-panel {
  display: grid;
  gap: 14px;
}

.rail-header {
  margin-bottom: 0;
}

.insight-list article {
  gap: 12px;
}

.insight-icon.purple { background: linear-gradient(135deg, #6d28ff, #8b5cf6); }
.insight-icon.green { background: linear-gradient(135deg, #0f9f6e, #34d399); }
.insight-icon.orange { background: linear-gradient(135deg, #f48118, #fb923c); }
.insight-icon.blue { background: linear-gradient(135deg, #1887e8, #60a5fa); }
.insight-icon.violet { background: linear-gradient(135deg, #8b5cf6, #c084fc); }

.insight-list strong,
.top-content-list strong,
.reports-list strong {
  display: block;
  font-size: 13px;
}

.insight-list p {
  margin: 3px 0 0;
  color: #283052;
  font-size: 12px;
  line-height: 1.4;
}

.top-content-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.content-thumb {
  display: block;
  width: 54px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #12172a, var(--accent));
}

.run-one { background: linear-gradient(135deg, #12172a, #f59e0b); }
.run-two { background: linear-gradient(135deg, #151021, #ea580c); }
.run-three { background: linear-gradient(135deg, #0f172a, #2563eb); }
.run-four { background: linear-gradient(135deg, #1b1230, #f43f5e); }
.mindset { background: linear-gradient(135deg, #050505, #4c16d7); }

.top-content-list small,
.reports-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.top-content-list dl {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px;
  margin: 0;
}

.top-content-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.top-content-list dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.reports-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
}

.reports-list button {
  min-height: 44px;
  border: 1px solid rgba(109, 40, 255, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--accent);
  background: #ffffff;
  font-size: 11px;
  font-weight: 820;
}

@media (max-width: 1580px) {
.summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1260px) {
.analytics-layout {
    grid-template-columns: 1fr;
  }

  .analytics-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
.analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-rail {
    grid-template-columns: 1fr;
  }

  .recommendation-panel {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .impact-grid,
.report-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
.analytics-main {
    padding: 18px 18px 104px;
  }

  .analyst-hero,
.analyst-stats,
.summary-grid,
.platform-body,
.demographics-body,
.content-type-list article,
.analytics-rail,
.impact-grid {
    grid-template-columns: 1fr;
  }

  .hero-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .analyst-orb {
    width: 92px;
    height: 92px;
  }

  .analytics-toolbar,
.panel-header,
.rail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-tabs {
    width: 100%;
  }

  .analytics-tabs button {
    flex: 1 1 140px;
  }

  .period-filter {
    width: 100%;
  }

  .line-chart {
    min-height: 230px;
  }

  .line-chart svg {
    height: 220px;
  }

  .donut,
.audience-donut {
    justify-self: center;
  }

  .top-content-list article {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .top-content-list dl {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

@media (max-width: 560px) {
.analytics-primary,
.analytics-layout,
.analytics-rail {
    gap: 16px;
  }

  .analyst-hero,
.panel,
.rail-panel,
.recommendation-panel {
    padding: 16px;
  }

  .analyst-copy h2 {
    font-size: 28px;
  }

  .summary-card strong {
    font-size: 24px;
  }

  .reports-list article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .reports-list button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
