.google-signin { width:100%; min-height:44px; display:flex; align-items:center; justify-content:center; gap:12px; padding:11px 18px; border:1px solid #747775; border-radius:6px; background:#131314; color:#e3e3e3; font:500 14px/20px Arial,sans-serif; cursor:pointer; }
.google-signin svg { width:20px; height:20px; flex:none; }
.google-signin:disabled { opacity:.6; cursor:wait; }
.identity-divider { display:flex; align-items:center; gap:14px; color:var(--text-hover-color,#aaa); font-size:12px; margin:20px 0; }
.identity-divider:before,.identity-divider:after { content:''; height:1px; background:var(--boarder-color,#444); flex:1; }
.identity-message { min-height:1.5em; margin:8px 0; font-size:13px; line-height:1.6; color:var(--text-hover-color,#bbb4ae); }
.identity-message[data-state=success] { color:#6bb584; }
.username-settings { margin-top:20px; border:1px solid var(--boarder-color,#444); padding:16px; border-radius:10px; color:var(--text-color,#f5f2ea); }
.username-settings summary { cursor:pointer; font-weight:600; }
.username-form { display:grid; gap:12px; margin-top:16px; width:100%; }
.username-form label { font-size:14px; }
.username-form input { box-sizing:border-box; width:100%; min-height:46px; border:1px solid var(--boarder-color,#514b46); background:var(--surface-color,#111); color:inherit; border-radius:6px; padding:12px; font:inherit; }
.username-form input:focus-visible,.google-signin:focus-visible { outline:2px solid #d71920; outline-offset:3px; }
.username-form button,.identity-primary { border:0; border-radius:6px; background:#d71920; color:#fff; min-height:46px; padding:12px 18px; font-family:inherit; font-size:15px; font-weight:600; line-height:1.5; cursor:pointer; }
.username-form button:disabled { opacity:.6; cursor:wait; }
.identity-hint { margin:0; color:var(--text-hover-color,#bbb4ae); font-size:13px; line-height:1.6; }
[hidden] { display:none !important; }
body.identity-page { --surface-color:#1a1a1a; --text-color:#f5f2ea; --text-hover-color:#bbb4ae; --boarder-color:#514b46; margin:0; background:#080808; color:var(--text-color); font:16px/1.6 Arial,sans-serif; min-height:100vh; }
.identity-shell { max-width:460px; margin:8vh auto; padding:24px; }
.identity-brand img { width:92px; height:auto; margin-bottom:24px; }
.identity-panel { background:var(--surface-color); border:1px solid var(--boarder-color); padding:28px; border-radius:14px; }
.identity-panel h1 { font-size:28px; line-height:1.3; margin:0 0 14px; }
.identity-tools { display:flex; justify-content:flex-end; gap:10px; padding:18px; }
.identity-tools button,.identity-signout { background:none; border:1px solid var(--boarder-color); border-radius:6px; color:inherit; padding:8px 12px; cursor:pointer; }
.identity-signout { margin-top:14px; width:100%; }
.identity-page a { color:inherit; }
.identity-page[data-theme=light] { --surface-color:#fffdf8; --text-color:#171515; --text-hover-color:#625b53; --boarder-color:#c9c3b9; background:#f7f5f0; }
@media(max-width:520px) { .identity-shell { margin:3vh auto; padding:18px; } .identity-panel { padding:22px; } }
