/* Oneewaee Mail status page: no build step, no third-party requests (docs/STATUS_PAGE.md §6). */
:root {
  --bg: #f7f8fa; --card: #ffffff; --text: #111827; --muted: #5b6474; --line: #e4e7ec;
  --ok: #16a34a; --maint: #2563eb; --degraded: #ca8a04; --partial: #ea580c; --major: #dc2626; --none: #d0d5dd;
  --radius: 10px; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1218; --card: #171b23; --text: #e8eaee; --muted: #9aa3b2; --line: #2a303b; --none: #3a414d; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; align-items: baseline; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 17px; }
.sub { color: var(--muted); }
h1 { margin: 0; font-size: 20px; }
h2 { font-size: 16px; margin: 32px 0 12px; }
.hint, .muted { color: var(--muted); font-weight: 400; font-size: 13px; }
.overall { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); color: #fff; background: var(--none); }
.overall p { margin: 4px 0 0; opacity: .92; }
.overall.operational { background: var(--ok); }
.overall.maintenance { background: var(--maint); }
.overall.degraded { background: var(--degraded); }
.overall.partial_outage { background: var(--partial); }
.overall.major_outage { background: var(--major); }
.overall.unknown { background: var(--none); color: var(--text); }
.stale { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--degraded); }
.components { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.components li { padding: 14px 18px; border-top: 1px solid var(--line); }
.components li:first-child { border-top: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.name { font-weight: 600; }
.pill { font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: currentColor; }
.s-operational { color: var(--ok); } .s-maintenance { color: var(--maint); } .s-degraded { color: var(--degraded); }
.s-partial_outage { color: var(--partial); } .s-major_outage { color: var(--major); }
.bars { display: flex; gap: 2px; margin-top: 10px; height: 26px; }
.bar { flex: 1; border-radius: 2px; background: var(--none); min-width: 2px; }
.bar.b-operational { background: var(--ok); } .bar.b-maintenance { background: var(--maint); } .bar.b-degraded { background: var(--degraded); }
.bar.b-partial_outage { background: var(--partial); } .bar.b-major_outage { background: var(--major); }
.barlegend { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 4px; }
.incident { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--degraded); border-radius: var(--radius);
            padding: 14px 18px; margin-bottom: 12px; }
.incident.i-major_outage { border-left-color: var(--major); } .incident.i-partial_outage { border-left-color: var(--partial); }
.incident.i-maintenance { border-left-color: var(--maint); } .incident.done { border-left-color: var(--line); }
.incident h3 { margin: 0 0 4px; font-size: 15px; }
.meta { color: var(--muted); font-size: 13px; }
.update { margin-top: 10px; }
.update b { text-transform: capitalize; }
.update time { color: var(--muted); font-size: 13px; margin-left: 6px; }
.update p { margin: 2px 0 0; white-space: pre-wrap; }
.foot { color: var(--muted); font-size: 13px; padding-top: 24px; padding-bottom: 40px; }
.foot a { color: inherit; }
@media (max-width: 560px) { .bars { height: 20px; gap: 1px; } }
