:root { font-family: system-ui, sans-serif; color: #182737; background: #f1f4f8; line-height: 1.55; }
* { box-sizing: border-box; }
body { margin: 0; padding: 48px 20px; }
main { max-width: 600px; margin: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; }
.brand { font-size: 1.5rem; font-weight: 750; }
.badge { font-size: .72rem; font-weight: 750; letter-spacing: .08em; color: #315c95; background: #e0eafa; padding: 6px 10px; border-radius: 6px; }
h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.2; margin: 0 0 16px; }
.intro { color: #526378; margin-bottom: 28px; }
section { background: white; border: 1px solid #dae1ea; border-radius: 14px; padding: 28px; box-shadow: 0 4px 22px #19385906; }
h2 { margin-top: 0; font-size: 1.2rem; }
label { display: block; font-size: .95rem; font-weight: 600; margin: 16px 0 6px; }
input, select { font: inherit; width: 100%; min-height: 46px; border: 1px solid #aebdce; border-radius: 7px; padding: 8px 12px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check-label input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin-top: 3px; }
#backup-secret { display: block; padding: 16px; background: #edf3fb; border-radius: 7px; overflow-wrap: anywhere; font-size: 1.1rem; }
button { font: inherit; font-weight: 650; background: #245ca7; color: white; border: 1px solid #245ca7; border-radius: 7px; min-height: 46px; padding: 9px 16px; cursor: pointer; }
form button { width: 100%; margin-top: 24px; }
button:hover { background: #194985; }
button:disabled { opacity: .65; cursor: wait; }
.secondary { color: #245ca7; background: white; }
.secondary:hover { background: #edf3fb; }
:focus-visible { outline: 3px solid #90b7f0; outline-offset: 3px; }
.hint, footer { color: #596b80; font-size: .87rem; }
.hint { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
#status { min-height: 24px; overflow-wrap: anywhere; }
#account-email { overflow-wrap: anywhere; }
#qr-code { display: block; width: min(240px, 100%); height: auto; margin: 20px auto; }
#totp-secret { overflow-wrap: anywhere; user-select: all; }
details { padding: 12px 0; }
summary { cursor: pointer; }
footer { margin-top: 28px; }
[hidden] { display: none !important; }
@media (max-width: 420px) { body { padding: 24px 16px; } section { padding: 22px; } header { margin-bottom: 32px; } }
