:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5b6577;
  --border: #dbe1ec;
  --accent: #2457d6;
  --accent-weak: #e8efff;
  --ok: #0f7b4f;
  --ok-weak: #e4f6ec;
  --error: #b42318;
  --error-weak: #fdecea;
  --pending: #8a5a00;
  --pending-weak: #fff4d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

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

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
}

h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.badge {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.status-grid .card {
  margin-bottom: 0;
}

.status {
  margin: 4px 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.status[data-tone="ok"] {
  color: var(--ok);
}

.status[data-tone="error"] {
  color: var(--error);
}

.status[data-tone="pending"] {
  color: var(--pending);
}

.muted {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: 9px 14px;
}

button:hover {
  filter: brightness(1.05);
}

button:focus-visible {
  outline: 3px solid var(--accent-weak);
  outline-offset: 2px;
}

pre {
  margin: 0;
  overflow-x: auto;
  background: #0f172a;
  color: #dbe7ff;
  border-radius: 10px;
  padding: 14px;
  line-height: 1.6;
}

code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}

.plain-list {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}

#lazy-host:empty {
  display: none;
}

.footer {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-top: 28px;
}

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

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