:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0e1b2d;
  --line: #23364e;
  --text: #f5f8fc;
  --muted: #9cafc6;
  --accent: #5eead4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 10%, #133253, var(--bg) 45%); color: var(--text); }
.setup-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.card { width: min(100%, 560px); padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: 0 24px 80px #0008; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 10px 0 8px; line-height: 1.12; }
.muted { color: var(--muted); line-height: 1.55; }
.stack { display: grid; gap: 18px; margin-top: 24px; }
label { display: grid; gap: 7px; color: #dce7f4; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #071322; color: var(--text); font: inherit; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { border: 0; border-radius: 10px; padding: 13px 18px; background: var(--accent); color: #04221e; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { filter: brightness(1.07); }
small { color: var(--muted); font-weight: 400; }
.errorlist, .error { color: #fda4af; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { width: auto; margin-top: 4px; }
.qr { display: block; width: 220px; height: 220px; margin: 24px auto; padding: 8px; border-radius: 12px; background: white; }
.secret { display: block; margin: 12px 0; padding: 12px; overflow-wrap: anywhere; background: #06101c; border-radius: 8px; }
.notice { margin: 20px 0; padding: 16px; border: 1px solid #806a2b; border-radius: 10px; background: #3c3215; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }

