* { box-sizing: border-box; }
:root { color-scheme: light; --bg: #f5f5f7; --surface: #fff; --text: #1d1d1f; --muted: #6e6e73; --accent: #5e5ce6; --soft: #ecebff; --line: #d8d8dc; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; --bg: #09090b; --surface: #171719; --text: #f5f5f7; --muted: #a1a1a6; --accent: #8c89ff; --soft: #292746; --line: #39393d; } }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 420px); padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 22px 60px rgba(29, 29, 31, .09); }
.mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--accent); color: white; font-weight: 700; }
h1 { margin: 28px 0 8px; font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.lede, .hint, .status { color: var(--muted); }
label { display: block; margin: 26px 0 8px; font-weight: 650; }
input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); }
.primary { width: 100%; min-height: 50px; margin-top: 14px; border: 0; border-radius: 12px; background: var(--accent); color: white; font-weight: 650; cursor: pointer; }
.primary:disabled { opacity: .55; cursor: wait; }
.error { min-height: 1.6em; margin: 12px 0 0; color: #c73737; }
.hint { margin: 22px 0 0; font-size: .9rem; }
.settings-shell { width: min(calc(100% - 36px), 900px); margin: 0 auto; padding: 44px 0 80px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.settings-head a { color: var(--accent); text-underline-offset: 4px; }
.settings-grid { margin-top: 34px; display: grid; gap: 12px; }
.setting { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; justify-content: space-between; gap: 20px; }
.setting strong, .setting span { display: block; }
.setting span { margin-top: 4px; color: var(--muted); }
.badge { align-self: center; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--accent); white-space: nowrap; }
.logout { width: auto; padding: 0 22px; margin-top: 28px; }
@media (max-width: 560px) { .auth-card { padding: 26px 22px; } .settings-head, .setting { align-items: flex-start; flex-direction: column; } }

