/* App testing › Performance tests (src/qa/perftest.js) */
.dev-pane[data-dev="perftest"] {
  --pt-series: #2a78d6; --pt-series-hi: #1c5fae;
  --pt-grid: rgba(0, 0, 0, .08); --pt-ref: #77777f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dev-pane[data-dev="perftest"] { --pt-series: #3987e5; --pt-series-hi: #6aa6ee; --pt-grid: rgba(255, 255, 255, .1); --pt-ref: #a2a2ad; }
}
:root[data-theme="dark"] .dev-pane[data-dev="perftest"] { --pt-series: #3987e5; --pt-series-hi: #6aa6ee; --pt-grid: rgba(255, 255, 255, .1); --pt-ref: #a2a2ad; }

.pt-pickcard .dev-picker { margin-bottom: 6px; }
.pt-intro { margin: -4px 0 12px; }
.pt-w { min-width: 90px; }
.pt-progress { font-size: 13px; min-height: 1.4em; margin: 2px 0 8px; }
.pt-results:empty { display: none; }
.pt-verdict { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip.pt-pass { background: var(--good-soft); color: var(--good); font-weight: 500; }
.chip.pt-fail { background: var(--danger-soft); color: var(--danger); font-weight: 500; }

.pt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pt-tile { background: var(--panel-2); border-radius: 18px; padding: 10px 14px; min-width: 0; }
.pt-tile.bad { box-shadow: inset 0 0 0 2px var(--danger); }
.pt-lbl { font-size: 12px; color: var(--muted); }
.pt-val { font-size: 24px; font-weight: 300; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pt-sub { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; min-height: 1.4em; }
.pt-kv { margin: 4px 0 8px; }

.pt-chart { background: var(--panel-2); border-radius: 18px; padding: 10px 12px 6px; margin-bottom: 10px; min-width: 0; }
.pt-chart-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.pt-chart-title { font-weight: 500; font-size: 13px; }
.pt-chart-unit { font-size: 11.5px; color: var(--muted); }
.pt-plot { position: relative; }
.pt-plot canvas { display: block; width: 100%; height: 160px; touch-action: none; }
.pt-tip { position: absolute; pointer-events: none; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--card); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.15), inset 0 0 0 1px var(--border);
  border-radius: 10px; padding: 3px 9px; font-size: 12px; }
.pt-tip b { font-family: var(--mono); font-weight: 500; }
.pt-tip span { color: var(--muted); }

.pt-details { margin: 4px 0 2px; font-size: 13px; }
.pt-details summary { cursor: pointer; color: var(--muted); }
.pt-table { font-size: 13px; margin-top: 8px; }
.pt-table th, .pt-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pt-table th { font-weight: 500; color: var(--muted); font-size: 12px; }
.pt-table td { font-variant-numeric: tabular-nums; }
.pt-scroll { overflow-x: auto; }
.pt-hist td .chip { margin-right: 2px; }
.pt-act { white-space: nowrap; text-align: right; }
.pt-act .btn + .btn { margin-left: 6px; }
.pt-delta { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.pt-delta.better { color: var(--good); }
.pt-delta.worse { color: var(--danger); }
.pt-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

.pt-limits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.pt-limit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: var(--panel-2); border-radius: 18px; font-size: 13px; }
.pt-limit-in { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; }
.card .pt-limit { width: 84px; padding: 5px 10px; }
