:root {
  --body-background-color: #ffffff;
  --body-text-color: #171717;
  --card-background-color: #ffffff;
  --nav-background-color: #ffffff;
  --nav-border-bottom-color: transparent;
  --nav-current-border-bottom-color: transparent;
  --card-border-color: #e7e7e7;
  --down-border-left-color: #c83c3c;
  --down-background-color: #fff3f3;
  --degraded-border-left-color: #b7791f;
  --up-border-left-color: #12845b;
  --tag-color: #ffffff;
  --tag-up-background-color: #12845b;
  --tag-down-background-color: #c83c3c;
  --tag-degraded-background-color: #b7791f;
  --change-background-color: transparent;
  --graph-opacity: 0;
  --graph-filter: none;
  --status-up: var(--up-border-left-color);
  --status-up-soft: #e5f5ee;
  --status-down: var(--down-border-left-color);
  --status-down-soft: #fbe6e6;
  --status-degraded: var(--degraded-border-left-color);
  --status-degraded-soft: #f8edd5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: 0;
  background: #ffffff;
  color: #171717;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

nav {
  border: 0 !important;
  background: #ffffff !important;
}

nav .container {
  display: flex;
  min-height: 88px;
  align-items: center;
}

nav ul {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

nav li:last-child {
  margin-left: auto;
}

nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 15px !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 8px;
  color: #2f2f2f !important;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

nav li:first-child a {
  min-height: auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  color: #111111 !important;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

nav li:first-child a:hover {
  background: transparent;
}

nav a:hover {
  border-color: #bdbdbd !important;
  background: #f8f8f8;
}

main {
  min-height: calc(100vh - 180px);
  padding-top: 30px !important;
  padding-bottom: 84px !important;
}

main > header {
  margin-bottom: 28px !important;
}

main > header h1 {
  margin: 0 0 10px;
  color: #111111;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

main > header h1 strong {
  font-weight: inherit;
}

main > header .lead {
  max-width: 620px;
  margin: 0;
  color: #666666;
  font-size: 15px !important;
  line-height: 1.6;
}

main > article.up,
main > article.down,
main > article.degraded {
  margin: 0 0 54px;
  padding: 22px 24px;
  border: 1px solid !important;
  border-radius: 12px;
  box-shadow: none;
  font-size: 17px;
  font-weight: 560;
}

main > article.up {
  border-color: #ccebdd !important;
  background: #effaf5 !important;
  color: #116b4a !important;
}

main > article.down {
  border-color: #f0caca !important;
  background: #fff4f4 !important;
  color: #a42e2e !important;
}

main > article.degraded {
  border-color: #ead8b3 !important;
  background: #fff9ed !important;
  color: #895d12 !important;
}

main > section:empty {
  display: none;
}

main > div.f {
  margin: 0 0 17px;
  align-items: end;
}

main > div.f h2 {
  margin: 0;
  color: #171717;
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -0.025em;
}

main > div.f form {
  display: flex;
  padding: 3px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #f7f7f7;
}

#data_day,
#data_day + label,
#data_week,
#data_week + label {
  display: none;
}

main > div.f form label {
  display: block;
  margin: 0 !important;
  padding: 5px 9px;
  border-radius: 6px;
  color: #777777;
  font-size: 12px;
  cursor: pointer;
}

main > div.f form input:checked + label {
  background: #ffffff;
  color: #1f1f1f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.live-status {
  display: grid;
  gap: 12px;
  border: 0;
  background: transparent;
}

.service-group {
  overflow: hidden;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.service-group[open] {
  border-color: #d7d7d7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.045);
}

.service-group--secondary {
  margin-top: 14px;
  border-style: dashed;
}

.service-group__summary {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) auto 12px;
  align-items: center;
  gap: 10px 20px;
  min-height: 84px;
  padding: 17px 21px;
  cursor: pointer;
  list-style: none;
  transition: background-color 120ms ease;
}

.service-group__summary::-webkit-details-marker {
  display: none;
}

.service-group__summary:hover {
  background: #fafafa;
}

.service-group__summary::after {
  width: 8px;
  height: 8px;
  grid-column: 3;
  grid-row: 1;
  margin-left: 2px;
  border-right: 1.5px solid #777777;
  border-bottom: 1.5px solid #777777;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 120ms ease;
}

.service-group[open] > .service-group__summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.service-group__identity {
  display: flex;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  align-items: baseline;
  gap: 9px;
}

.service-group__title {
  overflow: hidden;
  color: #202020;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-group__count {
  color: #8a8a8a;
  font-size: 11px;
  white-space: nowrap;
}

.service-group__status {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--status-up);
  font-size: 12px;
  font-weight: 580;
}

.service-group__status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-up);
  box-shadow: 0 0 0 3px var(--status-up-soft);
  content: "";
}

.service-group.down .service-group__status {
  color: var(--status-down);
}

.service-group.down .service-group__status::before {
  background: var(--status-down);
  box-shadow: 0 0 0 3px var(--status-down-soft);
}

.service-group.degraded .service-group__status {
  color: var(--status-degraded);
}

.service-group.degraded .service-group__status::before {
  background: var(--status-degraded);
  box-shadow: 0 0 0 3px var(--status-degraded-soft);
}

.service-group__summary > .uptime-strip {
  grid-column: 1 / -1;
  grid-row: 2;
}

.service-group__components {
  display: block;
  border-top: 1px solid #ececec;
  background: #fcfcfc;
}

