:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --panel: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --muted: #66758a;
  --line: #dce3ec;
  --line-soft: #edf1f6;
  --blue: #4867f5;
  --green: #16a34a;
  --red: #ff3b1f;
  --amber: #d97706;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(226, 232, 255, 0.9), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(224, 247, 235, 0.65), transparent 20%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 60%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.symbols {
  display: none;
}

.shell {
  width: min(1220px, calc(100vw - 64px));
  height: 100vh;
  margin: 0 auto;
  padding: 82px 0 44px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1.05;
  font-weight: 800;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.metric-card,
.table-wrap {
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.metric-card {
  display: flex;
  align-items: center;
  min-height: 108px;
  gap: 28px;
  border-radius: 10px;
  padding: 22px 28px;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.metric-icon svg {
  width: 30px;
  height: 30px;
}

.metric-icon.pulse {
  color: var(--blue);
  background: #eff1ff;
  box-shadow: 0 0 0 12px rgba(72, 103, 245, 0.06);
}

.metric-icon.check {
  color: var(--green);
  background: #dcfce7;
  box-shadow: 0 0 0 12px rgba(34, 197, 94, 0.09);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.metric-card strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
}

.table-wrap {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: 100%;
  overflow-x: auto;
  overflow-y: auto;
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  height: 64px;
  padding: 0 24px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 52px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.54);
}

tbody tr:hover {
  background: rgba(248, 250, 252, 0.72);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 800;
}

.status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.13);
}

.status.fail {
  color: var(--red);
}

.status.fail span {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 59, 31, 0.14);
}

.latency {
  color: var(--muted);
  font-weight: 800;
}

.latency.good {
  color: #059669;
}

.latency.warn {
  color: var(--amber);
}

.latency.bad {
  color: var(--red);
}

.empty {
  height: 120px;
  color: var(--muted);
  text-align: center;
}

footer {
  display: flex;
  justify-content: center;
  margin-top: 54px;
  color: #8492a6;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  body::before {
    inset: 0;
    border-radius: 0;
  }

  .shell {
    width: min(100% - 28px, 1220px);
    padding: 34px 0 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .summary {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }
}