/* ---------------------------------------------------------------------------
   The Markets page's row actions menu (js/pm-actions.js, Phase 6). It is
   fixed to the window in <body>, above the table, so a scrolling table never
   clips it. Colours are the tokens only, so it follows the light and dark
   themes.
   --------------------------------------------------------------------------- */
.pm-actions-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  min-width: 200px;
  max-width: calc(100vw - 16px);
  padding: var(--space-1) 0;
  background: var(--color-surface-raised);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-bg) 60%, transparent);
  font-size: 0.85rem;
}

.pm-actions-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 32px;
  padding: 0 var(--space-3);
  font: inherit;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.pm-actions-item:hover,
.pm-actions-item:focus-visible {
  background: color-mix(in srgb, var(--color-accent) 16%, transparent);
  outline: none;
}

.pm-actions-item:focus-visible {
  box-shadow: inset 2px 0 0 var(--color-accent);
}

.pm-actions-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-actions-kbd {
  flex: none;
  padding: 0 var(--space-1);
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* Phones: bigger targets. */
@media (max-width: 640px) {
  .pm-actions-item { min-height: 44px; }
}
