:root { color-scheme: light; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 24px; color: #0f172a; background: #f8fafc; }
h1 { margin: 0 0 4px; font-size: 22px; }
.muted { color: #64748b; font-size: 12px; }
.panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px; }
input, button, select { padding: 6px 10px; font-size: 14px; border: 1px solid #cbd5f5; border-radius: 8px; background: #fff; }
button { cursor: pointer; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 12px 0; }
.card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
.card .label { font-size: 12px; color: #64748b; }
.card .value { font-size: 18px; font-weight: 600; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid #e2e8f0; padding: 8px; text-align: left; font-size: 13px; }
th { background: #f8fafc; position: sticky; top: 0; z-index: 1; }
.ok { color: #16a34a; font-weight: 600; }
.bad { color: #dc2626; font-weight: 600; }
.tag { display: inline-block; padding: 2px 6px; background: #e2e8f0; margin-right: 4px; border-radius: 10px; font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #e2e8f0; }
.bar { position: relative; height: 8px; width: 140px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: #38bdf8; }
.bar.cpu > span { background: #22c55e; }
.bar.mem > span { background: #f59e0b; }
.bar.disk > span { background: #ef4444; }
.metric { font-size: 12px; color: #334155; }
@media (max-width: 768px) {
  body { margin: 12px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar { width: 100%; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}
