:root {
  color-scheme: dark;
  --bg: #0f1724;
  --panel: #162033;
  --card: #1b273b;
  --line: #2a3a55;
  --text: #e8eef8;
  --muted: #93a4c0;
  --ok: #3dd68c;
  --bad: #ff6b7a;
  --warn: #f5c15a;
  --accent: #7dd3fc;
  font-family: "IBM Plex Sans", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, #1e3a5f 0%, transparent 55%),
    var(--bg);
  color: var(--text);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2 {
  margin: 0;
}

.sub,
.hint {
  color: var(--muted);
  margin: 8px 0 0;
}

.badge {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #101a2b;
}

.badge.ok {
  color: var(--ok);
  border-color: rgba(61, 214, 140, 0.4);
}

.badge.bad {
  color: var(--bad);
  border-color: rgba(255, 107, 122, 0.45);
}

.badge.unknown {
  color: var(--warn);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.card,
.panel {
  background: linear-gradient(180deg, #1a2740, var(--card));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.metric {
  font-size: 42px;
  font-weight: 750;
  margin: 12px 0 0;
  letter-spacing: -0.04em;
}

.panel-head,
.actions,
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head {
  margin-bottom: 16px;
}

.actions input,
.actions button {
  background: #101a2b;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}

.actions button {
  cursor: pointer;
}

.stats-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.stat {
  background: #101a2b;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 140px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  font-size: 20px;
}

.chart {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8px, 1fr));
  gap: 3px;
  margin-bottom: 18px;
}

.dot {
  height: 14px;
  border-radius: 3px;
  background: #2a3a55;
}

.dot.ok {
  background: var(--ok);
}

.dot.bad {
  background: var(--bad);
}

.table-wrap {
  overflow: auto;
  max-height: 420px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.pass {
  color: var(--ok);
}

.fail {
  color: var(--bad);
}

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

  .hero,
  .panel-head {
    flex-direction: column;
  }
}

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

  .metric {
    font-size: 34px;
  }
}
