:root {
  --bg: #0e1318;
  --panel: #18222c;
  --text: #e9eef3;
  --muted: #95a3b2;
  --line: #2a3644;
  --accent: #3d9bfd;
  --ok: #3ecf8e;
  --warn: #e6b84d;
  --err: #f07178;
  --font: "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: linear-gradient(160deg, #0a0e13, #15202b 50%, #0e1318);
  color: var(--text);
  font-family: var(--font);
  min-height: 100%;
  line-height: 1.5;
}

a { color: var(--accent); }
.hidden { display: none !important; }

.shell { max-width: 820px; margin: 0 auto; padding: 2rem 1.1rem 3.5rem; }

.top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.brand { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
h1 { margin: 0.2rem 0 0.4rem; font-size: 1.35rem; }
.lead { margin: 0; color: var(--muted); max-width: 36rem; }
.top-links { display: flex; gap: 1rem; align-items: flex-start; font-size: 0.92rem; }

.steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 1.25rem;
}
.steps li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}
.steps li.active { border-color: var(--accent); color: var(--text); }
.steps li.done { border-color: var(--ok); color: var(--ok); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.panel.warn { border-color: var(--warn); }
.panel h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.muted { color: var(--muted); font-size: 0.92rem; }

.lbl { display: block; margin: 0.65rem 0 0.3rem; font-size: 0.88rem; color: var(--muted); }
.row-check { display: flex; align-items: center; gap: 0.45rem; color: var(--text); }
input[type="password"], select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #0f151c;
  color: var(--text);
  font: inherit;
}

.btn {
  display: inline-block;
  margin: 0.65rem 0.5rem 0 0;
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #041018;
  font-weight: 650;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.out {
  background: #0b1015;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 0.85rem;
  min-height: 4.5rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  color: #c9d4de;
}

.msg { font-size: 0.88rem; margin: 0.4rem 0 0; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

.nav-btns { display: flex; justify-content: space-between; margin-top: 0.5rem; }
.foot { margin-top: 1.5rem; color: var(--muted); font-size: 0.82rem; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; }
