/* Top-right login / account menu (components/account.js). Colours: theme.css */
.account { position: relative; margin-left: auto; }

.account-button {
  max-width: 220px;
  padding: 6px 12px;
  border: 1px solid var(--line-hi);
  border-radius: 7px;
  background: var(--surface);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-button:hover { border-color: var(--accent); color: var(--gold-light); }

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  background: var(--surface-hi);
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}

.account-item { text-align: left; background: none; border: 0; border-radius: 6px; padding: 10px 12px; }
.account-item:hover, .account-item:focus-visible { background: var(--line); }
.account-item.is-discord::before, .account-item.is-google::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  transform: rotate(45deg);
}
.account-item.is-discord::before { background: #5865f2; }   /* brand colours of the login services */
.account-item.is-google::before { background: #ea4335; }
