.nav-account { gap: 8px; }
.nav-avatar { width: 22px; height: 22px; margin: -3px 0 -3px -8px; border-radius: 50%; object-fit: cover; flex: none; }
.nav-avatar.initial { display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text-hi); background: var(--accent); }
.nav-account-name { max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.auth-page .thread-head { margin-bottom: 22px; }
.auth-page .thread-head .index { margin-bottom: 10px; }
.auth-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(20px, 4vw, 28px);
    border-radius: 20px;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8);
    animation: auth-in 0.7s var(--ease) both;
}
@keyframes auth-in { from { opacity: 0; transform: translateY(14px); } }
.auth-card .form-error { margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .btn { align-self: stretch; justify-content: center; margin-top: 4px; }
.field.invalid input { border-color: rgba(208, 106, 90, 0.6); }

.oauth { display: flex; flex-direction: column; gap: 10px; }
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-hi);
    background: var(--bg-soft);
    border: 1px solid var(--line-hi);
    transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease);
}
.oauth-btn:hover { border-color: var(--text); background: var(--bg-raise); transform: translateY(-1px); }
.oauth-btn svg { width: 19px; height: 19px; flex: none; }
.oauth-btn.discord svg { color: #8c9eff; }

.auth-or { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-switch { margin-top: 20px; text-align: center; }
.auth-switch a { color: var(--text-hi); border-bottom: 1px solid var(--line-hi); transition: border-color 0.3s; }
.auth-switch a:hover { border-color: var(--accent-soft); }

.account-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line-hi); }
.account-avatar.initial { display: grid; place-items: center; font-family: var(--serif); font-size: 32px; color: var(--text-hi); background: var(--accent); }
.account-facts { display: flex; flex-direction: column; }
.account-facts > div { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-facts > div:first-child { padding-top: 0; }
.account-facts dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.account-facts dd { color: var(--text-hi); text-align: right; overflow-wrap: anywhere; }
.account-facts .mono { font-family: var(--mono); font-size: 14px; }
.kind-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line-hi); background: var(--bg-soft); }
.kind-badge.discord { border-color: rgba(140, 158, 255, 0.45); }
.kind-badge.password { border-color: rgba(176, 84, 84, 0.5); }
.auth-card form .btn.ghost { align-self: flex-start; }
.account-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

@media (max-width: 820px) {
    .nav-account { margin-left: auto; padding: 7px 12px; }
    .nav-account ~ .nav-toggle { margin-left: 4px; }
    .nav-account-name { max-width: 90px; }
}
