#team-directory-page .head-actions { flex-wrap:wrap; gap:9px; }
.team-directory, .team-invitations {
  border:1px solid var(--line); background:var(--panel); border-radius:var(--radius); min-width:0;
}
.team-fold {
  width:100%; padding:19px 22px; min-height:56px; font-size:18px; font-weight:600;
  display:flex; align-items:center; gap:10px; text-align:left;
}
.team-fold span { font-size:13px; font-weight:500; color:var(--muted); }
.team-fold i { width:9px; height:9px; border-right:2px solid #9daec9; border-bottom:2px solid #9daec9; transform:rotate(45deg); margin-left:auto; }
.team-fold[aria-expanded=true] i { transform:rotate(225deg); }
.team-tools { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:0 20px 17px; }
.team-tools .search-box { flex:1 1 190px; min-width:0; max-width:370px; }
.team-tools .select-control { max-width:100%; }
.team-tools input,.team-tools select,.team-tools button {font-size:14px;}
#team-results { margin:0; list-style:none; padding:0 20px 8px; }
.team-person { display:grid; align-items:center; grid-template-columns:minmax(120px,1.1fr) minmax(100px,1fr) max-content minmax(116px,max-content); gap:14px; padding:15px 0; border-top:1px solid var(--line); }
.team-person-main {display:flex; align-items:center; gap:11px; min-width:0;}
.team-person-main div {min-width:0;}
.team-person-main strong {display:block;font-size:16px;line-height:1.45;overflow-wrap:anywhere;}
.team-person-main div>span,.team-secondary,.team-invite div>span {color:var(--muted);font-size:14px;line-height:1.5;}
.team-project-tags {display:flex; flex-wrap:wrap; gap:5px;}
.team-project-tag {font-size:13px; padding:3px 8px;border:1px solid var(--line);border-radius:6px;color:var(--text);background:var(--card);overflow-wrap:anywhere;}
.team-access,.team-invite-status {width:fit-content;align-self:center;color:var(--green);font-size:13px;}
.team-access.inactive {color:var(--danger);}
.team-invite-status {color:var(--muted);}
.team-invite-status.pending {color:#aac7ff;}
.team-edit {justify-self:end;min-height:44px;background:#1b2d48;border:1px solid #415d85;color:#c8ddff;white-space:normal;text-align:center;}
.team-edit:hover {background:#263c5a;border-color:#6a95d1;}
.team-self {justify-self:end;color:var(--muted);font-size:13px;text-align:right;}
.team-directory-status {padding:20px;}
.team-directory-status h2 {margin-bottom:8px;font-size:18px;}
#team-project-slot:empty,#team-directory-actions:empty {display:none;}
.team-invitations {margin-top:20px;padding:20px;}
.team-invitations h2 {font-size:18px;margin-bottom:14px;}
.team-invite {display:grid; align-items:center;grid-template-columns:minmax(0,1fr) 112px 90px;gap:12px;padding:12px 0;}
.team-invite .btn {justify-self:end;}
.team-invite+.team-invite {border-top:1px solid var(--line);}
.team-invite strong,.team-invite div>span {display:block;overflow-wrap:anywhere;}
.team-invite strong {font-size:15px;}
.team-form-name {font-size:18px;font-weight:600;margin-bottom:14px;}
.team-form-projects {margin:16px 0;padding:0 12px 9px;min-width:0;border:1px solid var(--line);border-radius:10px;}
.team-form-projects legend,.team-access-settings legend {font-size:15px;font-weight:600;padding:0 5px;color:var(--text);}
.team-field-hint {margin:6px 0 10px;font-size:14px;line-height:1.55;color:var(--muted);}
.team-access-settings {margin:16px 0;padding:5px 12px 8px;border:1px solid var(--line);border-radius:10px;min-width:0;}
.team-access-choice {display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;margin:5px 0;}
.team-access-choice strong {font-size:14px;color:var(--text);}
.team-access-choice strong.inactive {color:#f0aba8;}
.team-access-choice .btn,.team-reload-member {min-height:44px;}
.team-reload-member {margin:2px 0 10px;}
#team-edit-form select,.team-form-projects input {scroll-margin:15px;}
.team-form-check,.team-assignment label {display:flex;align-items:center;gap:8px;min-height:40px;font-size:14px;color:#becbe0;overflow-wrap:anywhere;}
.team-form-check input,.team-assignment input {width:18px;height:18px;flex-shrink:0;accent-color:var(--blue);}
.team-assignment+.team-assignment {border-top:1px solid var(--line);}
.team-assignment .team-project-lead {padding-left:25px;font-size:13px;color:#9dafc9;}
#team-edit-form [hidden],#team-directory-page [hidden],#team-invite-form[hidden],#team-invite-form [hidden] {display:none;}
.team-empty,.team-error,.team-form-error {line-height:1.5;font-size:14px;padding:9px 0;}
.team-empty {padding:26px 12px 32px;text-align:center;border-top:1px solid var(--line);color:var(--muted);}
.team-empty strong {display:block;font-size:16px;color:var(--text);margin-bottom:6px;}
.team-empty .btn {margin-top:14px;}
.team-error,.team-form-error {color:var(--danger);}
.team-secondary:empty,#team-candidate-status:empty {display:none;}
.team-form-projects .team-secondary {margin:6px 0;}
#team-invite-result .form-actions,#team-revoke-form .form-actions {flex-wrap:wrap;}
.team-form-error:empty {display:none;}
@media(max-width:1000px){
  .team-person {grid-template-columns:minmax(100px,1fr) minmax(88px,1fr) max-content minmax(106px,max-content);gap:8px;}
}
@media(max-width:720px){
  #team-directory-page .page-head {flex-wrap:wrap;gap:14px;}
  .team-tools {padding:0 14px 14px;}
  .team-tools .search-box {flex-basis:100%;max-width:none;}
  .team-tools input {font-size:16px;}
  #team-results {padding:0 14px 6px;}
  .team-person {grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;}
  .team-person-main {grid-column:1;grid-row:1;}
  .team-edit,.team-self {grid-column:2;grid-row:1;}
  .team-project-tags {grid-column:1/-1;grid-row:2;}
  .team-access {grid-column:1/-1;grid-row:3;}
  .team-fold,.team-invitations {padding:16px;}
  .team-invite {grid-template-columns:minmax(0,1fr) auto;}
  .team-invite .btn {grid-column:2;}
}
@media(max-width:480px){
  .team-tools {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .team-tools .search-box,.team-tools .select-control:last-child,.team-tools>.filter:last-child {grid-column:1/-1;width:100%;}
  .team-tools .select-control,.team-tools>.filter {width:100%;}
  .team-person {grid-template-columns:minmax(0,1fr) auto;}
  .team-person-main {grid-column:1/-1;grid-row:1;}
  .team-person .team-access {grid-column:1;grid-row:3;}
  .team-person .team-edit,.team-person .team-self {grid-column:2;grid-row:3;}
  .team-invite>div {grid-column:1/-1;}
  .team-invite {gap:6px 12px;}
}
