.team-main-card {
  padding: clamp(1rem, 2.6vw, 1.45rem);
  background:
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.5), transparent 30%),
    radial-gradient(circle at bottom left, rgba(254, 243, 199, 0.42), transparent 28%),
    rgba(255, 255, 255, 0.96);
}

.team-input-field {
  display: grid;
  gap: 0.45rem;
}

.team-input-field textarea {
  width: 100%;
  min-height: 20rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.92);
  color: var(--text);
  padding: 1rem 1.05rem;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.team-input-field textarea:focus {
  outline: none;
  border-color: rgba(29, 78, 216, 0.42);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.team-input-field textarea.is-invalid,
.team-settings input.is-invalid {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
  background: rgba(255, 251, 235, 0.98);
}

.team-settings {
  margin-top: 1rem;
  padding: 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(255, 255, 255, 0.9);
}

.team-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.team-results-grid {
  display: grid;
  gap: 0.9rem;
}

.team-result-card {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background:
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.34), transparent 28%),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.team-result-card h4 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.team-member-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.42rem;
  color: var(--text);
}

.team-member-list li {
  word-break: break-word;
}

.team-generator-seo h2 {
  margin: 2rem 0 0.7rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.team-generator-seo h2:first-of-type {
  margin-top: 1.1rem;
}

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

  .team-input-field textarea {
    min-height: 16rem;
  }
}
