/* ==========================================================================
   team-generator.css — Team Generator specific styles.
   ========================================================================== */

.tg-field { margin-bottom: var(--sp-4); }
.tg-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
}
.tg-label span { font-size: var(--fs-sm); color: var(--on-surface-faint); font-weight: var(--fw-regular); }

.tg-names {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--on-surface);
  font-family: inherit;
  font-size: var(--fs-md);
  outline: none;
}
.tg-names:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Stepper */
.tg-stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: var(--sp-1) var(--sp-2);
}
.tg-stepper button {
  width: 40px; height: 40px;
  border: none;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--on-surface);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  cursor: pointer;
}
.tg-stepper button:active { transform: scale(0.9); }
.tg-stepper output { min-width: 28px; text-align: center; font-weight: var(--fw-bold); font-size: var(--fs-lg); }

.tg-mode { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4); }

/* Team result cards */
.tg-teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.tg-team {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  animation: view-in var(--dur-med) var(--ease-standard);
}
.tg-team__head {
  padding: var(--sp-3) var(--sp-4);
  font-weight: var(--fw-bold);
  color: var(--on-brand);
}
.tg-team__list { list-style: none; margin: 0; padding: var(--sp-2) var(--sp-3); display: flex; flex-direction: column; gap: 2px; }
.tg-team__list li { padding: var(--sp-2); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.tg-team__list li:nth-child(odd) { background: var(--surface-2); }
