:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --card: #151519;
  --raised: #1d1d23;
  --bd: rgba(255,255,255,.09);
  --tx: #f1f1f3;
  --mut: #9b9ba3;
  --faint: #6c6c76;
  --ink: #08080a;
  --accent: oklch(0.93 0.004 250);
  --green: #80f0b0;
  --yellow: #f0cf70;
  --red: #ff7777;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--tx);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 15px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.45) 1px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: .035;
  mask-image: linear-gradient(110deg, transparent 6%, #000 42%, #000 68%, transparent 96%);
}

a {
  color: inherit;
}

.status-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 40px;
  border-bottom: 1px solid var(--bd);
  background: rgba(9,9,11,.88);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  min-width: 92px;
}

.brand-mark {
  font-family: "Michroma", sans-serif;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .5px;
}

.brand-name {
  color: var(--mut);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--mut);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  transition: color .16s, border-color .16s, background .16s;
}

.nav a:hover {
  color: var(--tx);
  border-color: var(--bd);
  background: var(--raised);
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 40px 80px;
  flex: 1;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: end;
}

.intro h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 700;
}

.intro p {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--mut);
  line-height: 1.65;
  font-size: 15.5px;
}

.overall-card,
.summary-grid article,
.service-card,
.status-note {
  border: 1px solid var(--bd);
  background: color-mix(in oklch, var(--card) 88%, transparent);
  border-radius: 10px;
}

.overall-card {
  padding: 20px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.overall-card > span {
  color: var(--mut);
  font-size: 13px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-line strong {
  font-size: 18px;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--faint);
  box-shadow: 0 0 0 4px rgba(255,255,255,.04);
}

.status-dot.online { background: var(--green); }
.status-dot.degraded { background: var(--yellow); }
.status-dot.offline { background: var(--red); }
.status-dot.checking { background: var(--faint); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.summary-grid article {
  padding: 16px 18px;
}

.summary-grid span {
  color: var(--mut);
  font-size: 13px;
  font-weight: 600;
}

.summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}

.services {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
}

.service-main {
  min-width: 0;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.service-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.service-main p {
  margin: 7px 0 0;
  color: var(--mut);
  font-size: 14px;
  line-height: 1.5;
}

.service-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
  text-align: right;
}

.status-pill {
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}

.status-pill.online {
  color: var(--green);
  background: rgba(128,240,176,.07);
  border-color: rgba(128,240,176,.24);
}

.status-pill.degraded {
  color: var(--yellow);
  background: rgba(240,207,112,.07);
  border-color: rgba(240,207,112,.24);
}

.status-pill.offline {
  color: var(--red);
  background: rgba(255,119,119,.07);
  border-color: rgba(255,119,119,.24);
}

.status-pill.checking {
  color: var(--mut);
}

.service-detail {
  color: var(--faint);
  font-size: 12.5px;
}

.history {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(24, minmax(5px, 1fr));
  gap: 3px;
  min-height: 22px;
}

.history span {
  border-radius: 2px;
  background: rgba(255,255,255,.08);
}

.history .online { background: color-mix(in oklch, var(--green) 76%, transparent); }
.history .degraded { background: color-mix(in oklch, var(--yellow) 76%, transparent); }
.history .offline { background: color-mix(in oklch, var(--red) 76%, transparent); }
.history .checking { background: rgba(255,255,255,.08); }

.empty-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mut);
  border: 1px solid var(--bd);
  background: var(--card);
  border-radius: 10px;
  padding: 18px;
}

.status-note {
  margin-top: 30px;
  padding: 22px;
}

.status-note h2 {
  margin: 0;
  font-size: 20px;
}

.status-note p {
  margin: 9px 0 0;
  color: var(--mut);
  line-height: 1.6;
}

.footer {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 40px 34px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  border-top: 1px solid var(--bd);
  font-size: 13px;
}

@media (max-width: 820px) {
  .topbar {
    padding: 13px 18px;
    flex-wrap: wrap;
  }

  .nav {
    order: 2;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .shell {
    padding: 30px 18px 58px;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .intro h1 {
    font-size: 34px;
  }

  .overall-card {
    min-height: 96px;
  }

  .summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-meta {
    align-items: flex-start;
    text-align: left;
  }

  .history {
    grid-template-columns: repeat(12, minmax(8px, 1fr));
  }

  .footer {
    padding: 20px 18px 30px;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .topbar {
    padding: 11px 14px;
  }

  .shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .intro h1 {
    font-size: 30px;
  }

  .service-card,
  .overall-card,
  .status-note {
    padding: 16px;
  }
}
