/* Serverpanel — macOS System Settings–like. Light/dark follow the system. */
:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas, monospace;

  --bg: #f5f5f7;
  --sidebar: rgba(232, 232, 237, 0.78);
  --sidebar-solid: #e8e8ed;
  --group: #ffffff;
  --group-hover: #f7f7f9;
  --sep: rgba(60, 60, 67, 0.13);
  --edge: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --text-2: #5f5f66;
  --text-3: #7b7b82;
  --accent: #0071e3;
  --accent-text: #0066cc;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --on-accent: #ffffff;
  --select: #0071e3;
  --fill: rgba(120, 120, 128, 0.12);
  --fill-2: rgba(120, 120, 128, 0.2);
  --button: #ffffff;
  --button-edge: rgba(0, 0, 0, 0.14);
  --ok: #34c759;      --ok-text: #1f7a36;
  --warn: #ff9f0a;    --warn-text: #a14a00;
  --bad: #ff3b30;     --bad-text: #c4141a;
  --idle: #aeaeb2;
  --chart-cpu: #0071e3;
  --chart-mem: #af52de;
  --shadow-window: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-sheet: 0 4px 12px rgba(0, 0, 0, 0.12), 0 22px 60px rgba(0, 0, 0, 0.22);
  --radius: 10px;
  --row-pad: 11px 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1c1e;
    --sidebar: rgba(40, 40, 42, 0.78);
    --sidebar-solid: #2a2a2d;
    --group: #2c2c2e;
    --group-hover: #353537;
    --sep: rgba(84, 84, 88, 0.55);
    --edge: rgba(255, 255, 255, 0.07);
    --text: #f5f5f7;
    --text-2: #aeaeb5;
    --text-3: #8e8e95;
    --accent: #0071e3;
    --accent-text: #4ba3ff;
    --accent-soft: rgba(10, 132, 255, 0.22);
    --fill: rgba(120, 120, 128, 0.24);
    --fill-2: rgba(120, 120, 128, 0.36);
    --button: #3a3a3c;
    --button-edge: rgba(255, 255, 255, 0.1);
    --ok: #30d158;      --ok-text: #4cd471;
    --warn: #ff9f0a;    --warn-text: #ffb340;
    --bad: #ff453a;     --bad-text: #ff6961;
    --idle: #636366;
    --chart-cpu: #0a84ff;
    --chart-mem: #bf5af2;
    --shadow-window: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-sheet: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 22px 60px rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 14px/1.45 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.006em;
}
::selection { background: var(--accent-soft); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; border-radius: 6px; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--accent-text); text-underline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--fill-2) transparent; }

