:root {
  color: #1d1d1f;
  background: #f4f6f5;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    "Noto Sans SC",
    sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #1d1d1f;
  background: #f4f6f5;
}

.topbar {
  border-bottom: 1px solid #d9dedb;
  background: #ffffff;
}

.topbar-inner,
main,
footer {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar img {
  width: 200px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.environment {
  padding: 4px 8px;
  border: 1px solid #c8d0cb;
  border-radius: 4px;
  color: #44514a;
  background: #f8faf9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

main {
  flex: 1;
  padding-block: 56px 40px;
}

.summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #cfd5d1;
}

.eyebrow {
  margin: 0 0 6px;
  color: #59615c;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.overall {
  min-width: 132px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid #c8d0cb;
  border-radius: 4px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #92720b;
}

.overall.online .status-dot {
  background: #1c7a4b;
}

.overall.offline .status-dot {
  background: #b33b32;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #cfd5d1;
}

.status-row {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid #dfe3e1;
}

.status-row:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid #dfe3e1;
}

.status-row:nth-child(even) {
  padding-left: 28px;
}

.status-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.label {
  color: #66706a;
  font-size: 13px;
}

.status-row strong,
.status-row code {
  overflow-wrap: anywhere;
  font-size: 16px;
  letter-spacing: 0;
}

.status-row code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.detail {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.detail p {
  margin: 0;
  color: #4c5751;
  line-height: 1.6;
}

.retry {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid #aeb8b2;
  border-radius: 4px;
  color: #23362c;
  background: #ffffff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.retry:hover,
.retry:focus-visible {
  border-color: #34644c;
  outline: 2px solid #b7d3c5;
  outline-offset: 2px;
}

footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #d9dedb;
  color: #66706a;
  font-size: 12px;
}

@media (max-width: 560px) {
  .topbar-inner,
  main,
  footer {
    width: min(100% - 24px, 880px);
  }

  .topbar-inner {
    min-height: 64px;
  }

  .topbar img {
    width: 160px;
    height: 36px;
  }

  main {
    padding-top: 36px;
  }

  .summary {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 26px;
  }

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

  .status-row,
  .status-row:nth-child(odd),
  .status-row:nth-child(even) {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid #dfe3e1;
  }

  .status-row:last-child {
    border-bottom: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 14px;
  }
}
