/* Namespaced chat surfaces, independent of business dialogs and AI conversations. */
#teamChatButton{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-width:76px;color:#2563eb;background:#edf4ff;border:1px solid #dbe7fc}
#teamChatButton svg{width:18px;height:18px}#teamChatBadge{position:absolute;right:-6px;top:-5px;background:#e24a5a;color:#fff;border:2px solid #fff;min-width:19px;height:19px;border-radius:12px;font:700 10px/15px system-ui;padding:0 3px}
#teamChatBadge[hidden],.tc-overlay[hidden],.tc-overlay [hidden]{display:none!important}
body.team-chat-open{overflow:hidden}
.tc-overlay{position:fixed;inset:0;z-index:550;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(18,35,57,.3);backdrop-filter:blur(5px);color:#233550;font:14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC',sans-serif}
.tc-overlay *{box-sizing:border-box}
.tc-window{width:min(1180px,100%);height:min(780px,calc(100dvh - 48px));min-height:0;display:flex;flex-direction:column;overflow:hidden;border-radius:20px;background:#fff;border:1px solid rgba(255,255,255,.8);box-shadow:0 30px 100px #152f4f33;outline:none}
.tc-overlay button{font:inherit;cursor:pointer;border:1px solid #dce5ef;background:#fff;color:#41536b;border-radius:8px;padding:7px 12px;transition:background .15s,border-color .15s;box-shadow:none;transform:none;min-height:34px}
.tc-overlay button:hover{background:#f0f6ff;border-color:#b7cdf0}.tc-overlay button:disabled{opacity:.55;cursor:not-allowed}.tc-overlay button:focus-visible,.tc-overlay input:focus-visible,.tc-overlay textarea:focus-visible,.tc-overlay select:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.tc-overlay input,.tc-overlay textarea,.tc-overlay select{font:inherit;color:#233550;border:1px solid #dce5ef;border-radius:9px;background:#fff;padding:10px 12px;box-shadow:none;min-width:0}
.tc-overlay svg{width:22px;height:22px;flex-shrink:0}.tc-header{height:82px;min-height:82px;padding:16px 24px;display:flex;align-items:center;gap:13px;border-bottom:1px solid #e7edf4;background:linear-gradient(110deg,#f6faff,#fff 70%)}
.tc-header h2{margin:0;font-size:20px;letter-spacing:-.5px;color:#172b47}.tc-header p{margin:3px 0 0;font-size:12px;color:#8291a5}.tc-brand-icon{height:44px;width:44px;display:grid;place-items:center;border-radius:13px;background:#2563eb;color:#fff}.tc-connection{margin-left:auto;font-size:11px;color:#627c95;display:flex;align-items:center;gap:6px}.tc-connection:before{content:'';width:6px;height:6px;border-radius:50%;background:#4c91cc}.tc-overlay .tc-icon-btn{font-size:25px;border:0;width:34px;padding:0;background:transparent;color:#76869a}
.tc-notice{padding:10px 24px;background:#fff5e7;color:#83520e;border-bottom:1px solid #f7dfbd;font-size:12px}
.tc-layout{display:grid;grid-template-columns:310px minmax(0,1fr);flex:1;min-height:0}
.tc-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e6edf5;background:#fbfcfe;padding:20px 12px 12px}.tc-sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:0 7px 18px}.tc-sidebar-title>b{font-size:16px}.tc-sidebar-title>div{display:flex;gap:5px}.tc-sidebar-title button{font-size:11px;padding:5px 8px;min-height:30px}.tc-search{display:flex;align-items:center;margin:0 5px 14px;padding:0 9px;border:1px solid #e3eaf3;border-radius:9px;background:#f2f5fa;color:#8191a8}.tc-search input{width:100%;border:0;background:transparent;font-size:12px;padding:9px 7px}.tc-rooms{overflow:auto;flex:1}.tc-overlay .tc-room{width:100%;display:flex;gap:11px;align-items:center;border:1px solid transparent;background:transparent;text-align:left;padding:14px 10px;margin-bottom:3px;border-radius:10px}.tc-overlay .tc-room.selected{background:#eaf2ff;border-color:#d9e7ff}.tc-room-copy{display:flex;flex:1;flex-direction:column;min-width:0;gap:6px}.tc-room-copy>span{display:flex;gap:7px;align-items:center;justify-content:space-between}.tc-room-copy b{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tc-room-copy small{color:#8695a9;font-size:9px;flex-shrink:0}.tc-room-copy em{font-style:normal;font-size:11px;color:#8391a4;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tc-room-copy i{font-style:normal;font-size:10px;border-radius:20px;color:#fff;background:#3275e7;padding:0 5px;min-width:17px;text-align:center}.tc-avatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;font-size:14px;font-weight:700;background:#e8effa;color:#5674a6;border:1px solid #dfe8f7;border-radius:12px}.tc-avatar.tc-group-avatar{background:#e4f5f3;color:#219788;border-color:#d5eeea}.tc-sidebar-note{font-size:10px;color:#96a4b4;padding:14px 8px 0}.tc-main{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}.tc-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;flex:1;background:radial-gradient(ellipse at 50% 40%,#eff6ff,transparent 65%)}.tc-empty-art{display:grid;place-items:center;width:96px;height:96px;border-radius:28px;background:#fff;border:1px solid #e0ebfa;box-shadow:0 12px 35px #3173d714;margin-bottom:28px;color:#4283ed;transform:rotate(-5deg)}.tc-empty-art svg{width:44px;height:44px}.tc-eyebrow{font-size:10px;letter-spacing:2px;color:#5b86b4;font-weight:700}.tc-empty h3{font-size:24px;letter-spacing:-.7px;margin:12px 0}.tc-empty p{font-size:13px;line-height:1.9;color:#7c8da3;margin:0 0 25px}
.tc-room-head{display:flex;align-items:center;padding:20px 26px;gap:12px;border-bottom:1px solid #e9eef5}.tc-room-head h3{font-size:16px;margin:0}.tc-room-head p{font-size:11px;margin:4px 0 0;color:#8292a6}.tc-room-head>button{margin-left:auto;font-size:11px}.tc-messages{flex:1;overflow:auto;padding:22px 28px;background:#f7f9fc;min-height:0;overscroll-behavior:contain}.tc-message{display:flex;align-items:flex-start;gap:10px;margin:19px 0}.tc-message>div{max-width:78%;min-width:0}.tc-message .tc-avatar{width:32px;height:32px;flex-basis:32px;font-size:12px;border-radius:10px}.tc-message-meta{display:flex;gap:12px;font-size:10px;color:#8292a6;margin-bottom:6px}.tc-message-meta time{font-size:9px}.tc-bubble{display:inline-block;padding:11px 15px;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #e5eaf1;border-radius:2px 12px 12px;font-size:13px;line-height:1.75;box-shadow:0 2px 3px #1b3c6303}.tc-message.mine{flex-direction:row-reverse}.tc-message.mine>div{text-align:right}.tc-message.mine .tc-message-meta{justify-content:flex-end}.tc-message.mine .tc-bubble{background:#2d6cdf;border-color:#2d6cdf;color:#fff;text-align:left;border-radius:12px 2px 12px 12px}.tc-message.mine .tc-avatar{background:#dae9ff;color:#3267b6}.tc-history-note{text-align:center;font-size:10px;color:#9ba7b7;padding:8px}.tc-overlay .tc-more{display:block;margin:5px auto 12px;border:0;background:transparent;font-size:11px;color:#5780ac}.tc-overlay .tc-new-messages{position:absolute;bottom:174px;left:50%;transform:translateX(-50%);border-radius:20px;border-color:#cee0fb;box-shadow:0 3px 12px #264c7420;color:#2563eb;font-size:11px}.tc-compose{padding:12px 24px 17px;border-top:1px solid #e6edf5;background:#fff}.tc-compose textarea{resize:none;display:block;border:0;width:100%;padding:7px 0;font-size:13px;min-height:70px;max-height:150px;background:transparent;box-shadow:none!important}.tc-compose textarea:focus{box-shadow:none!important}.tc-compose-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.tc-compose-bottom>span{color:#9ba8b9;font-size:10px}.tc-send-state{font-size:11px;color:#a66b13}.tc-overlay .tc-primary{background:#2563eb;color:#fff;border-color:#2563eb;font-size:12px;font-weight:600;padding:9px 18px}.tc-overlay .tc-primary:hover{background:#1d56cd;color:#fff;border-color:#1d56cd}.tc-picker{display:flex;flex-direction:column;gap:18px;padding:30px;overflow:auto;flex:1;min-height:0}.tc-picker-heading h3{font-size:23px;margin:8px 0}.tc-picker-heading p{font-size:12px;color:#8593a5;margin:0}.tc-picker>label{display:grid;gap:7px;font-size:12px;color:#697d97}.tc-picker>label small{color:#8b9aae}.tc-contacts{flex:1;min-height:100px;overflow:auto}.tc-contact{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:11px!important;border:1px solid #edf1f7!important;margin-bottom:6px;border-radius:10px}.tc-contact>span:not(.tc-avatar){display:grid;gap:3px;flex:1}.tc-contact b{font-size:13px}.tc-contact small{font-size:11px;color:#8b9aae}.tc-contact i{font-style:normal;color:#9caac0}.tc-contact.chosen{background:#edf4ff!important;border-color:#b3cff8!important}.tc-contact.chosen i{color:#2563eb}.tc-contact>button{font-size:11px;flex-shrink:0;padding:5px 8px}.tc-picker footer{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#8192a9;gap:10px}.tc-inline{display:flex;align-items:center;gap:8px}.tc-inline input,.tc-inline select{flex:1;min-width:0}.tc-inline button{font-size:12px}.tc-overlay .tc-danger{color:#b74052;background:#fff7f8;border-color:#f2d8de}.tc-list-empty{padding:30px 12px;color:#8c9bb0;font-size:12px;text-align:center}.tc-overlay .tc-back{align-self:flex-start;font-size:12px;background:transparent;border:0;padding:0;color:#5c85b4}
@media(max-width:760px){.tc-overlay{padding:0}.tc-window{width:100%;height:100dvh;border-radius:0}.tc-layout{grid-template-columns:180px minmax(0,1fr)}.tc-header{padding:12px 16px;height:68px;min-height:68px}.tc-header h2{font-size:17px}.tc-header p,.tc-connection{display:none}.tc-header .tc-icon-btn{margin-left:auto}.tc-sidebar{padding:14px 6px}.tc-sidebar-title{flex-wrap:wrap;gap:8px;padding-bottom:10px}.tc-room-copy small{display:none}.tc-room .tc-avatar{width:28px;height:28px;flex-basis:28px;border-radius:9px;font-size:11px}.tc-overlay .tc-room{padding:12px 5px;gap:7px}.tc-room-head{padding:12px;flex-wrap:wrap}.tc-room-head>button{margin-left:0}.tc-messages{padding:12px}.tc-message>div{max-width:85%}.tc-message>.tc-avatar{display:none}.tc-compose{padding:10px 12px}.tc-compose-bottom>span{display:none}.tc-compose-bottom{justify-content:flex-end}.tc-picker{padding:16px}.tc-empty{padding:18px}.tc-empty h3{font-size:19px}.tc-contact{flex-wrap:wrap}.tc-inline{flex-wrap:wrap}.tc-picker footer{flex-wrap:wrap}.tc-sidebar-note{display:none}}
@media(max-width:470px){.tc-layout{grid-template-columns:125px minmax(0,1fr)}.tc-sidebar-title>div{flex-wrap:wrap;gap:4px}.tc-room>.tc-avatar{display:none}.tc-search{margin:0 0 8px;padding:0 4px}.tc-search input{font-size:11px;width:75px}.tc-room-copy b{font-size:12px}.tc-picker h3{font-size:18px}.tc-contact>.tc-avatar{display:none}.tc-empty-art{width:65px;height:65px}.tc-room-head h3{font-size:14px}.tc-room-head>.tc-avatar{display:none}.tc-overlay .tc-primary{padding:9px 12px}}
@media(prefers-reduced-motion:reduce){.tc-overlay *{transition:none!important}}
.tc-alert-panel{padding:16px 24px;border-bottom:1px solid #dce8fb;background:#f3f8ff;flex-shrink:0;max-height:40vh;overflow:auto}
.tc-alert-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.tc-alert-heading>b{font-size:14px;color:#214b83}.tc-alert-heading>span{font-size:11px;color:#54816f}
.tc-alert-panel p{font-size:12px;color:#667e9b;margin:8px 0;line-height:1.6}.tc-alert-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.tc-alert-options label{display:flex;align-items:center;gap:5px;font-size:12px}.tc-alert-options input{accent-color:#2563eb;padding:0}.tc-alert-panel button{font-size:12px}
@media(max-width:760px){.tc-header #tcAlertsToggle{margin-left:auto;font-size:11px;padding:5px 8px}.tc-header .tc-icon-btn{margin-left:0}.tc-alert-panel{padding:12px 16px}.tc-alert-heading{flex-wrap:wrap;gap:4px}.tc-alert-options{gap:8px}}

#teamChatButton.has-unread{color:#1d4ed8;background:#e2edff;border-color:#8db4f5;box-shadow:0 0 0 3px #2563eb12}
.tc-compose{min-height:118px;overflow-y:auto}.tc-compose-tools{display:flex;align-items:center;margin-bottom:3px}.tc-compose-tools #tcEmojiToggle{font-size:12px;padding:3px 9px;min-height:29px;border-color:transparent;background:transparent;color:#6380a0}.tc-compose-tools #tcEmojiToggle span{font-size:22px;line-height:1;vertical-align:-2px}.tc-compose-tools #tcEmojiToggle[aria-expanded="true"]{color:#2563eb;background:#edf4ff;border-color:#d6e5fc}
.tc-emoji-panel{padding:8px 10px;background:#f6f9ff;border:1px solid #e0eafa;border-radius:10px;max-height:158px;overflow:auto;overscroll-behavior:contain;margin:4px 0 7px}.tc-emoji-caption{font-size:10px;color:#8292a6;margin-bottom:5px}.tc-emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:3px;max-width:410px}.tc-overlay .tc-emoji-choice{font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;font-size:23px;line-height:1;height:35px;min-height:35px;padding:0;border:1px solid transparent;background:transparent}.tc-overlay .tc-emoji-choice:hover{background:#e4eeff;border-color:#c9ddff}
@media(max-width:470px){.tc-emoji-panel{padding:6px;max-height:135px}.tc-emoji-grid{grid-template-columns:repeat(auto-fill,minmax(30px,1fr));gap:2px}.tc-overlay .tc-emoji-choice{font-size:22px}}
