/* Scoped to staff pickers; never restyle message bodies or task content. */
body.org-v4 .team-directory{--td-bg:#fff;--td-text:#202b3b;--td-muted:#526276;--td-line:#d7e0ea;--td-hover:#eef4fa;--td-active:#dceaf8;text-align:start;max-height:min(360px,45dvh);scroll-padding-block-start:100px}
html[data-theme="dark"] body.org-v4 .team-directory{--td-bg:#223449;--td-text:#f2f6fc;--td-muted:#c1d1e4;--td-line:#58708b;--td-hover:#314c68;--td-active:#314c68}
body.org-v4 .team-directory .team-directory-head{position:sticky;inset-block-start:0;z-index:2;padding:8px;background:var(--td-bg);border-block-end:1px solid var(--td-line)}
body.org-v4 .team-directory .team-directory-modes{display:flex;gap:4px;padding:3px;border:1px solid var(--td-line);border-radius:10px}
body.org-v4 .team-directory .team-directory-modes>button{flex:1;width:auto!important;min-height:36px;padding:6px 10px!important;text-align:center!important;border-radius:7px;background:var(--td-bg)!important;color:var(--td-muted)!important;font:inherit!important;font-weight:600!important;border:0!important}
html[data-theme] body.org-v4 .team-directory .team-directory-modes>button[aria-pressed="true"],body.org-v4 .team-directory .team-directory-modes>button[aria-pressed="true"]{background:var(--td-active)!important;color:var(--td-text)!important}
body.org-v4 .team-directory :is(.team-directory-team,.team-directory-member){display:flex!important;align-items:center;gap:10px;width:100%;min-width:0;min-height:48px;padding:10px 12px!important;text-align:start!important;background:var(--td-bg)!important;color:var(--td-text)!important;border:0!important;border-block-end:1px solid var(--td-line)!important;font:inherit!important;border-radius:0}
body.org-v4 .team-directory .team-directory-team{flex-direction:column;align-items:flex-start;gap:3px}
body.org-v4 .team-directory .team-directory-copy{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
body.org-v4 .team-directory .team-directory-label{font-size:12px;font-weight:650;color:var(--td-text)!important;overflow-wrap:anywhere}
body.org-v4 .team-directory :is(.team-directory-meta,.team-directory-email,.team-directory-count){display:block;font-size:11px;line-height:1.6;color:var(--td-muted)!important;overflow-wrap:anywhere}
body.org-v4 .team-directory .team-directory-check{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;padding:0;border-radius:8px;background:var(--td-hover)!important;color:var(--td-text)!important;font-size:16px;line-height:1}
body.org-v4 .team-directory :is(.team-directory-back,.team-directory-more){min-height:36px;padding:7px!important;text-align:start!important;background:var(--td-bg)!important;color:var(--td-text)!important;font:inherit!important;border:0!important}
body.org-v4 .team-directory .team-directory-count{padding:0 7px}
body.org-v4 .team-directory .team-directory-empty{padding:14px;margin:0;color:var(--td-muted);font-size:12px;line-height:1.8}
body.org-v4 .team-directory button:hover:not(:disabled){background:var(--td-hover)!important}
body.org-v4 .team-directory button:focus-visible{outline:2px solid #3983ca!important;outline-offset:-3px}
body.org-v4 .team-directory .team-directory-member[aria-pressed="true"]{opacity:1;color:var(--td-muted)!important;cursor:default}
@media(max-width:600px){body.org-v4 .team-directory{max-height:min(340px,45dvh)}body.org-v4 .team-directory .team-directory-modes>button{min-height:40px}body.org-v4 .team-directory :is(.team-directory-team,.team-directory-member){min-height:48px}}
