:root {
  color-scheme: dark;
  font-family: Inter, system-ui, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #edf2ff;
  background:
    radial-gradient(circle at 18% 0%, rgba(118, 132, 255, .22), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(80, 210, 170, .16), transparent 30%),
    linear-gradient(180deg, #08111f 0%, #0b1020 45%, #060913 100%);
}

main {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: #edf2ff;
  margin-bottom: 24px;
}

.brand {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.btn {
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 10px;
  padding: 11px 14px;
  color: white;
  background: #111827;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
}

.operational {
  border: 1px solid rgba(86, 199, 163, .68);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13, 24, 40, .92);
  color: #edf2ff;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .24);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
}

.operational.warn {
  border-color: rgba(245, 200, 76, .8);
  background: rgba(42, 31, 12, .94);
}

.operational.down {
  border-color: rgba(239, 125, 115, .86);
  background: rgba(44, 14, 18, .94);
}

.operational h1 {
  margin: 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(47, 193, 151, .22), rgba(104, 119, 255, .12));
  font-size: 19px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.operational.warn h1 {
  background: linear-gradient(135deg, rgba(245, 200, 76, .24), rgba(104, 119, 255, .08));
}

.operational.down h1 {
  background: linear-gradient(135deg, rgba(239, 125, 115, .3), rgba(104, 119, 255, .08));
}

.operational p {
  margin: 0;
  padding: 20px 24px;
  color: #c6d2ee;
}

.panel {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  background: rgba(13, 18, 32, .94);
  color: #edf2ff;
  box-shadow: 0 22px 90px rgba(0, 0, 0, .34);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.panel-head span {
  color: #64748b;
}

.status-row {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

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

.status-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

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

.status-title strong {
  font-size: 17px;
}

.status-title span:last-child {
  color: #9fb0d1;
}

.dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #55c9a4;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.warn .dot {
  background: #f5c84c;
  color: #4a3200;
}

.down .dot {
  background: #ef7d73;
}

.score {
  color: #a9b7d6;
  white-space: nowrap;
}

.bars {
  display: grid;
  grid-template-columns: repeat(72, minmax(3px, 1fr));
  gap: 4px;
}

.bar {
  height: 18px;
  border-radius: 3px;
}

.bar.good {
  background: #55c9a4;
}

.bar.warn {
  background: #f5c84c;
}

.bar.bad {
  background: #ef7d73;
}

.status-row p {
  margin: 10px 0 0;
  color: #9fb0d1;
  font-size: 13px;
}

.section-title {
  margin: 26px 0 12px;
  font-size: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat,
.insight {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 16px;
  padding: 17px;
  background: #111827;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .22);
}

.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease;
}

.stat-link:hover {
  transform: translateY(-2px);
  border-color: #6d7cff;
}

.stat span,
.insight span {
  display: block;
  color: #9fb0d1;
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.count-roll {
  display: inline-flex;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.insight strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.note {
  margin: 18px 0 0;
  color: #9fb0d1;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .top,
  .status-head {
    align-items: center;
    flex-direction: row;
  }

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

  .bars {
    gap: 3px;
  }

  .bar {
    height: 14px;
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .status-row,
  .panel-head {
    padding: 16px;
  }
}
