
:root{color-scheme:light;--bg:#fff;--subtle:#f6f8fa;--card:#fff;--line:#d1d9e0;--fg:#1f2328;--dim:#59636e;--accent:#0969da;--ok:#1a7f37;--bad:#d1242f;--warn:#9a6700;--primary:#1f883d;--primary-hover:#1a7f37;--error-bg:#fff1f0}
:root[data-theme=dark]{color-scheme:dark;--bg:#0d1117;--subtle:#151b23;--card:#0d1117;--line:#3d444d;--fg:#f0f6fc;--dim:#9198a1;--accent:#4493f8;--ok:#3fb950;--bad:#f85149;--warn:#d29922;--primary:#238636;--primary-hover:#29903b;--error-bg:#271515}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC",sans-serif;min-height:100vh}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.site-header{background:var(--subtle);border-bottom:1px solid var(--line)}
.header-inner{max-width:1168px;margin:auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--fg);font-size:17px;font-weight:600;white-space:nowrap}
.brand:hover{text-decoration:none}.brand-mark{display:grid;place-items:center;width:30px;height:30px;background:var(--fg);color:var(--bg);border-radius:7px;font:600 21px/1 ui-monospace,monospace}
.theme-toggle,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:6px;background:var(--subtle);color:var(--fg);font-size:13px;font-weight:500;white-space:nowrap}
.theme-toggle:hover,.button:hover{background:var(--bg);text-decoration:none}.theme-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-moon{display:none}[data-theme=dark] .theme-sun{display:none}[data-theme=dark] .theme-moon{display:block}
.auth-main{width:100%;max-width:408px;margin:64px auto 0;padding:0 24px}
.auth-heading{text-align:center;margin:0 0 24px}.auth-heading h1{font-size:24px;font-weight:400;letter-spacing:-.5px;margin:0 0 8px}.sub{color:var(--dim);margin:0;font-size:13px}
form.login{background:var(--subtle);border:1px solid var(--line);border-radius:6px;padding:24px}
label{display:block;font-size:14px;margin:0 0 7px;font-weight:500}
input[type=text],input[type=password]{width:100%;min-height:40px;background:var(--bg);border:1px solid var(--line);color:var(--fg);border-radius:6px;padding:8px 12px;font-size:16px;margin-bottom:18px}
input:focus{border-color:var(--accent)}.login button{width:100%;min-height:40px;border:1px solid #1b1f2326;border-radius:6px;background:var(--primary);color:#fff;font-weight:600}.login button:hover{background:var(--primary-hover)}
.login .password-button,.login .passkey-button{min-height:44px}
.login-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--dim);font-size:13px}
.login-divider::before,.login-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.login .passkey-button{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--bg);border-color:var(--line);color:var(--fg);font-weight:500}
.login .passkey-button:hover{background:var(--subtle);border-color:var(--dim)}
.passkey-button svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#passkey-status:empty{display:none}#passkey-status:not(:empty),.login-hint{margin-top:12px}
.err{background:var(--error-bg);border:1px solid var(--bad);color:var(--bad);border-radius:6px;padding:10px 12px;margin-bottom:18px;overflow-wrap:anywhere}
.who{color:var(--dim);margin:0 0 18px;overflow-wrap:anywhere}code{font-family:ui-monospace,Menlo,monospace;color:var(--fg)}
.auth-footer{margin:24px 0 40px;text-align:center;color:var(--dim);font-size:12px}.muted{color:var(--dim)}
@media(max-width:600px){.header-inner{padding:12px 16px;gap:12px}.theme-toggle,.button{min-height:44px}.auth-main{margin-top:40px;padding:0 20px}form.login{padding:20px}.login button,input[type=text],input[type=password]{min-height:44px}}
