:root {
  --bg: #050914;
  --surface: #0b1222;
  --surface2: #111c33;
  --border: #1e2d4a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
  --accent: #38bdf8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top right, #0b2436 0%, var(--bg) 52%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
}
.hidden { display: none !important; }
.st-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 24px; border-bottom: 1px solid var(--border); background: rgba(5, 9, 20, .86);
  backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 30;
}
.st-brand { display: flex; align-items: center; gap: 12px; }
.st-title { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.st-sub { font-size: 12px; color: var(--muted); }
.st-top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-updated { font-size: 12px; color: var(--muted); }
.st-btn {
  background: var(--surface2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; font-weight: 600;
}
.st-btn:hover { border-color: var(--accent); }
.st-btn-primary { background: #059669; border-color: #10b981; color: #fff; }
.st-shell { max-width: 1020px; margin: 24px auto; padding: 0 18px 40px; display: flex; flex-direction: column; gap: 18px; }
.st-banner {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, .4); background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(11,18,34,.95));
}
.st-banner.degraded { border-color: rgba(245,158,11,.5); background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(11,18,34,.95)); }
.st-banner.major_outage { border-color: rgba(239,68,68,.55); background: linear-gradient(135deg, rgba(239,68,68,.16), rgba(11,18,34,.95)); }
.st-banner-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 14px var(--ok); flex-shrink: 0; }
.st-banner.degraded .st-banner-dot { background: var(--warn); box-shadow: 0 0 14px var(--warn); }
.st-banner.major_outage .st-banner-dot { background: var(--err); box-shadow: 0 0 14px var(--err); }
.st-banner-main { flex: 1; }
.st-banner-main h1 { margin: 0 0 4px; font-size: 20px; }
.st-banner-main p { margin: 0; font-size: 13px; color: var(--muted); }
.st-banner-count { font-size: 16px; font-weight: 700; padding: 6px 12px; border-radius: 10px; background: rgba(15,23,42,.7); border: 1px solid var(--border); }
.st-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
}
.st-card-hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.st-pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(16,185,129,.16); color: #6ee7b7; border: 1px solid rgba(16,185,129,.35);
}
.st-pill.warn { background: rgba(245,158,11,.15); color: #fcd34d; border-color: rgba(245,158,11,.4); }
.st-pill.err { background: rgba(239,68,68,.15); color: #fca5a5; border-color: rgba(239,68,68,.4); }
.st-backup-meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.st-svc-row { padding: 12px 0; border-top: 1px solid rgba(30,45,74,.7); }
.st-svc-row:first-child { border-top: none; padding-top: 2px; }
.st-svc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.st-svc-name { font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; }
.st-svc-name:hover { color: var(--accent); }
.st-svc-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.st-bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 24px; align-items: stretch; }
.st-bar { border-radius: 2px; background: #1e293b; transition: transform .1s; }
.st-bar.up { background: var(--ok); }
.st-bar.degraded { background: var(--warn); }
.st-bar.down { background: var(--err); }
.st-bar:hover { transform: scaleY(1.16); }
.st-bars-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.st-inc-item { padding: 10px 12px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); margin-bottom: 8px; }
.st-inc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.st-inc-body { margin: 6px 0 4px; font-size: 13px; color: #cbd5e1; }
.st-inc-ts { font-size: 11.5px; color: var(--muted); }
.st-modal-bg { position: fixed; inset: 0; background: rgba(2,6,18,.78); display: grid; place-items: center; z-index: 90; padding: 16px; }
.st-modal { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.st-form { display: flex; flex-direction: column; gap: 10px; }
.st-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.st-form input, .st-form select, .st-form textarea {
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit;
}
.st-footer { text-align: center; padding: 20px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); }
.st-footer a { color: var(--accent); text-decoration: none; }
