.benchmark-report { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.benchmark-report h2 { font-size: 24px; font-weight: 600; }
.benchmark-report h3 { font-size: 16px; }
.benchmark-note, .benchmark-report small { color: var(--text-muted); font-size: 12px; }
.benchmark-report pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; background: var(--bg); padding: 16px; border: 1px solid var(--border); border-radius: 8px; }
.benchmark-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.benchmark-filters label { display: grid; gap: 4px; font-size: 12px; }
.benchmark-report button, .benchmark-report input, .benchmark-report select { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 14px; max-width: 240px; }
.benchmark-report button { cursor: pointer; }
.benchmark-report a { color: var(--link); overflow-wrap: anywhere; }
.benchmark-report button:hover { background: var(--surface-hover); }
.benchmark-report :is(button, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.benchmark-table-wrap { overflow: auto; max-height: 70vh; border: 1px solid var(--border); border-radius: 12px; }
#benchmarkTable { width: 100%; border-collapse: collapse; table-layout: auto; }
#benchmarkTable caption { text-align: left; padding: 12px 16px; color: var(--text-muted); font-size: 12px; }
#benchmarkTable th { background: var(--bg); color: var(--text-muted); font-size: 12px; font-weight: 500; text-align: left; text-transform: none; letter-spacing: normal; }
#benchmarkTable thead th { position: sticky; top: 0; z-index: 1; }
#benchmarkTable :is(th, td) { padding: 12px 16px; border-bottom: 1px solid var(--border); overflow-wrap: break-word; max-width: 240px; }
#benchmarkTable td { font-size: 14px; white-space: normal; }
/* 数字、操作列和按钮不在词中间换行；长 URL/哈希仍可用 break-word 折行。 */
#benchmarkTable :is(td.benchmark-number, td:last-child, button, td:first-child small) { white-space: nowrap; }
#benchmarkTable tbody tr:last-child td { border-bottom: 0; }
#benchmarkTable :is(th, td):first-child { position: sticky; left: 0; background: var(--surface); }
#benchmarkTable thead th:first-child { background: var(--bg); z-index: 2; }
#benchmarkTable tbody tr:is(:hover, [aria-selected="true"]) td { background: var(--surface-hover); }
#benchmarkTable tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.benchmark-number { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.benchmark-ratio { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.benchmark-status { display: inline-block; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; padding: 2px 8px; white-space: nowrap; }
.benchmark-status::before { content: "● "; color: var(--text-muted); }
.benchmark-status.failed::before { color: var(--critical); }
.benchmark-status.pending::before { color: var(--medium); }
.benchmark-status.incomplete::before { color: var(--high); }
.benchmark-detail { display: grid; gap: 12px; overflow-wrap: anywhere; min-width: 0; border-top: 1px solid var(--border); padding-top: 16px; scroll-margin-top: 16px; }
.benchmark-detail h3:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.benchmark-points { list-style: none; display: grid; gap: 12px; margin: 16px 0; }
.benchmark-error { border-left: 4px solid var(--critical); background: var(--critical-bg); padding: 16px; }
#benchmarkTable td.benchmark-empty { padding: 32px; text-align: center; max-width: none; }
.benchmark-empty p { margin-bottom: 12px; color: var(--text-muted); }
.benchmark-loading { height: 48px; margin: 12px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.benchmark-report [hidden] { display: none; }
@media (max-width: 768px) { .benchmark-report { padding: 16px; } #benchmarkTable { min-width: 880px; } .benchmark-filters label { max-width: 100%; } }
