/* Shared action menus; bus pages retain their content-aligned toolbar. */
html .bdx-page-toolbar { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; box-sizing: border-box; width: 100%; min-height: 44px; }
html .bdx-page-toolbar.bdx-page-toolbar { margin: calc(-1 * var(--space-1)) 0 var(--space-3); padding-top: env(safe-area-inset-top, 0px); }
.bdx-action-menu { position: relative; display: flex; flex: 0 0 44px; width: 44px; justify-self: end; margin-left: auto; z-index: 900; }
html .bdx-button.bdx-action-menu__toggle { position: relative; transition: none; }
.bdx-action-menu__toggle svg { width: 22px; height: 22px; stroke-width: 2.25; }
.bdx-action-menu__toggle svg[data-lucide="menu"] path {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform var(--motion-feedback) var(--ease-ui);
    vector-effect: non-scaling-stroke;
}
/* Move the outer bars to the arrowhead and rotate the middle bar into its stem. */
.bdx-action-menu__toggle[aria-expanded="true"] .bdx-menu-line--top { transform: translate(-3px, 11px) rotate(45deg) scaleX(.53); }
.bdx-action-menu__toggle[aria-expanded="true"] .bdx-menu-line--middle { transform: rotate(90deg); }
.bdx-action-menu__toggle[aria-expanded="true"] .bdx-menu-line--bottom { transform: translate(3px, -1px) rotate(-45deg) scaleX(.53); }
@media (prefers-reduced-motion: reduce) {
    .bdx-action-menu__toggle svg[data-lucide="menu"] path { transition: none; }
}
html .bdx-action-menu__panel { width: max-content; }
.bdx-action-menu__status[hidden], .achievement-alert-ping[hidden] { display: none; }
.bdx-action-menu__panel form { margin: 0; }
html .bdx-action-menu__panel .bdx-action-menu__item--remove svg { color: var(--action-danger); }
html .bdx-action-menu__panel .bdx-action-menu__item--add svg { color: var(--text-success); }
html .bdx-action-menu__panel .is-fav svg { color: #f5b301; }
html .bdx-action-menu__panel .is-disabled { color: var(--text-muted); }
html .bdx-action-menu__panel .is-disabled svg { color: inherit; }
:is(.bdx-action-menu, .bdx-action-menu__panel) .achievement-alert-ping { flex: 0 0 10px; width: 10px; height: 10px; margin-left: auto; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; background: var(--dex-red); }
.bdx-action-menu__toggle .achievement-alert-ping { position: absolute; top: 3px; right: 3px; }
.bdx-action-menu__status { position: absolute; top: calc(100% + 8px); right: 0; width: max-content; max-width: calc(100vw - 32px); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: #fff; color: var(--text-strong); box-shadow: var(--shadow-card); font-size: var(--text-sm); }

/* Home and profile actions belong inside the identity card. */
.home-hero__actions { position: absolute; top: 18px; right: 18px; display: flex; margin: 0; }
.home-hero:has(.home-hero__actions) { z-index: 2; }
.home-hero:has(.home-hero__actions) .home-hero__id { padding-right: 56px; box-sizing: border-box; }
.home-hero .home-hero__name { min-width: 0; max-width: 100%; }
.home-hero--private { position: relative; display: flow-root; }
.home-hero--private > .bdx-action-menu { position: absolute; top: 18px; right: 18px; }
#home-recap-toggle[hidden] { display:none !important; }
