:root {
  color-scheme: dark;
  --black: #000;
  --surface: #0c0e12;
  --raised: #14171e;
  --line: #252a34;
  --text: #f4f5f8;
  --muted: #a2a9b9;
  --accent: #a9b9ff;
  --good: #6be5ad;
  --issue: #ffbc76;
  --bad: #ff919a;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--black); color: var(--text); font: 500 14px/1.6 Manrope, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.frame { width: min(1140px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: 10px; transform: translateY(-150%); background: var(--raised); padding: 10px; z-index: 3; }
.skip-link:focus { transform: none; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand img { display: block; object-fit: contain; }
.brand b { color: var(--muted); font-weight: 650; }
nav { display: flex; align-items: center; gap: 7px; }
.top-link { color: var(--muted); padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.top-link.current { color: var(--accent); background: #121622; }
.top-link span, .jump-link span { margin-left: 4px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 62px 0 33px; }
.eyebrow { color: var(--accent); font: 650 11px/1.5 var(--mono); letter-spacing: .12em; }
.signal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 5px; }
h1 { font-size: clamp(42px, 7vw, 75px); font-weight: 800; letter-spacing: -.075em; line-height: 1.08; margin: 10px 0 14px; }
h1 span { color: var(--accent); }
.intro > div > p:last-child { font-size: 16px; color: var(--muted); }
.jump-link { color: var(--muted); padding: 8px 0; white-space: nowrap; }
.overview { --tone: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 130px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.overview[data-tone="good"] { --tone: var(--good); }
.overview[data-tone="warning"] { --tone: var(--issue); }
.overview[data-tone="bad"] { --tone: var(--bad); }
.overview-main { display: flex; align-items: center; gap: 20px; min-width: 0; }
.beacon { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; color: var(--tone); font-size: 27px; font-weight: 750; background: color-mix(in srgb, var(--tone) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tone) 28%, var(--surface)); }
.overview .eyebrow { color: var(--tone); }
.overview h2 { font-size: clamp(19px, 3vw, 25px); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; margin: 4px 0; }
.overview-main p:last-child { color: var(--muted); }
.overview-metrics { display: flex; align-items: start; gap: 20px; flex-shrink: 0; }
.overview-metrics > div { min-width: 100px; padding-left: 18px; border-left: 1px solid var(--line); }
.overview-metrics span { display: block; color: var(--muted); font-size: 11px; }
.overview-metrics strong { display: block; font: 650 19px/1.4 var(--mono); margin-block: 3px; }
.section { margin-top: 44px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: -.045em; line-height: 1.2; margin-top: 5px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { width: 7px; height: 7px; border-radius: 2px; background: #424958; }
.legend .good { background: var(--good); }
.legend .issue { background: var(--issue); }
.services-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: start; }
.service-column { display: grid; gap: 14px; min-width: 0; }
.group, .history { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.group-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 17px; border-bottom: 1px solid var(--line); background: #101219; }
.group-header h3 { font-size: 13px; font-weight: 800; }
.group-count { font: 650 10px/1.4 var(--mono); color: var(--muted); }
.service { padding: 15px 17px; }
.service + .service { border-top: 1px solid var(--line); }
.service-head, .service-history, .incident { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.service-name { display: block; color: var(--text); font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.service-description, .service-metrics, .service-history { color: var(--muted); font-size: 11px; }
.service-metrics { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.service-metrics strong { font-weight: 750; color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); border: 1px solid currentColor; border-radius: 20px; padding: 2px 8px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge::before { content: ""; background: currentColor; width: 5px; height: 5px; border-radius: 50%; }
.badge.up, .badge.resolved { color: var(--good); }
.badge.down { color: var(--bad); }
.badge.checking, .badge.maintenance, .badge.open { color: var(--issue); }
.history-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin: 10px 0 4px; }
.bar { border-radius: 2px; height: 6px; background: #343b4a; }
.bar.good { background: var(--good); }
.bar.issue { background: var(--issue); }
.service-history strong { color: var(--text); font: 650 11px/1.5 var(--mono); }
.method { color: var(--muted); font-size: 12px; margin-top: 12px; }
.method summary { cursor: pointer; width: fit-content; }
.method p { margin: 8px 0; max-width: 75ch; }
.history-section { margin-bottom: 46px; }
.incident { min-height: 64px; padding: 13px 17px; }
.incident + .incident { border-top: 1px solid var(--line); }
.incident h3 { font-size: 13px; }
.incident p, .empty { color: var(--muted); font-size: 12px; }
.empty { padding: 17px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { min-height: 63px; }

@media (max-width: 850px) {
  .frame { width: calc(100% - 40px); }
  .overview { align-items: stretch; flex-direction: column; gap: 16px; }
  .overview-metrics { border-top: 1px solid var(--line); padding-top: 14px; }
  .overview-metrics > div:first-child { border-left: 0; padding-left: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 590px) {
  .frame { width: calc(100% - 28px); }
  .topbar-inner { min-height: 58px; }
  .brand { font-size: 12px; gap: 5px; }
  .brand img { width: 36px; height: 23px; }
  .brand b { display: none; }
  .top-link { font-size: 11px; padding: 7px; }
  .intro { padding: 39px 0 25px; }
  .intro > div > p:last-child { font-size: 14px; }
  .jump-link { display: none; }
  .overview { padding: 15px; border-radius: 13px; }
  .overview-main { gap: 12px; }
  .overview-main p:last-child { font-size: 12px; }
  .beacon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }
  .section { margin-top: 32px; }
  .section-heading { align-items: start; flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  .service, .incident, .group-header { padding-inline: 12px; }
}