.live-status article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 20px;
  row-gap: 1px;
  min-height: 70px;
  margin: 0 !important;
  padding: 18px 21px;
  border: 0 !important;
  border-bottom: 1px solid #ececec !important;
  border-radius: 0;
  background: #ffffff !important;
  background-image: none !important;
  color: #333333 !important;
  box-shadow: none;
  transition: background-color 120ms ease;
}

.live-status article:hover {
  background: #fafafa !important;
}

.service-group__components article:last-child {
  border-bottom: 0 !important;
}

.live-status h4 {
  display: flex;
  min-width: 0;
  grid-row: 1 / span 2;
  align-items: center;
  margin: 0;
  color: #252525;
  font-size: 15px;
  font-weight: 540;
  letter-spacing: -0.01em;
}

.live-status h4::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--status-up);
  box-shadow: 0 0 0 3px var(--status-up-soft);
  content: "";
}

.live-status article.down h4::before {
  background: var(--status-down);
  box-shadow: 0 0 0 3px var(--status-down-soft);
}

.live-status article.degraded h4::before {
  background: var(--status-degraded);
  box-shadow: 0 0 0 3px var(--status-degraded-soft);
}

.live-status h4::after {
  flex: 0 0 auto;
  margin-left: 10px;
  color: var(--status-up);
  content: "Up";
  font-size: 11px;
  font-weight: 560;
}

.live-status article.down h4::after {
  color: var(--status-down);
  content: "Outage";
}

.live-status article.degraded h4::after {
  color: var(--status-degraded);
  content: "Degraded";
}

.live-status h4 .icon {
  display: none !important;
}

.live-status h4 a {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-status article > div {
  color: #6c6c6c;
  font-size: 11px;
  white-space: nowrap;
}

.live-status article > div:first-of-type .data {
  padding: 0;
  background: transparent !important;
  color: #444444;
  font-size: 11px;
  font-weight: 560;
}

.live-status article > div:nth-of-type(2) {
  display: block;
  color: #8a8a8a;
  font-size: 11px;
}

.live-status article > div:nth-of-type(2) .data {
  padding: 0;
  background: transparent !important;
  color: #8a8a8a;
  font-size: 11px;
}

.uptime-strip {
  display: block;
  width: 100%;
  line-height: 1;
  white-space: normal;
}

.live-status article > .uptime-strip {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.uptime-strip__meta,
.uptime-strip__axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uptime-strip__meta {
  margin-bottom: 6px;
}

.uptime-strip__label,
.uptime-strip__axis {
  color: #999999;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.uptime-strip__score {
  color: #777777;
  font-size: 10px;
  font-weight: 560;
}

.uptime-strip__axis {
  margin-top: 5px;
}

.uptime-strip svg {
  display: block;
  width: 100%;
  height: 12px;
  overflow: visible;
}

.uptime-strip__pill {
  transition: opacity 120ms ease;
}

.uptime-strip__pill:hover {
  opacity: 0.72;
}

.uptime-strip__pill--operational {
  fill: var(--status-up);
}

.uptime-strip__pill--partial-outage {
  fill: var(--status-degraded);
}

.uptime-strip__pill--full-outage {
  fill: var(--status-down);
}

.uptime-strip__pill--unknown {
  fill: #dddddd;
}

main > section:not(.live-status) article,
main > section:not(.live-status) h3 {
  border-radius: 10px;
}

main > section:not(.live-status) h1 {
  margin: 0 0 24px;
  color: #171717;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 540;
  letter-spacing: -0.035em;
}

main > section:not(.live-status) h1 a {
  text-decoration: none;
}

main > section:not(.live-status) dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 28px;
  margin: 0 0 48px;
  padding: 22px 24px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
}

main > section:not(.live-status) dt {
  color: #777777;
  font-size: 12px;
  font-weight: 500;
}

main > section:not(.live-status) dd {
  margin: 0;
  color: #222222;
  font-size: 20px;
  font-weight: 560;
}

main > section:not(.live-status) h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

footer {
  margin-top: 0 !important;
  padding: 26px 24px !important;
  border-top: 1px solid #ececec;
  background: #fafafa;
  color: #868686;
  font-size: 12px;
  text-align: center;
}

footer a {
  color: #555555;
}

@media (max-width: 560px) {
  .container {
    padding-right: 18px;
    padding-left: 18px;
  }

  nav .container {
    min-height: 72px;
  }

  main {
    padding-top: 18px !important;
    padding-bottom: 60px !important;
  }

  main > article.up,
  main > article.down,
  main > article.degraded {
    margin-bottom: 42px;
    padding: 18px;
    font-size: 15px;
  }

  main > div.f {
    align-items: flex-start;
    gap: 14px;
  }

  .service-group__summary {
    grid-template-columns: minmax(0, 1fr) 12px;
    gap: 9px 12px;
    min-height: 76px;
    padding: 15px 16px;
  }

  .service-group__identity {
    display: grid;
    gap: 2px;
  }

  .service-group__status {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .service-group__summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .service-group__summary > .uptime-strip {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .live-status article {
    grid-template-columns: minmax(0, 1fr);
    min-height: 66px;
    padding: 16px;
  }

  .live-status h4 {
    grid-row: auto;
    font-size: 14px;
  }

  .live-status article > div {
    margin-left: 20px;
  }

  .uptime-strip__score {
    font-size: 9px;
  }

}
