/* ── Team ───────────────────────────────────────────────── */

/* .input and .select are width:100% by default, which makes them consume a
   whole flex row. Inside these rows they size to content instead. */
.invite-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input.invite-row-input, .invite-row input.input { flex: 1 1 220px; width: auto; min-width: 0; }
.invite-row .btn { flex: none; }
/* `select.` rather than `.role-select` alone: the generic `.select { width:100% }`
   is declared later in dashboard.css and would otherwise win at equal specificity. */
select.role-select { width: auto; min-width: 132px; flex: none; }

.member-list { display: flex; flex-direction: column; gap: 2px; }

.member-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.member-row:last-child { border-bottom: none; }
.member-row.is-pending { opacity: 0.72; }

.member-avatar {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  flex: none;
}

.member-avatar.is-pending { background: var(--surface-hi); color: var(--subtle); }
.member-avatar svg { width: 14px; height: 14px; }

.member-main { flex: 1; min-width: 0; }
.member-name { font-size: 14.5px; font-weight: 500; }
.member-meta { font-size: 12.5px; color: var(--subtle); }

.invite-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ── Groups ─────────────────────────────────────────────── */

.group-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.group-head { display: flex; align-items: center; gap: 10px; }
.group-name { font-size: 14px; font-weight: 500; flex: 1; }
.group-name.is-fixed { color: var(--muted); }
.group-name-input { flex: 1; padding: 8px 12px; font-size: 14px; }

.source-groups { display: inline-flex; gap: 4px; flex-wrap: wrap; flex: none; }

.group-chip {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--subtle);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s var(--ease);
}

.group-chip:hover { color: var(--text); border-color: var(--line-hi); }
.group-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
