.team-directory td { padding-block:17px; }
.team-name,.team-back { display:inline-flex; align-items:center; gap:8px; color:var(--accent); font-weight:670; }
.team-name:hover,.team-back:hover { text-decoration:underline; }
.team-name i:last-child,.team-back i { width:14px; height:14px; }
.team-back i { transform:rotate(180deg); }
.team-heading { display:flex; justify-content:space-between; align-items:end; gap:12px; margin:20px 0 12px; flex-wrap:wrap; }
.team-heading h2 { font-size:clamp(26px,3vw,36px); letter-spacing:-.035em; margin-top:6px; }
.team-heading p { color:var(--muted); margin-top:4px; }
.team-back { font-size:12px; }
.team-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.team-hierarchy+.team-hierarchy { margin-top:17px; }
.team-profile { border-top:1px solid var(--line); }
.profile-columns,.team-profile summary {
  display:grid; grid-template-columns:minmax(0, 1.65fr) minmax(90px,.62fr) minmax(0, 1fr) minmax(86px, .42fr) minmax(125px,.78fr);
  column-gap:12px; align-items:center; padding:13px 17px;
}
.profile-columns.admin-profile-columns,.team-profile summary.admin-profile-columns {
  grid-template-columns:minmax(0,1.55fr) minmax(90px,.62fr) minmax(0,1fr) minmax(86px,.5fr) minmax(125px,.78fr) minmax(120px,.75fr);
}
.profile-issue-date,.profile-visibility small { color:var(--muted); font-size:11px; }
.profile-visibility { display:flex; align-items:start; gap:4px; flex-direction:column; }
.team-profile summary .button { min-height:29px; width:fit-content; font-size:11px; }
.profile-trash-action { margin-top:12px; }
.profile-hidden > summary > :nth-child(-n+4),
.profile-hidden .manager-heading > div:first-child,
.profile-hidden .account-row > td:not(:has(> .actions)),
.account-hidden > td:not(:has(> .actions)):not(.row-action) {
  opacity:.62;
  filter:saturate(.4);
}
.profile-columns { font-size:11px; font-weight:680; color:var(--muted); background:var(--surface-inset); }
.team-profile summary { cursor:pointer; list-style:none; }
.profile-summary-name { display:flex; align-items:center; gap:8px; min-width:0; }
.profile-summary-name strong,.profile-summary-owner { overflow-wrap:anywhere; }
.profile-summary-owner { display:flex; align-items:center; gap:6px; min-width:0; color:var(--muted); }
.profile-owner-edit { width:29px; height:29px; }
.profile-owner-edit i { width:14px; height:14px; }
.profile-summary-owner .profile-owner-badge { min-width:0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.team-profile summary::-webkit-details-marker { display:none; }
.team-profile summary:hover,.team-profile[open] summary { background:var(--surface-inset); }
.team-profile summary:focus-visible { outline:2px solid var(--focus); outline-offset:-2px; }
.profile-summary-name > i { width:15px; height:15px; color:var(--muted); }
.team-profile[open] .profile-summary-name > i { transform:rotate(90deg); }
.team-profile-icon { flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:8px; color:var(--accent); background:var(--accent-soft); }
.team-profile-icon i { width:17px; height:17px; }
.profile-children { padding:12px 16px 16px; }
.team-profile-actions { margin-bottom:12px; }
.manager-card { border:1px solid var(--line); border-radius:11px; overflow:hidden; }
.manager-card + .manager-card { margin-top:10px; }
.manager-heading { padding:12px 14px; display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; }
.manager-heading h3 { font-size:14px; margin-bottom:4px; }
.manager-sub { display:flex; align-items:center; gap:7px; color:var(--muted); }
.manager-card .button,.team-profile-actions .button,.team-account-table .button { min-height:31px; font-size:11px; }
.team-account-table { min-width:490px; }
.team-empty { padding:13px 16px; color:var(--muted); font-size:12px; }
@media (max-width:550px) {
  .profile-columns,.team-profile summary,.profile-columns.admin-profile-columns,.team-profile summary.admin-profile-columns {
    grid-template-columns:minmax(0, 1.4fr) minmax(64px, .75fr) minmax(0, 1fr) minmax(59px, .66fr);
    padding:10px 12px; column-gap:7px; font-size:12px;
  }
  .profile-credentials-heading,.profile-columns.admin-profile-columns span:last-child { display:none; }
  .team-profile summary .profile-credentials { grid-column:1/3; margin-top:8px; }
  .team-profile summary.admin-profile-columns > :nth-child(6) { grid-column:3/-1; margin-top:8px; }
  .profile-visibility { flex-direction:row; align-items:center; gap:8px; }
  .profile-summary-name { gap:4px; }
  .team-profile-icon { display:none; }
  .team-heading { align-items:start; }
}
