/* The "choose as many people as you want" picker (multi-assign-ui.js). Uses the theme colours of styles.css, so light and dark follow by themselves. */
.ma-picker { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ma-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ma-empty { color: var(--muted); font-size: .85rem; padding: 0 6px; }
.ma-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 4px 3px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .85rem; font-weight: 600; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.ma-chip-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--primary, var(--accent)); color: var(--accent-contrast, #fff); font-size: .72rem; font-weight: 800; }
.ma-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.ma-chip-x { appearance: none; border: 0; background: transparent; color: var(--muted); font-size: 1.05rem; line-height: 1; width: 22px; height: 22px; border-radius: 999px; cursor: pointer; padding: 0; }
.ma-chip-x:hover { background: var(--surface-2); color: var(--ink); }
.ma-search-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ma-search { flex: 1 1 160px; min-width: 0; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; }
.ma-link { white-space: nowrap; }
.ma-list { max-height: 232px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ma-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; cursor: pointer; border-bottom: 1px solid var(--line); color: var(--ink); }
.ma-row:last-of-type { border-bottom: 0; }
.ma-row[hidden], .ma-none[hidden] { display: none; }
.ma-row:hover { background: var(--surface-2); }
.ma-row.on { background: var(--surface-2); }
.ma-row input { width: 18px; height: 18px; flex: none; accent-color: var(--primary, var(--accent)); margin: 0; }
.ma-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.ma-role { color: var(--muted); font-size: .75rem; flex: none; }
.ma-none { padding: 12px; color: var(--muted); font-size: .88rem; }
.ma-count { color: var(--muted); font-size: .8rem; }
.ma-help { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: .82rem; line-height: 1.45; }
.ma-names { font-weight: 600; overflow-wrap: anywhere; }
.ma-edit-box { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.ma-edit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ma-rule-people { overflow-wrap: anywhere; text-align: right; max-width: 55%; }
@media (max-width: 520px) {
  .ma-chip-name { max-width: 130px; }
  .ma-rule-row { flex-wrap: wrap; }
  .ma-rule-people { max-width: 100%; text-align: left; flex-basis: 100%; order: 3; }
}
