/* Developer tab › Performance (src/dev/perf.js) */
.dev-pane[data-dev="perf"] {
  --perf-series: #2a78d6;
  --perf-grid: rgba(0, 0, 0, .08);
  --perf-surface: #f4f3fc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dev-pane[data-dev="perf"] { --perf-series: #3987e5; --perf-grid: rgba(255, 255, 255, .1); --perf-surface: #36344f; }
}
:root[data-theme="dark"] .dev-pane[data-dev="perf"] { --perf-series: #3987e5; --perf-grid: rgba(255, 255, 255, .1); --perf-surface: #36344f; }

.perf-status { font-size: 13px; margin: -4px 0 12px; overflow-wrap: anywhere; }
.perf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.perf-tile { background: var(--panel-2); border-radius: 18px; padding: 10px 14px; min-width: 0; }
.perf-lbl { font-size: 12px; color: var(--muted); }
.perf-val { font-size: 24px; font-weight: 300; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.perf-sub { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; min-height: 1.4em; }
.perf-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.perf-chart { background: var(--panel-2); border-radius: 18px; padding: 10px 12px 6px; min-width: 0; }
.perf-chart-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.perf-chart-title { font-weight: 500; font-size: 13px; }
.perf-chart-unit { font-size: 11.5px; color: var(--muted); }
.perf-now { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.perf-plot { position: relative; }
.perf-plot canvas { display: block; width: 100%; height: 140px; cursor: crosshair; touch-action: none; }
.perf-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; }
.perf-tip b { font-family: var(--mono); font-weight: 500; }
.perf-tip span { color: var(--muted); }
.perf-key { display: inline-block; width: 12px; height: 2px; border-radius: 1px; background: var(--perf-series); }
.perf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 16px; align-items: start; }
.perf-grid .dev-kv { margin-bottom: 12px; }
.perf-ctl { margin-bottom: 12px; }
.perf-range { flex: 1; min-width: 120px; }
@media (max-width: 600px) { .perf-grid { grid-template-columns: 1fr; } }
