/* STAR50 leaderboard. Scoped to #star50; does not restyle S9 modules. */
#star50 .s50-tabs {
  display: flex;
  gap: 0;
  margin: 0.35rem 0 0.25rem;
  border-bottom: 1px solid var(--line, #D9D4CB);
}
#star50 .s50-tabs button {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0 0.5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--muted, #6F6A63);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
#star50 .s50-tabs button[aria-selected="true"] {
  color: var(--text, #111111);
  font-weight: 600;
  border-bottom-color: var(--text, #111111);
}
#star50 .s50-meta,
#star50 .s50-stale,
#star50 .s50-note {
  margin: 0.45rem 0 0;
  color: var(--muted, #6F6A63);
  font-size: 0.75rem;
  line-height: 1.5;
}
#star50 .s50-stale {
  color: var(--text, #111111);
  background: var(--paper-soft, #EFEBE3);
  padding: 0.35rem 0.5rem;
}
#star50 .s50-list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
}
#star50 .s50-row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line, #D9D4CB);
}
#star50 .s50-row:first-child { border-top: 0; }
#star50 .s50-rank {
  color: var(--muted, #6F6A63);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
#star50 .s50-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#star50 .s50-name strong {
  color: var(--text, #111111);
  font-size: 0.9375rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#star50 .s50-name small,
#star50 .s50-sub {
  color: var(--muted, #6F6A63);
  font-size: 0.75rem;
}
#star50 .s50-ret {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
#star50 .s50-main {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#star50 .s50-up { color: #C62828; }
#star50 .s50-down { color: #1B7F3B; }
#star50 .s50-flat { color: var(--muted, #6F6A63); }
#star50 .s50-empty {
  padding: 0.9rem 0;
  color: var(--muted, #6F6A63);
  font-size: 0.875rem;
}
