/* A single quiet rail entry; actions live in the native top-layer popover. */
#account-menu-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; padding: 7px 10px; min-height: 44px; border: 0; border-radius: 10px; color: var(--accent); background: transparent; box-shadow: none; font: 500 13px/1.4 var(--ui-font, sans-serif); }
#account-menu-toggle:hover, #account-menu-toggle[aria-expanded="true"] { background: #eae7df; transform: none; }
.account-avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: #e4e8e5; }
.account-avatar svg { width: 19px; height: 19px; }
.account-entry-label { white-space: nowrap; }
#account-menu { position: fixed; inset: auto; width: 240px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 8px 32px #302b2024, 0 2px 6px #302b200a; }
#account-menu:popover-open { animation: account-menu-in 140ms ease-out; }
.account-menu-heading { display: flex; align-items: center; gap: 10px; padding: 10px 8px 14px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
#account-menu a.account-menu-heading { color: var(--ink); text-decoration: none; border-radius: 7px 7px 0 0; }
#account-menu a.account-menu-heading:hover { background: var(--surface-muted); }
.account-menu-heading > span:last-child { min-width: 0; }
.account-menu-heading strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 600; line-height: 1.5; }
.account-menu-heading small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--muted); }
#account-menu .account-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; margin: 0; padding: 9px 10px; border: 0; border-radius: 7px; box-shadow: none; text-decoration: none; background: transparent; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; text-align: left; }
#account-menu .account-menu-item svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--muted); }
#account-menu .account-menu-item:hover { background: #eeebe3; transform: none; }
.account-menu-signout { margin: 5px 0 0; padding-top: 5px; border-top: 1px solid var(--line); }
#account-menu-toggle:focus-visible, #account-menu .account-menu-item:focus-visible, #account-menu a.account-menu-heading:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width:1200px) {
  #account-menu-toggle { width: 100%; flex-direction: column; gap: 5px; padding: 8px 0; }
  .account-entry-label { font-size: 12px; }
}
@media (max-width:1199px) {
  #account-menu-toggle { margin-left: auto; }
  .account-entry-label { display: none; }
}
@media (max-width:700px) {
  .product-bar.has-account-menu .product-navigation { order: 2; }
  #account-menu-toggle { order: 1; }
}
@keyframes account-menu-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion:reduce) { #account-menu:popover-open { animation: none; } }

#account-menu { box-shadow: var(--popover-shadow); }
#account-menu .account-menu-tools { padding-block: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
#account-menu .account-menu-tools:only-of-type:last-child { border: 0; margin: 0; }
#account-menu .account-menu-tools button { position: static; inset: auto; transform: none; writing-mode: horizontal-tb; }
#account-menu .account-menu-item .shell-icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor; mask: var(--shell-icon) center / contain no-repeat; }
#account-menu .account-menu-item:hover { background: var(--surface-muted); }

#account-menu-toggle .account-entry-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
