/* Compact benchmark matrices with one continuous highlighted model column. */
.benchmark-panel { max-width: 940px; margin-inline: auto; }
.benchmark-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.benchmark-metric-controls { display: flex; align-items: center; gap: 14px; }
.benchmark-metric-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #373943; border-radius: 8px; background: #15161b; }
.benchmark-metric-switch button { padding: 7px 15px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font: inherit; font-size: 13px; line-height: 1.4; cursor: pointer; }
.benchmark-metric-switch button[aria-pressed="true"] { color: #e0e7ff; background: #2b344d; }
.benchmark-metric-switch button:hover { color: var(--text); }
.benchmark-metric-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.benchmark-unit { color: var(--faint); font-size: 12px; white-space: nowrap; }
.benchmark-toolbar-title { color: var(--muted); font-size: 13px; font-weight: 500; }
.benchmark-filter { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; }
.benchmark-filter select { min-width: 170px; max-width: 100%; padding: 9px 30px 9px 12px; border: 1px solid #373943; border-radius: 7px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.benchmark-table-scroll { overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: #4d5261 transparent; }
.benchmark-table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.benchmark-table { --table-tint: #222736; width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-family: inherit; font-variant-numeric: tabular-nums; }
#fidelity-benchmarks .benchmark-table { min-width: 740px; }
.benchmark-table caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.benchmark-label-column { width: 31%; }
.benchmark-table th, .benchmark-table td { padding: 17px 16px; text-align: center; vertical-align: middle; border: 0; }
.benchmark-table thead th { height: 66px; padding-block: 20px; color: var(--muted); background: #191a20; border-bottom: 1px solid #42444f; font-size: 13px; font-weight: 550; }
.benchmark-table thead th:first-child { text-align: left; border-radius: 10px 0 0 0; }
.benchmark-table thead th:last-child { border-radius: 0 10px 0 0; }
.benchmark-table tbody th { text-align: left; font-weight: 400; background: rgba(255,255,255,.012); }
.benchmark-name { display: block; color: #d1d2dc; font-size: 13px; line-height: 1.4; }
.benchmark-metric { display: block; margin-top: 4px; color: #9294a5; font-size: 11px; font-weight: 400; line-height: 1.4; }
.benchmark-sources { line-height: 1.65; }
.benchmark-sources .benchmark-source { white-space: nowrap; }
.benchmark-source { color: inherit; font: inherit; text-decoration: underline; text-decoration-color: #4b4d59; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.benchmark-source:hover { color: var(--text); text-decoration-color: currentColor; }
.benchmark-source:focus-visible { color: var(--text); outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.benchmark-table td { color: #b4b6c5; font-size: 13px; line-height: 1.4; }
.benchmark-table td strong { color: #edf0fa; font-weight: 650; }
.benchmark-table .benchmark-ours { background: var(--table-tint); border-inline: 1px solid #7d8bb2; color: #cbd6f3; }
.benchmark-table thead .benchmark-ours { background: #2b344d; border-top: 1px solid #7d8bb2; border-radius: 12px 12px 0 0; color: #e0e7ff; font-weight: 650; }
.benchmark-table tbody tr:last-child .benchmark-ours { border-bottom: 1px solid #7d8bb2; border-radius: 0 0 12px 12px; }
.benchmark-table tr.benchmark-group-start:not(:first-child) > * { border-top: 1px solid #32343e; }
.benchmark-table tr.benchmark-group-start > .benchmark-ours { border-top-color: #46506a; }
.benchmark-table tbody tr:hover > * { background-color: #1b1e27; }
.benchmark-table tbody tr:hover > .benchmark-ours { background-color: #2b3245; }
.benchmark-missing { color: #747787; }
.benchmark-notes { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; line-height: 1.8; }
.benchmark-notes p { max-width: 780px; }
.benchmark-notes strong { color: var(--muted); font-weight: 600; }
.benchmark-notes a { flex: none; color: var(--muted); text-decoration: underline; text-decoration-color: #55545f; text-underline-offset: 4px; }
.benchmark-notes a:hover { color: var(--text); }
@media (max-width: 760px) {
  #fidelity-benchmarks .benchmark-table { min-width: 600px; }
  #fidelity-benchmarks .benchmark-label-column { width: 28%; }
  .benchmark-table th, .benchmark-table td { padding: 15px 12px; }
  .benchmark-table thead th:first-child, .benchmark-table tbody th { position: sticky; left: 0; z-index: 1; background: #17181e; }
  .benchmark-notes { flex-direction: column; gap: 10px; }
}
@media (max-width: 520px) {
  .benchmark-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .benchmark-filter { width: 100%; }
  .benchmark-filter > span { display: none; }
  .benchmark-filter select { width: 100%; }
}
