:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --ink: #16181d;
  --muted: #5d6470;
  --line: #e6e6e1;
  --none: #dcddd8;
  --operational: #1f9d68;
  --degraded: #c98a00;
  --partial_outage: #e5672a;
  --major_outage: #d63c3c;
  --maintenance: #3a6ff0;
  --accent: #1f9d68;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --radius: 14px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --card: #15181d;
    --ink: #eceef1;
    --muted: #9aa3ae;
    --line: #252a31;
    --none: #2c323a;
    --operational: #34c38a;
    --degraded: #e6a817;
    --partial_outage: #f2813f;
    --major_outage: #f05a5a;
    --maintenance: #6b93ff;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--maintenance); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 9; }

.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.mark { font-weight: 800; font-size: 24px; letter-spacing: -.04em; }
.sub { color: var(--muted); font-weight: 500; font-size: 15px; padding-left: 10px; border-left: 1px solid var(--line); }
nav { display: flex; gap: 18px; font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
.feed { border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

main { padding-top: 36px; padding-bottom: 24px; }
section { margin-bottom: 40px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 650; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }

.banner {
  display: flex; gap: 16px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c, var(--none)); }
.banner h1 { font-size: 22px; font-weight: 700; }
.banner p { margin: 2px 0 0; font-size: 14px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--none)); flex: none; position: relative; }
.dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--c, var(--none)); opacity: .18; }
.banner:not(.lv-operational):not(.lv-none) .dot::after { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot::after { animation: none !important; } }

.lv-operational { --c: var(--operational); }
.lv-degraded { --c: var(--degraded); }
.lv-partial_outage { --c: var(--partial_outage); }
.lv-major_outage { --c: var(--major_outage); }
.lv-maintenance { --c: var(--maintenance); }
.lv-none { --c: var(--none); }
.clevel.lv-none, .lv-none > .crow .clevel { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.components { list-style: none; margin: 0; padding: 0; }
.components li { padding: 18px 22px 16px; border-bottom: 1px solid var(--line); }
.components li:last-child { border-bottom: 0; }
.crow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cname { font-weight: 600; font-size: 15px; }
.cdesc { font-size: 13px; color: var(--muted); margin-top: 1px; }
.clevel { font-size: 13px; font-weight: 600; color: var(--c); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.clevel::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.bars { display: block; width: 100%; height: 34px; margin: 12px 0 6px; cursor: default; }
.bars rect { fill: var(--none); transition: opacity .1s; }
.bars rect.d-operational { fill: var(--operational); }
.bars rect.d-degraded { fill: var(--degraded); }
.bars rect.d-partial_outage { fill: var(--partial_outage); }
.bars rect.d-major_outage { fill: var(--major_outage); }
.bars rect.d-maintenance { fill: var(--maintenance); }
.bars rect.on { opacity: .55; }
.bars:focus-visible { outline-offset: 4px; }
.cfoot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 8px; }
.cfoot .up { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.checks { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.checks li { padding: 0 !important; border: 0 !important; display: flex; gap: 6px; align-items: center; }
.checks i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); display: inline-block; }
.checks b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 2px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart { padding: 18px 20px 14px; }
.chart h3 { font-size: 14px; font-weight: 600; }
.chart .nums { display: flex; gap: 18px; margin: 6px 0 8px; font-size: 13px; color: var(--muted); }
.chart .nums b { color: var(--ink); font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; margin-right: 3px; }
.chart svg { display: block; width: 100%; height: 120px; overflow: visible; }
.chart .p95 { fill: var(--accent); opacity: .14; }
.chart .p50 { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .empty { fill: var(--muted); font-size: 13px; }
.key { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.key i { width: 14px; height: 3px; background: var(--accent); display: inline-block; border-radius: 2px; }
.key i.band { height: 10px; opacity: .2; }

.incident { padding: 18px 22px; margin-bottom: 12px; border-left: 4px solid var(--c); }
.incident h3 { font-size: 16px; font-weight: 650; }
.incident .meta { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.updates { list-style: none; margin: 0; padding: 0; }
.updates li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 6px 0; font-size: 14px; border-top: 1px dashed var(--line); }
.updates li:first-child { border-top: 0; }
.updates .st { font-weight: 600; text-transform: capitalize; }
.updates time { display: block; font-size: 12px; color: var(--muted); }
.day { padding: 14px 0; border-bottom: 1px solid var(--line); }
.day h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.day .none { font-size: 14px; color: var(--muted); }
.past { display: block; padding: 4px 0; text-decoration: none; }
.past strong { color: var(--c); font-weight: 600; }
.past span { display: block; font-size: 13px; color: var(--muted); }

.tip {
  position: fixed; z-index: 10; pointer-events: none; min-width: 180px; max-width: 260px;
  background: var(--ink); color: var(--bg); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.tip strong { display: block; }
.tip .lvl { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.tip .lvl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tip ul { margin: 6px 0 0; padding-left: 16px; }

.foot { padding-bottom: 40px; border-top: 1px solid var(--line); padding-top: 18px; }
.foot p { margin: 4px 0; }

@media (max-width: 640px) {
  .charts { grid-template-columns: 1fr; }
  .banner { padding: 18px; }
  .banner h1 { font-size: 19px; }
  .components li { padding: 16px; }
  .bars { height: 30px; }
  .updates li { grid-template-columns: 1fr; gap: 0; }
  nav { gap: 10px; }
}
