/* /status —— 服务状态页。只补 .st-* 局部样式，配色全部走 style.css 的 token。
   CSP 是 script-src 'self'，脚本在 /status.js。 */

.st { max-width: 700px; }

/* ---------- 三项检查 ---------- */

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

.st-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  min-width: 0;
}
.st-check strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.st-detail {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.st-dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.2s ease;
}
.st-check[data-state="ok"] .st-dot { background: var(--ok); }
.st-check[data-state="bad"] .st-dot { background: var(--danger); }
.st-check[data-state="bad"] { border-color: var(--danger); }

#st-title[data-state="ok"] { color: var(--ok); }
#st-title[data-state="bad"] { color: var(--danger); }

/* ---------- 计数 ---------- */

.st-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.st-counts > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.st-num {
  font-size: 26px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}
.st-label { font-size: 12.5px; color: var(--muted); }

@media (max-width: 560px) {
  .st-checks, .st-counts { grid-template-columns: 1fr; }
}
