.team-main { max-width: 1100px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.team-section { margin-bottom: 16px; }
.team-main .team-section p { color: var(--sub-muted); margin: 8px 0 16px; }
.team-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-form { display: grid; gap: 8px; margin-block: 12px; }
.team-form .sub-button { justify-self: start; }
.team-form label, .team-invite label { font-weight: 650; }
.team-form :is(input:not([type=hidden]), select), .team-invite input {
    width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px;
    background: var(--sub-surface); border: 1px solid var(--sub-border); border-radius: 10px;
    color: var(--sub-ink); font: inherit;
}
.team-form :is(input, select):focus-visible, .team-invite input:focus-visible { outline: 2px solid var(--sub-accent); outline-offset: 2px; }
.team-form--pair { grid-template-columns: minmax(0, 1fr) max-content; }
.team-form--pair label { grid-column: 1 / -1; }
.team-main .team-invite { display: grid; gap: 8px; }
.team-invite button { justify-self: start; }
.team-invite button[hidden] { display: none; }
.team-rows { list-style: none; padding: 0; }
.team-rows li {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 12px 0; gap: 10px 24px; border-bottom: 1px solid var(--sub-border);
}
.team-rows li > div { min-width: 0; overflow-wrap: anywhere; }
.team-rows small { display: block; color: var(--sub-muted); }
.team-main .team-empty { margin-bottom: 0; }
@media (max-width: 520px) {
    .team-form--pair { grid-template-columns: 1fr; }
}
