/* The Album captions picker (app-review-caption-pick.js, macros.html caption_pick): a button with the chosen label and its
   count pill, and the five options under it, rows 44 px tall for a finger, each with a right-aligned pill. Every flex child
   that holds words has min-width: 0 and an ellipsis, so a long translation never pushes the pill or the page past 320 px. */

.cap-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.cap-pick[hidden], .cap-pick-list[hidden], .cap-pill[hidden], .cap-pick-button[hidden], .cap-opt[hidden], .cap-pick select[hidden] { display: none; }
.cap-pick-label { font-size: .85rem; color: var(--muted, inherit); min-width: 0; overflow-wrap: anywhere; }

.cap-pick-button, .cap-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; box-sizing: border-box;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2, var(--surface)); color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.cap-pick-button[aria-expanded="true"] { border-color: var(--gold); }
.cap-pick-button .select-chevron { width: 12px; height: 12px; flex: none; transition: transform .15s ease; }
.cap-pick-button[aria-expanded="true"] .select-chevron { transform: rotate(180deg); }   /* an open list points up: two states, two shapes */
.cap-pick-name, .cap-opt-name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The pill sits at the end of the row, whatever the language's direction. */
.cap-pill { flex: none; min-width: 2.2em; padding: 2px 9px; border-radius: 999px; background: rgba(240, 177, 85, .16); color: var(--gold);
  font-size: .85rem; font-variant-numeric: tabular-nums; text-align: center; }
.cap-pill.is-unknown { background: transparent; color: var(--muted, inherit); }

.cap-pick-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 4px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.cap-opt { border: 0; background: none; border-radius: 8px; }
.cap-opt[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--gold); }
.cap-opt:focus-visible, .cap-pick-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) { .cap-opt:hover { background: var(--surface-2); } }
