:root {
  color-scheme: dark;
  --bg: #1f2024;
  --card: #2b2d33;
  --line: #3b3e46;
  --text: #e8e8ea;
  --muted: #9a9ca3;
  --accent: #2e86de;
  --danger: #e74c3c;
  --ok: #2ecc71;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: #5dade2; }
h1 { margin: 0 0 4px; font-size: 22px; }
h2 { margin: 0 0 16px; font-size: 17px; font-weight: 600; color: var(--muted); }
h3 { margin: 24px 0 10px; font-size: 16px; }
.card {
  width: min(94vw, 420px);
  margin: 8vh auto 24px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.wide { width: min(96vw, 1100px); margin-top: 3vh; }
label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
input, select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #1b1c20;
  border: 1px solid var(--line);
  border-radius: 6px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button {
  padding: 9px 16px;
  font: inherit;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: default; }
button.secondary { background: #444851; }
button.danger { background: var(--danger); }
button.link { padding: 0; background: none; color: #5dade2; }
button.small { padding: 4px 9px; font-size: 13px; }
form button[type=submit] { width: 100%; margin-top: 4px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); font-size: 13px; }
.ok { color: var(--ok); font-size: 13px; }
.captcha { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.captcha img { width: 150px; height: 50px; border-radius: 6px; background: #eee; }
.code { font-family: Consolas, 'Courier New', monospace; letter-spacing: 1px; }
.big-code { font-size: 22px; letter-spacing: 3px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 4px; margin: 12px 0 16px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; color: var(--muted); border-radius: 6px 6px 0 0; }
.tabs button.active { color: var(--text); background: #363941; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; background: #3d4048; }
.badge.ok { background: #1e5c3a; color: #c9f5da; }
.badge.warn { background: #6b4b16; color: #fde6b8; }
.badge.bad { background: #6b1e1e; color: #ffd1d1; }
.notice { padding: 10px 12px; margin: 10px 0; border: 1px solid var(--line); border-radius: 8px; background: #23252a; }
.center { text-align: center; }
.narrow { max-width: 360px; }
.pager { margin-top: 10px; }
[hidden] { display: none !important; }
