/* iOS-style context menu: frosted panel, 14px corners, grouped rows with hairline separators, red destructive rows. */
.ctx-menu {
  position: fixed; z-index: 100000; min-width: 224px; max-width: 320px; padding: 6px;
  border-radius: 14px; background: rgba(250, 250, 252, .78);
  -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
  box-shadow: 0 0 0 .5px rgba(20, 20, 24, .16), 0 12px 40px rgba(20, 20, 24, .22), 0 2px 6px rgba(20, 20, 24, .08);
  font: 400 15px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; color: #111114; letter-spacing: -.01em;
  opacity: 0; transform: scale(.96); transition: opacity .12s ease-out, transform .14s cubic-bezier(.2, .9, .3, 1.2); outline: none; user-select: none;
}
.ctx-menu.in { opacity: 1; transform: scale(1); }
.ctx-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: default; }
.ctx-item:hover:not(:disabled), .ctx-item:focus-visible { background: rgba(20, 20, 24, .08); outline: none; }
.ctx-item:active:not(:disabled) { background: rgba(20, 20, 24, .14); }
.ctx-item:disabled { color: rgba(20, 20, 24, .32); }
.ctx-item.danger { color: #e5372b; }
.ctx-ic { flex: none; width: 18px; height: 18px; display: grid; place-items: center; order: 2; margin-left: auto; color: rgba(20, 20, 24, .55); }
.ctx-item.danger .ctx-ic { color: #e5372b; }
.ctx-ic svg { width: 18px; height: 18px; }
.ctx-lb { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-hint { order: 1; font-size: 13px; color: rgba(20, 20, 24, .45); }
.ctx-sep { height: 1px; margin: 5px 10px; background: rgba(20, 20, 24, .1); }
.ctx-title { padding: 8px 12px 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: rgba(20, 20, 24, .5); }
@media (prefers-color-scheme: dark) { body:not(.fx) .ctx-menu { background: rgba(40, 40, 44, .78); color: #f4f4f6; } }
@media (prefers-reduced-motion: reduce) { .ctx-menu { transition: none; } }
