.team-grid {
  display: grid;
  grid-template-columns: minmax(340px, .72fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.team-panel {
  padding: 20px;
}

.invite-form {
  display: grid;
  gap: 13px;
}

.invite-form label {
  color: #52647d;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.invite-form input,
.invite-form select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.team-list {
  display: grid;
  gap: 10px;
}

.team-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.team-row strong,
.team-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-row strong {
  color: var(--navy);
  font-size: 12px;
}

.team-row small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #315178;
  font-size: 10px;
  font-weight: 900;
  text-transform: capitalize;
  white-space: nowrap;
}

.role-chip.owner {
  background: #f1ebff;
  color: var(--purple);
}

.role-chip.buyer {
  background: #e7f7ed;
  color: var(--green);
}

.role-chip.operations {
  background: #eaf2ff;
  color: var(--blue);
}

.role-chip.finance {
  background: #fff4df;
  color: var(--amber);
}

.role-chip.read_only {
  background: #f0f3f8;
  color: #6d7d92;
}

@media(max-width:1050px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
