:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: rgb(255, 255, 255);
  color: rgb(24, 25, 29);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: rgb(255, 255, 255);
  overflow-x: hidden;
}

main {
  position: relative;
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
}

header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(235, 236, 239);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.brand-muted {
  color: rgb(124, 127, 136);
  font-size: 12px;
  letter-spacing: .16em;
}

.refresh {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgb(119, 122, 131);
  font-size: 13px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(42, 209, 140);
  box-shadow: 0 0 0 5px rgba(42,209,140,.1);
}

.hero {
  margin: 30px 0 28px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgb(231, 232, 235);
  border-radius: 14px;
  background: rgb(248, 249, 250);
}

.overall-icon {
  width: 38px;
  height: 38px;
  flex: none;
  margin: 0;
  border-radius: 50%;
  background: rgb(42, 209, 140);
  box-shadow: none;
}

.overall-icon::after {
  content: "";
  display: block;
  width: 12px;
  height: 7px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: translate(13px, 13px) rotate(-45deg);
}

.overall-icon.outage {
  background: rgb(244, 86, 86);
  box-shadow: none;
}

.overall-icon.outage::after {
  width: 2px;
  height: 16px;
  border: 0;
  background: white;
  transform: translate(18px, 11px);
}

.overall-icon.degraded {
  background: rgb(241, 176, 54);
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 5px;
  color: rgb(36, 129, 204);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.hero-text {
  margin: 6px 0 0;
  max-width: 550px;
  color: rgb(112, 115, 124);
  font-size: 13px;
  line-height: 1.4;
}

.groups {
  display: grid;
  gap: 17px;
}

.group-title {
  margin: 0 0 9px 3px;
  color: var(--tone-text);
  font-size: 13px;
  font-weight: 650;
}

.group-title span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--tone-soft);
}

.service-group {
  --tone: rgb(224, 226, 229);
  --tone-soft: rgb(250, 250, 251);
  --tone-text: rgb(91, 94, 101);
  --card-bg: rgb(255, 255, 255);
}

.service-group.tone-1 {
  --tone: rgb(220, 223, 226);
  --tone-soft: rgb(247, 248, 249);
  --tone-text: rgb(82, 86, 93);
  --card-bg: rgb(252, 252, 253);
}

.service-group.tone-2 {
  --tone: rgb(216, 220, 224);
  --tone-soft: rgb(244, 246, 248);
  --tone-text: rgb(75, 81, 88);
  --card-bg: rgb(249, 250, 251);
}

.service-group.tone-3 {
  --tone: rgb(211, 216, 220);
  --tone-soft: rgb(241, 244, 246);
  --tone-text: rgb(70, 76, 84);
  --card-bg: rgb(247, 248, 249);
}

.service-group.tone-4 {
  --tone: rgb(218, 221, 225);
  --tone-soft: rgb(248, 249, 250);
  --tone-text: rgb(79, 84, 91);
  --card-bg: rgb(251, 251, 252);
}

.group-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(231, 232, 235);
  border-radius: 14px;
  background: var(--card-bg);
}

.group-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--tone);
}

.component {
  padding: 12px 16px 10px 18px;
}

.component + .component {
  border-top: 1px solid rgb(237, 238, 240);
}

.component-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.component-name {
  flex: 1;
  font-size: 13px;
  font-weight: 650;
}

.latency {
  color: rgb(133, 136, 145);
  font-size: 12px;
}

.status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgb(42, 209, 140);
  font-size: 12px;
  font-weight: 700;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status.outage {
  color: rgb(244, 86, 86);
}

.status.degraded,
.status.unknown {
  color: rgb(241, 176, 54);
}

.status.standby {
  color: rgb(142, 146, 154);
}

.history {
  display: grid;
  grid-template-columns: repeat(90, 1fr);
  gap: 2px;
  margin-top: 9px;
  height: 11px;
}

.day {
  min-width: 2px;
  border-radius: 2px;
  background: rgb(42, 209, 140);
}

.day.outage {
  background: rgb(244, 86, 86);
}

.day.degraded {
  background: rgb(241, 176, 54);
}

.day.unknown {
  background: rgb(226, 228, 232);
}

.day.standby {
  background: rgb(196, 200, 206);
}
.uptime-line {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: rgb(145, 148, 156);
  font-size: 10px;
}

.history-action {
  padding: 28px 0 46px;
}

.history-button {
  width: 100%;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgb(218, 231, 240);
  border-radius: 14px;
  background: transparent;
  color: rgb(36, 129, 204);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  background: rgb(240, 246, 250);
  transition: border-color .2s, background .2s;
}

.history-button:hover {
  border-color: rgb(190, 216, 233);
  background: rgb(232, 242, 248);
}

.history-button-meta {
  color: rgb(105, 143, 171);
  font-size: 11px;
  font-weight: 500;
}

.history-view {
  min-height: 100vh;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.back-button {
  width: 34px;
  height: 34px;
  flex: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgb(48, 49, 54);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.history-period {
  margin-left: auto;
  color: rgb(127, 130, 139);
  font-size: 12px;
}

h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.035em;
}

.period {
  color: rgb(100, 104, 117);
  font-size: 12px;
}

.incidents {
  margin: 28px 0 50px;
  border: 1px solid rgb(231, 232, 235);
  border-radius: 14px;
  overflow: hidden;
  background: rgb(250, 250, 251);
}

.incident {
  padding: 16px 19px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.incident + .incident {
  border-top: 1px solid rgb(237, 238, 240);
}

.incident-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: rgb(244, 86, 86);
  box-shadow: 0 0 0 5px rgba(244,86,86,.08);
}

.incident.resolved .incident-dot,
.empty .incident-dot {
  background: rgb(42, 209, 140);
  box-shadow: 0 0 0 5px rgba(42,209,140,.08);
}

.incident-content {
  flex: 1;
}

.incident-title {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 650;
}

.incident-meta {
  color: rgb(128, 131, 140);
  font-size: 12px;
}

.incident-state {
  color: rgb(42, 209, 140);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 620px) {
  main {
    width: min(100% - 24px, 960px);
  }

  header {
    height: 64px;
  }

  .hero {
    margin: 22px 0 23px;
    padding: 15px;
    gap: 13px;
  }

  .component {
    padding: 11px 13px 9px;
  }

  .latency {
    display: none;
  }

  .history {
    gap: 1px;
    height: 10px;
  }

  .incident-state {
    display: none;
  }
}
