:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #111317;
  --line: #272b32;
  --text: #f4f5f7;
  --muted: #a3a9b4;
  --green: #46da8a;
  --amber: #f3bd4d;
  --red: #ff6f6f;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 72% -12%, #17262b 0, transparent 35%), var(--bg); color: var(--text); font: 15px/1.55 Inter, system-ui, sans-serif; }
main { width: min(1020px, calc(100% - 32px)); margin: auto; }
nav, footer, .heading, .services article, .history article, .availability article { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
nav { min-height: 82px; color: var(--muted); border-bottom: 1px solid #ffffff0a; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #fff; color: #090a0c; font-style: normal; }
header { padding: 68px 0 44px; }
header > p, .heading p { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
h1 { font-size: clamp(48px, 9vw, 88px); line-height: .96; letter-spacing: -.055em; margin: 10px 0 34px; }
h2 { margin: 4px 0 0; font-size: clamp(23px, 4vw, 28px); }
.overall { padding: 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, #14171b, #101216); display: grid; gap: 4px; }
.overall b { font-size: 20px; }
.overall span, .services small, .history span { color: var(--muted); }
.overall.operational { border-color: #2a6548; }
.overall.verifying { border-color: #725b26; }
.overall.major_outage { border-color: #713434; }
.method { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.method span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
section { padding: 28px 0; }
.heading { margin-bottom: 18px; }
.heading time { color: var(--muted); font-size: 13px; text-align: right; }
.heading > a { color: var(--text); }
.services, .history, .availability { display: grid; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.services article, .history article, .availability article { padding: 19px 22px; border-bottom: 1px solid var(--line); }
.services article:last-child, .history article:last-child, .availability article:last-child { border: 0; }
.service-main, .history article > div { display: flex; align-items: center; gap: 12px; }
.service-main span, .availability article > div:first-child { display: grid; }
.service-measure { display: grid; text-align: right; }
.dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.operational { background: var(--green); box-shadow: 0 0 15px #46da8a80; }
.dot.checking { background: var(--amber); }
.dot.outage { background: var(--red); }
.state { font-weight: 750; }
.state.operational { color: var(--green); }
.state.checking { color: var(--amber); }
.state.outage { color: var(--red); }
.availability article > div:first-child span, .availability article > strong { color: var(--muted); font-size: 12px; }
.availability-values { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.availability-values span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.availability-values b { margin-right: 5px; color: var(--text); }
footer { margin-top: 44px; padding: 28px 0 50px; border-top: 1px solid var(--line); color: var(--muted); }
footer span { max-width: 720px; }
footer a { color: var(--text); white-space: nowrap; }
footer > div { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 650px) {
  main { width: min(100% - 22px, 1020px); }
  nav > span { display: none; }
  header { padding: 48px 0 34px; }
  .services article { align-items: flex-start; }
  .service-measure { min-width: 95px; }
  .service-measure small { font-size: 11px; }
  .history article, .availability article, .heading, footer { align-items: flex-start; flex-direction: column; }
  .availability-values { justify-content: flex-start; }
  .heading time { text-align: left; }
  h1 { font-size: clamp(45px, 15vw, 64px); }
}

/* Status 2: sober operational presentation with an optional dense developer
   layer. Bars are measurements, not decorative availability claims. */
body { background: var(--bg); font-size: 15px; }
main { width: min(1180px, calc(100% - 40px)); }
nav { min-height: 72px; }
.view-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #0d0f12; }
.view-switch button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.view-switch button.active { background: #f0f1f3; color: #0b0c0e; }
.status-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(32px, 7vw, 90px); align-items: end; padding: 68px 0 34px; }
.status-hero h1 { margin-bottom: 19px; }
.hero-copy { display: block; max-width: 650px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.6; }
.status-hero .overall { align-self: end; border-radius: 10px; background: #101216; }
.status-hero .method { grid-column: 1 / -1; margin-top: 0; padding-top: 19px; border-top: 1px solid var(--line); }
.method span { border-radius: 6px; }
.bar-key { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: -2px 0 13px; color: var(--muted); font-size: 11px; }
.bar-key span { display: inline-flex; align-items: center; gap: 6px; }
.bar-key i { width: 8px; height: 8px; border-radius: 2px; }
.bar-key b { margin-left: auto; color: #777e89; font-weight: 650; }
.healthy { background: var(--green); }
.partial { background: var(--amber); }
.failed { background: var(--red); }
.unmeasured { background: #30343b; }
.services, .history, .availability { border-radius: 10px; background: #0e1013; }
.services article { display: block; padding: 18px 20px; }
.service-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.service-main { min-width: 260px; }
.history-track { display: grid; grid-template-columns: repeat(56, minmax(2px, 1fr)); gap: 3px; margin: 15px 0 2px; }
.history-track button { display: block; width: 100%; height: 24px; padding: 0; border: 0; border-radius: 2px; opacity: .92; cursor: help; }
.history-track button:is(:hover,:focus-visible) { outline: 2px solid #fff; outline-offset: 1px; opacity: 1; }
.history-tooltip { position: fixed; z-index: 1000; width: min(390px, calc(100vw - 24px)); padding: 12px 14px; border: 1px solid #4a5059; border-radius: 7px; background: #f2f3f5; color: #111318; box-shadow: 0 12px 40px #0009; font-size: 12px; line-height: 1.55; pointer-events: none; transform: translate(-50%, -100%); }
.history-tooltip[hidden] { display: none; }
.service-exact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 16px -20px -18px; border-top: 1px solid var(--line); background: var(--line); }
.service-exact span { display: grid; gap: 3px; padding: 13px 20px; background: #0b0d0f; color: #7f8691; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.service-exact b { color: #e4e6e9; font-size: 12px; text-transform: none; letter-spacing: 0; }
.developer-only { display: none; }
.developer-mode .developer-only { display: grid; }
.monitor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.monitor-grid article { display: grid; gap: 8px; padding: 20px; background: #0e1013; }
.monitor-grid span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.monitor-grid strong { font-size: 18px; }
@media (max-width: 800px) {
  main { width: min(100% - 28px, 1180px); }
  .status-hero { grid-template-columns: 1fr; gap: 25px; padding-top: 48px; }
  .status-hero .method { grid-column: auto; }
  .bar-key b { width: 100%; margin-left: 0; }
  .history-track { gap: 2px; }
  .history-track button { height: 20px; }
  .service-exact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  main { width: min(100% - 20px, 1180px); }
  nav { align-items: center; gap: 10px; }
  .brand { font-size: 0; }
  .brand i { font-size: 15px; }
  .view-switch { margin-left: auto; }
  .view-switch button { padding: 0 9px; font-size: 11px; }
  .status-hero { padding-top: 37px; }
  .status-hero .overall { padding: 19px; }
  .services article { padding: 16px; }
  .service-row { align-items: flex-start; }
  .service-main { min-width: 0; }
  .service-main small { max-width: 210px; }
  .history-track { grid-template-columns: repeat(28, minmax(2px, 1fr)); row-gap: 4px; }
  .history-track button { height: 16px; }
  .service-exact { grid-template-columns: 1fr; margin: 15px -16px -16px; }
  .monitor-grid { grid-template-columns: 1fr; }
}
