:root,html[data-ks-design="leaderboard"]:root {
 --lb-paper:#f5f7f2; --lb-surface:#fff; --lb-soft:#eaf1e8; --lb-ink:#162522;
 --lb-muted:#4f655e; --lb-line:#dce5db; --lb-control:#748b80; --lb-action:#103d35; --lb-on:#fff;
 --lb-accent:#087d68; --lb-up:#17533d; --lb-down:#9b302a; --lb-warn:#795219;
 --lb-gold:#9a6b24; --lb-silver:#57746c; --lb-bronze:#884e36; --lb-champ:#f2f5e9;
 --lb-focus:#156c54;
 background:var(--lb-paper);
}
@media(prefers-color-scheme:dark) {
 :root,html[data-ks-design="leaderboard"]:root {
  color-scheme:dark;
  --lb-paper:#111c1a; --lb-surface:#1b2a26; --lb-soft:#243d34; --lb-ink:#edf5ef;
  --lb-muted:#b5c9c0; --lb-line:#40564e; --lb-control:#7c9d90; --lb-action:#79e5b5; --lb-on:#103d35;
  --lb-accent:#79e5b5; --lb-up:#92e3bc; --lb-down:#ffc1b7; --lb-warn:#f3cd91;
  --lb-gold:#e5bf73; --lb-silver:#a8cbc1; --lb-bronze:#e6ac92; --lb-champ:#27382b;
  --lb-focus:#79e5b5;
 }
}
body,html[data-ks-design="leaderboard"]:root body {
 margin:0; background:var(--lb-paper); color:var(--lb-ink);
 font:14px/1.5 'KOLscope Inter',Inter,system-ui,sans-serif;
}
.lb-main *, .lb-footer * { box-sizing:border-box }
.lb-main > .ks-main-anchor { position:absolute }
.lb-chart-results { display:grid; gap:32px }
.lb-scope-links:not([hidden]) { display:flex; flex-wrap:wrap; gap:8px }
body > .lb-main, html[data-ks-design="leaderboard"] body > .lb-main {
 --lb-gutter:36px;
 width:min(calc(100% - 2 * var(--lb-gutter)),1200px); max-width:none;
 margin:0 auto; padding:40px 0;
 display:grid; gap:32px;
}
.lb-main :is(h1,h2,h3,p),.lb-footer p { margin:0 }
.lb-main :is(a,button,input,textarea,select):focus-visible,.lb-footer a:focus-visible {
 outline:3px solid var(--lb-focus); outline-offset:3px;
}
.lb-main a:not(.lb-primary),.lb-footer a { color:var(--lb-action) }
.lb-hero { display:grid; gap:12px }
.lb-eyebrow { display:flex; align-items:center; gap:8px; color:var(--lb-action); font-size:11px; font-weight:760; letter-spacing:.09em; text-transform:uppercase }
.lb-eyebrow img { display:block }
html[data-ks-design="leaderboard"] .lb-hero h1,.lb-hero h1 { font-size:clamp(30px,3.4vw,40px); line-height:1.09; letter-spacing:-.03em; font-weight:760; color:var(--lb-ink) }
.lb-intro { color:var(--lb-muted); font-size:16px }
.lb-hero-actions { display:flex; align-items:center; justify-content:space-between; gap:12px }
.lb-fresh { display:grid; gap:3px; color:var(--lb-muted); font-size:12px }
.lb-fresh strong { display:flex; align-items:center; gap:7px; color:var(--lb-up); font-weight:650 }
.lb-fresh picture { display:flex }
.lb-fresh-stale strong,.lb-fresh.lb-muted strong { color:var(--lb-warn) }
.lb-fresh-stale picture { display:none }
.lb-button {
 display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px;
 max-width:100%; padding:8px 16px; border:1px solid var(--lb-line); border-radius:8px;
 background:transparent; color:var(--lb-action); font:650 13px/1.35 'KOLscope Inter',Inter,system-ui,sans-serif;
 text-align:left; text-decoration:none; cursor:pointer;
}
.lb-button picture,.lb-external picture { display:flex }
.lb-button:hover,.lb-external:hover { background:var(--lb-soft) }
.lb-primary { background:var(--lb-action); color:var(--lb-on); border-color:var(--lb-action) }
.lb-primary:hover { background:var(--lb-action); filter:brightness(1.1) }
.lb-button[disabled] { opacity:.6; cursor:wait }
.lb-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:fit-content; max-width:100% }
.lb-tabs:has(a:only-child) { grid-template-columns:1fr }
.lb-tabs a {
 display:flex; align-items:center; gap:8px; min-width:0; min-height:58px;
 border:1px solid var(--lb-line); border-radius:8px; background:var(--lb-surface);
 padding:10px 24px 10px 16px; color:var(--lb-ink); text-decoration:none;
}
.lb-tabs a[aria-current="page"] { border-color:var(--lb-line); background:var(--lb-soft) }
.lb-tabs a:hover { background:var(--lb-soft) }
.lb-tabs strong,.lb-tabs small { display:block }
.lb-tabs small { font-size:11px; color:var(--lb-muted) }
.lb-platform-icon { display:grid; place-items:center; flex:none; inline-size:26px; block-size:26px; background:#fff; border-radius:6px }
.lb-platform-icon img { display:block }
.lb-chart-heading { display:grid; justify-items:start; gap:6px }
.lb-chart-heading h2 { font-size:25px; font-weight:750; letter-spacing:-.028em; line-height:1.3 }
.lb-chart-heading p { color:var(--lb-muted); font-size:15px }
.lb-h3 { font-size:18px; line-height:1.35; font-weight:750; letter-spacing:-.018em }
.lb-podium { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); align-items:stretch; gap:24px; list-style:none; margin:16px 0 0; padding:0 }
.lb-podium.lb-three { grid-template-columns:repeat(3,minmax(0,1fr)) }
.lb-podium.lb-three .lb-place-2 { order:-1 }
.lb-podium-card { --lb-place:var(--lb-silver); display:grid; align-content:start; gap:16px; padding:20px; border:1px solid var(--lb-place); border-radius:12px; background:var(--lb-surface); min-width:0 }
.lb-podium-card.lb-place-1 { --lb-place:var(--lb-gold); background:var(--lb-soft) }
.lb-podium-card.lb-place-3 { --lb-place:var(--lb-bronze) }
.lb-podium-meta { display:flex; align-items:center; justify-content:space-between; gap:8px }
.lb-podium-platform { color:var(--lb-muted); font-size:12px }
.lb-badge { color:var(--lb-place); font-size:14px; font-weight:650 }
.lb-podium-identity,.lb-identity,.lb-detail-identity,.lb-row-creator { display:flex; align-items:center; gap:12px; min-width:0 }
.lb-podium-identity strong { font-size:16px }
.lb-identity-copy { display:grid; min-width:0; gap:2px; overflow-wrap:anywhere; line-height:1.4 }
.lb-identity-copy small { color:var(--lb-muted); font-size:12px }
.lb-identity-meta { display:flex; flex-wrap:wrap; align-items:center; column-gap:8px; min-width:0 }
.lb-inline-source { display:inline-flex; align-items:center; gap:8px; color:var(--lb-muted) }
.lb-avatar { --lb-avatar-size:40px; position:relative; display:grid; flex:none; place-items:center; width:var(--lb-avatar-size); height:var(--lb-avatar-size); border-radius:50%; overflow:hidden; background:var(--lb-soft); color:var(--lb-action); font-size:13px; font-weight:650 }
.lb-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.lb-podium-card .lb-avatar,.lb-detail-identity .lb-avatar { --lb-avatar-size:48px; font-size:16px }
.lb-podium-stat { display:flex; align-items:center; flex-wrap:wrap; gap:8px }
.lb-metric {
 min-height:44px; padding:2px 0; margin:0; border:0; border-radius:3px;
 background:none; color:var(--lb-ink); font:650 18px/1.15 'KOLscope Inter',Inter,system-ui,sans-serif; cursor:pointer;
 font-variant-numeric:tabular-nums; text-align:right;
}
.lb-metric:hover { text-decoration:underline; text-underline-offset:4px }
.lb-podium-stat .lb-metric { font-size:28px; min-height:40px; letter-spacing:-.02em }
.lb-stat-label,.lb-caption,.lb-section-head p { color:var(--lb-muted); font-size:12px }
.lb-change { font-size:12px; font-weight:650; font-variant-numeric:tabular-nums }
.lb-up { color:var(--lb-up) }
.lb-down { color:var(--lb-down) }
.lb-muted { color:var(--lb-muted) }
.lb-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px }
.lb-section-head h2 { font-size:22px }
.lb-table-wrap { border:1px solid var(--lb-line); border-radius:12px; background:var(--lb-surface); overflow:hidden }
.lb-table-wrap table { width:100%; border-spacing:0; text-align:left; table-layout:fixed }
.lb-table-wrap th { height:48px; padding:0 10px; background:var(--lb-soft); color:var(--lb-muted); font-size:12px; font-weight:500 }
.lb-table-wrap td { height:80px; border-top:1px solid var(--lb-line); padding:8px 10px; vertical-align:middle; font-variant-numeric:tabular-nums }
.lb-table-wrap tbody tr:hover,.lb-table-wrap tbody tr:focus-within { background:var(--lb-soft) }
.lb-table-wrap tbody tr:target { outline:2px solid var(--lb-accent); outline-offset:-2px }
.lb-table-wrap tr { scroll-margin-top:20px }
.lb-table-wrap td.lb-identity { display:table-cell; min-width:0; font-size:15px }
.lb-table-wrap .lb-category { display:none }
.lb-table-wrap th:first-child,.lb-table-wrap td:first-child { width:54px; padding-left:20px }
.lb-rank { color:var(--lb-muted); font-weight:500 }
.lb-table-wrap th:nth-child(n+3),.lb-table-wrap td:nth-child(n+3) { text-align:right }
.lb-table-wrap th:nth-child(3) { width:148px }
.lb-table-wrap th:nth-child(4),.lb-table-wrap th:nth-child(5) { width:128px }
.lb-table-wrap th:last-child { width:170px }
.lb-table-wrap th:last-child,.lb-table-wrap td:last-child { padding-right:20px }
.lb-value,.lb-growth,.lb-movement { white-space:nowrap }
.lb-row-actions { display:flex; align-items:center; justify-content:end; gap:4px }
.lb-profile-link { min-height:44px; display:inline-flex; align-items:center; justify-content:center; color:var(--lb-action); font:650 13px/1.35 'KOLscope Inter',Inter,system-ui,sans-serif; border:1px solid var(--lb-line); border-radius:8px; padding:8px 16px; background:transparent; text-decoration:none; white-space:nowrap }
.lb-profile-link:hover { background:var(--lb-soft) }
.lb-external { display:inline-flex; flex:none; align-items:center; justify-content:center; width:24px; height:44px; border-radius:8px }
.lb-mobile-label,.lb-mobile-source,.lb-value-label { display:none }
.lb-table-wrap + .lb-caption { margin-top:16px }
.lb-panel {
 border:1px solid var(--lb-line); border-radius:12px; padding:24px;
 background:var(--lb-surface); display:grid; justify-items:start; align-content:start; gap:10px;
}
.lb-panel h2 { font-size:20px; font-weight:750; line-height:1.25 }
.lb-panel p { color:var(--lb-muted); font-size:13px }
.lb-chart-state h2 { font-size:17px }
.lb-soft,.lb-stale { background:var(--lb-soft) }
.lb-stale strong { color:var(--lb-warn) }
.lb-support { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px }
.lb-footer { background:var(--lb-surface); border-top:1px solid var(--lb-line); color:var(--lb-muted) }
.lb-footer > div { display:grid; justify-items:start; gap:6px; width:min(calc(100% - 72px),1200px); margin:0 auto; padding:32px 0; font-size:12px }
.lb-footer p:first-of-type { font-weight:650; color:var(--lb-action) }
.lb-dialog {
 width:min(328px,calc(100% - 32px)); max-height:calc(100% - 32px); color:var(--lb-ink);
 background:var(--lb-surface); border:1px solid var(--lb-line); padding:0;
 border-radius:16px; box-shadow:0 12px 28px #102d2940; overscroll-behavior:contain;
}
.lb-dialog::backdrop { background:#0b231f78 }
.lb-dialog-inner { display:grid; justify-items:start; gap:12px; padding:16px }
.lb-dialog-head { display:flex; align-items:center; justify-content:space-between; width:100%; gap:8px }
.lb-dialog-head h2 { font-size:19px; line-height:1.2 }
.lb-dialog h3 { font-size:14px; font-weight:750 }
.lb-dialog p { color:var(--lb-muted); font-size:13px }
.lb-close { width:44px; flex:none; padding:8px }
@media(prefers-color-scheme:dark) { .lb-close img,.lb-chart-heading button > img { filter:brightness(0) invert(88%) sepia(13%) saturate(1010%) hue-rotate(78deg) } }
.lb-detail-identity strong { font-size:19px }
.lb-detail-values { display:flex; justify-content:space-between; width:100%; gap:12px; padding:12px; border:1px solid var(--lb-line); border-radius:12px; background:var(--lb-soft) }
.lb-detail-values span { display:block; font-size:11px; color:var(--lb-muted) }
.lb-detail-values strong { font-size:23px; font-variant-numeric:tabular-nums }
.lb-detail-values > div:last-child { text-align:right }
.lb-history { width:100%; border:1px solid var(--lb-line); border-radius:12px; padding:10px }
.lb-history svg { display:block; width:100%; height:auto; fill:none; stroke:var(--lb-line) }
.lb-history polyline { stroke:var(--lb-accent); stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round }
.lb-dialog form { display:grid; gap:11px; width:100% }
.lb-dialog label { display:grid; width:100%; gap:4px; font-size:13px; font-weight:650 }
.lb-dialog :is(input,select,textarea) {
 width:100%; min-height:44px; padding:8px 10px; border:1px solid var(--lb-control); border-radius:8px;
 color:var(--lb-ink); background:var(--lb-surface); font:400 14px/1.35 'KOLscope Inter',Inter,system-ui,sans-serif;
}
.lb-dialog :is(input,textarea)::placeholder { color:var(--lb-muted) }
.lb-dialog textarea { min-height:68px; resize:vertical }
.lb-dialog p[role="status"]:empty { display:none }
.lb-dialog p[data-error] { color:var(--lb-down) }
.lb-dialog p[data-success] { color:var(--lb-up) }
@media(max-width:1100px) and (min-width:801px) {
 .lb-table-wrap th:nth-child(3) { width:100px }
 .lb-table-wrap th:nth-child(4),.lb-table-wrap th:nth-child(5) { width:110px }
 .lb-table-wrap th:last-child { width:142px }
 .lb-table-wrap :is(th,td) { padding-inline:6px }
 .lb-profile-link { padding-inline:10px }
 .lb-podium { gap:16px }
 .lb-podium-card { padding:16px }
}
@media(max-width:800px) {
 .lb-chart-results { gap:24px }
 body > .lb-main,html[data-ks-design="leaderboard"] body > .lb-main { --lb-gutter:16px; padding:24px 0; gap:24px }
 .lb-hero { gap:12px }
 html[data-ks-design="leaderboard"] .lb-hero h1,.lb-hero h1 { font-size:30px; line-height:1.1 }
 .lb-intro { font-size:14px }
 .lb-hero-actions { align-items:start; flex-direction:column }
 .lb-chart-heading h2 { font-size:20px }
 .lb-chart-heading p { font-size:13px }
 .lb-podium,.lb-podium.lb-three { grid-template-columns:minmax(0,1fr); gap:8px; margin-top:8px }
 .lb-podium.lb-three .lb-place-2 { order:0 }
 .lb-podium-card { grid-template-columns:18px minmax(0,1fr) auto; align-items:center; gap:8px; padding:12px; min-height:76px }
 .lb-podium-meta .lb-platform-icon,.lb-podium-platform { display:none }
 .lb-badge { font-size:13px }
 .lb-podium-identity { gap:10px }
 .lb-podium-identity strong { font-size:13px }
 .lb-podium-card .lb-avatar { --lb-avatar-size:40px }
 .lb-podium-card small { font-size:11px }
 .lb-podium-stat { display:grid; gap:0; justify-items:end; min-width:60px }
 .lb-podium-stat .lb-metric { font-size:19px; min-height:32px }
 .lb-stat-label { font-size:10px }
 .lb-category { display:none }
 .lb-section-head { align-items:start; flex-direction:column; gap:8px; margin-bottom:12px }
 .lb-table-wrap :is(table,tbody) { display:block }
 .lb-table-wrap thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
 .lb-table-wrap tbody tr { display:grid; grid-template-columns:22px minmax(0,1fr) auto; grid-template-areas:"rank creator amount" ". growth growth" ". actions actions"; gap:4px 8px; align-items:center; padding:12px 12px 8px; border-top:1px solid var(--lb-line) }
 .lb-table-wrap tbody tr:first-child { border-top:0 }
 .lb-table-wrap td,.lb-table-wrap td:first-child,.lb-table-wrap td:last-child { width:auto; height:auto; padding:0; border:0; min-width:0 }
 .lb-table-wrap td.lb-identity { display:block; grid-area:creator; font-size:14px }
 .lb-row-creator { gap:8px }
 .lb-table-wrap .lb-avatar { --lb-avatar-size:36px; font-size:12px }
 .lb-table-wrap td.lb-identity small { font-size:11px }
 .lb-inline-source { display:none }
 .lb-rank { grid-area:rank; font-size:12px }
 .lb-value { grid-area:amount; align-self:start }
 .lb-value .lb-metric { min-height:32px }
 .lb-value-label { display:block; color:var(--lb-muted); font-size:10px }
 .lb-table-wrap td.lb-growth { grid-area:growth; text-align:left; padding-right:120px }
 .lb-table-wrap td.lb-movement { grid-area:growth; justify-self:end; text-align:left }
 .lb-mobile-label { display:inline; font-size:11px; color:var(--lb-muted) }
 .lb-table-wrap td .lb-change { font-size:11px }
 .lb-table-wrap td.lb-actions { grid-area:actions }
 .lb-row-actions { justify-content:space-between; gap:8px }
 .lb-mobile-source { display:block; margin-right:auto }
 .lb-row-actions .lb-external { display:none }
 .lb-mobile-source .lb-evidence-link { min-height:44px; padding:8px 16px; border:1px solid var(--lb-line); border-radius:8px; font-size:13px; font-weight:650 }
 .lb-support { grid-template-columns:minmax(0,1fr); gap:16px }
 .lb-footer > div { width:calc(100% - 32px) }
}

/* Metric help is outside the table so rounded edges cannot clip it. */
.lb-help { display:inline-flex; align-items:center; gap:5px; min-height:44px; padding:0; border:0; border-radius:4px; background:transparent; color:inherit; font:inherit; cursor:help; white-space:nowrap }
.lb-help:focus-visible { outline:2px solid var(--lb-focus); outline-offset:3px }
.lb-help span { font-size:14px }
.lb-help-popup { position:fixed; z-index:100; box-sizing:border-box; width:300px; max-width:calc(100vw - 24px); padding:14px; border:1px solid var(--lb-control); border-radius:10px; background:var(--lb-surface); color:var(--lb-ink); box-shadow:0 6px 20px #102d2933; font:400 13px/1.5 'KOLscope Inter',Inter,system-ui,sans-serif; white-space:normal; text-align:left }
.lb-help-popup[hidden] { display:none }
@media(max-width:640px) { .lb-table-wrap thead .lb-help { visibility:hidden } }

/* Saved eligibility evidence, separate from follower metrics and platform badges. */
.lb-evidence-link { display:inline-flex; align-items:center; font-size:12px; min-height:24px; color:var(--lb-action); text-decoration:none; white-space:normal }
.lb-evidence-link:hover { text-decoration:underline; text-underline-offset:3px }
.lb-dialog[id^="lb-evidence-"] { width:min(560px,calc(100% - 32px)) }
.lb-proof-summary,.lb-proof-sources { display:grid; gap:10px; width:100%; min-width:0 }
.lb-proof-summary { padding:0 }
.lb-proof-sources ul { list-style:none; display:grid; gap:12px; margin:0; padding:0; width:100% }
.lb-proof-sources li { display:grid; gap:6px; padding:16px; border:1px solid var(--lb-line); border-radius:8px; background:var(--lb-soft); overflow-wrap:anywhere }
.lb-proof-sources h4 { font-size:15px; line-height:1.4; margin:0 }
.lb-proof-sources a { min-height:44px; display:inline-flex; align-items:center; color:var(--lb-action); font-weight:650 }
.lb-proof-actions { display:flex; gap:10px; flex-wrap:wrap }
.lb-proof-page { max-width:820px }
.lb-proof-page h1 { font-size:clamp(28px,4vw,42px); line-height:1.15; margin:8px 0 12px }
.lb-proof-page header p { color:var(--lb-muted) }
.lb-proof-content { gap:24px; padding:24px; width:100%; min-width:0 }
.lb-proof-content h3 { font-size:18px; margin:0 }
.lb-proof-content p { font-size:14px; line-height:1.6 }
.lb-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
@media(max-width:640px) {
 .lb-proof-content { padding:16px; gap:18px }
 .lb-proof-page .lb-detail-identity { align-items:start }
 .lb-proof-page .lb-detail-identity strong { font-size:20px }
}

/* Eligibility references stay spacious without making the chart rows taller. */
.lb-dialog[id^="lb-evidence-"] .lb-dialog-inner { padding:24px; gap:20px }
.lb-dialog[id^="lb-evidence-"] .lb-dialog-head h2 { font-size:24px }
.lb-dialog[id^="lb-evidence-"] h3 { font-size:18px }
.lb-dialog[id^="lb-evidence-"] p { font-size:14px }
.lb-dialog[id^="lb-evidence-"] .lb-caption { font-size:12px }
.lb-dialog[id^="lb-evidence-"] .lb-proof-sources a { justify-self:start; padding:8px 16px; border:1px solid var(--lb-line); border-radius:8px; text-decoration:none; font-size:13px }
@media(max-width:800px) {
 .lb-dialog[id^="lb-evidence-"] .lb-dialog-inner { padding:20px }
 .lb-dialog[id^="lb-evidence-"] .lb-dialog-head h2 { font-size:22px }
 .lb-table-wrap .lb-help { min-height:24px }
}

.lb-preview-gate { position: relative; overflow: hidden; min-height: 460px; isolation: isolate; }
.lb-preview-skeleton { display:grid; gap:16px; filter:blur(8px); opacity:.55; pointer-events:none; }
.lb-preview-spotlight { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.lb-preview-placeholder { background:currentColor; opacity:.16; border-radius:14px; min-height:56px; }
.lb-preview-spotlight .lb-preview-placeholder { min-height:124px; }
.lb-preview-message { position:absolute; z-index:1; top:50%; left:50%; transform:translate(-50%,-50%); width:min(360px,calc(100% - 32px)); padding:24px; text-align:center; border-radius:16px; background:Canvas; color:CanvasText; box-shadow:0 8px 32px #0003; }
.lb-preview-message p { margin:8px 0 0; }
@media(max-width:640px) {
 .lb-preview-spotlight { grid-template-columns:1fr; }
 .lb-preview-spotlight .lb-preview-placeholder { min-height:56px; }
}
