:root {
  color-scheme: dark;
  --bg: #0d1117;
  --card: #161b22;
  --line: #2a313c;
  --text: #e8edf2;
  --muted: #9aa5b1;
  --accent: #46d38a;
  --accent-ink: #06281a;
  --danger: #ff7b72;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 100vh;
  padding: 24px 16px;
  background: radial-gradient(900px 500px at 50% -10%, #173526 0%, var(--bg) 70%);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 44px; height: 44px; }
.brand h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.card {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.card h1, .card h2 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 16px; color: var(--muted); }
label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#code { font-family: ui-monospace, Consolas, monospace; font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase; }
button, .button {
  display: inline-block;
  padding: 11px 18px;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button.quiet, .button { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 500; }
button:disabled { opacity: 0.55; cursor: default; }
form button { width: 100%; }
.message { min-height: 22px; margin: 12px 0 0; color: var(--danger); font-size: 14px; }
.message.wait { color: var(--muted); }
.hosts { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.host { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.host-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--accent); }
.host button { padding: 7px 14px; }
.actions { display: flex; gap: 10px; margin-bottom: 0; }
[hidden] { display: none !important; }

.get-app { margin: 0; color: var(--muted); font-size: 14px; }
.get-app a { color: var(--accent); }
