
:root {
  --text: #111827; --muted: #6b7280; --border: #e5e7eb; --bg: #fff;
  --operational: #10b981; --under_maintenance: #3b82f6; --degraded_performance: #f59e0b;
  --partial_outage: #f97316; --full_outage: #ef4444; --no_data: #e5e7eb;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; }
a { color: inherit; }
.masthead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.brand { font-size: 22px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-weight: 500; }
.button { background: #1f2937; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 500; }
.banner, .card { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.banner h1 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 18px 20px; font-size: 18px; font-weight: 500; }
.banner > p { margin: 0; padding: 16px 20px; }
.banner.s-operational { border-color: var(--operational); } .banner.s-operational h1 { background: #ecfdf5; }
.banner.s-under_maintenance { border-color: var(--under_maintenance); } .banner.s-under_maintenance h1 { background: #eff6ff; }
.banner.s-degraded_performance { border-color: var(--degraded_performance); } .banner.s-degraded_performance h1 { background: #fffbeb; }
.banner.s-partial_outage { border-color: var(--partial_outage); } .banner.s-partial_outage h1 { background: #fff7ed; }
.banner.s-full_outage { border-color: var(--full_outage); } .banner.s-full_outage h1 { background: #fef2f2; }
.card h2 { margin: 0; padding: 16px 20px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--border); }
.icon { width: 20px; height: 20px; flex: none; }
.icon.s-operational { fill: var(--operational); } .icon.s-under_maintenance { fill: var(--under_maintenance); }
.icon.s-degraded_performance { fill: var(--degraded_performance); } .icon.s-partial_outage { fill: var(--partial_outage); }
.icon.s-full_outage { fill: var(--full_outage); }
.row { display: block; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.row:last-of-type { border-bottom: none; }
.row-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.row-name { font-weight: 500; }
.row-count { color: var(--muted); }
.row-uptime { margin-left: auto; color: var(--muted); white-space: nowrap; }
details.group > summary { list-style: none; cursor: pointer; display: block; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary .row-count::after { content: " ›"; }
details.group[open] > summary .row-count::after { content: " ⌄"; }
.children { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; }
.children .row { padding: 12px 16px; }
.bars { display: flex; gap: 2px; height: 26px; }
.bar { flex: 1; border-radius: 2px; min-width: 2px; }
.bar.s-operational { background: var(--operational); } .bar.s-under_maintenance { background: var(--under_maintenance); }
.bar.s-degraded_performance { background: var(--degraded_performance); } .bar.s-partial_outage { background: var(--partial_outage); }
.bar.s-full_outage { background: var(--full_outage); } .bar.s-no_data { background: var(--no_data); }
.legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding: 0 20px 14px; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f3f4f6; color: #374151; white-space: nowrap; }
.pill.s-under_maintenance, .pill.i-monitoring { background: #dbeafe; color: #1e40af; }
.pill.s-degraded_performance, .pill.i-identified { background: #fef3c7; color: #92400e; }
.pill.s-partial_outage, .pill.i-investigating { background: #ffedd5; color: #9a3412; }
.pill.s-full_outage { background: #fee2e2; color: #991b1b; }
.pill.i-resolved { background: #d1fae5; color: #065f46; }
.incident { padding: 16px 20px; border-top: 1px solid var(--border); }
.card .incident:first-of-type { border-top: none; }
.incident h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.incident h3 a { text-decoration: none; } .incident h3 a:hover { text-decoration: underline; }
.message { white-space: pre-wrap; margin: 0 0 6px; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 13px; margin: 0; }
.empty { color: var(--muted); padding: 16px 20px; margin: 0; }
.incident-title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0; padding: 20px 20px 4px; }
.card > .meta { padding: 0 20px; }
.timeline { list-style: none; margin: 0; padding: 8px 20px 20px; }
.timeline li { border-left: 2px solid var(--border); padding: 4px 0 16px 16px; }
footer { color: var(--muted); font-size: 13px; text-align: center; }
.legend .short { display: none; }
@media (max-width: 560px) {
  .row-count, .pill { display: none; }
  /* 90 bars don't fit a phone; show the most recent 30 days. */
  .bar:nth-child(-n+60) { display: none; }
  .legend .long { display: none; } .legend .short { display: inline; }
}
