:root {
  --bg: #111111;
  --bg-soft: #151515;
  --surface: #181818;
  --surface-2: #202020;
  --surface-3: #252525;
  --ink: #f7f7f5;
  --muted: #a7a7a2;
  --muted-2: #73736d;
  --line: #2f2f2f;
  --line-strong: #3c3c3c;
  --green: #00e087;
  --green-2: #00c978;
  --blue: #5794ff;
  --purple: #b26cff;
  --yellow: #f5c400;
  --danger: #ff6b6b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --mono:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-size:
    auto,
    auto,
    42px 42px,
    42px 42px,
    auto;
}

a {
  color: var(--green);
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
}
input,
select {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #121212;
  padding: 9px 12px;
  outline: none;
  font-weight: 400;
}
input::placeholder {
  color: #777872;
}
select {
  color-scheme: dark;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 148, 255, 0.18);
  border-color: var(--blue);
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 18px 28px;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 12px;
}
.brand-logo {
  width: 174px;
  height: auto;
}
.side-nav {
  display: grid;
  gap: 4px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 2rem;
  color: var(--muted);
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.side-nav a:hover,
.side-nav a.is-active {
  background: #1c2333;
  border-color: #232d42;
  color: #ffffff;
}
.side-nav a.is-active {
  color: var(--blue);
}
.side-nav .danger {
  margin-top: 18px;
}
.side-nav .danger:hover {
  color: #ffffff;
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.22);
}
.menu-icon {
  width: 22px;
  text-align: center;
  font-size: 1.08rem;
}

.content-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 30px 28px 56px;
}
.topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0 0 28px;
  min-height: 48px;
}
.topbar-filters {
  display: grid;
  grid-template-columns:
    minmax(140px, 0.6fr) minmax(140px, 0.6fr) minmax(186px, 0.9fr)
    minmax(230px, 1.1fr) 112px;
  gap: 10px;
  align-items: end;
  width: min(1180px, 100%);
  padding: 10px;
  border-radius: 18px;
  background: rgba(24, 24, 24, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.topbar-filters label span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.search-label {
  min-width: 0;
}
.topbar-filters input,
.topbar-filters select {
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
}
.topbar-filters input[type="date"] {
  min-width: 0;
  padding: 9px 34px 9px 12px;
}
.topbar-filters .btn-primary {
  height: 44px;
  min-height: 44px;
  width: 100%;
  white-space: nowrap;
}
.btn {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 9px 15px;
  color: var(--ink);
  background: var(--surface-2);
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #06120c;
  background: var(--green);
  border-color: var(--green);
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(24, 24, 24, 0.72);
}
.filter-summary strong {
  color: var(--ink);
}
.filter-summary span,
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-family: var(--mono);
  line-height: 1;
  color: var(--muted);
  background: #202020;
}
.filter-summary a {
  margin-left: auto;
  color: var(--blue);
  font-weight: 500;
  font-size: 14px;
}

.eyebrow,
.panel-meta {
  display: inline-flex;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.panel-meta {
  color: var(--muted-2);
  text-transform: none;
  letter-spacing: 0;
}

/*
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.overview-grid--compact {
  max-width: 720px;
}

.kpi {
  position: relative;
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.kpi:hover {
  border-color: #545454;
  background: #1c1c1c;
  transform: translateY(-2px);
}
.kpi::after {
  content: attr(data-code);
  position: absolute;
  right: 16px;
  top: 14px;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.74rem;
}
.kpi span {
  font-weight: 800;
  color: var(--muted);
}
.kpi strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.82;
  letter-spacing: -0.085em;
}
.kpi-icon {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #232323;
  color: var(--blue) !important;
  font-size: 1.25rem;
}
.kpi:nth-child(1) .kpi-icon {
  color: var(--green) !important;
}
.kpi-label {
  margin-top: auto;
}
*/

.post-text {
  color: #d6d6dc;
  line-height: 1.5;
}

.post-more-btn {
  margin-top: 6px;
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
}

.post-more-btn:hover {
  text-decoration: none;
}

.overview-metrics {
  display: flex;
  gap: clamp(80px, 14vw, 260px);
  align-items: center;
  padding: 60px 0 80px;
}

/* Card behaves like inline element (no box feel) */
.metric-inline-card {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.metric-inline-card:hover {
  opacity: 0.9;
}

/* Softer, larger icon bubble */
.metric-inline-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(142, 124, 255, 0.12);
  color: #fbbf23;

  font-size: 1.8rem;
}

/* Text block */
.metric-inline-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* BIG bold number (this is the focus) */
.metric-inline-value {
  font-size: clamp(1rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 0.9;
  color: #ffffff;
}

/* Label: subtle but colored */
.metric-inline-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fbbf23;
}

/* Mobile */
@media (max-width: 768px) {
  .overview-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
}

.kpi,
.profile-card,
.panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(24, 24, 24, 0.92);
  box-shadow: none;
}

.panel {
  padding: 22px;
  margin-top: 16px;
}
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.panel h2,
.subheader h1 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.panel h2 i,
.subheader h1 i {
  margin-right: 10px;
  color: var(--yellow);
}
.panel select {
  max-width: 280px;
}
#categoriesBarChart {
  min-height: 330px;
}
#dailyPostsChart {
  min-height: 430px;
}

