/* Settings tab tweaks */
.team-settings .ts-preview {
  display: block;
  width: fit-content;
  border: 1px dashed var(--ink-border-muted, rgba(255, 255, 255, 0.15));
  padding: 8px;
  border-radius: 12px;
  max-width: 100%;
  /* margin-bottom: 3px; */
}

.team-settings label[for="id_logo"],
.team-settings label[for="id_banner"] {
  display: block;
  margin-bottom: 8px;
  text-align: left;
}

.team-settings .ts-preview img {
  display: block;
  max-height: 120px;
  /* keep small */
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.team-settings .ts-preview--wide img {
  max-height: 120px;
  /* banner preview also small */
  width: auto;
  object-fit: cover;
}

/* make sure checkboxes look right inside dark theme */
.team-settings .form-check-input {
  cursor: pointer;
}

.team-settings .form-check-label {
  cursor: pointer;
}

.form-text {
  color: #ffdf0d56;
}



.team-settings-member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, 193px);
  justify-content: center;
  gap: 16px;
}

.team-settings-member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 310px;
  padding: 16px;
  /* border: 1px solid var(--ink-border-muted, rgba(255, 255, 255, 0.14)); */
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.team-settings-card-avatar {
  width: 132px;
  height: 132px;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 223, 13, 0.45);
  background: rgba(0, 0, 0, 0.25);
}

.team-settings-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-settings-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
}

.team-settings-card-name {
  max-width: 100%;
  min-height: 28px;
  color: var(--ink-text, #fff);
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.team-settings-card-role-form,
.team-settings-card-remove-form {
  width: 100%;
}

.team-settings-card-role-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.team-settings-card-remove-form {
  margin-top: 8px;
}

.team-settings-card-role-select {
  width: 100%;
  min-height: 42px;
  text-align: center;
}

.team-settings-card-button {
  width: 100%;
  min-height: 36px;
  font-weight: 700;
}

/* .team-settings-roster-card {
  width: 100%;
  max-width: 1132px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 10px;
  background: rgba(6, 6, 8, 0.9);
} */

@media (max-width: 576px) {
  .team-settings-member-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .team-settings-member-card {
    min-height: 280px;
    padding: 12px;
  }

  .team-settings-card-avatar {
    width: 112px;
    height: 112px;
  }
}