:root { --bg: #0f1218; --card: #171c25; --line: #283041; --text: #e9edf3; --muted: #9aa5b6; --accent: #7aa7ff; --bad: #ff8a8a; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.top { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #b48cff); }
.brand { font-size: 17px; letter-spacing: 0.2px; }
main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 48px 16px; outline: none; }
.card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
h1 { font-size: 22px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
label { display: block; font-size: 14px; margin: 18px 0 6px; }
input { width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--line); background: #0d1016; color: var(--text); font-size: 17px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { margin-top: 16px; padding: 11px 18px; border: 0; border-radius: 9px; background: var(--accent); color: #0b0f17; font-weight: 600; font-size: 15px; cursor: pointer; }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.link { background: none; color: var(--accent); padding: 0; margin: 0 14px 0 0; font-weight: 500; }
button:disabled { opacity: 0.6; cursor: default; }
.links { margin-top: 18px; }
.actions button { margin-right: 8px; }
.steps { padding-left: 20px; color: var(--muted); }
.qr { display: flex; justify-content: center; margin: 14px 0; }
.qr img { background: #fff; padding: 10px; border-radius: 10px; image-rendering: pixelated; }
.key-label { font-size: 13px; color: var(--muted); margin: 6px 0 2px; }
.key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; word-break: break-all; margin: 0; user-select: all; }
.codes { columns: 2; list-style: none; padding: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; }
.codes li { padding: 4px 0; }
.message { max-width: 440px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: #2a1719; color: var(--bad); border: 1px solid #4a2427; }
.message.ok { background: #14241b; color: #8be0a8; border-color: #23402f; }
.foot { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
