.team-dialog { width: min(760px,calc(100% - 32px)); }
.team-shell { padding: 32px; }
.team-body { display: grid; gap: 28px; }
.team-list h3 { margin: 0 0 12px; font-size: 16px; }
.team-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.team-person { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.team-person small { color: var(--muted); font-size: 12px; }
.team-row > .button { flex-shrink: 0; }
.team-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.team-invite { border: 1px solid var(--line); border-radius: 8px; padding: 0 20px; }
.team-invite > summary { min-height: 48px; padding-block: 14px; cursor: pointer; }
.team-invite-form { padding-block: 16px 20px; }
.team-object-choices { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.team-object-choices legend { padding: 0 0 12px; font-size: 13px; color: var(--muted-strong); }
.team-object-choices label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; }
.team-object-choices input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.team-object-choices span { overflow-wrap: anywhere; }
.team-invite-result:not(:empty) { display: grid; gap: 12px; margin-top: 20px; }
.team-invite-result input { width: 100%; min-width: 0; padding: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 4px; color: var(--muted-strong); }
@media(max-width:560px) {
  .team-shell { padding: 22px 18px; }
  .team-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .team-invite { padding-inline: 14px; }
}
