#auth-area { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--btn-bg); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#auth-area .who { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-sm { border: 0; border-radius: 8px; background: var(--btn-bg); color: var(--fg); cursor: pointer; font: inherit; font-size: 12px; padding: 4px 10px; }
.btn-primary { background: #30a46c; color: #fff; font-weight: 600; }

#auth-modal { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; background: rgba(10, 18, 28, 0.45); padding: 16px; box-sizing: border-box; }
#auth-modal.open { display: grid; }
#auth-card { background: var(--hud-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--fg); border-radius: 16px;
             box-shadow: 0 8px 40px var(--shadow); padding: 22px; width: 100%; max-width: 360px; }
#auth-card h2 { margin: 0 0 12px; font-size: 18px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 0; border-radius: 8px; padding: 7px; background: var(--btn-bg); color: var(--fg); font: inherit; cursor: pointer; }
.tabs button.on { background: #30a46c; color: #fff; font-weight: 600; }
#auth-card label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
#auth-card input { width: 100%; box-sizing: border-box; border: 1px solid var(--btn-bg); border-radius: 8px; padding: 9px 10px; font: inherit;
                   background: var(--btn-bg); color: var(--fg); }
#auth-card input:focus { outline: 2px solid #30a46c; outline-offset: 1px; }
#auth-card .hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
#auth-msg { min-height: 1.3em; margin: 12px 0 4px; font-size: 13px; }
#auth-msg.err { color: #e5484d; }
#auth-msg.ok { color: #30a46c; }
#auth-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
#auth-actions .btn-primary { padding: 9px 16px; font-size: 14px; }
