/* Keep-together and keep-apart rows inside a tool's More options (Batch 1 shared piece, 24 Oct 2026). Moved here
   unchanged from Random Group Generator (#003) for Sports Team Picker (#025). The site's own .rule-row style (Seating
   Planner) is left as it is; these rules apply only to rows marked .rule-rows--panel.
   The rows sit on the More options panel, so they're white to read as rows; remove stays top right however the row
   wraps. Colours come from the site's variables only. */
.rules-add { justify-self: start; margin-top: 8px; }
/* Containment (David's phone review of #025, 24 Oct 2026): on iPhone, Safari sizes a picker by its longest name, so
   the rows grew past the panel. The column is fixed to the panel's width and each pair splits it in two, whatever the
   names; on other browsers this looks exactly as before. */
.rule-rows--panel { grid-template-columns: minmax(0, 1fr); }
.rule-rows--panel .rule-row { min-width: 0; }
.rule-rows--panel .rule-row { position: relative; padding-right: 44px; background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.rule-rows--panel .rule-row .icon-btn--bare { position: absolute; top: 6px; right: 4px; margin: 0; }
.rule-rows--together .rule-row .pill { background: var(--mist); }
.rule-rows--apart .rule-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.rule-rows--apart .rule-row select.input { width: 100%; min-width: 0; max-width: none; }
/* A rule's "still needs…" line, inside the rule (only for tools that supply the words). */
.rule-rows--panel .rule-row__need { flex-basis: 100%; grid-column: 1 / -1; font-size: 13px; color: var(--slate); }
/* Pairs on two lines, for tools that ask for it: the first player across the row, then "and" and the second. */
.rule-rows--stack .rule-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; column-gap: 8px; }
.rule-rows--stack .rule-row select.input:first-child { grid-column: 1 / -1; }
.rule-rows--stack .rule-row > span:not(.rule-row__need) { font-size: 14px; color: var(--slate); }
.rule-rows--panel .rule-row .pill--gone { text-decoration: line-through; color: var(--steel); }
