:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #777777;
  --line: #e8e8e8;
  --soft: #f7f7f7;
  --green: #387447;
  --accent: #eeeeee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.15px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #333333;
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
svg {
  display: block;
}
button svg,
a svg {
  flex-shrink: 0;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.brand-icon {
  width: 38px;
  height: 38px;
}
.shell {
  margin: 0;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px;
  font-size: 12px;
  color: var(--muted);
}
.slash {
  color: #cccccc;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.snapshot {
  display: flex;
  align-items: center;
  gap: 7px;
}
.snapshot i {
  width: 6px;
  height: 6px;
  background: #888888;
  border-radius: 50%;
}
main {
  max-width: 1450px;
  margin: auto;
  padding: 43px 46px 32px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #888888;
  margin-bottom: 14px;
}
h1 {
  font-size: 37px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -1.6px;
  margin: 0 0 12px;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.button {
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
  background: white;
}
.button:hover {
  background: var(--soft);
}
.intro .button {
  align-self: flex-end;
  margin-bottom: 3px;
}
.stats {
  display: flex;
  gap: 0;
  margin: 29px 0 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.stat {
  padding-right: 35px;
  margin-right: 35px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.stat:last-child {
  border-right: 0;
  margin: 0;
  padding: 0;
}
.stat strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.scope-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  color: #707070;
}
.chip:hover {
  background: var(--soft);
}
.chip.active {
  background: #292929;
  color: #fff;
}
.scope-select {
  padding: 9px 30px 9px 11px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  max-width: 100%;
}
.chart-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-top {
  padding: 23px 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.section-title {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 7px;
  letter-spacing: -0.3px;
}
.subtle {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.period {
  font-variant-numeric: tabular-nums;
}
.chart-legend {
  display: flex;
  gap: 19px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.plot {
  height: 302px;
  width: 100%;
}
.chart-caption {
  border-top: 1px solid var(--line);
  padding: 12px 25px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #fdfdfd;
}
.chart-caption .info {
  flex-shrink: 0;
  border: 1px solid #b8b8b8;
  border-radius: 50%;
  font-size: 9px;
  width: 13px;
  height: 13px;
  text-align: center;
  line-height: 12px;
}
.leaderboard {
  margin-top: 30px;
}
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}
.vault-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 550;
}
.search {
  position: relative;
}
.search svg {
  position: absolute;
  left: 10px;
  top: 10px;
  color: #909090;
}
.search input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px 10px 9px 32px;
  width: 197px;
  font-size: 12px;
}
.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
th {
  text-align: left;
  color: #838383;
  background: #fafafa;
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 0.25px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fdfdfd;
}
.number {
  text-align: right;
}
th .sort {
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.rank {
  width: 48px;
  color: #909090;
  text-align: center;
  padding-left: 20px;
  padding-right: 10px;
}
.rank span.first {
  display: inline-flex;
  background: var(--accent);
  color: #333333;
  border-radius: 5px;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
}
.entity {
  display: flex;
  align-items: center;
  gap: 11px;
}
.provider-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 550;
  flex-shrink: 0;
}
.entity-name {
  font-size: 13px;
  font-weight: 550;
}
.entity-sub {
  font-size: 10px;
  color: #999999;
  margin-top: 4px;
}
.positive {
  color: #43804f;
}
.negative {
  color: #b1544e;
}
.metric {
  font-size: 13px;
  font-weight: 500;
}
.coverage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #777777;
}
.coverage i {
  height: 4px;
  width: 32px;
  background: #eeeeee;
  border-radius: 3px;
  overflow: hidden;
}
.coverage i span {
  display: block;
  height: 100%;
  background: #aaaaaa;
}
.spark {
  width: 99px;
  height: 28px;
}
.row-action {
  color: #858585;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 10px;
}
.row-action:hover {
  background: var(--accent);
  color: #333333;
}
.board-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  font-size: 10px;
  color: #909090;
  line-height: 1.7;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 32px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  line-height: 1.7;
  color: #999999;
  font-size: 10px;
  margin-top: 32px;
}
.footer-links {
  display: flex;
  gap: 16px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  max-width: 650px;
  width: calc(100% - 32px);
  max-height: 85vh;
  box-shadow: 0 25px 100px #20202020;
  color: var(--ink);
}
dialog::backdrop {
  background: #20202040;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.dialog-head h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  font-weight: 550;
  margin: 0;
}
.close {
  font-size: 24px;
  color: #808080;
  padding: 0 5px;
}
dialog p,
dialog li {
  font-size: 13px;
  line-height: 1.8;
  color: #777777;
}
dialog h3 {
  font-size: 13px;
  margin-top: 23px;
}
dialog a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
dialog .address {
  overflow-wrap: anywhere;
  font-size: 11px;
}
dialog dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 12px;
  gap: 13px;
}
dialog dt {
  color: var(--muted);
}
dialog dd {
  margin: 0;
  text-align: right;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-top: 54px;
  }
  .plot {
    height: 350px;
  }
}
@media (max-width: 1100px) {
  .shell {
    margin: 0;
  }
  main {
    padding: 34px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .panel-top {
    flex-direction: column;
    gap: 14px;
  }
  .stats {
    gap: 0;
  }
  .stat {
    margin-right: 24px;
    padding-right: 24px;
  }
  td,
  th {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 760px) {
  .brand {
    font-size: 21px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    height: 49px;
    padding: 0 20px;
    font-size: 10px;
  }
  .snapshot {
    font-size: 10px;
  }
  .top-right {
    gap: 0;
  }
  main {
    padding: 29px 20px;
  }
  .intro {
    align-items: flex-start;
  }
  .intro .button {
    padding: 9px;
    font-size: 0;
    align-self: flex-start;
    margin-top: 25px;
  }
  .intro .button svg {
    width: 15px;
    height: 15px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -1.2px;
  }
  .subtitle {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .stats {
    margin: 24px 0 20px;
    padding-bottom: 20px;
  }
  .stat {
    padding-right: 17px;
    margin-right: 17px;
    gap: 6px;
  }
  .stat strong {
    font-size: 19px;
  }
  .stat span {
    font-size: 10px;
  }
  .scope-row {
    gap: 12px;
  }
  .chips {
    gap: 1px;
  }
  .chip {
    padding: 8px 10px;
    font-size: 11px;
  }
  .scope-select {
    font-size: 11px;
  }
  .panel-top {
    padding: 18px 17px 0;
  }
  .plot {
    height: 265px;
  }
  .chart-caption {
    padding: 12px 17px;
  }
  .section-title {
    font-size: 14px;
  }
  .board-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search input {
    width: 165px;
  }
  .footer {
    flex-direction: column;
    margin-top: 25px;
  }
  .board-footer {
    flex-direction: column;
    gap: 2px;
  }
  .chart-legend {
    gap: 16px;
  }
  .legend-item {
    font-size: 10px;
  }
  .spark {
    width: 70px;
  }
  .period {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  .table-scroll th:nth-child(3),
  .table-scroll td:nth-child(3),
  .table-scroll th:nth-last-child(2),
  .table-scroll td:nth-last-child(2) {
    display: none;
  }
  .table-scroll th,
  .table-scroll td {
    padding-left: 10px;
    padding-right: 10px;
  }
  .table-scroll .rank {
    padding-left: 10px;
    padding-right: 3px;
  }
  .provider-icon {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  .entity {
    gap: 7px;
  }
  .entity-name {
    font-size: 12px;
  }
  .metric {
    font-size: 12px;
  }
  .row-action {
    font-size: 9px;
    padding: 6px;
  }
  .table-scroll th {
    font-size: 9px;
  }
  .table-scroll .rank span.first {
    width: 21px;
    height: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.topbar .brand {
  color: var(--ink);
}
.topbar {
  padding-left: max(28px, calc((100vw - 1320px) / 2));
  padding-right: max(28px, calc((100vw - 1320px) / 2));
  height: 80px;
}
.header-category {
  font-size: 12px;
  color: #444444;
  padding: 7px 12px;
  background: #f4f4f4;
  border-radius: 6px;
}
.top-right {
  gap: 25px;
}
main {
  max-width: 1412px;
  padding-top: 40px;
}
.footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.stock-logo {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex-shrink: 0;
}
.stock-logo-wrap {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.provider-icon {
  background: #fff !important;
  overflow: hidden;
}
.provider-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.legend-logo {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.stock-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.entity-icons {
  position: relative;
  flex-shrink: 0;
}
.entity-icons .provider-icon {
  width: 34px;
  height: 34px;
}
.entity-icons .stock-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  padding: 2px;
  box-shadow: 0 0 0 2px white;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.dialog-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.dialog-identity img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.table-scroll .entity-icons {
  margin-right: 4px;
}
@media (max-width: 760px) {
  .topbar {
    height: 72px;
    padding: 0 20px;
  }
  .topbar .brand {
    font-size: 21px;
  }
  .top-right {
    gap: 0;
  }
  .header-category {
    display: none;
  }
  .topbar .snapshot {
    font-size: 10px;
  }
  .topbar .brand-icon {
    width: 32px;
    height: 32px;
  }
  .chip {
    gap: 6px;
    padding: 7px 9px;
  }
  .stock-logo-wrap {
    width: 20px;
    height: 20px;
  }
  .stock-logo {
    width: 17px;
    height: 17px;
  }
  main {
    padding: 28px 20px;
  }
  .entity-icons .provider-icon {
    width: 27px;
    height: 27px;
  }
  .provider-logo {
    width: 20px;
    height: 20px;
  }
  .entity-icons .stock-badge {
    width: 15px;
    height: 15px;
    right: -3px;
    bottom: -4px;
  }
  .chart-legend {
    gap: 13px;
  }
  .legend-item {
    gap: 5px;
  }
  .legend-logo {
    width: 15px;
    height: 15px;
  }
}
.arena-headline {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 0 0 25px;
}
@media (max-width: 760px) {
  .arena-headline {
    font-size: 24px;
    letter-spacing: -0.7px;
  }
}
.metric-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 2px 0;
}

.header-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-identity .arena-headline {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.4;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 20px;
  margin: 0;
}
.header-identity .brand {
  white-space: nowrap;
}
main > .stats {
  margin-top: 0;
}
@media (max-width: 760px) {
  .header-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .header-identity .arena-headline {
    font-size: 12px;
    border: 0;
    padding-left: 43px;
    letter-spacing: 0;
  }
  .topbar {
    height: 82px;
  }
  .topbar .snapshot {
    font-size: 9px;
  }
}
#stocks {
  width: 100%;
}

#stocks {
  gap: 10px;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--line);
  align-items: stretch;
  padding-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
#stocks .chip {
  position: relative;
  flex-shrink: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 14px;
  background: transparent;
  color: var(--muted);
  margin-bottom: -1px;
}
#stocks .chip:hover {
  color: var(--ink);
  background: #fafafa;
}
#stocks .chip.active {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}
#stocks [data-stock="ALL"] {
  margin-right: 8px;
  font-weight: 600;
  padding-left: 24px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
  background: #f7f7f7;
  color: #333333;
}
#stocks [data-stock="ALL"].active {
  border-bottom-color: #333333;
  background: #eeeeee;
}
.scope-row {
  margin-bottom: 22px;
}
@media (max-width: 760px) {
  #stocks {
    gap: 2px;
  }
  #stocks .chip {
    padding: 11px 9px;
  }
  #stocks [data-stock="ALL"] {
    padding-left: 16px;
    padding-right: 16px;
  }
}

