.monitor-cpu{--cpu-color:#ca3a43;--ram-color:#2c78b1;--disk-color:#258448;margin:26px 0;padding:22px 0;border-block:1px solid var(--line);min-width:0}
.monitor-cpu-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.monitor-cpu h3{font-family:inherit;font-size:17px;letter-spacing:-.02em;font-weight:750}
.monitor-cpu-periods{display:flex;padding:4px;background:#edf5fb;border-radius:12px;gap:3px}
.monitor-cpu-period{min-height:40px;padding:9px 12px;border-radius:9px;background:transparent;color:var(--muted);font-size:12px;font-weight:700;white-space:nowrap}
.monitor-cpu-period[aria-pressed=true]{background:var(--navy);color:#fff;box-shadow:0 2px 7px #102d4820}
.monitor-cpu-summary{display:grid;gap:10px;color:var(--muted);font-size:11px;line-height:1.6;margin:20px 0}
.monitor-resource-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px}
.monitor-resource-summary.cpu{--series-color:var(--cpu-color)}
.monitor-resource-summary.ram{--series-color:var(--ram-color)}
.monitor-resource-summary.disk{--series-color:var(--disk-color)}
.monitor-resource-toggle{display:inline-flex;align-items:center;gap:8px;min-width:144px;min-height:40px;padding:6px 10px;background:#f4f8fb;border:1px solid var(--line);border-radius:9px;color:var(--ink);font-size:12px;font-weight:700}
.monitor-resource-toggle:before{content:'';display:inline-block;width:20px;border-top:3px solid var(--series-color)}
.monitor-resource-toggle[aria-pressed=false]{background:transparent;color:var(--muted)}
.monitor-resource-toggle[aria-pressed=false]:before{opacity:.25}
.monitor-resource-toggle:focus-visible{outline:2px solid var(--series-color);outline-offset:3px}
.monitor-resource-summary.is-hidden>span{opacity:.6}
.monitor-cpu-chart{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;min-width:0}
.cpu-y-axis{position:relative;height:220px;font-size:11px;color:var(--muted)}
.cpu-y-axis span{position:absolute;right:0;transform:translateY(-50%)}
.monitor-cpu-svg{display:block;width:100%;height:220px;overflow:visible;touch-action:pan-y}
.cpu-grid{stroke:#dce7ef;stroke-width:1;vector-effect:non-scaling-stroke}
.cpu-area,.ram-area,.disk-area{fill-opacity:.07;stroke:none}
.cpu-area{fill:var(--cpu-color)}
.ram-area{fill:var(--ram-color)}
.disk-area{fill:var(--disk-color)}
.cpu-line,.ram-line,.disk-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.cpu-line{stroke:var(--cpu-color)}
.ram-line{stroke:var(--ram-color)}
.disk-line{stroke:var(--disk-color)}
.cpu-dot,.ram-dot,.disk-dot{stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke}
.cpu-dot{fill:var(--cpu-color)}
.ram-dot{fill:var(--ram-color)}
.disk-dot{fill:var(--disk-color)}
.cpu-cursor{stroke:#5c7e96;stroke-width:1;stroke-dasharray:3 4;vector-effect:non-scaling-stroke;pointer-events:none}
.cpu-x-axis{grid-column:2;display:flex;justify-content:space-between;gap:4px;font-size:11px;color:var(--muted);min-width:0}
.monitor-cpu-readout{font-size:12px;color:var(--ink);font-weight:600;margin:19px 0 3px;min-height:20px}
.monitor-cpu-slider{width:100%;min-height:40px;accent-color:var(--deep);margin:0}
.monitor-panel>.monitor-body>.monitor-device:first-child{border-top:0;margin-top:0;padding-top:0}
.monitor-device .monitor-device-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px}
.monitor-device-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.monitor-refresh{min-height:40px}
.monitor-report-time{margin-bottom:2px}
.monitor-transport{margin-top:0}
.monitor-export-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:16px 0 8px}
.monitor-export-label{font-size:12px;color:var(--muted);margin-right:4px}
.monitor-export-button{font-size:12px;min-height:40px;padding:9px 14px;background:#edf5fb;color:var(--navy);border:1px solid var(--line);border-radius:9px}
.monitor-export-button:disabled{opacity:.6;cursor:wait}
@media(max-width:480px){.monitor-cpu-summary{gap:12px}.monitor-resource-summary{gap:6px 12px}.monitor-resource-toggle{flex-basis:100%;min-height:44px}.monitor-cpu-periods{width:100%}.monitor-cpu-period{flex:1;min-height:44px;padding-inline:6px;font-size:11px}.monitor-cpu-chart{grid-template-columns:32px minmax(0,1fr);gap:6px}.cpu-x-axis,.cpu-y-axis{font-size:10px}.monitor-export-button,.monitor-refresh{min-height:44px}.monitor-export-label{flex-basis:100%}}
