:root {
  --bg: #14161a; --panel: #1b1e24; --line: #2a2f38;
  --fg: #e6e8ec; --muted: #8b93a1; --accent: #7dd3a0; --danger: #f2777a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-size: 13px; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }

.bar { display: flex; gap: 12px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: .5px; }
.stale { color: var(--danger); }

main { padding: 16px; display: flex; flex-direction: column; gap: 16px; }

.totals { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; min-width: 110px; }
.stat .value { display: block; font-size: 20px; }
.stat.primary .value { color: var(--accent); font-size: 26px; }
.stat .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

.instance { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.instance > header { display: flex; gap: 12px; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.instance .name { font-weight: 700; }
.instance .heap { color: var(--accent); font-weight: 700; }
.instance .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.instance.down .dot { background: var(--danger); }
.instance.down { opacity: .8; }
.badge { color: var(--danger); font-weight: 700; }
.error { color: var(--danger); }
.empty { padding: 10px 12px; margin: 0; }

table { width: 100%; border-collapse: collapse; }
th { color: var(--muted); font-weight: 400; font-size: 11px; text-transform: uppercase; text-align: left; padding: 6px 12px; }
td { padding: 4px 12px; border-top: 1px solid var(--line); }
tbody tr:hover { background: #20242c; }
td.heap { color: var(--accent); }
/* Allocated rides in the heap cell: same number, one step quieter, so used
   memory stays the thing the eye lands on. */
td.heap .sub { margin-left: 6px; font-size: 11px; font-weight: 400; }
/* The counter cell holds up to three values; dimming the unit letters keeps the
   digits readable as a column instead of a run of text. */
td.counts { white-space: nowrap; }
td.counts .unit { opacity: .5; margin-left: 1px; font-size: 11px; }
td.title { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.url { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

.spark { width: 120px; height: 20px; color: var(--accent); }
.instance .spark { align-self: center; }

button.danger {
  background: transparent; color: var(--danger); border: 1px solid var(--line);
  border-radius: 4px; padding: 3px 10px; font: inherit; cursor: pointer;
}
button.danger:hover { border-color: var(--danger); }
button.danger:disabled { opacity: .4; cursor: default; }
button.danger.small { padding: 1px 8px; font-size: 11px; }
.action-msg { color: var(--muted); }
.action-msg.error { color: var(--danger); }
