.byte-rankings {
  --rank-ink: #0a0a0a;
  --rank-muted: #606060;
  --rank-subtle: #808080;
  --rank-border: #e4e4e4;
  --rank-surface: #fdfdfd;
  --rank-blue: #3ba2e9;
  --rank-green: #10b981;
  --rank-red: #f43f5e;
  padding: 104px 0 48px;
  background:
    radial-gradient(ellipse 52% 235px at 20% 115px, #dceffc, transparent 86%),
    radial-gradient(ellipse 43% 210px at 80% 90px, #dff2f4, transparent 85%),
    radial-gradient(ellipse 33% 180px at 50% 408px, #f6f6f9, transparent 85%),
    var(--rank-surface);
  color: var(--rank-ink);
  font: 14px/1.45 Arial, sans-serif;
}
.byte-rankings [hidden] { display: none !important; }
.rank-container { max-width: 1280px; padding-inline: 32px; margin-inline: auto; }
.byte-rankings h1, .byte-rankings h2, .byte-rankings h3 { color: var(--rank-ink); font-family: inherit; letter-spacing: normal; }
.rank-hero { margin-bottom: 32px; }
.rank-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.rank-hero p { color: var(--rank-subtle); margin: 0 0 20px; }
.rank-period { display: flex; border-bottom: 1px solid #ececec; }
.rank-period button, .byte-rankings [data-rank-retry] { position: relative; color: var(--rank-muted); background: transparent; border: 0; padding: 8px 12px; font: inherit; cursor: pointer; }
.rank-period button:hover, .rank-period button[aria-pressed="true"] { color: var(--rank-ink); }
.rank-period button[aria-pressed="true"]::after { content: ''; position: absolute; inset: auto 12px -1px; height: 2px; background: var(--rank-ink); border-radius: 2px; }
.rank-period button:focus-visible { outline: 2px solid var(--rank-blue); outline-offset: -2px; border-radius: 3px; }
.rank-panel { border: 1px solid var(--rank-border); border-radius: 16px; overflow: hidden; background: var(--rank-surface); margin-bottom: 32px; min-width: 0; }
.rank-chart-heading { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.rank-chart-heading h2, .rank-panel h3 { margin: 0; font-weight: 600; line-height: 1.5; }
.rank-chart-heading h2 { font-size: 16px; }
.rank-chart-heading h2 i { color: var(--rank-blue); width: 16px; margin-right: 8px; font-size: 14px; }
.rank-chart-heading p { margin: 4px 0 0; color: var(--rank-muted); }
.rank-total { flex: none; text-align: right; }
.rank-total strong { display: block; font: 600 24px/1.25 ui-monospace, monospace; }
.rank-total small { color: var(--rank-subtle); font-size: 10px; letter-spacing: .12em; }
.rank-chart-wrap { margin: 0 20px 20px; }
.rank-chart { display: block; width: 100%; height: 288px; }
.rank-chart text { fill: #747985; font: 11px sans-serif; }
.rank-gridline { stroke: rgba(15, 23, 42, .12); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.rank-panel-list { border-top: 1px solid var(--rank-border); padding: 16px 20px; }
.rank-panel h3 { font-size: 14px; }
.rank-panel-list h3 i { color: #ff9600; margin-right: 8px; }
.rank-panel-list p, .rank-pulse header p { color: var(--rank-subtle); font-size: 12px; margin: 4px 0 10px; }
.rank-columns, .rank-movements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.rank-list { padding: 0; margin: 0; list-style: none; }
.rank-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.rank-number { flex: none; width: 24px; font: 12px ui-monospace, monospace; color: var(--rank-subtle); text-align: right; }
.rank-brand, .rank-brand img { display: block; width: 22px; height: 22px; flex: none; }
.rank-brand img { object-fit: contain; }
.rank-brand-fallback { display: grid; place-items: center; border-radius: 50%; background: #f2f2f2; color: var(--rank-muted); font-size: 12px; }
.rank-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rank-entity { min-width: 0; flex: 1; }
.rank-entity strong, .rank-entity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-entity strong { font-weight: 500; }
.rank-entity a { color: var(--rank-ink); font-family: ui-monospace, monospace; text-decoration: underline; text-decoration-color: #b8b8b8; text-underline-offset: 4px; }
.rank-entity small { font-style: italic; margin-top: 1px; }
.rank-value { flex: none; text-align: right; font-family: ui-monospace, monospace; }
.rank-value strong { font-weight: 600; }
.rank-value strong span { color: var(--rank-subtle); font-weight: 400; }
.rank-list small { display: block; color: var(--rank-subtle); font-size: 11px; }
.rank-value small.rank-up, .rank-up { color: var(--rank-green); }
.rank-value small.rank-down, .rank-down { color: var(--rank-red); }
.rank-movements { gap: 16px; }
.rank-pulse { margin-bottom: 0; }
.rank-pulse header { padding: 12px 16px; border-bottom: 1px solid var(--rank-border); }
.rank-pulse header p { margin-bottom: 0; }
.rank-pulse header i { margin-right: 8px; }
.rank-pulse .rank-list li { padding: 8px 16px; }
.rank-empty, [data-rank-status] { padding: 24px 16px; margin: 0; color: var(--rank-subtle); text-align: center; }
.rank-chart-empty { min-height: 288px; display: grid; place-items: center; }
@media (max-width: 767px) {
  .byte-rankings { padding-top: 90px; }
  .rank-container { padding-inline: 14px; }
  .rank-chart { height: 240px; }
  .rank-columns, .rank-movements { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rank-movements { gap: 16px; }
  .rank-value strong span { display: none; }
}
