:root {
  color-scheme: dark light;
  --bg: #111418;
  --panel: #1b1f26;
  --text: #f2f4f7;
  --muted: #9aa4b2;
  --accent: #3ddc84;
  --danger: #ff5d5d;
  --border: #2a2f38;
}

* { 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", Roboto, sans-serif;
  padding: 1.5rem;
}

main {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

h1 { font-size: 1.3rem; margin-bottom: 0.25rem; }
p.subtitle { color: var(--muted); margin-top: 0; margin-bottom: 1.75rem; }

input[type="number"] {
  width: 100%;
  font-size: 1.75rem;
  text-align: center;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #10131a;
  color: var(--text);
  margin-bottom: 1rem;
}

button {
  width: 100%;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
}

button.primary { background: var(--accent); color: #06170d; }
button.danger { background: var(--danger); color: #2a0000; }
button:disabled { opacity: 0.6; cursor: wait; }

.message { margin-top: 1rem; min-height: 1.4em; font-weight: 600; }
.message.error { color: var(--danger); }
.message.ok { color: var(--accent); }

.hidden { display: none; }

table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; }
th, td { border-bottom: 1px solid var(--border); padding: 0.5rem; text-align: left; }

main.wide { max-width: 1200px; text-align: left; }
main.wide table { font-size: 0.8rem; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
a.back-link { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
a.back-link:hover { color: var(--text); }
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-weight: 600; font-size: 0.78rem; }
.badge.ok { background: rgba(61, 220, 132, 0.15); color: var(--accent); }
.badge.fail { background: rgba(255, 93, 93, 0.15); color: var(--danger); }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
