#account-mode-controls {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  box-sizing: border-box;
  width: 208px;
  padding: 14px;
  border: 1px solid #d5cdbf;
  border-radius: 10px;
  background: #fffdf7;
  color: #3e382f;
  box-shadow: 0 4px 20px #362a1712;
  font: 13px/1.5 -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
#account-mode-controls > label { display: block; color: #756b5d; font-size: 11px; }
#account-mode-controls > label[hidden], .account-mode-actions > [hidden] { display: none; }
#account-mode-account, #account-mode-controls .account-mode-actions > :is(button, a) {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  border: 1px solid #d5cdbf;
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
  color: inherit;
  font: inherit;
}
#account-mode-account { margin: 5px 0 9px; }
.account-mode-actions { display: flex; gap: 6px; }
#account-mode-controls .account-mode-actions > :is(button, a) { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: #f2ecdf; font-weight: 600; white-space: nowrap; text-decoration: none; }
#account-mode-controls .account-mode-actions > [hidden] { display: none; }
#account-mode-controls .account-mode-actions > :is(button, a):hover { background: #e9dfcf; }
#account-mode-controls :is(select, button, a):focus-visible { outline: 2px solid #b14f36; outline-offset: 2px; }
#account-mode-controls .account-mode-actions > :disabled, #account-mode-account:disabled { cursor: wait; opacity: .65; }
#account-mode-controls [role='status'] { margin: 8px 0 0; font-size: 12px; color: #a1402b; overflow-wrap: anywhere; }
#account-mode-controls [role='status']:empty { display: none; }
[data-account-mode-mount] #account-mode-controls { position: static; width: 100%; box-shadow: none; }
body.admin-view #account-mode-controls { position: relative; inset: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: #353249; }
body.admin-view .account-mode-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px 40px; }
body.admin-view #account-mode-controls .account-mode-actions > :is(button, a) { width: 100%; height: 36px; padding: 0 5px; border-color: #e5e8ef; background: #fff; color: #646b78; font-size: 12px; }
body.admin-view #account-mode-controls .account-mode-actions > [data-account-mode-toggle] { background: #f3f1fa; border-color: #ddd7ed; color: #59448e; }
body.admin-view #account-mode-controls .account-mode-actions > :is(button, a):hover { background: #eae5f5; }
.user-menu-button-label { display: none; }
body.admin-view .account-mode-actions .user-menu-button-label { display: inline; }
body.admin-view .account-mode-actions .user-menu-trigger svg { display: none; }
body.admin-view #dashboard #account-mode-controls .user-menu-panel { position: absolute; top: auto; right: 0; bottom: calc(100% + 10px); width: 216px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 92px); overflow-y: auto; border-color: var(--admin-border); border-radius: 9px; background: var(--admin-surface); box-shadow: var(--admin-shadow); }
body.has-account-mode:not(.admin-view) { padding-bottom: 172px; }
@media (max-width: 760px) {
  #account-mode-controls { left: 10px; bottom: 10px; width: 190px; padding: 10px; }
}
