:root {
  color-scheme: light;
  --bg: #f8faf9;
  --surface: #ffffff;
  --muted-surface: #f1f5f4;
  --ink: #111817;
  --muted: #64716e;
  --line: #dbe3df;
  --line-strong: #bac8c2;
  --primary: #f97316;
  --primary-dark: #9a3412;
  --teal: #0f766e;
  --blue: #2563eb;
  --purple: #6d28d9;
  --shadow: 0 12px 28px rgba(17, 24, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.notice {
  border-bottom: 1px solid rgba(249, 115, 22, 0.3);
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.13), rgba(20, 184, 166, 0.08), rgba(37, 99, 235, 0.1));
}

.notice-inner {
  width: min(1280px, calc(100vw - 32px));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #26302d;
  font-size: 14px;
  text-align: center;
}

.notice-inner a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.notice-spark {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: var(--primary);
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 249, 0.94);
  backdrop-filter: blur(12px);
}

.header-main,
.metric-nav,
.chip-row,
.page {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
}

.header-main {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 3px #edf4f1;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  display: block;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.global-search {
  position: relative;
  display: block;
}

.global-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(241, 245, 244, 0.75);
  color: var(--ink);
  padding: 0 14px 0 40px;
  outline: none;
}

.global-search input:focus {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.search-icon,
.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m21 20-4.7-4.7A7.5 7.5 0 1 0 15 16.3L20 21zM5.5 10.5a5 5 0 1 1 10 0 5 5 0 0 1-10 0Z'/%3E%3C/svg%3E");
}

.trophy {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 3h10v2h3v3a5 5 0 0 1-5 5h-.2A5 5 0 0 1 13 15.6V18h4v2H7v-2h4v-2.4A5 5 0 0 1 9.2 13H9a5 5 0 0 1-5-5V5h3zm0 4H6v1a3 3 0 0 0 1.6 2.7A8 8 0 0 1 7 7m10 0a8 8 0 0 1-.6 3.7A3 3 0 0 0 18 8V7h-1Z'/%3E%3C/svg%3E");
}

.dollar {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M11 2h2v3h4v2h-5.5a2.5 2.5 0 0 0 0 5H13a4.5 4.5 0 0 1 0 9v1h-2v-1H6v-2h7a2.5 2.5 0 0 0 0-5h-1.5a4.5 4.5 0 0 1-.5-9z'/%3E%3C/svg%3E");
}

.gem {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m12 22-9-11 4-7h10l4 7zm-6.4-11L12 18.8 18.4 11l-2.5-5H8.1z'/%3E%3C/svg%3E");
}

.zap {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M13 2 3 14h8l-1 8 11-13h-8z'/%3E%3C/svg%3E");
}

.grid {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");
}

.sliders {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 7h9v2H4zm11-2h2v6h-2zm4 2h1v2h-1zM4 15h3v2H4zm5-2h2v6H9zm4 2h7v2h-7z'/%3E%3C/svg%3E");
}

.link {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M10.6 13.4a1.5 1.5 0 0 1 0-2.1l3.5-3.5a3 3 0 1 1 4.2 4.2l-2 2-1.4-1.4 2-2a1 1 0 0 0-1.4-1.4L12 12.7a1.5 1.5 0 0 1-1.4.7m2.8-2.8a1.5 1.5 0 0 1 0 2.1l-3.5 3.5A3 3 0 0 1 5.7 12l2-2 1.4 1.4-2 2a1 1 0 0 0 1.4 1.4l3.5-3.5a1.5 1.5 0 0 1 1.4-.7Z'/%3E%3C/svg%3E");
}

.top-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.top-links a,
.metric-tabs button,
.chip-row button,
.copy-button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.top-links a {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 650;
}

.top-links a:hover {
  background: var(--muted-surface);
}

.metric-nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(219, 227, 223, 0.7);
}

.metric-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.metric-tabs::-webkit-scrollbar {
  display: none;
}

.metric-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.metric-tabs button:hover {
  color: var(--ink);
  background: var(--muted-surface);
}

.metric-tabs button.is-active {
  color: var(--ink);
}

