:root {
  color-scheme: dark;
  --bg-base: #080b10;
  --bg-surface: #0f141c;
  --bg-subtle: #131a26;
  --border: #1e293b;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
}
* { box-sizing: border-box; }
body {
  background: var(--bg-base);
  color: var(--text-main);
  margin: 0;
  padding: clamp(12px, 3vw, 24px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}
.status-page { max-width: 1024px; margin: 0 auto; }
.status-page > * + *, main > * + *, #statusEvidence > * + * { margin-top: 24px; }
header, .banner, .integration, footer {
  padding: clamp(16px, 3vw, 24px);
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
header, .status-actions, .status-item-heading, footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
header { justify-content: space-between; gap: 16px; }
.status-brand { display: flex; gap: 12px; align-items: flex-start; }
.status-logo {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(to top right, #10b981, #22d3ee);
  color: var(--bg-base);
  display: grid;
  place-items: center;
  font-weight: 900;
  text-decoration: none;
}
h1 { font-size: 20px; }
h2, h3, p, h1 { margin: 0; }
h2 { margin-bottom: 8px; font-size: 14px; }
h3 { font-size: inherit; }
p { color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #22d3ee; outline-offset: 3px; }
.btn {
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-base);
  color: var(--text-main);
  font: 12px monospace;
  text-decoration: none;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.btn:hover { border-color: var(--text-muted); }
.banner[data-status="operational"] { border-color: rgba(16, 185, 129, 0.3); }
.banner:is([data-status="degraded"], [data-status="partial"], [data-status="outage"]) {
  border-color: rgba(245, 158, 11, 0.4);
}
#headlineText { margin: 8px 0 0; font-size: 18px; }
#lastUpdatedText { font: 12px monospace; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 9999px;
  font: bold 11px monospace;
}
.badge-live { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.badge-prep { background: rgba(6, 182, 212, 0.1); color: #22d3ee; }
.badge-degraded { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.badge-neutral { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); }
.status-grid, .status-capabilities { display: grid; gap: 10px; }
.status-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.status-capabilities { margin-top: 10px; }
.card, .list-item, .status-capability {
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  overflow-wrap: anywhere;
  font-size: 13px;
}
.card { border-radius: 12px; }
.status-capability { background: var(--bg-base); border-radius: 8px; }
.status-item-heading { justify-content: space-between; }
.list-item + .list-item { border-top: 0; }
.list-item:first-child { border-radius: 12px 12px 0 0; }
.list-item:last-child { border-radius: 0 0 12px 12px; }
.integration pre { overflow: auto; background: var(--bg-base); padding: 12px; }
footer nav a { display: inline-flex; align-items: center; min-height: 32px; }
footer nav, footer p { font: 12px monospace; color: var(--text-muted); }
