#pokemon-team-page .card {
  border-color: #dbe4f0;
}

#pokemon-team-page .type-badge {
  margin-right: 4px;
}

#pokemon-team-page .form-label.small {
  margin-bottom: 0.25rem;
}

#pokemon-team-page textarea.form-control {
  min-height: 96px;
}

.team-member-preview {
  width: 100%;
  min-height: 160px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.team-member-preview img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.team-member-preview-placeholder {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(207, 221, 239, 0.6), rgba(234, 241, 251, 0.75));
}

.team-member-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.team-member-card-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.team-member-card-image-wrap {
  width: 96px;
  min-width: 96px;
  height: 72px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-member-card-image {
  max-width: 88px;
  max-height: 64px;
  object-fit: contain;
}

.team-member-card-image-placeholder {
  width: 88px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(207, 221, 239, 0.5), rgba(234, 241, 251, 0.7));
}

.team-ev-control .team-ev-btn-max,
.team-ev-control .team-ev-btn-min {
  min-height: 26px;
  min-width: 0;
  padding: 0.15rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: lowercase;
}

.teams-header-row {
  gap: 1rem;
}

.teams-header-main {
  min-width: 0;
  flex: 1 1 auto;
}

.teams-header-title-wrap {
  min-width: 0;
}

.teams-header-title {
  margin-bottom: 0.2rem;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.teams-header-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 2rem);
  line-height: 1.25;
  opacity: 0.95;
}

.teams-header-tools {
  flex: 0 0 auto;
  justify-content: flex-end;
}

@media (max-width: 1199px) {
  .teams-header-tools {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .teams-header-title {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .teams-header-subtitle {
    font-size: 1.05rem;
  }
}
