/* Scoped to the dock: existing app sections remain interactive underneath. */
.team-chat-dock .tcd-load-feedback{position:absolute;inset:57px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:30px;text-align:center;background:#fff;color:#324c74}
.team-chat-dock .tcd-load-feedback p{font-size:13px;line-height:1.65;max-width:340px;color:#6c7e98}
.team-chat-dock .tcd-load-retry{border:0;border-radius:9px;background:#315fc9;color:white;font-size:13px;font-weight:700;padding:11px 18px}
.team-chat-dock{--tcd-blue:#315fc9;--tcd-line:#dfe7f3;--tcd-ink:#203454;font-family:Nunito,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--tcd-ink);position:fixed;inset:0;z-index:1300;pointer-events:none}
body.workspace-mobile-menu-open .team-chat-dock,body.settings-view-active .team-chat-dock{visibility:hidden!important;pointer-events:none!important}
.team-chat-dock .tcd-rail,.team-chat-dock .tcd-window,.team-chat-dock .tcd-panel{pointer-events:auto}
.team-chat-dock .tcd-minimized-tray{pointer-events:auto}
.team-chat-dock[hidden],.team-chat-dock [hidden]{display:none!important}
.team-chat-dock button{font:inherit;cursor:pointer;box-shadow:none;letter-spacing:normal;text-transform:none;min-height:0;transition:background .15s}
.team-chat-dock button:focus-visible{outline:3px solid #94b4ff;outline-offset:2px}
.tcd-rail{position:fixed;right:0;top:0;bottom:0;width:62px;padding:22px 9px 16px;display:flex;align-items:center;gap:14px;flex-direction:column;background:#fff;border-left:1px solid var(--tcd-line);box-shadow:-4px 0 20px #21375208;z-index:2}
.tcd-rail button{position:relative;display:grid;place-items:center;flex-shrink:0;border:0;border-radius:13px;width:42px;height:42px;padding:0;background:#f0f4fc;color:#496181;font-size:15px;font-weight:800}
.tcd-rail button:hover{background:#e0eafe}
.tcd-rail .tcd-amess-button{width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#102b61,#174b9e);color:#fff;box-shadow:0 0 0 3px #fff,0 0 0 5px #ff7659,0 9px 22px #173f8a42}.tcd-amess-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.tcd-amess-button>span{position:absolute;right:4px;bottom:3px;display:grid;place-items:center;width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#ff7659;color:#fff;font-size:8px;font-weight:900}
.tcd-presence-person.is-interactive{cursor:pointer}.tcd-presence-person.is-opening{opacity:.55;pointer-events:none}.tcd-presence-person.is-demo .tcd-presence-avatar{background:#fff7df;box-shadow:inset 0 0 0 1px #efd796}
.tcd-presence{display:flex;flex-direction:column;width:52px;min-height:0;flex:1;overflow:hidden;padding:7px 2px 9px;border-top:1px solid var(--tcd-line)}.tcd-presence-label{display:block;flex:0 0 auto;margin-bottom:7px;color:#7890b0;font-size:7px;font-weight:900;letter-spacing:.8px;text-align:center}.tcd-presence-list{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;gap:8px;width:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;touch-action:pan-y;padding:1px 1px 6px;box-sizing:border-box}.tcd-presence-list::-webkit-scrollbar{width:4px}.tcd-presence-list::-webkit-scrollbar-track{background:#eef3fb;border-radius:999px}.tcd-presence-list::-webkit-scrollbar-thumb{background:#afbfda;border-radius:999px}.tcd-presence-person{position:relative;display:flex;align-items:center;justify-content:center;width:37px;height:37px;flex:0 0 37px;border-radius:50%;color:#244eaa;font-size:11px;font-weight:900;cursor:help}.tcd-presence-person:focus-visible{outline:2px solid #789ceb;outline-offset:2px}.tcd-presence-avatar{position:relative;display:grid;place-items:center;width:37px;height:37px;flex:0 0 37px;overflow:visible;border-radius:50%;background:#e9f0ff;box-shadow:inset 0 0 0 1px #cfddf7}.tcd-presence-photo,.tcd-presence-fallback{display:grid;place-items:center;width:100%;height:100%;border-radius:inherit}.tcd-presence-photo{object-fit:cover}.tcd-presence-name{display:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tcd-presence-dot{position:absolute;right:-1px;bottom:1px;width:11px;height:11px;border:2px solid white;border-radius:50%;background:#2eba67}.tcd-presence-tooltip{position:fixed;z-index:8;display:flex;flex-direction:column;gap:3px;max-width:min(260px,calc(100vw - 90px));padding:9px 11px;border:1px solid #d8e3f3;border-radius:10px;background:#19345f;color:#fff;box-shadow:0 8px 22px #19345f2e;line-height:1.25;transform:translateY(-50%);pointer-events:none}.tcd-presence-tooltip strong{font-size:12px;font-weight:900}.tcd-presence-tooltip span{color:#d9e6fa;font-size:10px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tcd-shortcut.is-group{color:#315fc9;background:#e8efff}.tcd-shortcut.is-open{outline:2px solid #7298eb;outline-offset:2px}.tcd-rail .tcd-utility{background:transparent;font-size:23px;font-weight:500}.tcd-badge{position:absolute;right:-4px;top:-5px;min-width:18px;border:2px solid white;border-radius:12px;background:#df455b;color:white;font-size:10px;font-weight:800;padding:1px 4px;line-height:14px}
.tcd-rail .tcd-notifications-button{color:#315fc9}.tcd-notifications-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.team-chat-dock .tcd-notification-tray{position:fixed;top:auto;right:77px;bottom:14px;width:min(360px,calc(100vw - 100px));padding:14px;border-radius:18px;z-index:5;pointer-events:auto;box-sizing:border-box;animation:tcdTrayIn .16s ease-out}
.team-chat-dock .tcd-notification-tray::before{display:none}
body.team-chat-dock-expanded .team-chat-dock .tcd-notification-tray{right:279px}
@keyframes tcdTrayIn{from{opacity:0;transform:translateX(8px) scale(.98)}to{opacity:1;transform:none}}
.tcd-utility-actions{display:flex;flex-direction:column;align-items:center;gap:10px;flex-shrink:0;margin-top:auto}
.tcd-direct-shortcuts{display:flex;flex-direction:column;align-items:center;gap:8px;flex:0 0 auto;min-height:0;width:100%;padding:2px 0 9px;box-sizing:border-box;border-bottom:1px solid var(--tcd-line)}
.tcd-direct-shortcuts .tcd-direct-shortcut{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;padding:0;border-radius:50%;background:transparent}
.tcd-direct-shortcuts .tcd-direct-shortcut .tcd-avatar{--tcd-direct-avatar-size:38px;box-sizing:border-box;flex:0 0 var(--tcd-direct-avatar-size);width:var(--tcd-direct-avatar-size);min-width:var(--tcd-direct-avatar-size);max-width:var(--tcd-direct-avatar-size);height:var(--tcd-direct-avatar-size);min-height:var(--tcd-direct-avatar-size);max-height:var(--tcd-direct-avatar-size);aspect-ratio:1;overflow:hidden;border-radius:50%;background:#e9f0ff;color:#315fc9}
.tcd-shortcut-photo{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;border-radius:50%;object-fit:cover}
.tcd-direct-shortcuts .tcd-direct-shortcut .tcd-badge{right:-2px;top:-4px}
.tcd-direct-shortcuts .tcd-direct-shortcut .tcd-chat-label{display:none}
.tcd-rail.is-expanded .tcd-direct-shortcuts{width:100%;align-items:stretch;padding:4px 0 10px}
.tcd-rail.is-expanded .tcd-direct-shortcuts .tcd-direct-shortcut{width:100%;height:52px;flex-basis:52px;justify-content:flex-start;gap:10px;padding:5px 8px;border-radius:11px}
.tcd-rail.is-expanded .tcd-direct-shortcuts .tcd-chat-label{display:block;flex:1}
.tcd-rail.is-expanded .tcd-direct-shortcuts .tcd-badge{right:8px;top:4px}
.tcd-window,.tcd-panel{position:fixed;bottom:0;display:flex;flex-direction:column;overflow:hidden;background:white;border:1px solid var(--tcd-line);border-radius:14px 14px 0 0;box-shadow:0 8px 38px #132e522b;max-height:calc(100dvh - 24px)}
.tcd-window{height:440px}.tcd-window.tcd-group{height:680px}.tcd-window-bar{display:flex;align-items:center;gap:3px;flex-shrink:0;min-height:56px;padding:8px 10px 8px 15px;border-bottom:1px solid var(--tcd-line);background:#fff}
.tcd-window-titles{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}.tcd-window-kind{font-size:9px;letter-spacing:1px;font-weight:800;color:#7187a7}.team-chat-dock .tcd-window-title{background:transparent;border:0;border-radius:0;padding:0;color:inherit;font-weight:800;font-size:14px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
.team-chat-dock .tcd-window-action{background:transparent;border:0;border-radius:8px;color:#607694;width:30px;height:32px;padding:0;font-size:23px;flex-shrink:0}.team-chat-dock .tcd-window-action:hover{background:#edf3fd}.tcd-window.tcd-group>.tcd-window-bar{background:#edf3ff}.tcd-panel>.tcd-window-bar strong{flex:1;font-size:15px}
.team-chat-dock .tcd-minimize-action{font-size:21px;line-height:1;padding-bottom:10px}
.tcd-minimized-tray{position:fixed;bottom:0;z-index:4;display:flex;flex-direction:row-reverse;gap:8px;overflow-x:auto;max-width:calc(100vw - 90px);scrollbar-width:thin}
.tcd-minimized-item{position:relative;flex:0 0 190px;width:190px}
.team-chat-dock .tcd-minimized-chat{display:flex;align-items:center;gap:8px;width:100%;height:43px;min-height:43px;padding:6px 36px 6px 10px;border:1px solid #d7e3f7;border-radius:11px 11px 0 0;background:#fff;color:#203454;box-shadow:0 -3px 18px #132e521f;text-align:left;font-size:12px;font-weight:800}
.team-chat-dock .tcd-minimized-chat:hover{background:#edf3ff}
.team-chat-dock .tcd-minimized-close{position:absolute;top:7px;right:6px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;color:#607694;font-size:19px;line-height:1;opacity:0;pointer-events:none}
.tcd-minimized-item:hover .tcd-minimized-close,.tcd-minimized-item:focus-within .tcd-minimized-close{opacity:1;pointer-events:auto}
.team-chat-dock .tcd-minimized-close:hover{background:#dae7fc;color:#203454}
.team-chat-dock .tcd-minimized-close:focus-visible{outline:2px solid #315fc9;outline-offset:0}
.tcd-minimized-avatar{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#e9f0ff;color:#315fc9;font-size:10px}
.tcd-minimized-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tcd-minimized-badge{display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#df455b;color:#fff;font-size:10px}
.tcd-frame{width:100%;min-height:0;flex:1;border:0;background:#fff;display:block}.tcd-panel{right:77px;bottom:12px;width:360px;height:620px;z-index:3;border-radius:14px}.tcd-panel.tcd-settings{width:min(810px,calc(100vw - 95px));height:min(850px,calc(100dvh - 24px))}.tcd-status:empty{display:none}.tcd-status{position:fixed;right:78px;bottom:12px;background:#fff7e8;box-shadow:0 2px 12px #21375218;border:1px solid #e9d9bc;border-radius:9px;padding:10px 15px;font-size:12px;z-index:4;pointer-events:none}
body.team-chat-dock-enabled{padding-right:0}
@media(min-width:901px){body.team-chat-dock-enabled #workspaceNotificationsBtn{position:absolute;width:1px;height:1px;margin:0;padding:0;opacity:0;clip-path:inset(50%);pointer-events:none}}
@media(min-width:641px){body.team-chat-dock-enabled #feedbackView:not([hidden]){box-sizing:border-box;padding-right:86px}body.team-chat-dock-enabled.team-chat-dock-expanded #feedbackView:not([hidden]){padding-right:288px}}
@media(min-width:641px){body.team-chat-dock-enabled .agents-audit-chat{right:86px}body.team-chat-dock-enabled.team-chat-dock-expanded .agents-audit-chat{right:288px}}
@media(min-width:1101px){body.team-chat-dock-enabled #setupView:not([hidden]) .workspace-main,body.team-chat-dock-enabled #practiceView:not([hidden]) .practice-page-main{padding-right:86px}}
@media(min-width:901px) and (max-width:980px) and (min-height:501px),(min-width:981px) and (max-width:1100px){body.team-chat-dock-enabled #setupView:not([hidden]) .workspace-main,body.team-chat-dock-enabled #practiceView:not([hidden]) .practice-page-main{padding-right:62px}}
@media(max-width:640px){body.team-chat-dock-enabled{padding-right:0}.tcd-rail{top:auto;left:auto;right:8px;bottom:8px;width:auto;max-width:calc(100vw - 16px);height:52px;flex-direction:row;border:1px solid var(--tcd-line);border-radius:17px;padding:5px 7px;gap:7px;box-shadow:0 4px 25px #18365a2b}.tcd-rail button{width:37px;height:37px;border-radius:11px}.tcd-presence{display:none}.tcd-utility-actions{margin-top:0}.tcd-window,.tcd-window.tcd-group{height:min(640px,calc(100dvh - 84px));bottom:68px;border-radius:14px;max-height:calc(100dvh - 84px)}.tcd-panel,.tcd-panel.tcd-settings{right:8px;bottom:68px;width:calc(100vw - 16px);height:min(680px,calc(100dvh - 84px));max-height:calc(100dvh - 84px)}.team-chat-dock .tcd-notification-tray,body.team-chat-dock-expanded .team-chat-dock .tcd-notification-tray{right:8px;bottom:68px;width:calc(100vw - 16px);max-height:calc(100dvh - 84px);overflow:auto}.tcd-status{right:8px;bottom:68px;max-width:calc(100vw - 16px)}}
@media(max-width:640px){.tcd-minimized-tray{bottom:68px;max-width:calc(100vw - 16px)}.tcd-minimized-item{flex-basis:170px;width:170px}.team-chat-dock .tcd-minimized-chat{border-radius:11px}}
@media(hover:none){.tcd-minimized-item .tcd-minimized-close{opacity:1;pointer-events:auto}}
@media(max-width:640px){.tcd-rail:not(.is-expanded) .tcd-direct-shortcuts{flex-direction:row;flex:0 1 auto;width:auto;max-width:38vw;max-height:none;overflow-x:auto;overflow-y:hidden;padding:2px 4px;margin-top:0;border-bottom:0;border-right:1px solid var(--tcd-line)}.tcd-rail:not(.is-expanded) .tcd-direct-shortcut{width:38px;height:38px;flex-basis:38px}.tcd-rail:not(.is-expanded) .tcd-direct-shortcut .tcd-avatar{--tcd-direct-avatar-size:34px}}
/* The rail expands into a searchable group directory for administrators. */
.tcd-rail{transition:width .18s ease;box-sizing:border-box}
.tcd-rail .tcd-expand-button{height:26px;font-size:26px;background:transparent;color:#61799b}
.tcd-shared-shortcuts .tcd-shortcut,.tcd-group-directory-list .tcd-shortcut{display:flex;align-items:center;justify-content:center;gap:12px;padding:0;background:transparent}
.tcd-avatar{position:relative;display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#eef3fc;color:#425e88;font-size:13px}
.is-group .tcd-avatar{background:#e8efff;color:#244f9c;border:1px solid #c9d9f9}
.tcd-group-marker{position:absolute;right:-3px;bottom:-3px;width:19px;height:19px;display:grid;place-items:center;background:#214f9d;color:white;border:2px solid white;border-radius:7px}
.tcd-group-marker svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tcd-chat-label{display:none;min-width:0;text-align:left}.tcd-chat-label strong{display:block;font-size:12px;font-weight:800;overflow-wrap:anywhere}.tcd-chat-label small{display:block;font-size:10px;font-weight:500;color:#7186a5;margin-top:3px}
.tcd-rail.is-expanded{width:264px;align-items:stretch;box-shadow:-8px 0 30px #20345420}
.tcd-rail.is-expanded>.tcd-expand-button{align-self:flex-start}
.tcd-rail.is-expanded .tcd-shortcut{width:100%;min-height:54px;height:auto;justify-content:flex-start;padding:6px;box-sizing:border-box}
.tcd-rail.is-expanded .tcd-chat-label{display:block;flex:1;padding-right:8px}.tcd-rail.is-expanded .tcd-badge{right:0;top:0}
.tcd-rail.is-expanded .tcd-presence{width:100%;box-sizing:border-box;padding:9px 8px 11px}.tcd-rail.is-expanded .tcd-presence-list{align-items:stretch;overflow-x:hidden;overflow-y:auto;padding:2px 1px 6px}.tcd-rail.is-expanded .tcd-presence-person{justify-content:flex-start;width:100%;height:45px;flex-basis:45px;gap:10px;padding:4px 7px;border-radius:12px}.tcd-rail.is-expanded .tcd-presence-person:hover{background:#f0f5fd}.tcd-rail.is-expanded .tcd-presence-avatar{width:35px;height:35px;flex-basis:35px}.tcd-rail.is-expanded .tcd-presence-name{display:block;font-size:12px;color:#294568}
.tcd-rail.is-expanded .tcd-utility-actions{width:100%;flex-direction:row;align-items:center;justify-content:flex-end;gap:8px;padding:8px 10px 0;border-top:1px solid var(--tcd-line)}
.tcd-rail.is-expanded .tcd-utility-actions>.tcd-utility{width:40px;height:40px}
@media(max-width:640px){.tcd-rail.is-expanded{top:auto;bottom:8px;right:8px;width:min(264px,calc(100vw - 16px));height:min(600px,calc(100dvh - 90px));max-height:calc(100dvh - 90px);flex-direction:column}.tcd-rail.is-expanded .tcd-presence{display:none}}

.tcd-panel.tcd-compose{width:330px;height:440px;bottom:0;border-radius:14px 14px 0 0}
.team-chat-dock .tcd-recipient-search{width:100%;min-width:0;border:0;border-radius:4px;background:transparent;color:#203454;font:inherit;font-size:14px;font-weight:800;padding:1px 0;box-shadow:none}
.team-chat-dock .tcd-recipient-search::placeholder{color:#72849d;font-weight:500}
.team-chat-dock .tcd-recipient-search:focus{outline:2px solid #b7ccf2;outline-offset:2px}
.tcd-recipient-list{display:flex;flex:1;min-height:0;flex-direction:column;gap:3px;overflow-y:auto;overscroll-behavior:contain;padding:9px 7px 15px}
.team-chat-dock .tcd-recipient-item{display:flex;align-items:center;gap:10px;width:100%;min-height:54px;padding:7px 9px;border:0;border-radius:10px;background:#fff;color:#203454;text-align:left}
.team-chat-dock .tcd-recipient-item:hover{background:#edf3ff}
.tcd-recipient-avatar{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:50%;background:#e9f0ff;color:#315fc9;font-size:11px;font-weight:900}
.tcd-recipient-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:800}
.tcd-recipient-empty{margin:24px 12px;color:#6c7e98;font-size:13px;line-height:1.5;text-align:center}
.tcd-recipient-status:empty{display:none}.tcd-recipient-status{padding:9px 15px;border-top:1px solid var(--tcd-line);color:#a34545;font-size:12px}
@media(max-width:640px){.tcd-panel.tcd-compose{bottom:68px;border-radius:14px;height:min(440px,calc(100dvh - 84px))}}

.tcd-shared-shortcuts{display:flex;flex-direction:column;align-items:center;gap:12px;padding:6px;width:54px;flex-shrink:0}
.tcd-shared-shortcuts .tcd-avatar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tcd-shared-shortcuts .is-announcements .tcd-avatar{color:#b56b0b;background:#fff4d9;border-color:#f4d99d}
.tcd-shared-shortcuts .is-general .tcd-avatar{color:#267568;background:#e9f8f2;border-color:#bce4d7}
.tcd-shared-shortcuts .tcd-groups-shortcut .tcd-avatar{color:#315fc9;background:#edf3ff;border-color:#cadafa}.tcd-groups-shortcut .tcd-avatar svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.tcd-groups-shortcut.is-active{background:#e3ecff!important;box-shadow:inset 0 0 0 1px #b9cdf6}
.tcd-rail.is-expanded .tcd-shared-shortcuts{width:100%;align-items:stretch;padding:8px;gap:7px}
@media(max-width:640px){.tcd-rail:not(.is-expanded) .tcd-shared-shortcuts{flex-direction:row;width:auto;gap:7px;padding:3px}}
.tcd-group-directory{display:flex;flex:1;min-height:0;width:100%;box-sizing:border-box;flex-direction:column;gap:10px;padding:12px 8px 8px;border-top:1px solid var(--tcd-line)}
.tcd-group-directory-header{display:flex;align-items:center;gap:8px;padding:0 2px}.tcd-group-directory-header strong{flex:1;font-size:14px}.team-chat-dock .tcd-group-directory-close{width:30px;height:30px;border-radius:8px;background:transparent;color:#607694;font-size:21px}.team-chat-dock .tcd-group-directory-close:hover{background:#edf3fd}
.team-chat-dock .tcd-group-search{width:100%;box-sizing:border-box;border:1px solid #d8e3f3;border-radius:10px;background:#f7f9fd;color:#203454;font:inherit;font-size:12px;font-weight:700;padding:9px 10px;box-shadow:none}.team-chat-dock .tcd-group-search::placeholder{color:#8292aa;font-weight:600}.team-chat-dock .tcd-group-search:focus{outline:2px solid #a9c1f2;outline-offset:1px;border-color:#97b4ec}
.tcd-group-directory-list{display:flex;flex:1;min-height:0;flex-direction:column;gap:7px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.tcd-group-directory-list .tcd-shortcut{width:100%;min-height:54px;height:auto;justify-content:flex-start;padding:6px;box-sizing:border-box}.tcd-group-directory-list .tcd-chat-label{display:block;flex:1;padding-right:8px}.tcd-group-directory-empty{margin:16px 8px;color:#7186a5;font-size:12px;line-height:1.5;text-align:center}
.tcd-title-row{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.team-chat-dock .tcd-title-row .tcd-window-title{width:auto;flex:0 1 auto;min-width:0}
.team-chat-dock :is(.tcd-participants,.tcd-pinned){position:relative;display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:4px;border:0;border-radius:7px;background:transparent;color:#567194}
.team-chat-dock :is(.tcd-participants,.tcd-pinned):hover{background:#dce7fa}
.team-chat-dock :is(.tcd-participants,.tcd-pinned) svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.team-chat-dock .tcd-pinned.is-active{background:#fff3d4;color:#8a5911}
/* Shared community spaces occupy the center; private windows retain their size. */
.tcd-window.tcd-channel{top:50%;bottom:auto;transform:translateY(-50%);height:min(820px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);border-radius:18px;box-shadow:0 18px 85px #14264440}
.tcd-window.tcd-channel>.tcd-window-bar{background:#fff;padding:15px 22px;min-height:72px}
.tcd-channel .tcd-window-title{font-size:20px}
.tcd-channel-icon{display:inline-flex;vertical-align:middle;margin-right:10px;color:#46688a}
.tcd-channel-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:640px){.tcd-window.tcd-channel{top:12px;bottom:76px;transform:none;height:auto;max-height:none}.tcd-window.tcd-channel>.tcd-window-bar{padding:10px 14px;min-height:60px}}

/* Profile images stay inside their own circle while the online dot can sit outside it. */
.tcd-presence-person{isolation:isolate}
.tcd-presence-photo{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;border-radius:50%!important;object-fit:cover!important;clip-path:circle(50% at 50% 50%)}
.tcd-presence-dot{z-index:1}

/* Mobile app shell: respect notches/home indicators and keep primary controls clear. */
@media(max-width:640px){
  body.team-chat-dock-enabled #setupView:not([hidden]) .workspace-main,
  body.team-chat-dock-enabled #practiceView:not([hidden]) .practice-page-main{
    padding-bottom:calc(92px + env(safe-area-inset-bottom, 0px));
  }
  .tcd-rail,
  .tcd-rail.is-expanded{
    right:max(8px, env(safe-area-inset-right, 0px));
    bottom:max(8px, env(safe-area-inset-bottom, 0px));
  }
  .tcd-rail{
    min-height:60px;
    height:60px;
    padding:7px;
  }
  .tcd-rail:not(.is-expanded)>.tcd-expand-button{
    display:none;
  }
  .tcd-rail:not(.is-expanded) .tcd-utility-actions{
    flex-direction:row;
    gap:7px;
    margin-top:0;
  }
  .tcd-rail:not(.is-expanded) .tcd-settings-button{
    display:none;
  }
  .tcd-rail button,
  .tcd-rail.is-expanded .tcd-utility-actions>.tcd-utility{
    width:44px;
    height:44px;
  }
  .tcd-rail.is-expanded>.tcd-expand-button{
    width:44px;
    height:44px;
  }
  .tcd-rail.is-expanded{
    height:min(600px, calc(100dvh - 106px - env(safe-area-inset-bottom, 0px)));
    max-height:calc(100dvh - 106px - env(safe-area-inset-bottom, 0px));
  }
  .tcd-window,
  .tcd-window.tcd-group,
  .tcd-panel,
  .tcd-panel.tcd-settings,
  .tcd-panel.tcd-compose,
  .team-chat-dock .tcd-notification-tray,
  body.team-chat-dock-expanded .team-chat-dock .tcd-notification-tray,
  .tcd-status{
    bottom:calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .tcd-window,
  .tcd-window.tcd-group,
  .tcd-panel,
  .tcd-panel.tcd-settings{
    max-height:calc(100dvh - 108px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .tcd-panel,
  .tcd-panel.tcd-settings,
  .tcd-panel.tcd-compose,
  .team-chat-dock .tcd-notification-tray,
  body.team-chat-dock-expanded .team-chat-dock .tcd-notification-tray{
    left:max(8px, env(safe-area-inset-left, 0px));
    right:max(8px, env(safe-area-inset-right, 0px));
    width:auto;
  }
  .tcd-window.tcd-channel{
    top:max(12px, env(safe-area-inset-top, 0px));
    left:max(8px, env(safe-area-inset-left, 0px));
    right:max(8px, env(safe-area-inset-right, 0px));
    width:auto!important;
    bottom:calc(88px + env(safe-area-inset-bottom, 0px));
    max-height:calc(100dvh - 112px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .tcd-minimized-tray{bottom:calc(80px + env(safe-area-inset-bottom, 0px))}
}

@media(max-width:640px){
  .tcd-rail .tcd-presence.has-pending-directs{display:flex;flex:0 1 auto;min-width:0;width:auto;overflow:visible;padding:0;border:0}
  .tcd-rail .tcd-presence-label,.tcd-rail .tcd-presence-person{display:none}
  .tcd-rail:not(.is-expanded) .tcd-presence-list{flex:0 1 auto;flex-direction:row;width:auto;min-width:0;overflow:visible;padding:0}
  .tcd-rail.is-expanded .tcd-presence.has-pending-directs{flex:1;min-height:0;width:100%;overflow:hidden}
  .tcd-rail.is-expanded .tcd-presence-list{flex-direction:column;overflow-x:hidden;overflow-y:auto}
}

.tcd-group-section{display:flex;flex-direction:column;gap:5px;padding-bottom:8px;border-bottom:1px solid #e7ecf4}
.tcd-group-section:last-child{border-bottom:0}
.tcd-group-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 6px;color:#49617f}
.tcd-group-section-heading strong{font-size:10px;letter-spacing:.07em;text-transform:uppercase}
.tcd-group-section-heading span{font-size:9px;color:#8292aa}
.tcd-group-directory-row{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;padding-bottom:4px}
.team-chat-dock .tcd-group-section-select{width:calc(100% - 56px);margin-left:56px;padding:5px 7px;border:1px solid #dbe4f2;border-radius:7px;background:#f8faff;color:#607694;font:inherit;font-size:9px}
