/* le bandeau « benchmark / profiling perf », sous l'en-tête : 80 px de haut. À gauche le dernier temps, au milieu les barres (la chaîne de l'écran, le moteur fonction par fonction), à droite l'historique, la cadence des vues et les boutons. */
.perf { display: grid; grid-template-columns: 200px minmax(0, 1fr) 236px; gap: 14px; height: 80px; padding: 6px 10px; background: var(--scene); border: 1px solid var(--filet); overflow: hidden; }
.perf-nom { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--vif); white-space: nowrap; }
.perf-total { display: flex; align-items: baseline; gap: 6px; margin-top: 7px; }
.perf-total b { font: 600 26px/1 var(--titre); color: var(--encre); font-variant-numeric: tabular-nums; }
.perf-total span, .perf-sous { font: 10px/1.2 var(--mono); color: var(--encre-2); }
.perf-sous { margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perf-barres { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding-block: 1px; }
.perf-ligne { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: 11px 13px; row-gap: 4px; }
.perf-ligne .nom { grid-row: span 2; font: 500 10px/11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--encre-2); }
.perf-barre { display: flex; gap: 1px; background: var(--fond); min-width: 0; }
.perf-barre i { display: block; min-width: 1px; }
.perf-leg { font: 10px/13px var(--mono); color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.perf-leg b { font-weight: 500; color: var(--encre); }
.perf-leg i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; vertical-align: 0; }
.perf-d { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.perf-histo { width: 100%; height: 26px; display: block; background: var(--fond); }
.perf-fps { font: 10px/12px var(--mono); color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.perf-boutons { display: flex; gap: 4px; }
.perf-boutons button { flex: 1; height: 20px; background: var(--fond-2); border: 1px solid var(--filet); color: var(--encre-2); cursor: pointer; font: 500 10px/1 var(--mono); letter-spacing: .06em; }
.perf-boutons button:hover:not(:disabled) { border-color: var(--vif); color: var(--encre); }
.perf-boutons button:disabled { opacity: .5; cursor: progress; }
@media (max-width: 820px) { .perf { grid-template-columns: minmax(0, 1fr); height: auto; gap: 8px; } }
