/* Team: who has an account, and what each of them can reach. Four separate
   permissions that happen to be about the same person, kept visually apart
   so that nobody grants one meaning to reach another. */

.team-status { margin-bottom: 18px; }

.team-add { margin-bottom: 20px; }
.team-add h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.team-member { margin-bottom: 16px; }

.team-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}
.team-name {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 16px;
}
.team-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85rem;
  min-width: 0;
}
.team-field > span { color: var(--muted); }
.team-field input,
.team-field select {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
.team-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  align-self: end;
  padding-bottom: 8px;
}
.team-check > span { color: var(--ink); }
.team-check input { flex: none; }

.team-aliases { margin-top: 14px; }
.team-aliases .tag { margin-right: 4px; }
.team-aliases .tag .linkish {
  margin-left: 4px;
  color: var(--muted);
}
.team-alias-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.team-alias-form input {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  flex: 1 1 220px;
  min-width: 0;
}

.team-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.team-foot .btn-primary { margin-left: auto; }
.team-saved:empty { display: none; }

@media (max-width: 560px) {
  .team-foot .btn-primary { margin-left: 0; }
}
