:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #1d2129;
  --muted: #86909c;
  --line: #e5e6eb;
  --accent: #cb1e83;
  --accent-soft: #ffe8f1;
}

* { box-sizing: border-box; }
body {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 32px 24px 64px;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5715 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; font-weight: 600; line-height: 32px; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 0.9rem; }
.page-head { margin-bottom: 24px; }
.page-head p { color: #4e5969; margin-top: 4px; }
.hint { color: var(--muted); font-size: 0.82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 32px; }
.board { min-width: 0; }
.board-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.search input {
  width: min(20rem, 65vw);
  padding: 6px 12px;
  font: inherit;
  background: #f2f3f5;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 2px;
}
input:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.table-scroll { overflow-x: auto; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th.cell-group-start, td.cell-group-start { border-left: 1px solid var(--line); }
th { padding: 9px 12px; text-align: right; white-space: nowrap; background: #eef0f3; border-bottom: 1px solid #c9cdd4; }
th:nth-child(-n+2) { text-align: left; }
.sort-btn { padding: 0; border: 0; background: none; color: var(--muted); font: 600 14px/1.5715 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
.sort-btn:hover, .sort-btn.is-active { color: var(--accent); }
.sort-btn.is-active::after { content: ''; display: inline-block; margin-left: 6px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.sort-btn.sort-asc::after { border-top-color: transparent; border-bottom-color: currentColor; transform: translateY(-1px); }
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:last-child { border-bottom: 0; }
.model-row { cursor: pointer; }
.model-row.is-stripe { background: #f7f8fa; }
.model-row:hover, .model-row:focus-within { background: var(--accent-soft); }
td { padding: 9px 12px; text-align: right; vertical-align: top; }
td.cell-rank { width: 3rem; text-align: left; color: var(--muted); }
td.cell-name { min-width: 10rem; text-align: left; }
.is-top td.cell-rank { color: var(--accent); font-weight: 700; }
.name { display: block; font-weight: 650; }
.meta, .cell-params { color: var(--muted); font-size: 0.8rem; }
.cell-params { white-space: nowrap; }
.openness-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.openness-badge { display: inline-block; padding: 1px 5px; border-radius: 2px; font-size: 11px; line-height: 16px; white-space: nowrap; }
.openness-open { background: #e8ffea; color: #087f23; }
.openness-partial { background: #fff7e8; color: #a15c00; }
.openness-closed { background: #fff0f0; color: #b71d1d; }
.openness-unknown { background: #f2f3f5; color: #4e5969; }
.partial { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 2px; background: #f2f3f5; color: #4e5969; font-size: 12px; }
.cell-bench.is-missing .raw { color: var(--muted); }
.cell-bench .raw { font-weight: 500; white-space: nowrap; }
.cell-bench .sub { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.cell-index { width: 5.5rem; min-width: 5.5rem; }
.index-num { display: inline-block; min-width: 44px; padding: 2px 8px; background: var(--accent-soft); color: var(--accent); border-radius: 2px; font-size: 15px; font-weight: 700; }
.legend { margin-top: 12px; font-size: 12px; }

.controls { margin-top: 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 4px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.section-heading .hint { margin-top: 0.3rem; }
.weight-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.weight-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; }
.weight-head label { font-weight: 600; }
.weight-readout { color: var(--muted); font-variant-numeric: tabular-nums; }
input[type="range"] { appearance: none; display: block; width: 100%; height: 18px; margin: 10px 0 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--slider-fill), #e5e6eb var(--slider-fill)); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: #e5e6eb; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; }
.btn { padding: 5px 16px; border: 1px solid transparent; border-radius: 2px; background: #f2f3f5; color: var(--ink); font: inherit; font-size: 0.8rem; cursor: pointer; }
.btn:hover { background: #e5e6eb; }
.method { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.method summary { width: fit-content; font-weight: 600; cursor: pointer; }
#method-body { max-width: 76ch; padding-top: 1.3rem; }
.method-item { margin-bottom: 1.4rem; }
.method-weight { margin-left: 0.6rem; color: var(--muted); font-weight: 400; }
.method-desc, .method-blend, .method-formula, .method-final { margin-top: 0.35rem; color: var(--muted); font-size: 0.83rem; }
.method-metric { margin-left: 0.45rem; }
.method-final { padding-top: 0.8rem; border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .dashboard { grid-template-columns: 1fr; gap: 32px; }
  .weight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  th, td { padding-left: 8px; padding-right: 8px; }
  td.cell-name { min-width: 8rem; }
  .cell-index { min-width: 4.5rem; }
  .weight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  body { padding: 24px 16px 48px; }
  .page-head { margin-bottom: 20px; }
}
@media (max-width: 30rem) {
  .weight-grid { grid-template-columns: 1fr; }
}

body { width: 100%; padding: 0; background: var(--color-fill-2); }
.page-head { display: flex; align-items: center; gap: 20px; margin: 0; padding: 20px 32px; background: var(--color-bg-1); border-bottom: 1px solid var(--color-border-2); }
h1 { font-size: 20px; line-height: 28px; }
.dashboard { display: flex; flex-direction: column; max-width: 1200px; margin: 32px auto; padding: 0 24px; gap: 0; }
.board { width: 100%; background: var(--color-bg-1); border: 1px solid var(--color-border-2); border-radius: 4px 4px 0 0; padding: 20px 24px; }
.board-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.board-heading h2 { font-size: 18px; }
.board-bar { justify-content: space-between; margin-bottom: 12px; }
.search input { width: 240px; }
.method { margin-top: 20px; padding-top: 16px; }
.sidebar { width: 100%; }
.controls { border: 1px solid var(--color-border-2); border-top: 0; border-radius: 0 0 4px 4px; padding: 20px 24px; background: #fafbfc; }
.section-heading { align-items: center; }
.section-heading h2 { font-size: 14px; }
.weight-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; margin-top: 16px; }
@media(max-width: 800px) { .dashboard { margin: 20px auto; padding: 0 16px; } .page-head { padding: 16px; flex-wrap: wrap; gap: 8px; } .board { padding: 16px; } .weight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .board-heading { flex-wrap: wrap; gap: 8px; } }
@media(max-width: 480px) { .search input { width: 180px; } .board-bar { gap: 8px; } }

:root { --series-0: #cb1e83; --series-1: #14c9c9; }
.page-head { padding: 16px 28px; }
.page-head h1 { font-size: 18px; }
.page-head .arco-tag { color: #86909c; font-size: 12px; }
.dashboard { max-width: 1440px; margin: 28px auto; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
.workspace-title { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.workspace-title h2 { font-size: 24px; line-height: 34px; }
.eyebrow { color: #86909c; font-size: 11px; letter-spacing: 1px; }
.run-label { color: #86909c; font-size: 12px; }
.overview { grid-column: 1 / -1; padding: 24px; border: 1px solid #e5e6eb; border-radius: 4px; background: white; }
.benchmark-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.benchmark-panel + .benchmark-panel { border-left: 1px solid #e5e6eb; padding-left: 24px; }
.benchmark-title { margin-bottom: 20px; }
.benchmark-title h3 { font-size: 14px; }
.benchmark-title > span { font-size: 12px; color: #86909c; }
.comparison-row + .comparison-row { margin-top: 16px; }
.comparison-label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 7px; }
.comparison-label strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.comparison-track { height: 6px; background: #f2f3f5; border-radius: 2px; overflow: hidden; }
.comparison-fill { height: 100%; border-radius: 2px; }
.board { border-radius: 4px; }
.board-heading h2 { font-size: 16px; }
.controls { background: white; border: 1px solid #e5e6eb; border-radius: 4px; }
.weight-grid { grid-template-columns: 1fr; gap: 24px; }
.sidebar { align-self: start; }
@media(max-width:1100px) { .dashboard { grid-template-columns: 1fr; } .weight-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } .benchmark-overview { grid-template-columns: repeat(2,minmax(0,1fr)); } .benchmark-panel + .benchmark-panel { padding: 0; border: 0; } }
@media(max-width:600px) { .workspace-title { align-items: start; flex-direction: column; gap: 8px; } .benchmark-overview, .weight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .overview { padding: 16px; } .comparison-label { flex-direction: column; gap: 0; } }

[hidden] { display: none !important; }
.view-nav { display: flex; gap: 28px; margin-left: 28px; align-self: stretch; }
.view-nav a { display: flex; align-items: center; position: relative; color: #4e5969; text-decoration: none; }
.view-nav a[aria-current] { color: #cb1e83; font-weight: 500; }
.view-nav a[aria-current]::after { content: ''; position: absolute; bottom: -16px; left: 0; right: 0; height: 2px; background: #cb1e83; }
.winner-model { display: block; font-size: 26px; line-height: 36px; font-weight: 600; margin-top: 8px; overflow-wrap: anywhere; }
.winner-value { color: #4e5969; margin-top: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.about-view { max-width: 960px; padding: 28px 24px; margin: auto; }
.about-view p { margin: 12px 0; color: #4e5969; }
.about-view h2:not(:first-child) { margin-top: 28px; }
@media(max-width:600px) { .view-nav { margin-left: 0; } .page-head { gap: 24px; } }

.board-bar { flex-wrap: wrap; justify-content: flex-start; }
#count { margin-left: auto; }
.parameter-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #4e5969; font-size: 12px; }
.parameter-filter label { white-space: nowrap; }
.parameter-filter input { width: 65px; padding: 6px 8px; border: 1px solid #e5e6eb; border-radius: 2px; font: inherit; color: #1d2129; }
.model-link { display: block; color: #cb1e83; text-decoration: none; overflow-wrap: anywhere; }
.model-link:hover { text-decoration: underline; }

.size-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.size-presets button { padding: 5px 8px; background: #f2f3f5; border: 1px solid transparent; border-radius: 2px; color: #4e5969; font: inherit; font-size: 12px; cursor: pointer; }
.size-presets button:hover { background: #e5e6eb; }
.size-presets button[aria-pressed="true"] { background: #ffe8f1; color: #cb1e83; }

.brand { display: flex; align-items: center; gap: 10px; color: #1d2129; text-decoration: none; flex-shrink: 0; }
.brand-avatar { width: 40px; height: 40px; border-radius: 4px; }
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { display: block; font-size: 11px; line-height: 15px; color: #a45c8c; font-weight: 600; letter-spacing: .02em; }
.brand-product { display: block; font-size: 15px; line-height: 19px; font-weight: 600; }
.discord-badge { margin-left: auto; color: #725485; background: #faf4fc; text-decoration: none; white-space: nowrap; }
.discord-badge:hover { background: #f2e7f8; color: #5d3d73; }
.discord-badge span:first-child { color: #c66aa3; margin-right: 3px; }
.discord-arrow { margin-left: 4px; color: #a28aaf; }
@media(max-width:600px) { .page-head { gap: 12px; } .view-nav { order: 3; width: 100%; } .discord-badge { align-self: center; } .view-nav a[aria-current]::after { bottom: -16px; } }

.discord-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 4px; background: #fff1f7; color: #cb1e83; font-size: 13px; line-height: 20px; font-weight: 500; }
.discord-badge img { width: 16px; height: 16px; }
.discord-badge:hover { background: #ffe1ef; color: #a41569; }

body { --primary-1: var(--magenta-1); --primary-2: var(--magenta-2); --primary-3: var(--magenta-3); --primary-4: var(--magenta-4); --primary-5: var(--magenta-5); --primary-6: var(--magenta-6); --primary-7: var(--magenta-7); --primary-8: var(--magenta-8); --primary-9: var(--magenta-9); --primary-10: var(--magenta-10); }

.rules-list { list-style: none; counter-reset: rule; margin: 24px 0 0; padding: 0; }
.rules-list li { counter-increment: rule; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid #e5e6eb; }
.rules-list li::before { content: counter(rule, decimal-leading-zero); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

.rules-list li { column-gap: 16px; row-gap: 4px; align-items: start; }
.rules-list li::before { grid-column: 1; grid-row: 1 / span 2; line-height: 24px; }
.about-view .rules-list li > h2 { grid-column: 2; margin: 0; font-size: 16px; line-height: 24px; }
.about-view .rules-list li > p { grid-column: 2; margin: 0; max-width: 68ch; line-height: 1.6; }

.guide-view pre { max-width: 100%; padding: 16px; overflow-x: auto; background: #f2f3f5; border-radius: 4px; font-size: 13px; line-height: 1.6; }
.guide-view code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.guide-view p { max-width: 78ch; }

.cell-name .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.size-leader { display: inline-block; margin-top: 0; padding: 1px 6px; border-radius: 3px; background: #fff0f6; color: #a61d6c; font-size: 11px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.benchmark-marker, .benchmark-key { color: #8060b7; font-size: 12px; }
.benchmark-best .raw { color: #684299; font-weight: 600; }
.legend .size-leader { margin: 0 3px 0 0; vertical-align: middle; }

