.cpu-gauge-button {
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.cpu-gauge-button .gauge-face { display: block; }
.cpu-gauge-button:hover, .cpu-gauge-button:focus-visible { background: #f6f5ff; border-color: #c7c2f7; }
.cpu-gauge-button:hover b, .cpu-gauge-button:focus-visible b { color: var(--indigo); }
.cpu-system-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.cpu-system-actions button { white-space: nowrap; color: var(--indigo); }
.cpu-dialog {
  width: min(840px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px #19223b35;
}
.cpu-dialog::backdrop { background: #111a31a6; }
.cpu-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 2; background: var(--surface);
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.cpu-header h2 { font-size: 19px; margin: 0; }
.cpu-header p, .cpu-section-heading span { color: var(--secondary); margin: 3px 0 0; font-size: 12px; }
.cpu-controls, .cpu-section-heading { display: flex; gap: 7px; align-items: center; }
.cpu-controls button { font-size: 12px; white-space: nowrap; }
#cpu-close { min-width: 34px; padding: 3px; font-size: 23px; line-height: 1.1; }
.cpu-body { padding: 18px 22px 22px; }
.cpu-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0 0 10px; padding: 0; }
.cpu-summary > div { background: #f7f8fb; padding: 12px; border-radius: 9px; min-width: 0; }
.cpu-summary dt, .cpu-summary small { font-size: 11px; color: var(--secondary); }
.cpu-summary dd { margin: 3px 0; font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cpu-summary > div:first-child { background: #f1efff; }
.cpu-summary > div:first-child dd { color: var(--indigo); }
.cpu-hotspots { border-bottom: 1px solid var(--line); padding: 8px 0 15px; }
.cpu-hotspots summary { cursor: pointer; color: var(--indigo); font-weight: 600; font-size: 12px; }
#cpu-pressure { font-size: 12px; color: var(--secondary); margin: 12px 0 6px; }
#cpu-hotspot-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
#cpu-hotspot-list div { padding: 7px 8px; background: #f7f8fb; border-radius: 5px; }
#cpu-hotspot-list strong, #cpu-hotspot-list span { display: inline-block; font-size: 12px; margin-right: 6px; }
#cpu-hotspot-list small { display: block; color: var(--secondary); font-size: 10px; }
.cpu-section-heading { justify-content: space-between; gap: 10px; margin: 16px 0 12px; }
.cpu-section-heading h3 { font-size: 16px; margin: 0; }
.cpu-section-heading label, .cpu-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--secondary); }
.cpu-toolbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.cpu-toolbar label:first-child { flex: 1 1 220px; }
.cpu-toolbar input { flex: 1; min-width: 0; }
.cpu-dialog select, .cpu-dialog input { font-size: 12px; width: auto; max-width: 100%; padding: 7px 8px; }
.cpu-description { color: var(--secondary); font-size: 12px; line-height: 1.5; margin: 12px 0; }
.cpu-notice, .cpu-coverage { font-size: 12px; line-height: 1.5; padding: 9px; margin: 0 0 10px; border-radius: 5px; color: #674b11; background: #fff5d9; }
.cpu-table-scroll { overflow: auto; max-height: min(49vh, 480px); border: 1px solid var(--line); border-radius: 8px; }
.cpu-service-table { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; min-width: 0; }
.cpu-service-table th, .cpu-service-table td { padding: 8px 11px; line-height: 1.35; vertical-align: middle; white-space: normal; font-size: 12px; }
.cpu-service-table th { position: sticky; top: 0; z-index: 1; background: #f1f3f8; font-weight: 600; color: #495770; }
.cpu-service-table th:first-child { width: 44%; }
.cpu-service-table th:nth-child(2) { width: 38%; }
.cpu-service-table td:first-child { overflow-wrap: anywhere; }
.cpu-service-table td strong { display: block; font-size: 12px; }
.cpu-service-table td small { display: block; color: var(--secondary); font-size: 10px; }
.cpu-meter { display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-variant-numeric: tabular-nums; }
.cpu-meter span { min-width: 4.6em; text-align: right; }
.cpu-meter progress { flex: 1; min-width: 0; width: 0; height: 7px; overflow: hidden; border: 0; border-radius: 8px; background: #e9eaf4; accent-color: var(--indigo); }
.cpu-meter progress::-webkit-progress-bar { border-radius: 8px; background: #e9eaf4; }
.cpu-meter progress::-webkit-progress-value { border-radius: 8px; background: var(--indigo); }
.cpu-meter progress::-moz-progress-bar { border-radius: 8px; background: var(--indigo); }
.cpu-service-table .cpu-throttle { display: inline-block; margin-top: 2px; color: #8b4f12; background: #fff3de; border-radius: 4px; padding: 2px 5px; font-size: 10px; }
.cpu-service-table .cpu-empty { text-align: center; color: var(--secondary); padding: 18px 8px; }
@media (max-width: 600px) {
  .cpu-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .cpu-header, .cpu-body { padding: 12px; }
  .cpu-summary { grid-template-columns: 1fr 1fr; }
  #cpu-hotspot-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cpu-service-table th, .cpu-service-table td { padding: 8px 5px; }
  .cpu-toolbar label { flex-wrap: wrap; }
  .cpu-section-heading select { max-width: 146px; }
  .cpu-service-table th:first-child { width: 42%; }
  .cpu-service-table th:nth-child(2) { width: 35%; }
  .cpu-meter { flex-direction: column-reverse; align-items: flex-start; gap: 3px; }
  .cpu-meter progress { flex: none; width: 100%; height: 5px; }
  .cpu-meter span { min-width: 0; }
}
