:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --muted: #64748b;
    --line: #e2e8f0;
    --ok: #16a34a;
    --warn: #d97706;
    --bad: #dc2626;
    --brand: #0b1f4d;
    --brand-soft: #1d3a8a;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 920px; margin: 0 auto; padding: 0 24px; }
a { color: var(--brand-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { background: var(--brand); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { width: 28px; height: 28px; border-radius: 6px; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.brand-text { font-weight: 600; }
.topnav { display: flex; gap: 18px; }
.topnav a { color: rgba(255,255,255,.85); font-size: 14px; }
.topnav a:hover { color: #fff; text-decoration: none; }
.topnav a.external::after { content: "↗"; margin-left: 4px; opacity: .7; }

main { padding: 32px 0 64px; display: flex; flex-direction: column; gap: 20px; }

.overall { display: flex; align-items: center; gap: 18px; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border-left: 6px solid var(--ok); }
.overall.ok   { border-left-color: var(--ok); }
.overall.warn { border-left-color: var(--warn); }
.overall.bad  { border-left-color: var(--bad); }
.overall-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.overall.warn .overall-dot { background: var(--warn); }
.overall.bad .overall-dot { background: var(--bad); }
.overall h1 { margin: 0; font-size: 22px; }
.overall p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card h2 { margin: 0 0 14px; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.components { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.component { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.component p { margin: 4px 0 0; font-size: 13px; }

.status-pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #ecfdf5; color: var(--ok); border: 1px solid #bbf7d0; }
.status-pill.warn { background: #fffbeb; color: var(--warn); border-color: #fde68a; }
.status-pill.bad  { background: #fef2f2; color: var(--bad);  border-color: #fecaca; }

.incident { padding: 16px 0; border-bottom: 1px solid var(--line); }
.incident:last-child { border-bottom: none; }
.incident header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.incident header h3 { margin: 0; font-size: 16px; }
.incident-summary { margin: 8px 0; }
.incident-updates { list-style: none; padding-left: 0; margin: 12px 0 0; border-left: 2px solid var(--line); }
.incident-updates li { padding: 8px 0 8px 14px; margin-left: 4px; }
.incident-updates time { display: block; font-size: 12px; color: var(--muted); }
.incident-updates p { margin: 4px 0 0; }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--ink-soft); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.badge.sev-low      { background: #ecfdf5; color: var(--ok);   border-color: #bbf7d0; }
.badge.sev-medium   { background: #fffbeb; color: var(--warn); border-color: #fde68a; }
.badge.sev-high     { background: #fef2f2; color: var(--bad);  border-color: #fecaca; }
.badge.sev-critical { background: #450a0a; color: #fff;        border-color: #7f1d1d; }
.badge.sev-info     { background: #eff6ff; color: var(--brand-soft); border-color: #bfdbfe; }

.maintenance-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.maintenance-card li { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; }
.maintenance-card li strong { display: block; }
.maintenance-card .muted { display: block; font-size: 12px; margin-top: 2px; }

.form { display: flex; flex-direction: column; gap: 8px; max-width: 480px; }
.form label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.form input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.form button { padding: 10px 16px; background: var(--brand); color: #fff; border: 0; border-radius: 8px; font-weight: 600; cursor: pointer; align-self: flex-start; }
.form button:hover { background: var(--brand-soft); }
.error { color: var(--bad); font-size: 13px; }
.success { border-left: 4px solid var(--ok); }

.footer { padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 16px; }
