/* The account button in the header pill and its popover (Nabira, 8 Nov 2026; js/account.js). */
.acct { position: relative; display: flex; }

/* the bare white line icon on the gradient pill (no circle, Nabira 8 Nov), or the person's picture once signed in */
header.top .actions .acct-btn {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; flex: none;
  background: transparent; border: 0; color: #fff; box-shadow: none;
  transition: opacity 200ms ease, transform 140ms var(--ease-out);
}
header.top .actions .acct-btn::after { display: none; }
header.top .actions .acct-btn svg { width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) {
  header.top .actions .acct-btn:hover { background: transparent; box-shadow: none; transform: none; opacity: .78; }
}
header.top .actions .acct-btn:active { transform: scale(.92); }
header.top .actions .acct-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.acct-face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.acct-face.letter, .acct-pic.letter { display: grid; place-items: center; font: 700 .9rem/1 var(--font-display); }
.acct-face.letter { color: #fff; }

/* the popover: a card under the button, scaling in from its corner */
.acct-pop {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 40; width: min(300px, calc(100vw - 32px));
  padding: 18px 18px 14px; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  border: 1px solid var(--line); text-align: left; transform-origin: top right;
}
.acct-pop[hidden] { display: none; }
.acct-pop:focus { outline: none; }
.acct-pop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.acct-title { margin: 0; font: 700 1.02rem/1.3 var(--font-display); color: var(--text); overflow-wrap: anywhere; }
.acct-sub { margin: 6px 0 0; font-size: .875rem; line-height: 1.5; color: var(--text-dim); }
.acct-email { margin: 2px 0 0; font-size: .82rem; color: var(--text-dim); overflow-wrap: anywhere; }
.acct-me { display: flex; align-items: center; gap: 12px; }
.acct-pic { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; background: var(--accent-soft); color: var(--accent); }
.acct-gsi { margin-top: 14px; min-height: 44px; display: flex; justify-content: center; }
.acct-out { margin-top: 14px; width: 100%; }
.acct-msg { margin: 8px 0 0; font-size: .8rem; color: var(--text-dim); }
.acct-msg:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .acct-pop { transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
  @starting-style { .acct-pop { opacity: 0; transform: scale(.96) translateY(-4px); } }
}

@media (max-width: 760px) {
  header.top .actions .acct-btn { width: 34px; height: 34px; }
  .acct-pop { position: fixed; top: 64px; right: 12px; }
}
