:root {
  --bg: #0b0f17;
  --card: #131a26;
  --border: #22304a;
  --text: #e6edf6;
  --muted: #8ba0bf;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
.shell {
  max-width: 560px;
  margin: 40px auto;
  padding: 0 20px;
}
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 24px 0 8px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
p.subtitle { color: var(--muted); margin: 0 0 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}
input:focus { outline: none; border-color: var(--accent); }
button {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--accent-hover); }
button:disabled { opacity: 0.5; cursor: wait; }
.linkbtn { background: transparent; color: var(--accent); padding: 4px; margin: 0; font-weight: normal; font-size: 14px; width: auto; }
.error { color: var(--err); font-size: 13px; margin-top: 8px; min-height: 18px; }
.note { color: var(--muted); font-size: 13px; }
.footer { text-align: center; margin-top: 20px; color: var(--muted); font-size: 13px; }
.footer a { color: var(--accent); text-decoration: none; }
a.primary-btn {
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 16px;
}
a.primary-btn:hover { background: var(--accent-hover); }
.agent-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.agent-row:last-child { border-bottom: none; }
.agent-id { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; color: var(--muted); }
.agent-name { font-size: 14px; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.badge.ok { background: rgba(34,197,94,.15); color: var(--ok); }
.badge.warn { background: rgba(245,158,11,.15); color: var(--warn); }
.code-block {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  word-break: break-all;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.copy-btn { padding: 4px 10px; font-size: 12px; width: auto; margin: 0; }
.status-msg { padding: 12px; background: var(--bg); border-radius: 8px; margin: 12px 0; font-size: 13px; color: var(--muted); }
.progress { color: var(--accent); font-size: 13px; margin-top: 8px; min-height: 18px; }
