/* Team workspace: personal cards, explicit access state, deliberate actions. */
.team-view{min-width:0;font-size:14px}
.team-view .page-heading{align-items:center;gap:16px;margin-bottom:24px}
.team-view .page-heading p{margin:7px 0 0}
.team-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 24px}
.team-summary p{font-size:12px;margin:0;color:var(--muted)}
.team-summary button{flex-shrink:0}
.team-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}
.team-section-heading h2{font-size:18px;letter-spacing:-.35px;margin:0;font-weight:600}
.team-section-heading p{font-size:13px;line-height:1.6;margin:6px 0 0;color:var(--muted)}
.team-section-count{display:grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border:1px solid #e9e1f2;border-radius:50%;font-size:12px;color:#78658f;font-variant-numeric:tabular-nums;flex-shrink:0}
.team-people,.team-invite-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;list-style:none;padding:0;margin:0}
.team-person-card,.team-invitation-card{min-width:0;background:#fff;border:1px solid #e8e0ef;border-radius:24px;padding:22px;box-shadow:0 4px 18px #39264404;display:flex;flex-direction:column}
.team-person-card.is-disabled{background:#fcfbfd}
.team-person-heading{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px}
.team-person-avatar,.team-invitation-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #e6dcf1;border-radius:15px;background:#f4effa;color:#715199;font-size:15px;font-weight:600;flex-shrink:0}
.team-person-avatar.is-owner{background:#ebe3f7;color:#624484}
.team-person-identity{min-width:0}
.team-person-identity h3{font-size:16px;letter-spacing:-.25px;line-height:1.4;margin:0 0 4px;color:var(--ink);overflow-wrap:anywhere}
.team-person-identity p{font-size:12px;margin:0;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.team-access-status{font-size:11px;line-height:1.4;white-space:nowrap;padding:5px 9px;border-radius:999px;background:#f2f0f5;color:#7d7388}
.team-access-status.is-active{background:#eff6f1;color:#49755b}
.team-access-status.is-paused{background:#f8f0e5;color:#8a6a39}
.team-person-role{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:20px}
.team-role-badge{display:inline-block;background:#f2edfa;color:#735295;font-size:12px;line-height:1.4;padding:6px 10px;border-radius:999px}
.team-self-badge,.team-waiting{font-size:11px;color:#95869f;line-height:1.5}
.team-access-description{font-size:12px;line-height:1.6;color:#81758e;margin:10px 0 18px;flex:1}
.team-role-editor{display:flex;align-items:center;gap:10px;margin:0 0 16px}
.team-role-field{display:block;flex:1;min-width:0;margin:0}
.team-role-field select{margin:0;width:100%;font-size:13px;background:#fbf9fd}
.team-role-editor button{font-size:12px;flex-shrink:0;white-space:nowrap}
.team-person-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid #efe8f4;padding-top:16px;margin-top:auto;min-height:48px}
.team-protected{font-size:12px;line-height:1.6;color:#95899f}
.team-view .team-danger-link{color:#9b666c;background:transparent;border:0;box-shadow:none;padding:9px 4px;min-height:38px;font-size:12px;font-weight:500;border-radius:9px}
.team-view .team-danger-link:hover{color:#93454f;background:#fbf0f2}
.team-view .team-danger-button{color:#fff;background:#ad5363;border:1px solid #ad5363;border-radius:999px;padding:11px 18px;min-height:44px}
.team-view .team-danger-button:hover{background:#924252;border-color:#924252}
.team-pending{margin-top:36px}
.team-invitation-card{background:#fff;position:relative}
.team-invitation-top{display:flex;align-items:center;gap:12px}
.team-invitation-icon{background:#f5f1fb;color:#9d83bf;border-style:dashed}
.team-invitation-icon svg{width:22px;height:22px}
.team-invitation-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px;padding-top:16px;border-top:1px solid #efe8f4}
.team-invitation-footer p{margin:0;font-size:12px}
.team-invitation-footer p span{display:block;font-size:11px;color:#95899f;margin-bottom:4px}
.team-invitation-footer p strong{font-weight:500;font-variant-numeric:tabular-nums;color:#6f617d}
.team-invites-empty{display:flex;align-items:center;gap:16px;padding:24px;border:1px dashed #e5ddec;border-radius:24px;background:#fdfbfe;color:#8b789c}
.team-invites-empty>span{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;background:#f1edf7;border-radius:50%;font-size:18px}
.team-invites-empty strong{font-size:13px;font-weight:500;color:#776486}
.team-invites-empty p{font-size:12px;line-height:1.6;margin:5px 0 0;color:#a092ac}
.team-role-guide{background:transparent;border:1px solid #e6dfee;border-radius:20px;padding:17px 20px;margin-bottom:8px}
.team-role-guide summary{cursor:pointer;font-size:13px;font-weight:500;color:#82708f}
.team-role-guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;margin-top:18px}
.team-role-guide-grid article{border:1px solid #e6dfee;border-radius:16px;background:#fff;padding:18px;min-width:0}
.team-role-guide-grid h3{font-size:14px;margin:0 0 10px}
.team-role-guide-grid strong{display:block;font-size:12px;color:#806099;line-height:1.6}
.team-role-guide-grid p,.team-role-preview p{line-height:1.6;margin:8px 0 0;color:#887a93;font-size:12px}
.team-view .team-dialog{width:520px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:28px;border:1px solid #e9e2ee;border-radius:28px;color:var(--ink);box-shadow:0 20px 80px #30243c26}
.team-dialog label{margin:14px 0}
.team-dialog .dialog-head h2{font-size:22px;line-height:1.3;letter-spacing:-.5px}
.team-dialog .dialog-head .icon-button{border-radius:50%;min-width:38px;min-height:38px}
.team-dialog .form-actions{margin-top:22px;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.team-dialog .form-actions button{min-height:44px}
.team-confirm-description{font-size:14px;line-height:1.8;margin:18px 0;color:#786d82}
.team-role-preview{padding:18px;background:#f6f1fc;border:1px solid #e8def2;border-radius:18px}
.team-role-preview strong{font-size:13px;color:#75528e}
.team-dialog select{min-height:46px;width:100%;border-radius:14px;padding:10px 14px;border:1px solid #e0d7e9;font:inherit;background:#fff}
.team-invite-success{display:flex;align-items:center;gap:12px;margin:6px 0 18px}
.team-invite-success>span{display:grid;place-items:center;width:42px;height:42px;background:#f1eaf9;color:#9376ad;border-radius:14px;font-size:25px}
.team-invite-success p{font-weight:500;margin:0}
.team-dialog [data-delivery]{padding:14px 16px;background:#f7f3fb;border-radius:16px;font-size:13px;line-height:1.7;color:#85748f}
.team-dialog [data-link]{font-size:12px}
.team-dialog .team-replace{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;color:#978b9f}
.team-dialog .team-replace input{width:17px;height:17px;min-height:17px;flex-shrink:0;margin:3px 0 0}
.team-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){
 .team-view .page-heading{align-items:flex-start}
 .team-summary{align-items:center;margin-bottom:22px}
 .team-summary p{max-width:65%;line-height:1.6}
 .team-person-card,.team-invitation-card{padding:20px}
 .team-person-heading{grid-template-columns:40px minmax(0,1fr);gap:11px;position:relative;padding-right:0}
 .team-person-avatar,.team-invitation-icon{width:40px;height:40px;border-radius:14px}
 .team-access-status{grid-column:2;justify-self:start;margin-top:-2px}
 .team-role-editor{flex-wrap:wrap}
 .team-role-editor label{min-width:150px}
 .team-role-editor button{flex:1}
 .team-view input,.team-view select{font-size:16px;min-height:44px}
 .team-view button,.team-view .team-danger-link{min-height:44px}
 .team-view .team-dialog{padding:22px;border-radius:24px}
 .team-dialog .dialog-head .icon-button{min-width:44px;min-height:44px;flex-shrink:0}
 .team-dialog [data-link]{font-size:16px}
 .team-invites-empty{padding:20px;align-items:flex-start}
 .team-invites-empty p{max-width:32ch}
}
.team-sales-settings{margin:28px 0;padding:24px;border:1px solid #e0e7ef;background:#fff;border-radius:22px}.team-sales-settings>p{font-size:13px;color:#73869b}.team-sales-person{padding:20px 0;border-top:1px solid #e8edf3;display:grid;grid-template-columns:1fr auto;gap:12px}.team-sales-person>strong,.team-sales-person>p,.team-sales-person>small{grid-column:1/-1}.team-sales-person label{display:grid;gap:7px;font-size:12px}.team-sales-person input,.team-sales-person select{min-width:0;width:100%;padding:10px 12px;border:1px solid #dfe6ed;border-radius:10px;font:inherit}.team-sales-person button{align-self:end;font-size:12px}.team-sales-person small{color:#788b9e;font-size:11px}

.team-territory{border-top:1px solid var(--line,#d9e5ee);padding:16px 0;margin:8px 0}.team-territory summary{cursor:pointer;font-weight:600}.team-territory button{margin:6px 6px 6px 0}.team-view>[data-filter]{margin-bottom:20px}.team-view .team-person-actions button{white-space:normal}.team-view .team-person-card{overflow-wrap:anywhere}.team-view input{max-width:100%}.team-view .team-pending:empty{display:none}
.team-view [hidden]{display:none!important}
