/* Server-activity chart (shared by the public page and the private console). Tokens follow the validated reference palette:
   series 1 (CPU) blue, series 2 (memory) orange; status colours are reserved and always paired with an icon and a label. */
.pxa {
  color-scheme: light;
  --pxa-surface: #fcfcfb; --pxa-ink: #0b0b0b; --pxa-ink2: #52514e; --pxa-muted: #898781;
  --pxa-grid: #e1e0d9; --pxa-axis: #c3c2b7; --pxa-border: rgba(11, 11, 11, .10);
  --pxa-s1: #2a78d6; --pxa-s2: #eb6834;
  --pxa-good: #0ca30c; --pxa-warn: #fab219; --pxa-crit: #d03b3b;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--pxa-ink);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .pxa {
    color-scheme: dark;
    --pxa-surface: #1a1a19; --pxa-ink: #f0efec; --pxa-ink2: #c3c2b7; --pxa-muted: #898781;
    --pxa-grid: #2c2c2a; --pxa-axis: #383835; --pxa-border: rgba(255, 255, 255, .10);
    --pxa-s1: #3987e5; --pxa-s2: #d95926;
  }
}
:root[data-theme="dark"] .pxa {
  color-scheme: dark;
  --pxa-surface: #1a1a19; --pxa-ink: #f0efec; --pxa-ink2: #c3c2b7; --pxa-muted: #898781;
  --pxa-grid: #2c2c2a; --pxa-axis: #383835; --pxa-border: rgba(255, 255, 255, .10);
  --pxa-s1: #3987e5; --pxa-s2: #d95926;
}
.pxa * { box-sizing: border-box; }
.pxa-card { background: var(--pxa-surface); border: 1px solid var(--pxa-border); border-radius: 10px; padding: 16px 16px 12px; position: relative; }
.pxa-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pxa-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pxa-icon { width: 18px; height: 18px; flex: none; }
.pxa-fresh { color: var(--pxa-ink2); font-size: 13px; }
.pxa-ranges { display: inline-flex; gap: 4px; }
.pxa-ranges button {
  font: inherit; font-size: 13px; color: var(--pxa-ink2); background: transparent; border: 1px solid var(--pxa-border);
  border-radius: 6px; padding: 4px 10px; cursor: pointer; min-height: 30px;
}
.pxa-ranges button:hover { background: color-mix(in srgb, var(--pxa-ink) 6%, transparent); }
.pxa-ranges button[aria-pressed="true"] { color: var(--pxa-ink); border-color: var(--pxa-ink2); font-weight: 600; }
.pxa-ranges button:focus-visible, .pxa-plot:focus-visible, .pxa details summary:focus-visible { outline: 2px solid var(--pxa-s1); outline-offset: 2px; }
.pxa-legend { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--pxa-ink2); margin: 4px 0 6px; }
.pxa-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pxa-legend b { color: var(--pxa-ink); font-weight: 600; }
.pxa-key { width: 16px; height: 0; border-top: 2px solid; border-radius: 2px; display: inline-block; }
.pxa-key.s1 { border-color: var(--pxa-s1); } .pxa-key.s2 { border-color: var(--pxa-s2); }
.pxa-plot text.pxa-empty { font-size: 13px; } .pxa-pad { padding: 6px 10px; }
.pxa-plotwrap { position: relative; transition: opacity .2s; }
.pxa-plotwrap[data-dim="1"] { opacity: .5; }
.pxa-plotwrap[data-busy="1"] { opacity: .65; }
.pxa-plot { display: block; width: 100%; height: auto; touch-action: pan-y; }
.pxa-plot text { fill: var(--pxa-muted); font-size: 11px; font-family: inherit; }
.pxa-grid line { stroke: var(--pxa-grid); stroke-width: 1; }
.pxa-axis line { stroke: var(--pxa-axis); stroke-width: 1; }
.pxa-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pxa-area { stroke: none; opacity: .10; }
.pxa-dot { stroke: var(--pxa-surface); stroke-width: 2; }
.pxa-cross { stroke: var(--pxa-axis); stroke-width: 1; }
.pxa-tip {
  position: absolute; pointer-events: none; z-index: 2; min-width: 168px; padding: 8px 10px; font-size: 12.5px;
  background: var(--pxa-surface); color: var(--pxa-ink); border: 1px solid var(--pxa-border); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}
.pxa-tip[hidden] { display: none; }
.pxa-tip .t { color: var(--pxa-ink2); margin-bottom: 4px; }
.pxa-tip .r { display: flex; align-items: center; gap: 8px; }
.pxa-tip .r b { font-weight: 700; min-width: 3.4em; }
.pxa-tip .r small { color: var(--pxa-ink2); font-size: 12px; }
.pxa-note { color: var(--pxa-ink2); font-size: 12.5px; margin: 6px 0 0; }
.pxa details { margin-top: 8px; font-size: 13px; color: var(--pxa-ink2); }
.pxa details summary { cursor: pointer; width: fit-content; }
.pxa .pxa-scroll { max-height: 260px; overflow: auto; margin-top: 6px; border: 1px solid var(--pxa-border); border-radius: 6px; }
.pxa table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.pxa th, .pxa td { text-align: right; padding: 3px 10px; white-space: nowrap; }
.pxa th:first-child, .pxa td:first-child { text-align: left; }
.pxa thead th { position: sticky; top: 0; background: var(--pxa-surface); color: var(--pxa-ink); border-bottom: 1px solid var(--pxa-border); }
.pxa td { color: var(--pxa-ink2); border-top: 1px solid var(--pxa-grid); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .pxa-card { padding: 12px 10px 10px; } .pxa-top { flex-direction: column; align-items: flex-start; } }
@media (forced-colors: active) { .pxa-line { stroke: CanvasText; } .pxa-line.m { stroke-dasharray: 6 4; } .pxa-area { display: none; } }
@media (prefers-reduced-motion: reduce) { .pxa-key.s1 { border-color: var(--pxa-s1); } .pxa-key.s2 { border-color: var(--pxa-s2); }
.pxa-plot text.pxa-empty { font-size: 13px; } .pxa-pad { padding: 6px 10px; }
.pxa-plotwrap { transition: none; } }
