.overview-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.overview-top-grid > * {
  min-width: 0;
}

.overview-kpi-list {
  height: 100%;
  margin: 0;
}

.most-active-profile--compact {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  max-width: 320px;
  justify-self: end;
  width: 100%;
  border: 1px solid var(--border);
}

.most-active-profile--compact .most-active-profile-cover {
  min-height: 82px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.most-active-profile--compact .most-active-profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

.most-active-profile--compact .most-active-profile-ring {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  padding: 3px;
  background: #8e7cff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.most-active-profile--compact .most-active-profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 4px solid var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.7rem;
}

.most-active-profile--compact .most-active-profile-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 16px 16px;
  text-align: center;
}

.most-active-profile--compact .most-active-profile-name {
  margin: 6px 0 2px;
  font-size: 1.15rem;
  line-height: 1.15;
}

.most-active-profile--compact .most-active-profile-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.most-active-profile--compact .most-active-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 18px;
  padding: 8px 6px;
  margin-bottom: 0;
  box-shadow: none;
}

.most-active-profile--compact .most-active-profile-stat {
  padding: 6px 4px;
  border-radius: 12px;
}

.most-active-profile--compact .most-active-profile-stat-value {
  font-size: 1.05rem;
  line-height: 1;
}

.most-active-profile--compact .most-active-profile-stat-label {
  margin-top: 5px;
  font-size: 0.74rem;
}

.most-active-profile--compact .most-active-profile-topics {
  text-align: left;
}

.most-active-profile--compact .most-active-profile-topics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.most-active-profile-stat:hover {
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.most-active-profile-stat-threat:hover {
  background: rgba(205, 92, 92, 0.08);
}

.most-active-profile--compact .topic-chip {
  margin: 0;
  font-size: 0.74rem;
  padding: 5px 10px;
  min-height: 28px;
}

.actor-hero {
  margin-bottom: 1.5rem;
}

.actor-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 1.25rem;
  align-items: stretch;
}

.actor-hero-card,
.actor-topic-card {
  border: 1px solid rgba(140, 120, 200, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.actor-hero-card__cover {
  height: 92px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.actor-hero-card__body {
  padding: 0 1.5rem 1.5rem;
}

.actor-hero-card__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-top: -38px;
}

.actor-hero-card__avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.actor-hero-card__ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid rgba(129, 110, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.actor-hero-card__avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(129, 110, 255, 1);
  font-size: 1.35rem;
}

.actor-hero-card__name {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.actor-hero-card__subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted-color, #6d6790);
}

.actor-hero-card__actions {
  align-self: start;
}

.actor-hero-card__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.actor-hero-card__stats .most-active-profile-stat {
  min-width: 0;
  padding: 1rem;
}

.most-active-profile-stat {
  border: 1px solid rgba(140, 120, 200, 0.14);
  border-radius: 18px;
}

.actor-topic-card {
  padding: 1.25rem;
}

.actor-topic-card__header h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.actor-topic-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.actor-topic-card__row {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(207, 124, 255, 0.05);
  border: 1px solid rgba(140, 120, 200, 0.14);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.actor-topic-card__row:hover {
  border-color: rgba(140, 120, 200, 0.24);
  background: rgba(207, 124, 255, 0.08);
}

.actor-topic-card__row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.actor-topic-card__count {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(129, 110, 255, 0.12);
  font-size: 0.9rem;
}

.actor-topic-card__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(129, 110, 255, 0.1);
  overflow: hidden;
}

.actor-topic-card__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(129, 110, 255, 0.85),
    rgba(207, 124, 255, 0.7)
  );
}

html[data-theme="dark"] .actor-hero-card,
html[data-theme="dark"] .actor-topic-card {
  background: rgba(17, 24, 45, 0.92);
  border-color: rgba(207, 124, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .actor-hero-card__ring {
  background: rgba(14, 20, 36, 0.96);
  border-color: rgba(129, 110, 255, 0.9);
}

html[data-theme="dark"] .actor-hero-card__name {
  color: #eef0ff;
}

html[data-theme="dark"] .actor-hero-card__subtitle,
html[data-theme="dark"] .actor-topic-card__header h2 {
  color: #a7afcf;
}

html[data-theme="dark"] .actor-topic-card__name {
  color: #eef0ff;
}

/* 
html[data-theme="dark"] .actor-topic-card__row:hover {
  background: rgba(207, 124, 255, 0.09);
  border-color: rgba(207, 124, 255, 0.24);
}


html[data-theme="dark"] .actor-topic-card__row {
  background: rgba(207, 124, 255, 0.05);
  border-color: rgba(207, 124, 255, 0.14);
  color: #eef0ff;
}
  
html[data-theme="dark"] .actor-topic-card__count {
  background: rgba(207, 124, 255, 0.14);
  color: #f3dcff;
}

html[data-theme="dark"] .actor-topic-card__bar {
  background: rgba(207, 124, 255, 0.1);
}

html[data-theme="dark"] .actor-topic-card__fill {
  background: linear-gradient(
    90deg,
    rgba(129, 110, 255, 0.95),
    rgba(207, 124, 255, 0.78)
  );
}

html[data-theme="dark"] .actor-hero-card__actions .btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(207, 124, 255, 0.18);
  color: #eef0ff;
}

html[data-theme="dark"] .actor-hero-card__actions .btn:hover {
  background: rgba(207, 124, 255, 0.08);
  border-color: rgba(207, 124, 255, 0.28);
}

html[data-theme="dark"] .actor-hero-card__stats .most-active-profile-stat {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(207, 124, 255, 0.14);
} */

html[data-theme="dark"]
  .actor-hero-card__stats
  .most-active-profile-stat-value {
  color: #eef0ff;
}

html[data-theme="dark"]
  .actor-hero-card__stats
  .most-active-profile-stat-label {
  color: #a7afcf;
}

html[data-theme="dark"]
  .actor-hero-card__stats
  .most-active-profile-stat-threat {
  background: rgba(207, 124, 255, 0.06);
  border-color: rgba(207, 124, 255, 0.2);
}

html[data-theme="dark"]
  .actor-hero-card__stats
  .most-active-profile-stat-threat
  .most-active-profile-stat-value {
  color: #cf7cff;
}

html[data-theme="dark"] .topic-label {
  color: #cf7cff;
}

html[data-theme="dark"] .actor-hero-card__stats .most-active-profile-stat {
  border: 1px solid rgba(207, 124, 255, 0.14);
  border-radius: 18px;
}

@media (max-width: 980px) {
  .actor-hero__main {
    grid-template-columns: 1fr;
  }

  .actor-hero-card__top {
    grid-template-columns: auto 1fr;
  }

  .actor-hero-card__actions {
    grid-column: 1 / -1;
  }

  .actor-hero-card__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .actor-hero-card__top {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: -30px;
  }

  .actor-hero-card__avatar-wrap {
    justify-content: flex-start;
  }

  .actor-hero-card__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .most-active-profile--compact .most-active-profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
