:root {
  color-scheme: light;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: #f7f8fa;
  color: #171b26;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  border-bottom: 1px solid #e4e7ec;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo-wrap {
  display: grid;
  place-items: center;
  width: 210px;
  height: 58px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #667085;
  font-size: 14px;
}

.nav button,
.range-tabs button {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav button {
  padding: 7px 10px;
  border-color: #d0d5dd;
  border-radius: 6px;
  background: #fff;
}

.nav button:disabled {
  cursor: default;
  opacity: 0.55;
}

.hero {
  padding: 54px 0 42px;
  border-bottom: 1px solid #e4e7ec;
}

.hero p {
  margin: 0 0 12px;
  color: #667085;
  font-size: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 760;
}

.hero h1.up {
  color: #15803d;
}

.hero h1.degraded {
  color: #b45309;
}

.hero h1.down {
  color: #b42318;
}

.hero h1.maintenance,
.hero h1.unknown {
  color: #344054;
}

.performance {
  padding-top: 30px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.range-tabs {
  display: inline-flex;
  gap: 4px;
  color: #667085;
  font-size: 14px;
}

.range-tabs button {
  min-width: 42px;
  padding: 6px 8px;
  border-radius: 6px;
}

.range-tabs button.active {
  background: #fff;
  border-color: #d0d5dd;
  color: #101828;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.services {
  display: grid;
  gap: 0;
  border-top: 1px solid #e4e7ec;
}

.service {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 92px minmax(220px, 340px);
  gap: 22px;
  align-items: center;
  min-height: 92px;
  padding: 18px 0;
  border-bottom: 1px solid #e4e7ec;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 14px;
  font-weight: 650;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #98a2b3;
}

.service.up .dot,
.bar.up {
  background: #12b76a;
}

.service.degraded .dot,
.bar.degraded {
  background: #f79009;
}

.service.down .dot,
.bar.down {
  background: #f04438;
}

.service.maintenance .dot,
.bar.maintenance {
  background: #2e90fa;
}

.name h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.name a,
.detail {
  color: #667085;
  font-size: 13px;
}

.name a {
  display: inline-block;
  margin-top: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.uptime {
  text-align: right;
}

.uptime strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.history {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.bars {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  height: 28px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.bars.range-7d {
  grid-template-columns: repeat(7, 1fr);
}

.bars.range-30d {
  grid-template-columns: repeat(30, minmax(8px, 1fr));
  gap: 2px;
}

.bars.range-90d {
  grid-template-columns: repeat(90, 8px);
  gap: 2px;
}

.bar {
  min-width: 8px;
  border-radius: 2px;
  opacity: 0.9;
  cursor: help;
  background: #d0d5dd;
}

.bar.unknown {
  background: #d0d5dd;
}

.history .detail {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 920px);
    padding-top: 16px;
  }

  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 38px 0 30px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 18px 0;
  }

  .uptime {
    text-align: left;
  }
}
