.traders-page {
  --gold: #f2c45c;
  --silver: #dfe4ea;
  --bronze: #d9925a;
  --acid: #f3fa35;
  --up: #6fe394;
  --down: #ff8676;
  --muted: #b8c3b0;
  --faint: #8c977f;
  --paper: #f3f3df;
  max-width: var(--site-frame-width);
  width: 100%;
  padding: 0 var(--site-gutter) 96px;
}
.traders-page > .page-title {
  font-family: var(--display);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
  padding: 22px 0 30px;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.86;
  color: var(--paper);
}
.tb-title {
  font-family: var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 800;
  line-height: 0.9;
}
.tb-title span { color: var(--muted); }
.tb-top { margin-top: 12px; }
.tb-podium { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.tb-card {
  --medal: var(--gold);
  min-width: 0;
  color: var(--paper);
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--medal) 16%, transparent), transparent 60%),
    radial-gradient(120% 90% at 50% 0%, #1c2618, #080a08 80%);
  border: 1px solid #f3f3df14;
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "art place" "art text" "art value";
  align-content: center;
  gap: 4px 20px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.tb-card[data-place="1"] { border-color: color-mix(in srgb, var(--gold) 45%, transparent); box-shadow: 0 0 60px -28px var(--gold); }
.tb-card[data-place="2"] { --medal: var(--silver); }
.tb-card[data-place="3"] { --medal: var(--bronze); }
.tb-card:hover { border-color: color-mix(in srgb, var(--medal) 70%, transparent); transform: translateY(-2px); }
.tb-place { color: var(--medal); letter-spacing: 0.16em; text-transform: uppercase; grid-area: place; font-size: 11px; font-weight: 800; }
.tb-text { display: flex; flex-direction: column; grid-area: text; gap: 4px; min-width: 0; }
.tb-text strong {
  font-family: var(--display);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 0.95;
  overflow: hidden;
}
.tb-text small { color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; overflow: hidden; }
.tb-value { font-family: var(--display); font-variant-numeric: tabular-nums; grid-area: value; margin-top: 8px; font-size: 30px; font-weight: 800; line-height: 1; }
.tb-value[data-tone="up"], .tb-fig b[data-tone="up"] { color: var(--up); }
.tb-value[data-tone="down"], .tb-fig b[data-tone="down"] { color: var(--down); }
.tb-card .tb-portrait { grid-area: art; align-self: center; }
.tb-portrait {
  background: #05070599;
  border-radius: 12px;
  width: 58px;
  height: 58px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #f3f3df1a;
}
.tb-portrait[data-size="podium"] {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--medal) 50%, transparent);
}
.tb-portrait img { width: 190%; max-width: none; height: auto; position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); }
.tb-board { margin-top: 72px; }
.tb-toolbar, .tb-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.tb-sort { justify-content: space-between; margin: 0 0 18px; }
.tb-toolbar { margin: 0 0 14px; }
.tb-search {
  max-width: 460px;
  min-height: 48px;
  color: var(--muted);
  background: #f3f3df08;
  border: 1px solid #f3f3df1f;
  border-radius: 999px;
  flex: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}
.tb-search:focus-within { border-color: var(--acid); }
.tb-search input { min-width: 0; color: var(--paper); background: transparent; border: 0; outline: none; flex: 1; font-size: 15px; font-weight: 500; }
.tb-search input::placeholder { color: var(--faint); }
.tb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-filter {
  min-height: 40px;
  color: var(--muted);
  font: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f3f3df08;
  border: 1px solid #f3f3df1f;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
}
.tb-filter[aria-pressed="true"] { border-color: var(--acid); color: var(--acid); background: #f3fa3514; }
.tb-filter:hover { color: var(--paper); border-color: #f3f3df52; }
.tb-filter[aria-pressed="true"]:hover { color: var(--acid); }
.tb-count { color: var(--muted); white-space: nowrap; font-size: 13px; }
.tb-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tb-row {
  width: 100%;
  min-height: 82px;
  color: var(--paper);
  background: linear-gradient(90deg, #f3f3df08, #f3f3df03);
  border: 1px solid #f3f3df12;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr) 120px repeat(3, minmax(92px, auto)) 20px;
  align-items: center;
  gap: 8px 22px;
  padding: 12px 18px 12px 16px;
  text-align: left;
  transition: border-color .18s, transform .18s;
}
.tb-row[data-top] { background: linear-gradient(90deg, #f3fa3510, #f3f3df03 60%); border-color: #f3fa3533; }
.tb-row:hover { border-color: #f3f3df3d; transform: translateY(-1px); }
.tb-rank { color: var(--faint); font-family: var(--display); text-align: center; font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 800; }
.tb-row[data-top] .tb-rank { color: var(--acid); }
.tb-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tb-main strong { font-family: var(--display); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; font-size: 22px; font-weight: 800; line-height: 1; overflow: hidden; }
.tb-main small { color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; overflow: hidden; }
.tb-spark { display: block; }
.tb-spark polyline { fill: none; stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round; }
.tb-spark[data-tone="up"] polyline { stroke: var(--up); }
.tb-spark[data-tone="down"] polyline { stroke: var(--down); }
.tb-spark[data-tone="flat"] polyline { stroke: var(--faint); }
.tb-fig { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; white-space: nowrap; }
.tb-fig small { color: var(--faint); letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; font-weight: 800; }
.tb-fig b { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 800; }
.tb-fig[data-figure="total"] b { font-family: var(--display); color: var(--paper); font-size: 24px; line-height: 1; }
.tb-fig b[data-tone="up"] { color: var(--up); }
.tb-fig b[data-tone="down"] { color: var(--down); }
.tb-chevron { color: var(--faint); }
.tb-row:hover .tb-chevron { color: var(--acid); }
@media (max-width: 1100px) {
  .tb-row { grid-template-columns: 30px auto minmax(0, 1fr) repeat(3, minmax(84px, auto)) 20px; gap: 8px 16px; }
  .tb-form { display: none; }
}
@media (max-width: 900px) {
  .tb-podium { grid-template-columns: 1fr; gap: 10px; }
  .tb-card { border-radius: 18px; padding: 16px 18px; }
  .tb-portrait[data-size="podium"] { width: 72px; height: 72px; border-radius: 14px; }
}
@media (max-width: 650px) {
  .traders-page { padding: 0 16px 72px; }
  .tb-row { grid-template-columns: 28px auto minmax(0, 1fr) auto; }
  .tb-fig:not([data-figure="total"]) { display: none; }
}
