.team-page .history-wrap { max-width: 1040px; }
.team-explainer { border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; padding: 20px 24px; margin: 14px 0 28px; font-size: .9rem; }
.team-explainer p { color: var(--muted); line-height: 1.6; margin: 8px 0; }
.team-explainer a, .team-card a { color: var(--link); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 60px; }
.team-card { padding: 26px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; min-width: 0; }
.team-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.team-card h2 { text-align: left; font-size: 1.2rem; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.team-card p { font-size: .87rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.team-card fieldset { border: 0; padding: 0; margin: 22px 0; min-width: 0; }
.team-card legend { font-size: .88rem; font-weight: 600; padding: 0; margin-bottom: 10px; }
.team-channel { display: flex; align-items: center; gap: 12px; cursor: pointer; border: 1px solid var(--rule); border-radius: 8px; padding: 12px; margin: 8px 0; font-size: .85rem; overflow-wrap: anywhere; }
.team-channel input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--brand); }
.team-channel small { display: block; color: var(--muted); margin-top: 3px; }
.team-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.team-actions button { font: inherit; font-size: .85rem; }
.team-card .team-local-status { margin-bottom: 0; min-height: 1.5em; }
.team-state { flex-shrink: 0; font: 700 .68rem var(--mono); padding: 5px 9px; border-radius: 20px; color: var(--muted); background: var(--surface-alt); }
.team-state.pending { color: var(--link); background: var(--brand-soft); }
.team-state.ready { color: #19803a; background: rgba(47,179,87,.13); }
.team-state.accepted { color: #a65b00; background: rgba(229,147,18,.14); }
.team-card button:disabled, #team-refresh:disabled { opacity: .55; cursor: wait; }
.team-page .history-empty { grid-column: 1 / -1; }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } .team-card { padding: 20px; } .team-explainer { padding: 18px; } .team-page .history-header { align-items: start; flex-direction: column; } }
