:root { color-scheme: dark; --bg:#111214; --panel:#1b1d21; --line:#30343a; --ink:#e8eaed; --muted:#9aa0a6; --accent:#8ab4f8; --bad:#f28b82; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
#setup { min-height: 100%; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #1d2733 0, var(--bg) 44%); }
.setup-card { width: min(560px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: 0 24px 80px #0008; }
.brand { display:flex; align-items:center; gap: 12px; margin-bottom: 20px; }
.mark { width: 42px; height: 42px; display:grid; place-items:center; border-radius: 12px; background: var(--accent); color: #111; font-weight: 800; font-size: 22px; }
h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.eyebrow { margin: 2px 0 0; color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.lede { color: var(--muted); margin: 0 0 22px; }
.trust-warning { margin: -8px 0 20px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--bad) 10%, var(--panel)); color: var(--ink); font-size: 12px; }
.field { display:grid; gap: 6px; margin: 13px 0; }
.field label { color: var(--muted); font-size: 12px; }
.field input { width:100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background:#111317; color:var(--ink); font: inherit; outline:none; }
.field input:focus { border-color: var(--accent); }
.row { display:flex; align-items:center; gap: 12px; margin-top: 18px; }
.button { border: 0; border-radius: 9px; background: var(--accent); color:#111; padding: 10px 16px; font-weight: 700; cursor:pointer; }
.button:disabled { opacity:.5; cursor:wait; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.error { color: var(--bad); white-space: pre-wrap; }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; background:#111; }
#shell { flex:1 1 auto; width:100%; border:0; background:#fff; }
.link-setup { border:1px solid var(--line); border-radius:11px; padding:14px; margin:0 0 16px; background:#15171b; }
.section-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.section-head h2 { margin:0 0 4px; font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); }
select { width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:9px; background:#111317; color:var(--ink); font:inherit; }
.button.ghost { background:#20242a; color:var(--ink); border:1px solid var(--line); }
#shell-error { position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:24px; background:#111214; color:var(--ink); text-align:center; }
#shell-error span { max-width:640px; color:var(--muted); }
#shell-error[hidden] { display:none; }
