/* Verse-selection toolbar (TOT website): each optional action is shown in exactly one place — on the bar when it
   fits (dock class show-<key>, set by lib/selection-toolbar-fit.ts from the real width), otherwise under More. */
.selection-controls > button { flex-shrink: 0; white-space: nowrap; }
.selection-controls [data-sel] { display: none; }
.selection-dock.show-note .selection-controls [data-sel="note"],
.selection-dock.show-listen .selection-controls [data-sel="listen"],
.selection-dock.show-bookmark .selection-controls [data-sel="bookmark"],
.selection-dock.show-copy .selection-controls [data-sel="copy"],
.selection-dock.show-share .selection-controls [data-sel="share"] { display: inline-flex; align-items: center; }
.selection-dock.show-note .selection-popover [data-sel="note"],
.selection-dock.show-listen .selection-popover [data-sel="listen"],
.selection-dock.show-bookmark .selection-popover [data-sel="bookmark"],
.selection-dock.show-copy .selection-popover [data-sel="copy"],
.selection-dock.show-share .selection-popover [data-sel="share"] { display: none; }
/* keep popovers inside the viewport on narrow screens */
@media (max-width: 899px) { .selection-popover { right: 0; left: auto; max-width: calc(100vw - 24px); } }
