/* Diagnóstico: mismas fichas que el banco (banco.css), con barras apiladas hechas en HTML */
:root {
  /* colores de las partes, comprobados para daltonismo y contraste sobre --surface */
  --c-cpu: #d95926; --c-gpu: #3987e5; --c-pick: #199e70; --c-wait: #4A5563;
  --g1: #3987e5; --g2: #d95926; --g3: #199e70; --g4: #c98500; --g5: #d55181; --g6: #008300; --g7: #9085e9; --g8: #4A5563;
}
.opts .grow { flex: 1 1 260px; }
.opts .grow select { width: 100%; }
.ctxs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--soft); cursor: pointer; font: 12px var(--f-mono); }
.chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.chip:has(input:checked) { border-color: var(--accent-line); }
.note.top { margin: 0 0 10px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font: 12px var(--f-mono); color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bars:empty::before { content: "Elige un modelo y pulsa Analizar."; color: var(--muted); font-size: 14px; }
.brow .bl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; font: 12px var(--f-mono); color: var(--muted); }
.brow .bl b { color: var(--ink); font-weight: 500; }
.track { position: relative; height: 30px; display: flex; gap: 2px; }
.seg { height: 100%; min-width: 2px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; font: 500 11px var(--f-mono); white-space: nowrap; cursor: default; transition: filter .15s; }
.seg:first-child { border-radius: 4px 0 0 4px; }
.seg:last-child { border-radius: 0 4px 4px 0; }
.seg:only-child { border-radius: 4px; }
.seg.wait { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 4px, transparent 4px 8px); }
.seg:hover { filter: brightness(1.2); }
.seg span { padding: 0 6px; text-shadow: 0 1px 2px rgba(0,0,0,.45); }

.tip { position: fixed; z-index: 30; pointer-events: none; max-width: 280px; padding: 8px 10px; border-radius: 8px; background: var(--surface2); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.4); font: 12px/1.5 var(--f-mono); color: var(--soft); }
.tip b { color: var(--ink); font-weight: 500; }

.reading .big { font-size: 16px; color: var(--ink); }
.reading .fix { color: var(--muted); }
#ctxTabs { margin: 18px 0 8px; }
#ctxTabs button[aria-selected="true"] { border-color: var(--accent-line); color: var(--ink); }
.gbs { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.gbs i { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.gbs i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--g1); border-radius: 3px; }
.tablewrap td.name small { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.tablewrap td .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.tablewrap td button { min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 11px var(--f-mono); }
.tablewrap td button:hover { color: var(--bad); border-color: var(--bad); }
