@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #050B18; --bg2: #0D1B32; --surface: #142D4E;
  --primary: #008CFF; --accent: #18C8FF;
  --ok: #10B981; --warn: #F59E0B; --bad: #EF4444;
  --text: #F8FAFC; --muted: #94A3B8; --line: #1e3a62;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #00152b; padding: 8px 14px; border-radius: 8px; z-index: 10; font-weight: 600; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.site-header { background: var(--bg2); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand img { display: block; height: 42px; width: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; display: inline-block; }
.nav a:hover { background: var(--surface); }
.nav a.btn { background: var(--primary); color: #00152b; font-weight: 600; }
.nav a.btn:hover { background: var(--accent); color: #00152b; }

main { padding-top: 32px; padding-bottom: 24px; }
h2 { font-size: 1.25rem; margin: 40px 0 14px; letter-spacing: -.01em; }

.banner { display: flex; gap: 16px; align-items: center; padding: 26px 28px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); border-left-width: 6px; }
.banner-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); }
.banner-title { margin: 0; font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.banner-sub { margin: 4px 0 0; color: var(--muted); }
.banner.s-operational { border-left-color: var(--ok); } .banner.s-operational .banner-dot { background: var(--ok); }
.banner.s-degraded { border-left-color: var(--warn); } .banner.s-degraded .banner-dot { background: var(--warn); }
.banner.s-partial_outage { border-left-color: var(--bad); } .banner.s-partial_outage .banner-dot { background: var(--bad); }
.banner.s-major_outage { border-left-color: var(--bad); background: #2a1220; } .banner.s-major_outage .banner-dot { background: var(--bad); }
.banner.s-unknown { border-left-color: var(--muted); }
.banner.s-operational .banner-dot { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); } 100% { box-shadow: 0 0 0 14px rgba(16,185,129,0); } }

.notice { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: #2b2110; border: 1px solid var(--warn); color: #fde7b0; }
.notice a { color: #fff; }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { margin: 0; }

.comps { list-style: none; margin: 0; padding: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); }
.comp { padding: 20px 22px; }
.comp + .comp { border-top: 1px solid var(--line); }
.comp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.comp-name { margin: 0; font-size: 1.05rem; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: .875rem; font-weight: 600; background: var(--surface); border: 1px solid transparent; }
.pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.pill.s-operational { color: #6ee7b7; border-color: #0b6b4d; } .pill.s-operational::before { background: var(--ok); }
.pill.s-degraded { color: #fcd34d; border-color: #8a5a06; } .pill.s-degraded::before { background: var(--warn); border-radius: 2px; transform: rotate(45deg); }
.pill.s-outage { color: #fca5a5; border-color: #8f2a2a; } .pill.s-outage::before { background: var(--bad); border-radius: 1px; }
.pill.s-unknown { color: var(--muted); }

.comp-detail { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.empty { margin: 0; padding: 20px 22px; background: var(--bg2); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.comps[hidden], .empty[hidden] { display: none; }

.bar { list-style: none; display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; margin: 14px 0 6px; padding: 0; height: 34px; }
.bar li { border-radius: 2px; background: #243b5c; cursor: default; min-width: 0; }
.bar li:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bar li:hover { filter: brightness(1.25); }
.c-ok { background: var(--ok) !important; } .c-warn { background: var(--warn) !important; } .c-bad { background: var(--bad) !important; } .c-none { background: #2c3f5c !important; }
.bar-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.meta { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-top: 12px; align-items: center; color: var(--muted); font-size: .875rem; }
.meta strong { color: var(--text); font-weight: 600; }
.spark { display: block; }
.spark-wrap { display: flex; align-items: center; gap: 10px; }
.legend { margin: 12px 4px 0; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }

.tip { position: absolute; z-index: 20; background: var(--surface); color: var(--text); border: 1px solid var(--primary); padding: 6px 10px; border-radius: 8px; font-size: .8rem; pointer-events: none; max-width: 240px; box-shadow: 0 6px 24px rgba(0,0,0,.5); }

.inc { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; border-left-width: 6px; }
.inc.sev-minor { border-left-color: var(--warn); } .inc.sev-major { border-left-color: var(--bad); } .inc.sev-maintenance { border-left-color: var(--primary); }
.inc.done { border-left-color: var(--ok); }
.inc h3 { margin: 0 0 4px; font-size: 1.05rem; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.badge { font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface); text-transform: uppercase; letter-spacing: .04em; }
.updates { list-style: none; margin: 10px 0 0; padding: 0; }
.updates li { padding: 8px 0 8px 14px; border-left: 2px solid var(--line); }
.updates time { display: block; color: var(--muted); font-size: .8rem; }
.updates p { margin: 0; white-space: pre-line; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; padding: 28px 0 40px; }
.site-footer p { margin: 0 0 8px; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .banner { padding: 20px 18px; }
  .comp { padding: 18px 16px; }
  .bar { gap: 1px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
