/* Approved roster component. Scoped foundations keep the library export portable. */
.roster-card{font-family:var(--font,system-ui,sans-serif);color:var(--text-primary);line-height:1.5}
.roster-card,.roster-card *,.roster-card *::before,.roster-card *::after{box-sizing:border-box}
.roster-card :is(h3,p){margin:0}.roster-card button{font:inherit;cursor:pointer}.roster-card button:disabled{cursor:not-allowed}
.roster-card .icon{flex:none;vertical-align:middle;width:20px;height:20px}
.roster-card .avatar{display:grid;place-items:center;flex:none;border-radius:50%;overflow:hidden}
.roster-card :is(.btn,.icon-btn){border:0;background:none;display:inline-flex;justify-content:center;align-items:center;gap:9px;white-space:nowrap;font-weight:550}
.roster-card .btn{border:1px solid transparent;border-radius:var(--radius-sm,9px);position:relative}
.roster-card .btn.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.roster-card .btn.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.roster-card .icon-btn{border-radius:var(--radius-sm,9px);color:var(--text-muted)}
.roster-card :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.roster-card [hidden]{display:none!important}
.roster-card{position:relative;isolation:isolate;overflow:hidden;max-width:410px;min-width:0;background:#141416;border:1px solid var(--border);border-radius:18px;box-shadow:0 2px 4px #0002,inset 0 1px 0 #ffffff04;transition:border-color 180ms,box-shadow 180ms}
.roster-card:hover,.roster-card:focus-within{border-color:var(--border-strong);box-shadow:0 9px 24px #0003,inset 0 1px 0 #ffffff06}
.roster-card-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 20px 0;font-size:11px}
.roster-active{display:flex;align-items:center;gap:7px;color:#75cca6}.roster-active i{width:5px;height:5px;border-radius:50%;background:#65c99b;box-shadow:0 0 0 3px #65c99b10}
.roster-private{display:flex;align-items:center;gap:5px;color:var(--text-muted)}.roster-private>.icon{width:12px;height:12px}
.roster-card-identity{display:flex;align-items:center;gap:13px;padding:22px 20px 20px;min-width:0}.roster-card-identity>.avatar{width:56px;height:56px;font-size:19px;border:3px solid #222226;box-shadow:0 0 0 1px var(--border)}
.roster-card-identity>div{min-width:0;flex:1}.roster-card-identity h3{font-size:18px;line-height:1.3;font-weight:600;letter-spacing:-.25px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.roster-card-identity p{font-size:11px;color:var(--text-muted);margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.roster-access{margin:0 20px;padding:13px 14px;background:#1c1c1f;border:1px solid var(--border);border-radius:11px;display:flex;align-items:center;gap:11px}.roster-access-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#65c99b0d;color:#75cca6}.roster-access-icon>.icon{width:17px;height:17px}.roster-access strong{display:block;font-size:12px;font-weight:550}.roster-access small{display:block;font-size:11px;color:var(--text-muted);margin-top:2px}
.roster-team{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px 20px 20px}.roster-team>div>span{font-size:10px;color:var(--text-muted);display:block}.roster-team strong{display:block;font-size:12px;font-weight:500;margin-top:4px;color:var(--text-secondary)}
.roster-team-faces{display:flex;align-items:center;padding-left:7px}.roster-team-faces>img,.roster-team-faces>.team-face{margin-left:-7px;width:29px;height:29px;object-fit:cover;border:3px solid #141416;border-radius:50%;display:grid;place-items:center;font-size:8px;font-weight:650}.team-alex{background:#c3cde1;color:#343e52}.team-sam{background:#dbc9e9;color:#54435f}
.roster-team-faces>.team-owner-icon{color:var(--text-muted);display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--border);border-radius:50%}.team-owner-icon>.icon{width:14px;height:14px}
.roster-card-footer{display:flex;gap:9px;align-items:center;padding:14px 17px;border-top:1px solid var(--border);background:#1a1a1d}.roster-card-footer>.btn{flex:1;min-width:0;min-height:44px;font-size:12px;justify-content:space-between;padding:10px 15px}.roster-card-footer>.btn>.icon{width:17px;height:17px;transition:transform 180ms}.roster-card-footer>.btn:hover>.icon{transform:translateX(3px)}
.roster-menu-trigger{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:9px;border:1px solid var(--border);background:#141416;color:var(--text-secondary)}.roster-menu-trigger:hover{background:#222226;border-color:var(--border-strong);color:white}.roster-menu-trigger>.icon{width:19px;height:19px}
.roster-action-panel{position:absolute;inset:auto 0 0;z-index:5;padding:22px 14px 17px;background:#141416;border-top:1px solid var(--border);border-radius:20px 20px 0 0;box-shadow:0 -16px 40px #0006,inset 0 1px 0 #ffffff08;transition:box-shadow 180ms cubic-bezier(.22,1,.36,1)}
.roster-action-panel:before{content:'';position:absolute;top:9px;left:calc(50% - 16px);width:32px;height:3px;border-radius:3px;background:var(--border-strong)}
.roster-action-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px 11px;margin-bottom:7px;border-bottom:1px solid var(--border)}.roster-action-heading>strong{font-size:13px;font-weight:600}.roster-action-heading .icon-btn{background:#222226;border-color:transparent;width:30px;min-height:30px;padding:6px}.roster-action-heading .icon{width:16px;height:16px}
.roster-action-row{display:flex;align-items:center;gap:10px;width:100%;padding:11px 8px;border:0;border-radius:10px;background:none;color:var(--text-primary);text-align:left;transition:background 180ms,transform 180ms}.roster-action-row:hover{background:#222226;transform:translateX(2px)}.roster-action-icon{display:grid;place-items:center;width:33px;height:33px;flex:none;border:1px solid var(--border);border-radius:9px;background:#1c1c1f;color:var(--text-secondary)}.roster-action-icon>.icon{width:16px;height:16px}.roster-action-row strong{display:block;font-size:12px;font-weight:550}.roster-action-row small{display:block;font-size:10px;margin-top:3px;color:var(--text-muted)}.roster-action-row>.icon{margin-left:auto;width:14px;height:14px;color:var(--text-muted)}
.roster-card[data-open] .roster-card-footer{visibility:hidden;pointer-events:none}.roster-card[data-closing] .roster-card-footer{visibility:visible;pointer-events:none}.roster-card[data-closing] .roster-action-panel{box-shadow:0 -16px 40px #0000,inset 0 1px 0 #ffffff00}
.roster-subtitle{font-size:12px;color:var(--text-muted);margin-top:5px}.roster-foot{align-items:center;gap:18px;margin-top:17px}.roster-foot>span:nth-child(2){margin-left:auto}.roster-foot>.btn{font-size:12px;min-height:36px;padding:7px 12px}.roster-foot>.btn>.icon{width:15px;height:15px}
.capacity-meter{appearance:none;display:block;width:100%;height:4px;border:0;border-radius:8px;background:var(--surface-active)}.capacity-meter::-webkit-progress-bar{border-radius:8px;background:var(--surface-active)}.capacity-meter::-webkit-progress-value{background:var(--accent);border-radius:8px}.capacity-meter::-moz-progress-bar{background:var(--accent);border-radius:8px}
.avatar-ocean{background:#c3cde1;color:#344454}.avatar-clay{background:#e7c3a9;color:#614938}.avatar-lilac{background:#dbc9e9;color:#574564}

.roster-team-faces>.team-face{background:#a78bfa;color:#0b0b0d}.roster-card{width:100%;max-width:406px}.roster-card-footer>.agency-note{flex:1}
@media(prefers-reduced-motion:reduce){.roster-card,.roster-action-panel,.roster-action-row{transition:none}}

.roster-action-row[data-client-action="remove"] strong,.roster-action-row[data-client-action="remove"] .roster-action-icon{color:var(--danger,#F05D61)}