.subheader {
  margin: 0 0 2.125rem;
}
.subheader h1 {
  font-size: clamp(1rem, 4vw, 2rem);
  line-height: 0.95;
}
.subheader p {
  margin: 9px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.table-panel {
  overflow: hidden;
  padding: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  background: #141414;
  color: var(--muted);
}
td {
  background: rgba(24, 24, 24, 0.78);
  color: #e9e9e6;
}
tr:hover td {
  background: #1d1d1d;
}
.num,
.digit {
  font-family: var(--mono);
  font-weight: 700;
  color: #fff;
}
.post-text {
  max-width: 560px;
  color: #cfcfca;
  line-height: 1.55;
}
.muted,
.empty {
  color: var(--muted);
}
.chip {
  margin: 0 6px 6px 0;
  color: var(--green);
  background: rgba(0, 224, 135, 0.08);
  border-color: rgba(0, 224, 135, 0.22);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.chip:hover {
  background: rgba(0, 224, 135, 0.14);
  border-color: rgba(0, 224, 135, 0.36);
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: linear-gradient(
    135deg,
    rgba(24, 24, 24, 0.96),
    rgba(24, 34, 30, 0.92)
  );
}
.profile-card .avatar {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background: #202020;
  border: 1px solid var(--line-strong);
  font-size: 1.4rem;
}
.profile-card h1,
.profile-card h2 {
  margin: 0;
  color: #fff;
  letter-spacing: -0.05em;
  line-height: 1;
}
.profile-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 650;
}
.profile-card > strong {
  color: #fff;
  font-size: 2.2rem;
  letter-spacing: -0.06em;
}
.profile-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 2 / -1;
}
.profile-card.wide {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
}
.creator-hero-compact {
  padding: 16px;
}

.creator-hero__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.creator-profile-hero {
  width: 100%;
  padding: 14px;
  color: #f5f7f6;
}

.creator-profile-hero__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(520px, 1.65fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  min-height: 205px;
}

.creator-profile-summary {
  min-width: 0;
}

.creator-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.creator-title-icon {
  font-size: 54px;
  color: var(--yellow);
  opacity: 0.95;
}

.creator-title-row h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.creator-site-line,
.creator-stats-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 17px;
  line-height: 1.35;
  color: #f1f4f2;
}

.creator-site-line {
  margin-bottom: 6px;
  font-weight: 700;
}

.creator-site-line i {
  font-size: 18px;
}

.creator-stats-line {
  color: #d9dfdc;
}

.creator-stats-line strong {
  color: #ffffff;
  font-weight: 800;
}

.dot {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 3px;
}

.creator-taxonomy-panel {
  width: 100%;
  min-width: 0;
  padding: 20px 24px;
}

.taxonomy-section {
  min-width: 0;
}

.taxonomy-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: #f4f7f5;
  font-size: 14px;
  font-weight: 800;
}

.taxonomy-title i {
  color: #e6ece8;
  font-size: 15px;
}

.taxonomy-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line-strong);
}

.persona-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.persona-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 11px 15px;
  border-radius: 14px;
  background: rgba(73, 139, 201, 0.15);
  border: 1px solid rgba(133, 190, 255, 0.34);
  color: #e7f5ff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.persona-badge i {
  color: #aee1ff;
  font-size: 15px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
  overflow: visible;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 9px 12px 9px 15px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.065);
  border: 1px solid rgba(0, 255, 136, 0.28);
  color: #27ff91;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.category-badge:hover {
  background: rgba(0, 255, 136, 0.11);
  border-color: rgba(0, 255, 136, 0.48);
}

.category-badge small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.13);
  color: #c8ffe1;
  font-size: 12px;
  font-weight: 900;
}

.unclear-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);

  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;

  transition: color 140ms ease;
}

.unclear-category:hover {
  color: rgba(255, 255, 255, 0.82);
}

.unclear-category small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.muted {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  .creator-profile-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .creator-taxonomy-panel {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .creator-profile-hero {
    padding: 12px;
  }

  .creator-title-row {
    gap: 12px;
    margin-bottom: 16px;
  }

  .creator-title-icon {
    font-size: 36px;
  }

  .creator-site-line,
  .creator-stats-line {
    font-size: 15px;
  }

  .persona-badge {
    font-size: 14px;
  }

  .category-badge {
    font-size: 12px;
  }
}

.muted {
  color: #6f7a74;
}

@media (max-width: 760px) {
  .creator-hero__grid {
    grid-template-columns: 1fr;
  }

  .creator-meta h1 {
    font-size: 26px;
  }
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip--stat {
  background: var(--bg-subtle);
}

.chip--link small,
.chip--stat small {
  margin-left: 6px;
  opacity: 0.7;
}
.stat-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-row div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.stat-row strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  letter-spacing: -0.06em;
}
.stat-row span {
  color: var(--muted);
  font-weight: 700;
}

.creator-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr) minmax(
      260px,
      0.42fr
    );
  gap: 16px;
  align-items: stretch;
}
.side-panel {
  margin-top: 0;
}
.side-panel .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.side-panel .row:last-child {
  border-bottom: 0;
}
.side-panel .row span {
  font-weight: 700;
}
.side-panel .row b {
  font-family: var(--mono);
  color: #fff;
}
.side-panel .row small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.link-row:hover span {
  color: var(--blue);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #181818;
}
.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: var(--muted);
  background: #141414;
}
.pagination a:hover,
.pagination a.is-active {
  color: #fff;
  border-color: var(--blue);
  background: #1c2333;
}

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-panel {
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-logo {
  width: 210px;
  margin: 0 auto 24px;
  padding: 10px;
  border-radius: 16px;
}
.auth-panel h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  letter-spacing: -0.06em;
}
.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.auth-submit {
  width: 100%;
}
.auth-alert {
  padding: 12px;
  border: 1px solid rgba(255, 107, 107, 0.24);
  background: rgba(255, 107, 107, 0.08);
  border-radius: 14px;
  margin-bottom: 14px;
  color: #ffb2b2;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
}

