/* One brand palette. Semantic colors stay on signals, not whole modules. */
:root{--blue:#3861c9;--blue-soft:#edf2fc;--cyan:#287b91;--green:#238264;--amber:#a36b19;--violet:#7758ad;--coral:#bc5269;--ink:#243247;--muted:#607087;--faint:#738197;--line:#e0e6ee;--soft:#f6f8fb;--bg:#fff;--surface:#fff}
.panel,.engagement,.operations,.creation,.recent,.recommended,.creators-grid>.panel,.quota,.resources-grid>.panel,.system-strip{--accent:var(--blue);--wash:var(--soft);border-color:var(--line);background:var(--surface)}
.panel:hover{border-color:#bac9df}
.panel>.panel-heading,.operations>.panel-heading,.recommended>.panel-heading{background:linear-gradient(100deg,var(--soft),var(--surface));border-bottom-color:var(--line)}
.panel-heading h2,.section-band h2,.section-band:has(+.creators-grid) h2,.section-band:has(+.resources-grid) h2{color:var(--ink)}
.panel-heading .section-icon{color:var(--blue)}
.recommended .section-icon{color:var(--violet)}
.system-strip .section-icon{color:var(--green)}
.quota .section-icon{color:var(--amber)}
.metric,.compact .metric,.metric:nth-child(2),.metric:nth-child(3),.metric:nth-child(4){--accent:var(--blue);--card-start:#f8fafd;--card-end:#ecf1f9;color:var(--ink);border:1px solid #dce4f0!important;background:linear-gradient(120deg,var(--card-start),var(--card-end))}
.metric:first-child{--card-start:#eef3ff;--card-end:#dce7fb;border-color:#cbd9f2!important}
.metric .metric-label{color:#35465f}
.metric .metric-value{color:var(--ink)}
.metric:first-child .metric-value{color:#3159bc}
.metric .metric-label .icon-tile{color:var(--blue)}
.metric .metric-value>span,.metric .metric-foot,.metric .info-button{color:#536781}
.metric .metric-foot{opacity:1}.metric .metric-foot .delta{color:var(--green)}
.stat-row>strong,.stat-row:nth-child(n)>strong,.rank-metric:nth-child(n)>strong{color:var(--ink)}
.stat-row:nth-child(3)>strong{color:var(--amber)}
.nav-item>.icon,.nav-group>button>.icon{color:#617592}
.nav-item.active>.icon,.nav-item.active{color:var(--blue)}
.nav-item.active{background:var(--blue-soft)}
.nav-item:hover,.nav-group>button:hover{background:var(--soft);color:var(--blue)}
.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.button.primary:hover{background:#2c50af;border-color:#2c50af}
.avatar,.avatar.violet,.avatar.cyan,.avatar.green,.avatar.amber,.mini-avatar,.mini-avatar.cyan{background:#edf2f9;color:#526b94}
.recommended .avatar{background:#f0edf7;color:var(--violet)}
.rank-row:first-child{background:#f2f5fa}
.rank-row:first-child .rank-number{color:var(--blue)}
.rank-row:hover,.progress-row:hover{background:#f1f5fc}
.recommended-person:hover{background:#f5f3fa}
.progress-row{--progress-accent:var(--blue)}
.progress-info .track{background:#eaf0f8}
.progress-info .track>b{background:linear-gradient(90deg,#88a9e9,#4169c7)}
.progress-top .progress-status{color:var(--blue)}
.activity-tags>span:nth-child(n){background:var(--soft);border-color:var(--line);color:var(--muted)}
.activity-tags>span:nth-child(4){background:#fbf5e9;border-color:#ede1c8;color:#8c601f}
.activity-tags>span:nth-child(5){background:#edf6f1;border-color:#dbeadf;color:#28765a}
.system-strip{background:#f7fbf9;border-color:#dbe9e1}
.cover-placeholder:hover{background:#f1f5fc;border-color:#bac9df}
.donut-hole strong{color:var(--ink)}
.engagement-legend button:nth-child(n) strong{color:var(--ink)}
::selection{background:#dce7fb;color:#243e77}
.dark{--ink:#e4eaf5;--muted:#a8b5ca;--faint:#91a1bb;--line:#354158;--soft:#252f42;--surface:#20293a;--bg:#192131;--blue:#91b0fa;--blue-soft:#303f5b}
.dark .panel:hover{border-color:#617592}
.dark .metric,.dark .metric:nth-child(n){--card-start:#28364d;--card-end:#243047;border-color:#3b4e6a!important}
.dark .metric:first-child{--card-start:#304566;--card-end:#293957}
.dark .metric .metric-label,.dark .metric .metric-foot,.dark .metric .metric-value>span,.dark .metric .info-button{color:#bccce3}
.dark .metric:first-child .metric-value{color:#a9c3ff}
.dark .button.primary{background:#426bd0;color:white;border-color:#426bd0}
.dark .avatar,.dark .avatar.violet,.dark .avatar.cyan,.dark .avatar.green,.dark .avatar.amber,.dark .mini-avatar{background:#34445e;color:#c4d3eb}
.dark .rank-row:first-child,.dark .rank-row:hover,.dark .progress-row:hover,.dark .recommended-person:hover{background:#29384e}
.dark .activity-tags>span:nth-child(n){background:var(--soft);border-color:var(--line);color:var(--ink)}
.dark .progress-info .track{background:#334158}
.dark .system-strip{background:#21362f;border-color:#355448}

/* Creator discovery: spacious rows, distinct coverage colors and ranked capsules. */
.hf-shared-shell .creators-grid {
  --creator-row-height: 116px;
  --creator-padding: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.hf-shared-shell .creators-grid > .panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
  border-color: var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.hf-shared-shell .creators-grid .panel-heading {
  align-items: center;
  gap: 16px;
  padding: 22px var(--creator-padding) 20px;
  background: var(--surface);
}
.hf-shared-shell .creators-grid .panel-heading h2 {
  font-size: 19px;
  line-height: 28px;
  letter-spacing: 0;
}
.hf-shared-shell .creators-grid .panel-heading p {
  margin-top: 6px;
  font-size: 14px;
}
.hf-shared-shell .creators-grid > .panel:last-child .section-icon { color: var(--amber); }
.hf-shared-shell .creators-grid .panel-heading .subtle-label {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}
.hf-shared-shell .creators-grid .panel-heading .icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hf-shared-shell .creators-grid :is(.creator-progress, .ranking) {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 4px var(--creator-padding) 12px;
}
.hf-shared-shell .creators-grid :is(.progress-row, .rank-row) {
  min-height: var(--creator-row-height);
  padding: 20px 0;
  border-radius: 0;
  background: transparent;
}
.hf-shared-shell .creators-grid :is(.progress-row, .rank-row):hover {
  background: color-mix(in srgb, var(--blue) 3%, var(--surface));
}
.hf-shared-shell .creators-grid .progress-row {
  align-items: center;
  gap: 16px;
}
.hf-shared-shell .creators-grid .progress-row:nth-child(4n + 1) { --progress-accent: #4264cf; }
.hf-shared-shell .creators-grid .progress-row:nth-child(4n + 2) { --progress-accent: #147d7d; }
.hf-shared-shell .creators-grid .progress-row:nth-child(4n + 3) { --progress-accent: #7f56b4; }
.hf-shared-shell .creators-grid .progress-row:nth-child(4n) { --progress-accent: #996b22; }
.hf-shared-shell .creators-grid .progress-info { min-width: 0; }
.hf-shared-shell .creators-grid .progress-top { flex-wrap: nowrap; gap: 16px; }
.hf-shared-shell .creators-grid .progress-top > span {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.hf-shared-shell .creators-grid .progress-status {
  flex-shrink: 0;
  color: var(--progress-accent);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hf-shared-shell .creators-grid .progress-status > span { margin-left: 2px; font-size: 12px; }
.hf-shared-shell .creators-grid .progress-info .track {
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--progress-accent) 11%, var(--surface));
}
.hf-shared-shell .creators-grid .progress-info .track > b {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--progress-accent) 55%, white), var(--progress-accent)) !important;
}
.hf-shared-shell .creators-grid .progress-detail { gap: 12px; margin-top: 9px; font-size: 13px; }
.hf-shared-shell .creators-grid .progress-detail b { font-weight: 500; }
.hf-shared-shell .creators-grid .progress-complete { color: var(--green); font-size: 12px; }
.hf-shared-shell .creators-grid .ranking .rank-row {
  display: grid;
  grid-template-columns: 32px var(--creator-avatar-size) minmax(90px, 1fr) minmax(250px, 1.6fr);
  column-gap: 12px;
  align-items: center;
}
.hf-shared-shell .creators-grid .rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hf-shared-shell .creators-grid .rank-row:nth-child(1) .rank-number { color: #8b5c10; background: #fff1ce; border-color: #edda9f; }
.hf-shared-shell .creators-grid .rank-row:nth-child(2) .rank-number { color: #53657b; background: #edf1f6; border-color: #d8e0ea; }
.hf-shared-shell .creators-grid .rank-row:nth-child(3) .rank-number { color: #9b6039; background: #faebdf; border-color: #efd4c0; }
.hf-shared-shell .creators-grid .rank-name { font-size: 15px; font-weight: 500; line-height: 1.5; }
.hf-shared-shell .creators-grid .rank-row:first-child .rank-name { font-weight: 600; }
.hf-shared-shell .creators-grid .rank-metrics {
  grid-column: auto;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
}
.hf-shared-shell .creators-grid .rank-metric { gap: 7px; }
.hf-shared-shell .creators-grid .rank-metric > span { gap: 4px; font-size: 12px; }
.hf-shared-shell .creators-grid .rank-metric .icon { width: 13px; height: 13px; }
.hf-shared-shell .creators-grid .rank-metric > strong { color: var(--ink); font-size: 19px; font-weight: 500; }
.hf-shared-shell .creators-grid .rank-metric:last-child > strong { color: var(--blue); font-size: 21px; font-weight: 600; }
.hf-shared-shell.dark .creators-grid .progress-row:nth-child(4n + 1) { --progress-accent: #9bb8ff; }
.hf-shared-shell.dark .creators-grid .progress-row:nth-child(4n + 2) { --progress-accent: #68c8bc; }
.hf-shared-shell.dark .creators-grid .progress-row:nth-child(4n + 3) { --progress-accent: #bda0ed; }
.hf-shared-shell.dark .creators-grid .progress-row:nth-child(4n) { --progress-accent: #e6be75; }
.hf-shared-shell.dark .creators-grid .rank-row:nth-child(1) .rank-number { color: #f0ce88; background: #3d3526; border-color: #665435; }
.hf-shared-shell.dark .creators-grid .rank-row:nth-child(2) .rank-number { color: #c0cde0; background: #303b4e; border-color: #4c5a70; }
.hf-shared-shell.dark .creators-grid .rank-row:nth-child(3) .rank-number { color: #e8b997; background: #3c302b; border-color: #62493a; }
@container (max-width: 500px) {
  .hf-shared-shell .creators-grid .ranking .rank-row {
    grid-template-columns: 32px var(--creator-avatar-size) minmax(0, 1fr);
    row-gap: 14px;
  }
  .hf-shared-shell .creators-grid .rank-metrics { grid-column: 2 / -1; gap: 16px; }
  .hf-shared-shell .creators-grid .rank-metric { gap: 4px; }
}
@media (max-width: 1380px) {
  .hf-shared-shell .creators-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hf-shared-shell .creators-grid { --creator-padding: 18px; --creator-row-height: 104px; gap: 18px; }
  .hf-shared-shell .creators-grid .panel-heading { gap: 10px; padding-top: 18px; padding-bottom: 16px; }
  .hf-shared-shell .creators-grid .panel-heading h2 { font-size: 18px; }
  .hf-shared-shell .creators-grid .panel-heading .subtle-label { padding: 5px 8px; font-size: 11px; }
  .hf-shared-shell .creators-grid .progress-row { gap: 12px; }
  .hf-shared-shell .creators-grid .progress-top { gap: 8px; }
  .hf-shared-shell .creators-grid .progress-top > span { font-size: 15px; }
  .hf-shared-shell .creators-grid .progress-detail { flex-wrap: wrap; gap: 4px 8px; font-size: 12px; }
}
@media (max-width: 360px) {
  .hf-shared-shell .creators-grid .rank-metrics { grid-column: 1 / -1; gap: 12px; }
}

/* Activity categories: semantic tints with distinct selected and keyboard states. */
.hf-shared-shell #activity-tab-overview { --activity-color: #3861c9; }
.hf-shared-shell #activity-tab-competitors { --activity-color: #287b91; }
.hf-shared-shell #activity-tab-accounts { --activity-color: #238264; }
.hf-shared-shell #activity-tab-targets { --activity-color: #7758ad; }
.hf-shared-shell #activity-tab-pending { --activity-color: #946014; }
.hf-shared-shell #activity-tab-notifications { --activity-color: #b34460; }
.hf-shared-shell.dark #activity-tab-overview { --activity-color: #91b0fa; }
.hf-shared-shell.dark #activity-tab-competitors { --activity-color: #79c7dc; }
.hf-shared-shell.dark #activity-tab-accounts { --activity-color: #73cbaa; }
.hf-shared-shell.dark #activity-tab-targets { --activity-color: #bc9aeb; }
.hf-shared-shell.dark #activity-tab-pending { --activity-color: #e8ba70; }
.hf-shared-shell.dark #activity-tab-notifications { --activity-color: #ed9bb1; }
.hf-shared-shell .dashboard-activity-tabs button[role="tab"] {
  color: var(--activity-color);
  background: color-mix(in srgb, var(--activity-color) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--activity-color) 28%, var(--surface));
}
.hf-shared-shell .dashboard-activity-tabs button[role="tab"]:hover {
  background: color-mix(in srgb, var(--activity-color) 14%, var(--surface));
  border-color: var(--activity-color);
}
.hf-shared-shell .dashboard-activity-tabs button[role="tab"].selected {
  background: color-mix(in srgb, var(--activity-color) 18%, var(--surface));
  border-color: var(--activity-color);
  box-shadow: inset 0 0 0 1px var(--activity-color);
}
.hf-shared-shell .dashboard-activity-tabs button[role="tab"]:focus-visible {
  outline-color: var(--activity-color);
}
