/* Account details use the top layer so mobile headers cannot clip them. */
.account-panel {
  position: fixed;
  inset: 64px 12px auto auto;
  margin: 0;
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100dvh - 88px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: var(--text-base);
  box-shadow: var(--shadow-default);
}
.account-panel h2 { font-size: var(--text-md); margin: 0 0 16px; }
.account-panel dt { color: var(--text-muted); margin-top: 12px; }
.account-panel dd { margin: 4px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
#accountButton { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 44px; }
@media (max-width: 768px) {
  #accountButton { width: 44px; max-width: 44px; font-size: 0; }
  #accountButton::before { content: '👤'; font-size: var(--text-md); }
}