.metric-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.run-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.run-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px 9px;
}

.run-stats strong {
  color: var(--ink);
}

.chip-row {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  border-top: 1px solid rgba(219, 227, 223, 0.7);
}

.chip-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.chip-row button {
  min-height: 28px;
  padding: 4px 10px;
  border-color: var(--line);
  background: var(--surface);
  color: #33413d;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.chip-row button:hover,
.chip-row button.is-active {
  border-color: var(--teal);
  background: #e0f2ef;
  color: #0f4f49;
}

.page {
  padding: 26px 0 46px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 24px;
  align-items: end;
  padding: 10px 0 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.04;
  font-weight: 560;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-stats article,
.quick-picks,
.leaderboard-card,
.workload-card,
.protocol-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-stats article {
  min-height: 96px;
  padding: 14px;
}

.hero-stats span,
.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.hero-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 27px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-stats small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-picks {
  margin-bottom: 18px;
  padding: 17px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(15, 118, 110, 0.04) 40%, rgba(255, 255, 255, 0.95)),
    var(--surface);
}

.section-kicker,
.leaderboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-kicker p {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2 {
  margin-top: 2px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: 0;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border-color: var(--line-strong);
  background: var(--surface);
  color: #25312e;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.copy-button:hover,
.copy-button.copied {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pick-card {
  display: grid;
  gap: 9px;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.pick-card:hover {
  border-color: rgba(249, 115, 22, 0.58);
  background: var(--surface);
}

.pick-top,
.pick-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pick-top {
  justify-content: space-between;
}

.pick-label {
  color: #25312e;
  font-size: 14px;
  font-weight: 800;
}

.pick-score {
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  color: var(--primary-dark);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 850;
}

.pick-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.pick-meta,
.pick-desc {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.pick-desc {
  line-height: 1.42;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.leaderboard-head {
  padding: 16px 0 10px;
}

.leaderboard-head p {
  max-width: 820px;
  margin-top: 5px;
  color: var(--muted);
}

.version-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.leaderboard-card {
  overflow: hidden;
}

.chart-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(160px, 1fr) 70px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.chart-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.chart-row strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.chart-track,
.mini-bar {
  overflow: hidden;
  border-radius: 999px;
  background: #e5ece9;
}

.chart-track {
  height: 12px;
}

.chart-track i,
.mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.table-wrap {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #fbfcfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #fbfcfc;
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 30px;
  border-radius: 8px;
  background: #edf3f1;
  font-weight: 850;
}

.router-title {
  font-weight: 850;
}

.router-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 220px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #c8d7d1;
  border-radius: 999px;
  background: #f0f6f4;
  color: #24413a;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.strong-number {
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mini-bar {
  width: 110px;
  height: 7px;
  margin-top: 7px;
}

.notes {
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
}

.workload-grid,
.protocol-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.workload-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workload-card,
.protocol-grid article {
  padding: 16px;
}

.workload-card h3,
.protocol-grid h3 {
  font-size: 16px;
  letter-spacing: 0;
}

.workload-card p,
.protocol-grid p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.workload-card > strong {
  display: block;
  margin-top: 14px;
  font-size: 32px;
  line-height: 1;
}

.workload-card .mini-bar {
  width: 100%;
  margin: 12px 0;
}

dl {
  margin: 12px 0 0;
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 10px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.protocol-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.error {
  padding-top: 60px;
}

@media (max-width: 1040px) {
  .header-main {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .top-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .metric-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .pick-grid,
  .workload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .notice-inner,
  .header-main,
  .metric-nav,
  .chip-row,
  .page {
    width: min(100vw - 20px, 1280px);
  }

  .notice-inner {
    min-height: 54px;
    flex-wrap: wrap;
    gap: 6px 9px;
    font-size: 13px;
  }

  h1 {
    font-size: 32px;
  }

  .hero-stats,
  .pick-grid,
  .workload-grid,
  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .section-kicker,
  .leaderboard-head {
    display: grid;
  }

  .chart-row {
    grid-template-columns: minmax(120px, 1fr) 1fr 58px;
  }

  .run-stats {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
