:root {
  color-scheme: dark;
  --bg: #101819;
  --panel: #172223;
  --line: #2c3c3c;
  --text: #edf2eb;
  --muted: #8fa09b;
  --quiet: #5e716c;
  --mint: #9dd9b2;
  --amber: #e9bd75;
  --red: #f08476;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); font-family: var(--sans); background: radial-gradient(ellipse at 50% -20%, #203232 0, var(--bg) 58%); }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.grid-wash { position: fixed; inset: 0; pointer-events: none; opacity: .12; background-image: linear-gradient(to right, transparent 39px, #35504a 40px), linear-gradient(to bottom, transparent 39px, #35504a 40px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, black, transparent 65%); }
.topbar, main, footer { position: relative; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid #263536; color: var(--muted); font: 11px var(--mono); letter-spacing: .12em; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #355946; color: var(--mint); font: 600 13px var(--mono); letter-spacing: 0; }
.topbar-right, .head-actions { display: flex; align-items: center; gap: 12px; }
.live-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px #9dd9b266; }
.topbar-separator { width: 1px; height: 14px; background: var(--line); }
main { width: min(920px, calc(100% - 40px)); margin: 0 auto; min-height: calc(100vh - 124px); padding: 66px 0 72px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.eyebrow, .section-meta { margin: 0; color: var(--mint); font: 10px var(--mono); letter-spacing: .12em; }
h1 { margin: 9px 0 8px; font-size: clamp(30px, 4vw, 42px); font-weight: 560; letter-spacing: -.045em; }
.muted { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.updated { color: var(--muted); font: 11px var(--mono); white-space: nowrap; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); color: var(--mint); background: transparent; border-radius: 3px; font-size: 20px; transition: transform .2s ease, background .2s ease; }
.icon-button:hover:not(:disabled) { background: #1c2a2a; transform: rotate(45deg); }
.icon-button:disabled { cursor: wait; opacity: .55; }
.overall { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 20px; padding: 23px 25px; border: 1px solid var(--line); background: linear-gradient(105deg, #192624, #152020 65%); }
.overall-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #20382e; border: 1px solid #315643; }
#overall-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 18px #9dd9b266; }
.overall[data-state="degraded"] .overall-symbol, .overall[data-state="checking"] .overall-symbol { background: #3b2e22; border-color: #5d4930; }
.overall[data-state="degraded"] #overall-dot, .overall[data-state="checking"] #overall-dot { background: var(--amber); box-shadow: 0 0 18px #e9bd7566; }
.overall[data-state="outage"] .overall-symbol { background: #3b2524; border-color: #633b38; }
.overall[data-state="outage"] #overall-dot { background: var(--red); box-shadow: 0 0 18px #f0847666; }
.overall-copy h2 { margin: 5px 0 3px; font-size: 20px; font-weight: 550; letter-spacing: -.02em; }
.overall-count { min-width: 84px; text-align: right; }
.overall-count span { display: block; font: 25px var(--mono); letter-spacing: -.06em; }
.overall-count small { color: var(--muted); font-size: 11px; }
.service-section { margin-top: 44px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 0; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 550; }
.section-meta { color: var(--quiet); letter-spacing: .04em; }
.service-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 78px 74px; align-items: center; gap: 17px; min-height: 79px; border-bottom: 1px solid #253333; }
.service-row:last-child { border-bottom: 0; }
.service-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px #9dd9b24d; }
.service-row[data-state="offline"] .service-pulse { background: var(--red); box-shadow: 0 0 10px #f084764d; }
.service-row[data-state="checking"] .service-pulse { background: var(--amber); }
.service-main h3 { margin: 0 0 5px; font-size: 13px; font-weight: 550; }
.service-main p { margin: 0; color: var(--muted); font: 10px var(--mono); overflow-wrap: anywhere; }
.state-tag { color: var(--mint); font: 10px var(--mono); white-space: nowrap; }
.state-tag[data-state="offline"] { color: var(--red); }
.state-tag[data-state="checking"] { color: var(--amber); }
.latency, .time-cell { color: var(--quiet); font: 10px var(--mono); text-align: right; white-space: nowrap; }
.scope-note { max-width: 650px; margin: 29px 0 0; color: var(--quiet); font-size: 11px; line-height: 1.7; }
footer { min-height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(20px, 5vw, 72px); border-top: 1px solid #263536; color: var(--quiet); font: 9px var(--mono); letter-spacing: .08em; }

@media (max-width: 650px) {
  main { width: min(100% - 28px, 920px); padding-top: 41px; }
  .topbar { padding-inline: 14px; }
  .topbar-right { gap: 7px; font-size: 9px; }
  .page-head { align-items: start; flex-direction: column; }
  .head-actions { width: 100%; justify-content: space-between; }
  .overall { grid-template-columns: 42px 1fr; gap: 13px; padding: 18px 15px; }
  .overall-symbol { width: 39px; height: 39px; }
  .overall-count { grid-column: 2; display: flex; align-items: baseline; gap: 8px; text-align: left; }
  .overall-count span { font-size: 19px; }
  .service-row { grid-template-columns: 9px minmax(0, 1fr) auto; gap: 11px; padding: 14px 0; }
  .service-row .latency { grid-column: 2; text-align: left; }
  .service-row .time-cell { grid-column: 3; grid-row: 2; }
  footer { align-items: start; flex-direction: column; justify-content: center; gap: 5px; padding-block: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