/* ---------- buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 28px; padding: 3px 12px;
  border: 0; border-radius: 7px;
  background: var(--button);
  box-shadow: 0 0 0 0.5px var(--button-edge), 0 1px 1.5px rgba(0, 0, 0, 0.08);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover:not(:disabled) { background: color-mix(in srgb, var(--button) 92%, var(--text)); }
.btn:active:not(:disabled) { background: color-mix(in srgb, var(--button) 84%, var(--text)); }
.btn:disabled { opacity: 0.45; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.12); }
.btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.danger-fill { background: #d70015; color: #fff; box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.12); }
.btn.danger-fill:hover:not(:disabled) { background: #b80012; }
.btn.plain { background: transparent; box-shadow: none; color: var(--accent-text); padding-inline: 8px; }
.btn.plain:hover:not(:disabled) { background: var(--fill); }
.btn.icon { width: 28px; padding: 0; }
.btn.lg { min-height: 34px; font-size: 14px; padding-inline: 16px; border-radius: 8px; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--text-3); border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
.btn.primary[aria-busy="true"]::after, .btn.danger-fill[aria-busy="true"]::after { border-color: #fff; border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.switch {
  appearance: none; position: relative; flex: none;
  width: 38px; height: 22px; margin: 0; border-radius: 11px;
  background: var(--fill-2); cursor: pointer;
  transition: background-color 0.2s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s var(--ease-out);
}
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(16px); }
.switch:disabled { opacity: 0.5; cursor: default; }

.field {
  min-height: 28px; padding: 4px 9px; border: 0; border-radius: 7px;
  background: var(--group); box-shadow: inset 0 0 0 1px var(--button-edge);
  font-variant-numeric: tabular-nums;
}
.field:focus-visible { outline-offset: 0; }

.segmented { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--fill); }
.segmented button {
  border: 0; background: transparent; min-height: 24px; padding: 2px 11px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-2);
}
.segmented button[aria-pressed="true"] { background: var(--button); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px var(--button-edge); }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column;
  padding: 18px 10px 12px;
  background: var(--sidebar);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  border-right: 1px solid var(--sep);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { display: block; font-size: 14px; font-weight: 600; }
.brand span { display: block; font-size: 12px; color: var(--text-2); }

.nav { display: grid; gap: 1px; }
.nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 8px; border-radius: 7px;
  color: var(--text); text-decoration: none; font-size: 13.5px;
}
.nav a:hover { background: var(--fill); }
.nav a[aria-current="page"] { background: var(--select); color: #fff; }
.nav .tile {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.nav .tile svg.i { width: 14px; height: 14px; stroke-width: 2; }
.tile.blue { background: linear-gradient(#3b9bff, #0a7aff); }
.tile.green { background: linear-gradient(#4ad66d, #28b14c); }
.tile.orange { background: linear-gradient(#ffb340, #ff8a00); }
.tile.gray { background: linear-gradient(#a1a1a6, #7c7c82); }
.nav .badge {
  margin-left: auto; min-width: 18px; padding: 0 6px; border-radius: 9px;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.nav a[aria-current="page"] .badge { background: #fff; color: var(--bad-text); }

.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 10px 8px 0; border-top: 1px solid var(--sep); }
.avatar {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(#b0b0b6, #8a8a90); color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.sidebar-foot .who { min-width: 0; flex: 1; }
.sidebar-foot .who b { display: block; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .who span { display: block; font-size: 11.5px; color: var(--text-2); }

.main { min-width: 0; }
.toolbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 10px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.toolbar.scrolled { border-bottom-color: var(--sep); }
.toolbar h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.toolbar .spacer { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.live.stale { color: var(--warn-text); }
.live.stale .dot { background: var(--warn); }

.content { max-width: 820px; margin: 0 auto; padding: 8px 28px 64px; }
.view[hidden] { display: none; }

/* ---------- grouped lists ---------- */
.section { margin-top: 22px; }
.section > h2 { margin: 0 0 7px 16px; font-size: 13px; font-weight: 600; color: var(--text); }
.section > .foot { margin: 7px 16px 0; font-size: 12px; color: var(--text-2); max-width: 64ch; }
.group {
  background: var(--group); border-radius: var(--radius);
  box-shadow: 0 0 0 0.5px var(--edge), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.row {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: var(--row-pad);
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--sep); }
.row.indent + .row.indent::before { left: 42px; }
.row .label { flex: 1; min-width: 0; }
.row .label b { display: block; font-weight: 500; }
.row .label > span { display: block; font-size: 12px; color: var(--text-2); }
.row .value { color: var(--text-2); text-align: right; }
.row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* status dots (traffic lights) */
.status { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--idle); box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15); }
.status.running { background: var(--ok); }
.status.failed { background: var(--bad); }
.status.changing { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.state-text.running { color: var(--ok-text); }
.state-text.failed { color: var(--bad-text); font-weight: 500; }
.state-text.changing { color: var(--warn-text); }

/* health summary */
.health { display: flex; align-items: center; gap: 14px; padding: 16px; }
.health .glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; color: #fff; background: var(--ok); }
.health .glyph svg.i { width: 22px; height: 22px; stroke-width: 2.2; }
.health.bad .glyph { background: var(--bad); }
.health.warn .glyph { background: var(--warn); }
.health h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.health p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }
.health .label { flex: 1; min-width: 0; }

