:root {
  --background: #fff;
  --surface: #f9fafb;
  --primary: #111;
  --secondary: #6a6a6a;
  --tertiary: #9a9a9a;
  --divider-strong: #ccc;
  --divider-subtle: #e6e7eb;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--primary);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { overflow-y: scroll; scroll-behavior: smooth; }
body { margin: 0; font-size: 13px; }
a { color: inherit; }
button, input { font: inherit; }
.shell { max-width: 1224px; margin: auto; padding: 0 28px; }
.topbar {
  position: sticky; top: 0; z-index: 10; height: 50px;
  display: flex; align-items: center; gap: 16px;
  background: var(--background); border-bottom: 1px solid var(--divider-subtle);
}
.brand { display: inline-flex; flex: none; gap: 5px; font-weight: 600; font-size: 14px; text-decoration: none; }
.brand-slash { color: var(--tertiary); }
.intro { padding: 24px 0 16px; }
.intro h1 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.overview {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--divider-subtle); border-radius: 5px; background: var(--surface);
}
.stat { min-width: 0; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.stat:not(:last-child) { border-right: 1px solid var(--divider-subtle); }
.stat-label, th { font-size: 11px; color: var(--tertiary); letter-spacing: .06em; text-transform: uppercase; }
.stat strong { font: 500 16px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 11px; color: var(--tertiary); }
.price-stat { justify-content: flex-start; gap: 6px; }
.price-list { display: grid; gap: 2px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; line-height: 15px; }
.price-asset { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.price-asset img { width: 16px; height: 16px; flex: none; object-fit: contain; border-radius: 4px; }
.price-row strong { font: 500 11px/15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: right; white-space: nowrap; }
.ranking { padding-top: 14px; }
.search-wrap {
  display: flex; flex: none; align-items: center; gap: 6px; width: 240px; height: 30px; margin-left: auto;
  padding: 0 10px; border: 1px solid var(--divider-strong); border-radius: 5px;
  background: var(--background); color: var(--tertiary);
}
.search-wrap:focus-within { border-color: var(--primary); }
.search-wrap span { font-size: 17px; }
.search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--primary); font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.search-wrap input::placeholder { color: var(--tertiary); }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 1040px; border-collapse: collapse; white-space: nowrap; }
th { text-align: left; background: var(--background); padding: 7px 8px; border-bottom: 1px solid var(--divider-strong); font-weight: 500; }
th.numeric { text-align: right; }
.sort-button { display: flex; align-items: center; gap: 4px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; cursor: pointer; }
.wallet-col .sort-button { padding-left: 43px; }
th.numeric .sort-button { justify-content: flex-end; }
.sort-button:hover, .sort-button:focus-visible, th[aria-sort] .sort-button { color: var(--primary); }
.sort-button:focus-visible { outline: 1px solid var(--primary); outline-offset: 3px; }
.sort-indicator { display: inline-block; min-width: 10px; color: var(--tertiary); text-align: center; font-size: 12px; line-height: 10px; }
th[aria-sort] .sort-indicator { color: var(--primary); }
.mobile-label, .small-label { display: none; }
td { border-bottom: 1px solid var(--divider-subtle); padding: 6px 8px; font-size: 12px; height: 36px; }
tbody tr:hover { background: var(--surface); }
td.numeric { text-align: right; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.balance-col { width: 115px; }
.power-col, td.power-value { border-left: 1px solid var(--divider-subtle); }
.ybc-col { width: 125px; }
.power-col { width: 165px; }
td.ybc-value { color: var(--tertiary); }
td.ybc-value.has-share { color: #0657f9; font-weight: 500; }
td.power-value { font-weight: 600; }
td.locker-balance { cursor: default; }
td.locker-balance:focus-visible { outline: 1px solid var(--primary); outline-offset: -2px; }
.locker-tooltip {
  position: fixed; z-index: 20; width: 192px; padding: 10px 12px;
  border: 1px solid var(--divider-subtle); border-radius: 5px;
  background: var(--background); box-shadow: 0 8px 24px #11111118;
  pointer-events: none;
}
.locker-tooltip[hidden] { display: none; }
.locker-tooltip-heading { margin-bottom: 8px; color: var(--tertiary); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.locker-tooltip-list { display: grid; gap: 7px; }
.locker-tooltip-row { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; }
.locker-tooltip-row img { width: 17px; height: 17px; flex: none; border-radius: 50%; object-fit: cover; }
.locker-tooltip-row strong { margin-left: auto; font: 500 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
td.rank { width: 54px; color: var(--tertiary); font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.address-line, .account-extras { display: inline-flex; align-items: center; vertical-align: middle; }
.badge-slot { display: inline-flex; align-items: center; width: 43px; vertical-align: middle; }
.address-line { white-space: nowrap; }
.address-label-compact { display: none; }
.address-link { font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-decoration: none; }
.address-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ve-mobile { display: none; }
.copy-trigger { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; padding: 0; border: 0; background: transparent; color: var(--tertiary); vertical-align: middle; cursor: pointer; }
.copy-trigger:hover, .copy-trigger:focus-visible { color: var(--primary); }
.copy-trigger:focus-visible { outline: 1px solid var(--primary); outline-offset: 1px; }
.copy-icon { position: relative; display: block; width: 14px; height: 14px; }
.copy-glyph, .check-glyph { position: absolute; inset: 0; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: opacity .15s, transform .15s; }
.copy-front { fill: var(--background); }
.check-glyph { opacity: 0; transform: scale(.8); }
.copy-trigger.is-copied { color: #16834a; }
.copy-trigger.is-copied .copy-glyph { opacity: 0; transform: scale(.8); }
.copy-trigger.is-copied .check-glyph { opacity: 1; transform: scale(1); }
.badge { display: inline-flex; align-items: center; padding: 2px 5px; border: 1px solid #4c86e8; border-radius: 4px; background: #f7faff; color: #1d2430; font: 600 9px/11px Arial, Helvetica, sans-serif; letter-spacing: .025em; }
.locker-logos { display: inline-flex; align-items: center; margin-left: 7px; vertical-align: middle; }
.locker-logos img { width: 18px; height: 18px; flex: none; border: 2px solid #fff; border-radius: 50%; object-fit: cover; background: #fff; }
.locker-logos img + img { margin-left: -6px; }
.empty { padding: 35px 8px; text-align: center; color: var(--tertiary); }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 9px 8px; color: var(--tertiary); font-size: 11px; }
#show-more { padding: 0; border: 0; background: transparent; color: var(--secondary); font-size: 11px; cursor: pointer; }
#show-more:hover { color: var(--primary); text-decoration: underline; }
#show-more span { margin-left: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .shell { padding: 0 14px; }
  .topbar { height: 46px; gap: 8px; }
  .intro { padding-top: 18px; }
  .overview { grid-template-columns: 1fr 1fr; }
  .stat { padding: 9px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--divider-subtle); }
  .price-asset { gap: 4px; font-size: 10px; }
  .price-asset img { width: 14px; height: 14px; }
  .price-row strong { font-size: 10px; }
  .search-wrap { flex: 1; width: auto; height: 28px; margin-left: auto; }
  .ranking { padding-top: 12px; }
  .table-scroll { width: calc(100% + 28px); margin-left: -14px; padding: 0 14px; }
  table { min-width: 440px; table-layout: fixed; }
  th, td { padding-left: 4px; padding-right: 4px; }
  th:nth-child(4), th:nth-child(5), th:nth-child(6), td:nth-child(4), td:nth-child(5), td:nth-child(6) { display: none; }
  th:nth-child(2) { width: 40%; }
  .balance-col { width: 15%; }
  .ybc-col { width: 16%; }
  .power-col { width: 24%; }
  .desktop-label { display: none; }
  .mobile-label { display: inline; font-size: 10px; }
  td.rank, .rank-col { width: 5%; }
  .address-link { font-size: 12px; }
  .ve-mobile { display: block; margin-top: 2px; color: var(--secondary); font: 10px/13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  td.numeric { font-size: 11px; }
  .copy-trigger { width: 18px; height: 18px; margin-left: 3px; }
  .locker-logos { margin-left: 4px; }
  .locker-logos img { width: 16px; height: 16px; border-width: 1px; }
  .locker-logos img + img { margin-left: -4px; }
  .wallet-col .sort-button { padding-left: 35px; }
  .badge-slot { width: 35px; }
}
@media (max-width: 480px) {
  .table-scroll { padding: 0 6px; }
  table { min-width: 370px; }
  .rank-col, td.rank { display: none; }
  th:nth-child(2) { width: 48%; }
  .balance-col { width: 13%; }
  .ybc-col { width: 15%; }
  .power-col { width: 24%; }
  .address-label { display: none; }
  .address-label-compact { display: inline; }
}
@media (max-width: 360px) {
  .table-scroll { padding: 0 4px; }
  table { min-width: 312px; }
  th, td { padding-left: 2px; padding-right: 2px; }
  th:nth-child(2) { width: 44%; }
  .balance-col, .ybc-col { width: 17%; }
  .power-col { width: 22%; }
  .power-col .mobile-label { display: none; }
  .power-col .small-label { display: inline; }
  .account-extras { display: flex; margin: 2px 0 0 35px; }
}
