/* Scope all rules to permanent Team dialog IDs. No privilege changes. */
#teamGate .team-card{width:680px;max-width:calc(100vw - 80px)}
#teamList>div{flex-wrap:wrap}
#teamList>div>div:first-child{flex:1 1 220px!important;min-width:180px!important}
#teamList>div>span{flex:0 0 auto}
#teamList>div>button.m-btn{width:auto;flex:0 0 auto;margin:0;padding:5px 12px;white-space:nowrap}
/* Team row actions precede role. Desktop only; scope to Team dialog. */
#teamList .team-remove{background:transparent;border:1px solid var(--border-strong);color:var(--text)}
#teamList .team-remove:hover{border-color:var(--accent);color:var(--accent)}
#teamList .team-member-role{white-space:nowrap}
#teamGate button:disabled{cursor:wait}
.team-confirm-layer .confirm-scrim{z-index:120}