/* usage bars (like Storage in System Settings) */
.meter { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; display: flex; margin-top: 7px; }
.meter i { display: block; height: 100%; transition: width 0.5s var(--ease-out); }
.meter .used { background: var(--chart-cpu); }
.meter .cache { background: color-mix(in srgb, var(--chart-cpu) 30%, transparent); }
.meter.high .used { background: var(--warn); }
.meter.crit .used { background: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.row.stack { display: block; }
.row.stack .top { display: flex; align-items: baseline; gap: 12px; }
.row.stack .top .label { flex: 1; }

/* chart */
.chart-wrap { padding: 14px 16px 12px; }
.chart-head { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; }
.chart-head .k { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.chart-head .k i { width: 8px; height: 8px; border-radius: 2px; }
.chart-head .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.chart-head .v small { font-size: 13px; font-weight: 500; color: var(--text-2); margin-left: 1px; }
.chart-head .net { margin-left: auto; text-align: right; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.chart { display: block; width: 100%; height: 132px; margin-top: 10px; overflow: visible; }
.chart .grid { stroke: var(--sep); stroke-width: 1; }
.chart .axis { fill: var(--text-3); font-size: 10px; }
.chart .cpu { stroke: var(--chart-cpu); }
.chart .mem { stroke: var(--chart-mem); }
.chart .line { fill: none; stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .area-cpu { fill: color-mix(in srgb, var(--chart-cpu) 14%, transparent); }
.chart-empty { height: 132px; display: grid; place-items: center; color: var(--text-2); font-size: 12px; }

/* skeleton */
.skeleton { display: block; height: 12px; border-radius: 4px; background: var(--fill); animation: pulse 1.4s ease-in-out infinite; }

/* activity */
.act-time { width: 92px; flex: none; color: var(--text-2); font-size: 12px; }
.act-fail { color: var(--bad-text); font-size: 12px; }
.empty { padding: 28px 24px; text-align: center; color: var(--text-2); }
.empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* ---------- sheets (confirmations slide down from the toolbar, like macOS) ---------- */
dialog { color: var(--text); }
dialog.sheet {
  position: fixed; inset: 0 0 auto 0; margin: 0 auto; top: 0;
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 40px);
  padding: 22px 22px 18px; border: 0;
  border-radius: 0 0 14px 14px;
  background: var(--group);
  box-shadow: var(--shadow-sheet);
  transform: translateY(-105%);
  transition: transform 0.32s var(--ease-out), overlay 0.32s allow-discrete, display 0.32s allow-discrete;
}
dialog.sheet[open] { transform: translateY(0); }
@starting-style { dialog.sheet[open] { transform: translateY(-105%); } }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0); transition: background-color 0.3s, overlay 0.3s allow-discrete, display 0.3s allow-discrete; }
dialog.sheet[open]::backdrop { background: rgba(0, 0, 0, 0.22); }
@starting-style { dialog.sheet[open]::backdrop { background: rgba(0, 0, 0, 0); } }
.sheet .sheet-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; margin-bottom: 12px; color: #fff; background: var(--warn); }
.sheet .sheet-icon.bad { background: var(--bad); }
.sheet .sheet-icon svg.i { width: 24px; height: 24px; stroke-width: 2; }
.sheet h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.sheet p { margin: 0 0 6px; color: var(--text-2); font-size: 13px; }
.sheet .sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.sheet .code-field { display: block; width: 100%; margin-top: 12px; font-size: 20px; letter-spacing: 0.3em; text-align: center; min-height: 44px; }
.sheet .error { margin-top: 8px; }

/* log drawer */
dialog.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: none;
  width: min(760px, 100vw); padding: 0; border: 0;
  background: var(--group); box-shadow: var(--shadow-sheet);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}
dialog.drawer[open] { transform: none; display: flex; flex-direction: column; }
@starting-style { dialog.drawer[open] { transform: translateX(100%); } }
dialog.drawer::backdrop { background: rgba(0, 0, 0, 0.18); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--sep); flex-wrap: wrap; }
.drawer-head h2 { margin: 0; font-size: 15px; font-weight: 600; flex: 1; min-width: 140px; }
.drawer-head h2 span { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); }
.drawer-tools { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 18px; border-bottom: 1px solid var(--sep); flex-wrap: wrap; }
.drawer-tools .field { flex: 1; min-width: 160px; }
.log {
  flex: 1; margin: 0; padding: 12px 18px 24px; overflow: auto;
  font: 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word;
  background: var(--bg); color: var(--text);
}
.log mark { background: color-mix(in srgb, var(--warn) 45%, transparent); color: inherit; border-radius: 2px; }
.log .err { color: var(--bad-text); }