#load-status {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
}

.incentive {
  display: inline-grid;
  grid-template-columns: 23px 1fr;
  width: 108px;
  align-items: center;
  gap: 7px;
  padding: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.incentive:hover {
  color: #333333;
}
.incentive small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
.merkl-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: #222222;
}
.merkl-logo img {
  object-fit: contain;
}
.incentive-unavailable {
  color: var(--muted);
}
.incentive-breakdown {
  padding-left: 18px;
  line-height: 1.8;
  font-size: 12px;
}
#incentive-status {
  display: block;
  margin-top: 4px;
}

.basket-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.leader-crown {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.vault-leader-mark {
  display: inline-flex;
  margin-left: 6px;
  color: #333333;
  vertical-align: -2px;
}
tr.return-leader {
  background: #f7f7f7;
}
tr.return-leader:hover {
  background: #f2f2f2;
}
tr.return-leader td:first-child {
  box-shadow: inset 2px 0 #333333;
}
.return-leader .rank span.first {
  background: #e8e8e8;
  color: #222222;
}

.chart-legend {
  align-items: center;
  gap: 10px;
}
.legend-item {
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
}
.legend-winner {
  background: #f5f5f5;
  border-color: #d9d9d9;
}
.legend-winner .leader-crown {
  color: #333333;
}
@media (max-width: 760px) {
  .chart-legend {
    gap: 3px;
  }
  .legend-item {
    padding: 6px;
  }
}

.period-selector {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: #f7f7f7;
  border-radius: 7px;
}
.period-selector button {
  border: 0;
  background: transparent;
  color: #808080;
  font: inherit;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.period-selector button[aria-pressed="true"] {
  background: #fff;
  color: #303030;
  box-shadow: 0 1px 3px #30303012;
}
.period-selector button:disabled {
  color: #b8b8b8;
  cursor: default;
}
.period-selector button:focus-visible {
  outline: 2px solid #333333;
  outline-offset: 2px;
}
.weekend-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
  color: #999999;
}
.weekend-key i {
  width: 12px;
  height: 2px;
  background: #dedede;
}
@media (max-width: 760px) {
  .chart-caption {
    flex-wrap: wrap;
  }
  .weekend-key {
    margin-left: 0;
  }
}

.topbar {
  height: auto;
  min-height: 80px;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.topbar .period-selector {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .topbar .top-right {
    width: 100%;
    gap: 12px;
    justify-content: space-between;
  }
}

/* Same asset navigation and comparison view for stocks and crypto. */
#stocks [data-stock="USDC"] {
  border-left: 1px solid var(--line);
  margin-left: 8px;
  padding-left: 22px;
}
[data-chart-metric]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* The existing legend doubles as the chart filter. */
button.legend-item {
  color: inherit;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}
button.legend-item:not(.legend-winner) {
  background: transparent;
}
button.legend-item[aria-pressed="false"] {
  opacity: 0.38;
}
button.legend-item:hover {
  border-color: #d9d9d9;
}
button.legend-item:focus-visible {
  outline: 2px solid #777;
  outline-offset: 2px;
}
