/* REQ-216.1.6, 216.10.3: the ⋯ menu (actionMenuView.js): a popover under its
   button on desktop, a bottom sheet on a phone (216.6.2). Items are 44 px;
   a destructive one is red, last, and asks first. Tokens only. */
.am { position: relative; display: inline-flex; }
.am-btn { min-width: 44px; min-height: 44px; font-size: 20px; line-height: 1; }
.am-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; max-width: min(320px, calc(100vw - 32px)); padding: 6px; display: grid; gap: 2px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); }
.am-menu[hidden] { display: none; }
.am-item { min-height: 44px; padding: 10px 12px; text-align: left; font: inherit; font-size: 15px; color: var(--ink); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.am-item:hover, .am-item:focus-visible { background: var(--sunken); outline: none; }
.am-item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.am-item.danger { color: var(--blocked); font-weight: 600; }
.am-item.danger::before { content: "⚠ "; }
.am-confirm { display: grid; gap: 2px; }
.am-confirm[hidden] { display: none; }
.am-confirm p { margin: 4px 12px 8px; font-size: 14px; color: var(--mute); }
@media (max-width: 600px) {
  .am.open::before { content: ""; position: fixed; inset: 0; z-index: 39; background: var(--scrim); }
  .am-menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; max-width: none; border-radius: 16px 16px 0 0; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
}

.am-hint { display: block; font-size: 12px; font-weight: 400; color: var(--mute); }
.am-item.danger .am-hint { color: inherit; opacity: .8; }
.am-item[aria-disabled="true"] { color: var(--mute); cursor: default; }
.am-item[aria-disabled="true"]:hover { background: none; }
.am[hidden] { display: none; }   /* nothing to show: no ⋯ (216.10.3) */
