:root {
  color-scheme: light;
  --bg: #f7fbff; --surface: #ffffff; --line: #e1ecf6; --text: #0f1f33; --text-2: #3a4d63; --muted: #62758b;
  --accent: #2b8fe0; --accent-strong: #1673c4; --accent-tint: #e2f0fd;
  --ok: #2f8a57; --ok-tint: #e3f4ea; --danger: #b04646; --danger-tint: #fbeeee;
  --shadow: 0 12px 40px rgba(15, 45, 80, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #05070e; --surface: #0a0e1b; --line: #141a2d; --text: #e7ecf8; --text-2: #bac3d9; --muted: #8891ab;
    --accent: #6d9cfc; --accent-strong: #a0bdfd; --accent-tint: #101c3e;
    --ok: #5cc98a; --ok-tint: #0f2a1c; --danger: #f08a8a; --danger-tint: #2d1414;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(ellipse at top, var(--accent-tint), transparent 60%), var(--bg);
  color: var(--text); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.card {
  width: 100%; max-width: 440px; padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow); text-align: center; animation: pop 0.25s ease-out;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text-2); margin-bottom: 22px; }
.brand img { width: 26px; height: 26px; }
.badge { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.badge svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge.wait { background: var(--accent-tint); color: var(--accent); }
.badge.wait svg { animation: spin 1s linear infinite; }
.badge.ok { background: var(--ok-tint); color: var(--ok); }
.badge.no { background: var(--danger-tint); color: var(--danger); }
h1 { margin: 0 0 6px; font-size: 21px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; color: var(--muted); }
.summary { margin: 20px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); text-align: left; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary div + div { margin-top: 6px; }
.summary span { color: var(--muted); }
.summary strong { font-weight: 600; text-align: right; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 999px;
  font: inherit; font-weight: 550; text-decoration: none; cursor: pointer; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.btn:hover { border-color: var(--accent); }
.foot { margin-top: 18px; font-size: 12px; color: var(--muted); }
[hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .card, .badge.wait svg { animation: none; } }
