body.bench { height: auto; min-height: 100%; }
.b-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.b-head h1 { font-size: 18px; margin: 0; flex: 1; }
.b-back { color: var(--accent); text-decoration: none; }
#run-pick { max-width: 46vw; font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); }
#b-main { max-width: 760px; margin: 0 auto; padding: 12px 16px 48px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  margin: 12px 0; box-shadow: var(--shadow); }
.card h2 { font-size: 15px; margin: 0 0 10px; font-weight: 600; }
.lead { font-size: 16px; line-height: 1.5; margin: 0 0 10px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--line); }
.chip.good { background: #d8efe7; color: #1f5a4c; }
.chip.bad { background: #f6dcd9; color: #8a1f17; }
.chip.mixed { background: #f3e7c8; color: #6b5212; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip.good { background: #1d3b33; color: #9fdccb; }
  :root:not([data-theme="light"]) .chip.bad { background: #43211e; color: #f2aaa2; }
  :root:not([data-theme="light"]) .chip.mixed { background: #3b331d; color: #e9d28f; }
}
.meta { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.fam { display: grid; grid-template-columns: 1fr 44px; gap: 2px 10px; align-items: center; margin: 8px 0; }
.fam .name { font-size: 14px; }
.fam .val { font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; position: relative; height: 10px; border-radius: 6px; background: var(--line); }
.bar .ci { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--accent); opacity: .25; }
.bar .pt { position: absolute; top: -3px; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); }
.bar .old { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--muted); }
.bar .human { position: absolute; top: -5px; width: 2px; height: 20px; background: var(--text); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.hist { display: flex; gap: 6px; align-items: flex-end; height: 70px; margin: 8px 0 2px; }
.hist div { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.hist-l { display: flex; gap: 6px; font-size: 12px; color: var(--muted); }
.hist-l span { flex: 1; text-align: center; }
details.item { border-top: 1px solid var(--line); padding: 8px 0; }
details.item summary { cursor: pointer; font-size: 14px; list-style: none; }
details.item summary::-webkit-details-marker { display: none; }
.conv { margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.conv .el { color: var(--muted); }
.conv .ea { margin-left: 12px; }
.why { font-size: 13px; color: var(--muted); margin: 4px 0; }
.two { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 620px) { .two { grid-template-columns: 1fr 1fr; } }
.lbl { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pair-btns { display: flex; gap: 8px; margin-top: 8px; }
.pair-btns button { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.pair-btns button:active { background: var(--line); }
table.runs { width: 100%; border-collapse: collapse; font-size: 13px; }
table.runs td, table.runs th { padding: 6px 4px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
table.runs th { color: var(--muted); font-weight: 600; }
table.runs tr.sel td { background: var(--bg); }
table.runs tr { cursor: pointer; }
svg.trend { width: 100%; height: 160px; display: block; }
svg.trend text { fill: var(--muted); font-size: 10px; }
.warn { border-color: #e2b65a; }
