/* v102: Discord account card in the site header. Colors come from the header theme in styles.css. */
.login-chip { position: relative; display: inline-flex; align-items: center; color: #e7e2fa; font-size: 13px; font-weight: 750; }
.login-chip:empty { display: none; }
.login-chip-link { display: inline-flex; min-height: 38px; align-items: center; padding: 0 12px; border: 1px solid rgb(112 149 255 / 38%); border-radius: 10px; background: rgb(85 111 207 / 14%); color: inherit; text-decoration: none; }
.login-chip-link:hover { border-color: #8b79c7; background: #1d2037; }

.login-chip-menu { position: relative; }
.login-chip-menu > summary { list-style: none; }
.login-chip-menu > summary::-webkit-details-marker { display: none; }
.login-chip-trigger { display: grid; width: 38px; height: 38px; place-items: center; padding: 3px; border: 1px solid #373b56; border-radius: 50%; background: #15182b; cursor: pointer; transition: border-color 160ms ease; }
.login-chip-trigger:hover, .login-chip-menu[open] > .login-chip-trigger { border-color: #8b79c7; }
.login-chip-trigger:focus-visible { outline: 2px solid #8b79c7; outline-offset: 2px; }
.login-chip-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.login-chip-initial { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #2a2e4d; color: #e7e2fa; font-size: 14px; font-weight: 800; }

.login-chip-card { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: 280px; max-width: calc(100vw - 32px); padding: 16px; border: 1px solid #373b56; border-radius: 16px; background: #15182b; box-shadow: 0 18px 40px rgb(0 0 0 / 45%); transform-origin: top right; animation: login-chip-in 160ms ease-out; }
@keyframes login-chip-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.login-chip-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #262a44; }
.login-chip-avatar-lg { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #8b79c7; }
.login-chip-who { min-width: 0; }
.login-chip-name { margin: 0; overflow: hidden; color: #e7e2fa; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.login-chip-note { margin: 2px 0 0; color: #8f89ad; font-size: 12px; font-weight: 500; }

.login-chip-rows { display: grid; gap: 10px; padding: 14px 0; }
.login-chip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.login-chip-label { color: #8f89ad; font-size: 12px; font-weight: 600; }
.login-chip-value { display: inline-flex; align-items: center; }
.login-chip-rank { color: #e7e2fa; font-size: 13px; font-weight: 750; }
.login-chip-total { color: #7ee2a8; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.login-chip-pill { padding: 3px 9px; border: 1px solid #373b56; border-radius: 999px; color: #8f89ad; font-size: 12px; font-weight: 700; }
.login-chip-pill.is-on { border-color: rgb(126 226 168 / 40%); background: rgb(126 226 168 / 10%); color: #7ee2a8; }
.login-chip-empty { margin: 0; color: #8f89ad; font-size: 12px; font-weight: 500; }

.login-chip-accounts { padding: 12px 0; border-top: 1px solid #262a44; }
.login-chip-accounts .login-chip-label { display: block; margin-bottom: 6px; }
.login-chip-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-height: 160px; overflow: auto; }
.login-chip-list li { padding: 6px 10px; border-radius: 8px; background: #1d2037; color: #e7e2fa; font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.login-chip-logout { display: flex; min-height: 38px; align-items: center; gap: 10px; margin-top: 4px; padding: 0 10px; border-radius: 9px; color: #f0a5b5; font-size: 13px; font-weight: 700; text-decoration: none; transition: background 160ms ease; }
.login-chip-logout:hover { background: rgb(240 165 181 / 10%); }
.login-chip-admin { display: flex; min-height: 38px; align-items: center; gap: 10px; margin-top: 4px; padding: 0 10px; border: 1px solid rgb(166 145 255 / 35%); border-radius: 9px; background: rgb(166 145 255 / 10%); color: #d9d2ff; font-size: 13px; font-weight: 800; text-decoration: none; transition: background 160ms ease; }
.login-chip-admin:hover { background: rgb(166 145 255 / 20%); }
.login-chip-admin:focus-visible { outline: 2px solid #8b79c7; outline-offset: 2px; }
.login-chip-logout:focus-visible, .login-chip-trigger:focus-visible { outline: 2px solid #8b79c7; outline-offset: 2px; }
.login-chip-icon { width: 18px; height: 18px; flex: none; }

@media (prefers-reduced-motion: reduce) { .login-chip-card { animation: none; } .login-chip-trigger { transition: none; } }
