/* Daily Life Doc, round 39 (zone P3; docs/build/r39/PLAN-2.md changes 1 to 3): Settings → Permissions with who
   (js/settings/settings-actions.js, js/settings/settings-who.js). Tell is sage beside Yes green, Ask amber, No red;
   who is a line of small chips under a row at Tell or Ask (the chosen people sage, the admins by default greyed);
   Crisis shows a fixed Tell; the expert's own rows have the name in a tinted borderless field and a remove button. */
.sa-seg button.tell[aria-pressed="true"] { background: var(--app); color: var(--sage-d); }
.sa-fixed { justify-self: end; padding: 6px 10px; border-radius: 8px; background: var(--app); color: var(--sage-d); font-size: var(--t-xs); font-weight: 600; }
.sa-who { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.sa-who.in { animation: sa-in var(--m-add) var(--ease-out); }
@keyframes sa-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sa-chip { min-height: 28px; padding: 0 10px; border: 1px solid var(--cardline); border-radius: 14px; background: transparent; color: var(--ink3); font-size: var(--t-xs); font-weight: 600;
  transition: background-color var(--m-press) ease, color var(--m-press) ease, border-color var(--m-press) ease, transform var(--m-press) var(--ease-out); }
.sa-chip:active { transform: scale(0.96); }
.sa-chip.on { border-color: var(--sage); background: var(--app); color: var(--sage-d); }
/* The admins when nobody is picked: on, but greyed (the default). */
.sa-chip.on.def { border-style: dashed; border-color: var(--ink3); background: var(--field); color: var(--ink2); }
.sa-chip[aria-disabled="true"] { cursor: default; }
.sa-chip[aria-disabled="true"]:active { transform: none; }
.sa-end { display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
.sa-name { width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--field); color: var(--ink); font: inherit; font-size: var(--t-s); font-weight: 600; }
.sa-name:focus { outline: 2px solid var(--sage); outline-offset: 0; }
.sa-rm { width: 30px; height: 30px; color: var(--ink3); }
.sa-rm svg { width: 16px; height: 16px; }
.sa-owns { margin-top: 8px; border-top: 1px solid var(--cardline); }
.sa-add { margin-top: 10px; }
@media (max-width: 400px) {
  .sa-row { grid-template-columns: minmax(0, 1fr); }
  .sa-row > .sa-seg, .sa-end { justify-self: start; }
  .sa-row > .sa-t, .sa-row > .sa-fixed { grid-row: 1; grid-column: 1; }
  .sa-row > .sa-fixed { justify-self: end; }
}
