:root {
  --st-ok: #198754;
  --st-warn: #e0a800;
  --st-bad: #dc3545;
  --st-maint: #0d6efd;
  --st-none: #adb5bd;
}

.status-body { background: var(--bs-body-bg); }
.status-wrap { max-width: 52rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }

.status-header { text-align: center; margin: 1rem 0 1.25rem; }
.status-header h1 { font-size: 1.75rem; font-weight: 600; margin: 0; }
.status-message { color: var(--bs-secondary-color); margin: 0.5rem 0 0; white-space: pre-line; }

.status-banner { border-radius: 0.6rem; padding: 1rem 1.25rem; font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: 1rem; }
.banner-ok { background: var(--st-ok); }
.banner-maint { background: var(--st-maint); }
.banner-warn { background: var(--st-warn); color: #212529; }
.banner-bad { background: var(--st-bad); }
.banner-unknown { background: var(--st-none); color: #212529; }

.status-card { border: 1px solid var(--bs-border-color); border-radius: 0.6rem; padding: 0.75rem 1rem; margin-bottom: 1rem; background: var(--bs-body-bg); }
.maint-card { border-left: 4px solid var(--st-maint); }
.status-h2 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }

.component { padding: 0.75rem 0; border-bottom: 1px solid var(--bs-border-color); }
.component:last-child { border-bottom: 0; }
.component-name { font-weight: 600; }

.status-pill { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 1rem; color: #fff; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--st-ok); }
.pill-warn { background: var(--st-warn); color: #212529; }
.pill-bad { background: var(--st-bad); }
.pill-maint { background: var(--st-maint); }
.pill-unknown { background: var(--st-none); color: #212529; }

.bars { display: flex; gap: 2px; height: 28px; margin-top: 0.5rem; }
.bar { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--st-none); }
.bar-ok { background: var(--st-ok); }
.bar-warn { background: var(--st-warn); }
.bar-bad { background: var(--st-bad); }
.bar-maint { background: var(--st-maint); }
.bar-none { background: var(--bs-border-color); }
.bars-legend { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--bs-secondary-color); margin-top: 0.2rem; }

.incident { padding: 0.6rem 0; border-bottom: 1px solid var(--bs-border-color); }
.incident:last-child { border-bottom: 0; }
.incident-kind { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 0.3rem; color: #fff; }
.kind-outage { background: var(--st-bad); }
.kind-degraded { background: var(--st-warn); color: #212529; }
.kind-maintenance { background: var(--st-maint); }

.status-footer { text-align: center; font-size: 0.8rem; color: var(--bs-secondary-color); margin-top: 2rem; }
