.team-page { min-height: 100vh; display: flex; flex-direction: column; background: #f3f6fa; }
.team-page main, .team-page footer { width: min(1120px, 100%); margin-inline: auto; }
.team-page main { flex: 1; padding: 30px 26px 48px; }
.team-page #back { font-size: 14px; font-weight: 650; }
.team-page h1 { margin: 16px 0 20px; }
.team-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); align-items: start; gap: 16px; }
.team-page .card { min-width: 0; padding: 20px; }
.team-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.team-page h2 { font-size: 20px; margin: 0; }
.team-hint, .team-entry p { color: var(--muted); font-size: 13px; }
.seat-count, .team-badge { display: inline-block; padding: 3px 9px; border-radius: 16px; font-size: 12px; font-weight: 750; }
.seat-count { background: #e8f0fe; color: #174a85; }
.team-badge.member { background: #e6f4eb; color: #215a3a; }
.team-badge.pending { background: #fff0d8; color: #704200; }
#team-list { list-style: none; margin: 12px 0 0; padding: 0; }
.team-entry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.team-entry:last-child { padding-bottom: 0; }
.team-identity { flex: 1 1 195px; min-width: 0; overflow-wrap: anywhere; }
.team-identity strong { margin-right: 8px; }
.team-entry p { margin: 3px 0 0; }
.team-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.team-actions:empty, .team-page #status:empty { display: none; }
.team-actions button { min-height: 34px; padding: 4px 8px; font-size: 13px; }
.team-invite label { margin-bottom: 10px; }
.team-invite button { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.invite-link { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
#accept { max-width: 560px; }
.team-page #status { margin: 0 0 14px; padding: 8px 12px; border-radius: 7px; background: #e8f0fe; color: #174a85; overflow-wrap: anywhere; }
.team-page footer { padding: 14px 26px; border-top: 1px solid var(--line); }
@media (max-width: 790px) { .team-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 450px) { .team-page main { padding-inline: 15px; } .team-page .card { padding: 14px; } }
