/* RowActions: a row's verbs on one line (17 Oct 2026, the polish round). The one or two the row's
   state calls for, then *More…*, which opens a short list under itself: since choices 3c-2 a popover
   in the browser's top layer, so no row, table or list that scrolls sideways clips it. */
.row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--space-3);
  white-space: nowrap;
}

.row-actions-summary {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-muted);
  font: inherit;
  font-size: var(--text-label);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  list-style: none;
}

.row-actions-summary:hover,
.row-actions-summary:has(+ .row-actions-menu:popover-open) {
  color: var(--color-ink);
}

.row-actions-summary:focus-visible {
  outline: var(--focus-width) solid var(--color-ink);
  outline-offset: var(--focus-offset);
}

/* The list: in the top layer, placed under *More…* and right-aligned to it from its box (or above it
   where the room below is short), on the surface with a hairline and the raised card's shadow, one
   verb a line. */
.row-actions-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  justify-items: start;
  gap: var(--space-2);
  min-width: max-content;
  padding: var(--space-3);
  border: var(--hairline) solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-raised);
}

/* Shown only while open: a `display` of its own would outrank the browser's hiding of a closed
   popover. */
.row-actions-menu:popover-open {
  display: grid;
}