/* toast */
.toasts { position: fixed; z-index: 20; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; max-width: min(520px, calc(100vw - 32px));
  background: color-mix(in srgb, var(--sidebar-solid) 92%, transparent); box-shadow: var(--shadow-window);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-size: 13px; animation: toast-in 0.3s var(--ease-out);
}
.toast.bad { color: var(--bad-text); }
.toast svg.i { color: var(--ok-text); }
.toast.bad svg.i { color: var(--bad-text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.error { color: var(--bad-text); font-size: 12.5px; }
.error:empty { display: none; }

/* ---------- login ---------- */
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login {
  width: min(360px, 100%); text-align: center;
}
.login .appicon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); }
.login h1 { margin: 16px 0 2px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.login .host { margin: 0 0 24px; color: var(--text-2); font-size: 13px; }
.login .group { text-align: left; }
.login .row { min-height: 46px; padding: 0 14px; }
.login .row label { width: 96px; flex: none; font-size: 13px; color: var(--text-2); }
.login .row input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; outline: none; font-size: 14px; }
.login .row:focus-within { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--radius); }
.login .row:focus-within::before { display: none; }
.login .row:focus-within + .row::before { display: none; }
.login .submit { width: 100%; margin-top: 16px; }
.login .error { margin: 12px 4px 0; text-align: left; }
.login .hint { margin: 14px 4px 0; font-size: 12px; color: var(--text-2); }
.login .otp { font-size: 22px; letter-spacing: 0.35em; text-align: center; padding-left: 0.35em; }
.login [hidden] { display: none !important; }
.step { animation: step-in 0.3s var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 6; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap;
    padding: 10px 16px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--sep);
  }
  .brand { padding: 0; flex: 1; }
  .brand span { display: none; }
  .nav { order: 3; width: 100%; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; overflow-x: auto; }
  .nav a { justify-content: center; flex-direction: column; gap: 3px; font-size: 11.5px; padding: 6px 4px; }
  .nav .badge { position: absolute; margin: -4px 0 0 18px; }
  .nav a { position: relative; }
  .sidebar-foot { margin: 0; padding: 0; border: 0; }
  .sidebar-foot .who { display: none; }
  .toolbar { position: static; padding: 14px 16px 4px; }
  .content { padding: 4px 16px 48px; }
  .row { flex-wrap: wrap; }
  .row .actions { width: 100%; justify-content: flex-start; padding-left: 22px; }
  .chart-head .net { margin-left: 0; text-align: left; width: 100%; }
  .act-time { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* skeleton widths + chart swatches (no inline styles: CSP forbids them) */
.sk-180 { width: 180px; } .sk-260 { width: 260px; max-width: 100%; } .sk-gap { margin-top: 6px; }
.sk-45 { width: 45%; } .sk-50 { width: 50%; } .sk-52 { width: 52%; } .sk-55 { width: 55%; } .sk-60 { width: 60%; }
.sw-cpu { background: var(--chart-cpu); } .sw-mem { background: var(--chart-mem); }
.sw-cache { background: color-mix(in srgb, var(--chart-cpu) 30%, transparent); }

/* destructive buttons: solid red on hover keeps contrast in both themes */
.btn.danger:hover:not(:disabled) { background: #d70015; color: #fff; }
.chart-head .net svg.i { width: 12px; height: 12px; vertical-align: -1px; stroke-width: 2; }

/* contrast: white glyphs need >=3:1 on status discs; badge text and chart axes >=4.5:1 */
.health .glyph { background: #248a3d; }
.health.warn .glyph, .sheet .sheet-icon { background: #c45f00; }
.health.bad .glyph, .sheet .sheet-icon.bad { background: #d70015; }
.nav .badge { background: #d70015; }
.chart .axis { fill: var(--text-2); }
