body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: #0f172a;
  color: #f8fafc;
  margin: 0;
  padding: 24px;
}
body.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}
h1 { color: #38bdf8; font-size: 22px; margin: 0 0 16px 0; }
h2 { color: #38bdf8; font-size: 16px; margin: 0 0 10px 0; }
.subtitle { color: #94a3b8; font-size: 13px; margin-bottom: 24px; }
a { color: #38bdf8; text-decoration: none; }
a:hover { text-decoration: underline; }

table { border-collapse: collapse; width: 100%; max-width: 960px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 14px; white-space: nowrap; }
th { color: #94a3b8; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
tr:hover { background: rgba(255,255,255,0.03); }

.sortable th { cursor: pointer; user-select: none; }
.sortable th:hover { color: #38bdf8; }
.sortable th[data-dir="asc"]::after { content: " \25B2"; }
.sortable th[data-dir="desc"]::after { content: " \25BC"; }

#filterBox { margin-bottom: 14px; }

.card {
  background: rgba(30,41,59,0.7);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  max-width: 460px;
}
.wide { max-width: 960px; }

label { display: block; margin: 12px 0 4px; font-size: 13px; color: #cbd5e1; }
input, select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1e293b;
  color: #f8fafc;
  box-sizing: border-box;
  font-size: 14px;
}
.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 18px;
  border: none;
  border-radius: 8px;
  background: #10b981;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: #059669; }
.btn-secondary { background: #334155; }
.btn-secondary:hover { background: #475569; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-on { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-off { background: rgba(148,163,184,0.15); color: #94a3b8; }
.badge-stale { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-pending { background: rgba(56,189,248,0.15); color: #38bdf8; }
.badge-acked { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-failed { background: rgba(239,68,68,0.15); color: #f87171; }

.notice { padding: 10px 14px; border-radius: 8px; background: rgba(56,189,248,0.12); color: #38bdf8; font-size: 13px; margin-bottom: 16px; }
.notice-error { background: rgba(239,68,68,0.12); color: #f87171; }

.topbar { display: flex; justify-content: space-between; align-items: baseline; max-width: 960px; margin-bottom: 4px; }
