/* Tâche confiée à plusieurs personnes : sélecteur à cases à cocher, mode de validation, suivi individuel.
   Symbole + libellé pour chaque état (jamais la couleur seule). Couleurs de la charte, aucune nouvelle teinte. */

/* ---------- sélecteur de personnes ---------- */
.ap { display: grid; gap: 10px; }
.ap-quick { display: grid; gap: 8px; }
.ap-row { display: grid; gap: 4px; }
.ap-lbl { font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.ap .chips { margin-top: 0; }
.ap-chip { min-height: 36px; padding: 4px 12px; font-size: .92rem; }
.ap-chip.ap-all { justify-self: start; }
.ap-n { font-weight: 500; opacity: .75; }
.ap-more > summary { cursor: pointer; font-weight: 650; font-size: .92rem; color: var(--brand-strong); min-height: 36px; display: flex; align-items: center; }
.ap-more[open] > summary { margin-bottom: 6px; }
.ap-search { width: 100%; }
.ap-list { display: grid; gap: 0; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 2px 10px; }
.ap-item { border-bottom: 1px solid var(--line); min-height: 44px; }
.ap-item:last-child { border-bottom: 0; }
.ap-count { margin: 0; font-size: .88rem; color: var(--muted); }
.ap-field { grid-column: 1 / -1; }
.mode-field { display: grid; gap: 2px; margin-top: 6px; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; }
.mode-field .check { min-height: 40px; }

/* ---------- pastilles d'état d'une personne ---------- */
.gm-summary { display: grid; gap: 4px; min-width: 0; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.gm { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.gm-done { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.gm-doing { background: var(--k-rest-bg); color: var(--st-doing); border-color: color-mix(in srgb, var(--st-doing) 25%, transparent); }
.gm-skipped { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.gm-more { color: var(--muted); }

/* ---------- suivi individuel ---------- */
.gm-block { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.gm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gm-block p { margin: 0; }
.gm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.gm-item { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(0, 1.5fr) auto; align-items: center; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.gm-item:first-child { border-top: 0; }
.gm-who { font-weight: 700; overflow-wrap: anywhere; }
.gm-state { font-size: .92rem; }
.gm-item.gm-done .gm-state { color: var(--ok); font-weight: 650; }
.gm-item.gm-skipped .gm-state { color: var(--warn); font-weight: 650; }
.gm-item.gm-doing .gm-state { color: var(--st-doing); font-weight: 650; }
.gm-item.gm-done, .gm-item.gm-doing, .gm-item.gm-skipped { background: none; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; padding-inline: 0; }
.gm-btn { white-space: nowrap; }
@media (max-width: 560px) {
  .gm-item { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .gm-btn { justify-self: start; margin-top: 4px; }
}
