* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0d0d0f;
  --panel: #18181c;
  --border: #2a2a30;
  --text: #e8e8ea;
  --muted: #8a8a92;
  --accent: #e05c2a;
  --ok: #3fb95f;
  --err: #d64545;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}
h1 { font-size: 1.2rem; font-weight: 600; }
.topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.topbar .spacer { flex: 1; }
.topbar a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.topbar a:hover { color: var(--text); }
main { padding: 1.2rem; max-width: 1100px; margin: 0 auto; }
button {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.6rem 1rem; font-size: 1rem; cursor: pointer;
}
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button:disabled { opacity: 0.4; cursor: default; }
input[type="password"], input[type="text"] {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.6rem 0.8rem; font-size: 1rem; width: 100%;
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--err); }
.dot.on { background: var(--ok); }
.progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0%; transition: width 0.2s; }
.muted { color: var(--muted); font-size: 0.85rem; }
