/* Team randomizer - names textarea + split controls, then a grid of team cards.
   Reuses base .field / .btn / .seg; colors come from theme tokens only. */

.team-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
@media (max-width: 640px) { .team-form { grid-template-columns: 1fr; } }

.team-names-field { display: flex; flex-direction: column; gap: 6px; }
.team-field-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.team-names { width: 100%; box-sizing: border-box; resize: vertical; line-height: 1.5; }

.team-controls { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.team-field { display: flex; flex-direction: column; gap: 6px; }

.team-stepper { display: flex; align-items: stretch; gap: 8px; }
.team-step {
    width: 40px; font: inherit; font-size: 18px; cursor: pointer;
    border: 1px solid var(--border-strong); border-radius: 8px;
    background: var(--surface); color: var(--text);
    transition: border-color .15s, color .15s;
}
.team-step:hover { border-color: var(--accent); color: var(--accent-strong); }
.team-amount { width: 80px; text-align: center; font-variant-numeric: tabular-nums; }

.team-shuffle { margin-top: 4px; }

.team-error { margin: 0 0 16px; }

.team-output {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px; margin-bottom: 8px;
}
.team-output:empty { display: none; }

.team-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 16px;
}
.team-card-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.team-card-title { font-weight: 700; color: var(--accent-strong); }
.team-card-count { font-size: 13px; color: var(--muted); }
.team-card-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.team-card-list li { color: var(--text); }

.team-copy { margin-top: 12px; }
