.account-area { position: relative; flex: 0 0 auto; }
.guest-actions { display: flex; align-items: center; gap: 8px; }
.guest-actions a { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 8px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.guest-actions .signup-link { border-color: var(--accent); background: var(--accent); color: #17130f; }
.guest-actions a:hover { border-color: var(--accent); }
.user-menu { position: relative; }
.avatar-button { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; position: relative; border: 1px solid #5a5d53; border-radius: 50%; background: #1b1d19; color: var(--text); font: 800 13px/1 var(--body); letter-spacing: .5px; }
.avatar-button::after { content: ''; width: 9px; height: 9px; position: absolute; right: 0; bottom: 2px; border: 2px solid var(--bg); border-radius: 50%; background: #8fc182; }
.account-dropdown { width: 260px; padding: 12px; position: absolute; top: calc(100% + 13px); right: 0; z-index: 30; border: 1px solid var(--line); background: #151713; box-shadow: 0 24px 70px #000a; }
.account-identity { padding: 13px 13px 16px; border-bottom: 1px solid var(--line); }
.account-identity strong, .account-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-identity strong { font-family: var(--heading); font-size: 23px; line-height: 1; }
.account-identity span { margin-top: 6px; color: var(--muted); font-size: 8px; }
.account-dropdown > a, .account-dropdown > button { width: 100%; min-height: 42px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid #ffffff0d; background: none; color: #d8dad1; font-size: 8px; font-weight: 800; letter-spacing: 1px; text-align: left; }
.account-dropdown > a:hover, .account-dropdown > button:hover { color: var(--accent); }
.account-dropdown > button { border-bottom: 0; }

@media (max-width: 1120px) {
  .header nav { gap: 18px; }
}

@media (max-width: 720px) {
  .header { gap: 9px; }
  .account-area { margin-left: auto; }
  .guest-actions { gap: 5px; }
  .guest-actions a { min-height: 35px; padding: 0 9px; font-size: 7px; letter-spacing: .7px; }
  .avatar-button { width: 38px; height: 38px; font-size: 11px; }
  .menu-toggle { margin-left: 0 !important; }
  .account-dropdown { width: min(270px, calc(100vw - 32px)); right: -43px; }
}

@media (max-width: 390px) {
  .header { padding-left: 14px; padding-right: 12px; }
  .header .brand { font-size: 28px; }
  .guest-actions a { padding: 0 7px; }
}
