/* Performance analysis page (G1b). Neutral colours that read in light and dark themes. */
#performance .perf-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
#performance .perf-head h2,#performance .perf-head h3{margin:0;margin-right:auto}
#performance .perf-head label{display:inline-flex;align-items:center;gap:6px}
#performance .perf-downloads{display:inline-flex;flex-wrap:wrap;gap:8px}
#performance .perf-notes{margin:6px 0;padding-left:18px}
#performance .perf-notes:empty{display:none}
#performance .perf-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;margin:12px 0}
#performance .perf-tile{padding:8px 10px;border:1px solid #c9d6e5;border-radius:6px}
#performance .perf-tile span{display:block;font-size:12px;opacity:.8}
#performance .perf-tile strong{font-size:18px}
#performance .perf-chart{width:100%;height:340px}
#performance .perf-chart-small{height:240px}
#performance .table-wrap{overflow-x:auto;max-height:60vh;overflow-y:auto}
#performance th.perf-num,#performance td.perf-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#performance .link-button{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
#performance .perf-event-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:10px 0}
#performance .perf-event-form label{display:flex;flex-direction:column;gap:4px}
#performance .perf-event-form .perf-note{flex:1 1 220px}
#performance .perf-log-actions{margin:6px 0}
#performance .perf-settings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
#performance .perf-settings-grid label,#performance .perf-grid-settings label{display:flex;flex-direction:column;gap:4px}
#performance .perf-settings-grid small{opacity:.75}
#performance .perf-grid-settings{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin-bottom:8px}
#performance #perfUnitSettings select{max-width:420px}
#performance #perfUnitSettings input{width:8em}
#performance caption{caption-side:bottom;text-align:left;padding-top:4px}
html[data-content-theme=dark] #performance .perf-tile{border-color:#3a4c65}
#performance .perf-bad{color:#b91c1c;font-weight:600}
#performance tr.perf-row-bad td{background:rgba(185,28,28,.08)}
html[data-content-theme=dark] #performance .perf-bad{color:#f87171}
