:root{color-scheme:dark;--bg:#191919;--card:#242424;--ink:#EDEDEA;--muted:#A3A29C;--line:rgba(255,255,255,.12);--accent:#012AB6;--accent-ink:#8FA6FF;--danger:#F08467;--ease:cubic-bezier(.32,.72,0,1)}
*{box-sizing:border-box}
html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
body{margin:0;min-height:100dvh;background:var(--bg);color:var(--ink);font:14px/1.5 'Inter Tight',system-ui,sans-serif;-webkit-font-smoothing:antialiased;display:grid;place-items:center;padding:24px 16px}
h1,h2{font-family:'Funnel Display',sans-serif;font-weight:700;letter-spacing:-.03em;text-wrap:balance;margin:0}
h1{font-size:32px;line-height:1.1}
h2{font-size:19px;letter-spacing:-.015em}
p{margin:0}
.muted{color:var(--muted)}
.card{width:100%;max-width:420px;background:var(--card);border-radius:24px;padding:28px;box-shadow:0 0 0 .5px rgba(255,255,255,.08),0 24px 48px -32px rgba(0,0,0,.55);display:flex;flex-direction:column;gap:18px}
.brand{font:700 13px/1 'Funnel Display',sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
form{display:flex;flex-direction:column;gap:14px}
label{display:flex;flex-direction:column;gap:6px;font-weight:500}
input{font:inherit;font-size:16px;color:var(--ink);min-height:48px;padding:0 14px;border:0;border-radius:14px;background:#2B2B2B;box-shadow:0 0 0 1px var(--line);transition:box-shadow .16s ease}
input:focus{outline:0;box-shadow:0 0 0 2px var(--accent-ink)}
.btn{font:inherit;font-weight:600;min-height:48px;padding:0 18px;border:0;border-radius:14px;cursor:pointer;background:var(--accent);color:#fff;touch-action:manipulation;transition:transform .22s var(--ease),background-color .2s ease}
.btn:active{transform:scale(.97);transition-duration:.1s}
.btn.ghost{background:#2B2B2B;color:var(--ink);box-shadow:0 0 0 1px var(--line)}
.btn[disabled]{opacity:.55;cursor:default}
@media (hover:hover) and (pointer:fine){.btn:hover{background:#0A36C9}.btn.ghost:hover{background:#303030}}
.error{color:var(--danger);min-height:1.4em}
.note{padding:12px 14px;border-radius:14px;background:#1F2A55;color:#BAC8FF}
.qr{align-self:center;background:#fff;border-radius:16px;padding:6px;width:236px;height:236px;display:grid;place-items:center}
.qr svg{width:220px;height:220px}
code,.secret{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;word-break:break-all;background:#2B2B2B;padding:10px 12px;border-radius:12px;display:block;user-select:all}
.codes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.codes code{text-align:center}
.hidden{display:none !important}
.topbar{position:fixed;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:rgba(25,25,25,.82);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 .5px 0 var(--line)}
@media (prefers-reduced-motion:reduce){.btn,input{transition:none}}
#step-qr,#step-codes{display:flex;flex-direction:column;gap:14px}
