:root {
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #2563eb;
  --ok: #16a34a;
  --fail: #dc2626;
  --border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card-bg: #1a1d23;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --border: #2b2f38;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

h1 { margin-top: 0; font-size: 1.5rem; }
h2 { font-size: 1.05rem; margin-bottom: 8px; color: var(--muted); }

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot-ok { background: var(--ok); }
.dot-fail { background: var(--fail); }

.block { margin-bottom: 24px; }

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

select, button {
  font: inherit;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
}

.btn, .btn-small { background: var(--accent); color: white; border: none; cursor: pointer; }
.btn-small { padding: 4px 10px; font-size: 0.85rem; margin-left: auto; }
.btn:disabled { opacity: 0.6; cursor: default; }

.output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  min-height: 1.2em;
}

.result { color: var(--muted); font-size: 0.95rem; }