.site-dropdown {
  position: relative;
  width: 100%;
}

.site-dropdown__toggle {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line, #ded7c8);
  background: var(--surface, #fffdf7);
  color: var(--ink, #10120f);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.site-dropdown__icon {
  color: var(--green, #00e681);
}

.site-dropdown__label {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-dropdown__caret {
  color: var(--muted, #6c6b63);
  transition: transform 0.18s ease;
}

.site-dropdown.is-open .site-dropdown__caret {
  transform: rotate(180deg);
}

.site-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
}

.site-dropdown.is-open .site-dropdown__menu {
  display: block;
}

.site-dropdown__menu-inner {
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--line, #ded7c8);
  background: var(--surface, #fffdf7);
  box-shadow: 0 18px 50px rgba(16, 18, 15, 0.14);
}

.site-dropdown__item {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink, #10120f);
  text-align: left;
  cursor: pointer;
}

.site-dropdown__item:hover,
.site-dropdown__item.is-selected {
  background: rgba(0, 230, 129, 0.12);
  color: var(--ink, #10120f);
}

.site-dropdown__item.is-selected {
  font-weight: 700;
}

.site-dropdown__menu-inner::-webkit-scrollbar {
  width: 10px;
}

.site-dropdown__menu-inner::-webkit-scrollbar-track {
  background: transparent;
}

.site-dropdown__menu-inner::-webkit-scrollbar-thumb {
  background: var(--line, #ded7c8);
  border-radius: 999px;
  border: 2px solid var(--surface, #fffdf7);
}

.site-dropdown__menu-inner::-webkit-scrollbar-thumb:hover {
  background: var(--green, #00e681);
}

.insight-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.insight-panel {
  padding: 28px;
}

.insight-panel__main {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: left;
}

.insight-panel__title,
.insight-panel__section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.insight-panel__icon {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 196, 0, 0.09);
  color: var(--yellow);
  font-size: 1.9rem;
}

.insight-panel__value {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
  color: var(--ink, #10120f);
  font-weight: 900;
}

.insight-panel__label {
  display: block;
  margin-top: 8px;
  color: var(--green, #00e681);
  font-weight: 800;
  font-size: 1rem;
}

.insight-panel__breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line, #ded7c8);
}

.insight-mini {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(16, 18, 15, 0.035);
  color: var(--ink, #10120f);
  text-decoration: none;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}

.insight-mini:hover {
  background: rgba(0, 230, 129, 0.12);
}

.insight-mini__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #fffdf7);
  color: var(--blue);
  border: 1px solid var(--line, #ded7c8);
  font-size: 0.88rem;
}

.insight-mini__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.insight-mini__name {
  color: var(--ink, #10120f);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insight-mini__meta {
  color: var(--muted, #6c6b63);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.insight-mini--unclear {
  grid-column: 1 / -1;
  padding-left: 12px;
}

.insight-mini--unclear .insight-mini__content {
  display: block;
}

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

@media (max-width: 560px) {
  .insight-panel {
    padding: 22px;
  }

  .insight-panel__main {
    min-height: 140px;
    justify-content: flex-start;
  }

  .insight-panel__breakdown {
    grid-template-columns: 1fr;
  }

  .insight-panel__icon {
    width: 68px;
    height: 68px;
    font-size: 1.5rem;
  }
}

@media (max-width: 1120px) {
  .site-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .content-shell {
    padding-top: 18px;
  }
  .topbar {
    justify-content: stretch;
  }
  .topbar-filters {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar-filters .btn {
    grid-column: 1 / -1;
  }
  .creator-hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .content-shell {
    padding: 16px 14px 40px;
  }
  .side-nav {
    grid-template-columns: 1fr 1fr;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .topbar-filters {
    grid-template-columns: 1fr;
  }
  .profile-card {
    grid-template-columns: 1fr;
  }
  .profile-card .chips {
    grid-column: auto;
  }
  table {
    min-width: 760px;
  }
  .table-panel {
    overflow-x: auto;
  }
  .brand-logo {
    width: 150px;
  }
}
