/* r7: project members sheet (add people by Google email, guests, pending invites) and the access-denied page.
   HIG tokens only (hig.css / theme.css); light and dark come from the theme variables. Nothing here may be wider than
   the screen at 320-393px (r4.1: no sideways scroll). */

/* add row: email box and role side by side on desktop, stacked on a phone */
.mem-add-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; align-items: start; }
.mem-add-row .field { min-width: 0; }
.mem-add-row #share-emails, .mem-role select.input { height: var(--tap); min-height: var(--tap); width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .mem-add-row { grid-template-columns: minmax(0, 1fr); } }

/* member and invite rows: avatar | who (name, email, note) | badges + Remove. The who column shrinks and wraps the
   email anywhere; the badges never push the row wider than the sheet. */
.member { min-width: 0; }
.member .mem-who { min-width: 0; }
.member .mem-name { font: var(--fw-medium) var(--fs-subhead, 15px)/1.35 var(--font-ui); color: var(--text); overflow-wrap: anywhere; }
.member .mem-note { font: var(--fs-footnote, 13px)/1.35 var(--font-ui); color: var(--text-3); margin-top: 2px; overflow-wrap: anywhere; }
.mem-badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; flex: none; }
.member.pending .avatar { background: transparent; border: 1px dashed var(--hairline, var(--line)); color: var(--text-3); }
.badge.guest { color: var(--text); background: var(--soft, transparent); }
/* Remove / Cancel (Kirby): 32px secondary buttons, 15px medium, 12px sides, on the role pills' line. The tap area
   still reaches 44px, so a thumb on a phone hits it: an invisible 7px above and below the 30px padding box (r7 P3-34,
   Hawkeye: the ::after is placed from inside the 1px border, so 6px only made 42px). */
.mem-badges .btn.mem-act { position: relative; height: 32px; min-height: 32px; padding: 0 12px; font-size: 15px; font-weight: 500; line-height: 1; }
.mem-badges .btn.mem-act::after { content: ''; position: absolute; left: 0; right: 0; top: -7px; bottom: -7px; }
@media (max-width: 600px) {
  .member { align-items: flex-start; flex-wrap: wrap; row-gap: 8px; }
  .member .mem-who { flex: 1 1 0; }
  /* badges and the Remove button go to a second line, lined up with the text (avatar 36px + 10px gap) */
  .mem-badges { flex: 1 0 100%; max-width: none; justify-content: flex-start; padding-left: 46px; }
}

/* access denied */
.login-card.noaccess { gap: 14px; }
.login-card.noaccess p { margin: 0; }
.login-card.noaccess .na-email { color: var(--text); font-weight: var(--fw-semibold, 600); overflow-wrap: anywhere; }
.login-card.noaccess .btn.block + .btn.block { margin-top: -4px; }
