.header-actions { display: flex; align-items: center; gap: 13px; }
.account-button { min-height: 44px; display: flex; gap: 9px; align-items: center; padding: 5px 12px 5px 7px; background: #20323f; border: 1px solid var(--brass); border-radius: 4px; color: var(--gold); font-size: 13px; }
.account-button:hover { background: #2a3d47; }
.account-avatar, .member-avatar { display: grid; place-items: center; overflow: hidden; background: #0c1925; color: var(--gold); border: 1px solid #81704e80; flex-shrink: 0; }
.account-avatar { width: 30px; height: 30px; border-radius: 3px; font-size: 17px; }
.account-avatar img, .member-avatar img { width: 100%; height: 100%; object-fit: cover; }
#account-dialog { width: 480px; }
#account-title { overflow-wrap: anywhere; }
.login-emblem { width: 64px; height: 64px; border: 1px solid var(--brass); background: #202d35; box-shadow: inset 0 0 0 4px #121f2b; display: grid; place-items: center; margin: 0 0 23px; border-radius: 4px; }
.login-emblem img { width: 34px; height: 34px; image-rendering: pixelated; }
.discord-login { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; margin-top: 26px; padding: 10px 15px; background: #d4b777; color: #111c29; border: 1px solid #f2d49a; border-radius: 3px; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 2px #392a1522, 0 3px 0 #080f15; transition: background .15s; }
.discord-login:hover { background: #e8cb8d; }
.discord-login > span { margin-left: auto; }
.discord-mark { width: 24px; height: 24px; fill: currentColor; stroke: none; }
#account-dialog .login-note, #account-dialog .account-private { font-size: 13px; line-height: 1.7; color: var(--muted); }
.member-heading { display: flex; align-items: center; gap: 17px; }
.member-avatar { width: 64px; height: 64px; border-radius: 4px; font: 600 30px Ledger,Georgia,serif; }
.member-heading > div { min-width: 0; }
.member-heading h2 { margin: 0 0 4px; font-size: 29px; }
.member-heading > div > span { display: block; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.account-section-heading { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin: 28px 0 13px; }
.account-section-heading h3 { font-size: 15px; font-weight: 600; }
.account-section-heading > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.linked-accounts { display: grid; gap: 9px; }
.linked-account { display: flex; gap: 14px; align-items: center; padding: 15px; border: 1px solid var(--line); background: #1d303d; border-radius: 3px; min-height: 76px; transition: border-color .15s, background .15s; }
.linked-account:hover { border-color: var(--brass); background: #283d47; }
.linked-account > img { width: 30px; height: 30px; image-rendering: pixelated; flex-shrink: 0; }
.linked-account > span:first-of-type { flex: 1; min-width: 0; }
.linked-account strong { display: block; font-size: 17px; font-weight: 600; color: var(--gold); overflow-wrap: anywhere; }
.linked-account small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.linked-account > span:last-of-type { color: var(--gold); font-size: 23px; }
.account-bottom { display: flex; justify-content: space-between; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--line); }
.account-bottom .quiet-button { padding-inline: 0; font-size: 14px; }
#account-dialog .account-private { margin-top: 12px; }
.unlinked-account { background: #0e1b27; padding: 23px 20px; border: 1px solid var(--line); border-radius: 3px; }
.unlinked-account > img { width: 30px; height: 30px; margin-bottom: 10px; }
.unlinked-account h3 { color: var(--gold); font: 600 24px Ledger,Georgia,serif; }
#account-dialog .unlinked-account p { margin-top: 8px; }
.unlinked-account code { color: var(--text); white-space: nowrap; }
.account-action { margin-top: 22px; }
#account-error { padding: 12px; color: #f3c3a0; border: 1px solid #b48761; border-radius: 3px; }
.auth-notice { display: flex; align-items: center; gap: 16px; padding: 12px 15px; margin-top: 20px; background: #20343b; border: 1px solid #607c78; border-radius: 3px; font-size: 14px; }
#auth-notice-text { flex: 1; }
.auth-notice button { min-height: 44px; color: var(--gold); font-size: 14px; flex-shrink: 0; }
#auth-notice-dismiss { min-width: 44px; font-size: 18px; }
@media (max-width: 760px) {
  .header-actions { gap: 6px; }
  #share { width: 44px; padding: 0; }
  #share span { display: none; }
  .account-button { padding-right: 9px; gap: 7px; }
  .auth-notice { flex-wrap: wrap; gap: 4px 12px; }
  #auth-notice-text { flex-basis: calc(100% - 56px); }
  #auth-notice-action { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .discord-login, .linked-account { transition: none; }
}
