:root { color-scheme: light; --ink: #17212f; --muted: #526071; --brand: #1d4ed8; --line: #d8dee8; --surface: #f4f6f9; --error: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
.brand { display: flex; align-items: center; gap: 16px; padding: 20px 32px; border-bottom: 1px solid var(--line); }
.brand a { color: var(--ink); font-size: 19px; font-weight: 700; text-decoration: none; }
.brand span { padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; }
main { width: min(100% - 40px, 420px); margin: 64px auto 40px; }
main.wide { width: min(100% - 40px, 680px); }
h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
h2 { margin: 30px 0 12px; font-size: 18px; }
p { margin: 8px 0 22px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.account { font-size: 14px; color: var(--muted); margin: 16px 0 22px; overflow-wrap: anywhere; }
form { margin-top: 24px; }
label:not(.check) { display: block; margin-bottom: 6px; font-weight: 600; }
input:not([type=checkbox]) { display: block; width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px; background: #fff; color: var(--ink); font: inherit; margin-bottom: 20px; }
input::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
input:focus-visible { border-color: var(--brand); }
.check { display: flex; align-items: start; gap: 10px; font-weight: 400; margin: 18px 0 24px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); flex-shrink: 0; }
button { min-height: 44px; border-radius: 6px; font: inherit; font-weight: 600; padding: 10px 18px; cursor: pointer; border: 1px solid var(--line); color: var(--ink); background: #fff; transition: background 150ms ease-out; }
button:hover { background: var(--surface); }
button.primary { color: #fff; background: var(--brand); border-color: var(--brand); width: 100%; }
button.primary:hover { background: #1e40af; }
button:disabled { opacity: .65; cursor: wait; }
button.danger { color: var(--error); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0; }
.actions a, .text-link { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.text-link { border: 0; background: none; padding: 8px 0; font-weight: 400; }
.text-link:hover { background: none; }
.error { color: var(--error); min-height: 24px; margin: 12px 0; }
.qr { display: block; width: 224px; height: 224px; margin: 24px auto; }
details { margin: 16px 0; }
summary { color: var(--brand); cursor: pointer; min-height: 44px; padding: 9px 0; }
.secret { display: block; overflow-wrap: anywhere; user-select: all; background: var(--surface); padding: 12px; border-radius: 6px; }
.codes { background: var(--surface); padding: 16px; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 2; user-select: all; }
.device { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.device strong { display: block; }
.device small { color: var(--muted); display: block; font-size: 13px; }
.device button { flex-shrink: 0; }
.badge { font-size: 12px; color: #067647; background: #ecfdf3; padding: 2px 7px; border-radius: 4px; margin-left: 8px; }
footer { margin: 40px auto 24px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .brand { padding: 16px 20px; } main { margin-top: 40px; } .device { align-items: start; } .device small { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
