/* Banco de pruebas: mismas fichas y colores que el chat (styles.css), en una sola columna que se desplaza */
html, body.bench { height: auto; min-height: 100%; }
.bwrap { max-width: 1040px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top, 0px)) 16px 48px; display: flex; flex-direction: column; gap: 14px; }
.bhead h1 { margin: 10px 0 2px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.bhead .device { margin: 0 0 8px; }
.lede { margin: 0; color: var(--muted); max-width: 680px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--muted); text-decoration: none; font: 12px var(--f-mono); }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.card h2 span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); font: 500 12px var(--f-mono); }
.card .filters { margin-top: 0; }
.card .search { background: var(--bg); }

.pick { margin-top: 10px; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--line2); }
.prow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; min-height: 44px; padding: 6px 2px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.prow input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.prow .n { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .n em { font: normal 12px var(--f-mono); color: var(--muted); margin-left: 6px; }
.prow .m { font: 12px var(--f-mono); color: var(--muted); text-align: right; white-space: nowrap; }
.prow .m .here { color: var(--accent); }
.sum { margin: 10px 0 0; font: 12px var(--f-mono); color: var(--muted); }
.sum b { color: var(--ink); font-weight: 500; }

.opts { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-end; }
.opts label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.opts select { height: 40px; min-width: 120px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; font-size: 15px; }
.opts .check { flex-direction: row; align-items: center; gap: 8px; min-height: 40px; color: var(--soft); }
.opts .check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.txt { margin-top: 12px; }
.txt summary { cursor: pointer; font: 12px var(--f-mono); color: var(--muted); min-height: 32px; display: flex; align-items: center; }
.txt p { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.txt textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 10px; resize: vertical; font-size: 14px; line-height: 1.5; }

.runrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.primary:disabled, .ghost:disabled { opacity: .4; cursor: not-allowed; }
.ghost { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--soft); }
.ghost:hover:not(:disabled) { border-color: var(--accent-line); color: var(--ink); }
.note { margin: 10px 0 0; font-size: 13px; color: var(--faint); }
.log { margin: 12px 0 0; max-height: 220px; overflow-y: auto; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line2); font: 12px/1.6 var(--f-mono); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.log:empty { display: none; }
.log .ok { color: var(--accent); } .log .err { color: var(--bad); } .log .now { color: var(--ink); }

.gpuline { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; font: 12px var(--f-mono); color: var(--muted); }
.gpuline b { color: var(--ink); font-weight: 500; font-size: 15px; }
.gpuline small { font-size: 11px; color: var(--faint); }
.gpuline:empty::before { content: "La gráfica se mide al empezar la prueba."; }
.tablewrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.tablewrap table { border-collapse: collapse; font: 12px var(--f-mono); white-space: nowrap; width: 100%; }
.tablewrap th { text-align: right; font-weight: 500; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: bottom; white-space: normal; min-width: 64px; cursor: help; }
.tablewrap td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line2); font-variant-numeric: tabular-nums; }
.tablewrap th:first-child, .tablewrap td:first-child { text-align: left; position: sticky; left: -16px; background: var(--surface); min-width: 150px; }
.tablewrap td:first-child { color: var(--ink); font-family: var(--f-ui); font-size: 13px; font-weight: 500; }
.tablewrap td:first-child small { display: block; font: 11px var(--f-mono); color: var(--muted); }
.tablewrap td.hi { color: var(--accent); }
.tablewrap td.lo { color: var(--warn); }
.tablewrap td.err { color: var(--bad); text-align: left; white-space: normal; }
.tablewrap table:empty::before { content: "Todavía no hay resultados."; display: block; padding: 8px 0; color: var(--muted); font-family: var(--f-ui); font-size: 14px; }

.chart { margin: 18px 0 0; }
.chart svg { display: block; width: 100%; max-width: 720px; height: auto; }
.chart svg text { font: 11px var(--f-mono); fill: var(--muted); stroke: none; }
.chart svg .lbl { fill: var(--soft); }
.chart figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.reading { margin-top: 12px; font-size: 14px; color: var(--soft); max-width: 760px; }
.reading p { margin: 0 0 8px; }
.reading b { color: var(--accent); font-weight: 500; }

.help dl { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 18px; font-size: 14px; }
.help dt { font-weight: 500; color: var(--ink); }
.help dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .help dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .help dd { margin-bottom: 10px; }
}
