.workbench-ui .chat-workspace{height:calc(100dvh - 48px);min-height:0;display:flex;overflow:hidden;background:var(--theme-surface,#fff)}
.workbench-ui .chat-main{min-width:0;min-height:0;flex:1;display:flex;flex-direction:column;position:relative}
.workbench-ui .chat-heading{min-height:78px;padding:16px 24px;gap:20px;flex-shrink:0;border-bottom:1px solid var(--theme-line,#e1e7eb);align-items:center}
.chat-channel-identity{min-width:0;flex:1}.chat-channel-title{display:flex;align-items:center;gap:10px;background:none;border:0;padding:0;color:#193b4d;text-align:left;max-width:100%}.chat-channel-title h1{font-size:20px;letter-spacing:-.025em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-channel-title>.icon{flex:none}.chat-channel-title>.icon:last-child{width:15px}.chat-topic{font-size:13px;line-height:1.5;color:var(--theme-muted,#526c79);margin:5px 0 0 30px;max-width:70ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workbench-ui .chat-heading-actions{display:flex;gap:8px;align-items:center;flex:none}.chat-members-button{font-size:12px}
.workbench-ui .chat-main .conversation-tabs{min-height:44px;padding:0 24px;gap:24px;flex-shrink:0;border-bottom:1px solid var(--theme-line,#e1e7eb);overflow-x:auto}.workbench-ui .chat-main .conversation-tabs button{font-size:13px;white-space:nowrap;padding:12px 0}
.workbench-ui .chat-main>.messages{flex:1;height:auto;min-height:0;padding:16px 0 20px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;position:relative}
.workbench-ui .chat-main .message,.workbench-ui .thread-panel .message{position:relative;display:flex;gap:14px;min-width:0;padding:12px 24px;border:0;background:transparent;scroll-margin-top:20px}.workbench-ui .chat-main .message:hover,.workbench-ui .thread-panel .message:hover{background:var(--theme-surface-muted,#f6f8fa)}.workbench-ui .chat-main .message>.avatar,.workbench-ui .thread-panel .message>.avatar{width:36px;height:36px;flex:none;font-size:12px;align-self:start}.workbench-ui .message-content{min-width:0;flex:1}.workbench-ui .chat-main .message-byline,.workbench-ui .thread-panel .message-byline{display:flex;align-items:baseline;gap:10px;line-height:1.4;margin-bottom:5px;padding-right:50px}.workbench-ui .chat-main .message-byline strong,.workbench-ui .thread-panel .message-byline strong{font-size:14px;font-weight:700;color:#193b4d}.workbench-ui .message-byline time{font-size:11px;font-variant-numeric:tabular-nums;color:var(--theme-muted,#5e7480)}
.workbench-ui .chat-main .message-content>p,.chat-message-text{font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--theme-ink,#263f4d);max-width:76ch;margin:0}.chat-message-text{white-space:normal}.chat-message-text p{margin:0 0 8px;font-size:inherit;line-height:inherit}.chat-message-text p:last-child{margin-bottom:0}.chat-message-text ul,.chat-message-text ol{margin:8px 0;padding-left:24px}.chat-message-text blockquote{border-left:1px solid var(--theme-line,#a8bec6);padding-left:14px;margin:8px 0;color:var(--theme-muted,#526b78)}.chat-message-text a{color:#a63b24;text-decoration:underline;text-underline-offset:3px}.chat-message-text code{font-family:Consolas,monospace;font-size:13px;background:var(--theme-surface-muted,#edf1f3);padding:2px 5px;border-radius:4px}.chat-message-text pre{overflow:auto;background:var(--theme-surface-muted,#edf1f3);padding:14px;border-radius:8px;white-space:pre}.chat-message-text pre code{padding:0;background:none}.chat-message-text .chat-mention{background:#f8e9e3;color:#953820;border-radius:3px;padding:0 3px;font-weight:600}.chat-message-text img{max-width:100%}
.workbench-ui .chat-main .message.is-continuation{padding-top:3px;padding-bottom:5px}.message.is-continuation>.avatar{visibility:hidden}.message.is-continuation .message-byline{display:none}.message.is-continuation:hover:before{content:attr(data-time);position:absolute;left:15px;top:7px;font-size:10px;color:var(--theme-muted,#5e7480);font-variant-numeric:tabular-nums}.workbench-ui .message.is-deleted .chat-message-text{font-size:14px;color:var(--theme-muted,#627783);font-style:italic}
.chat-day-separator,.chat-unread-separator{display:flex;align-items:center;gap:16px;margin:20px 24px 12px;font-size:12px;font-weight:650;color:var(--theme-muted,#536d7b);clear:both}.chat-day-separator:before,.chat-day-separator:after,.chat-unread-separator:before,.chat-unread-separator:after{content:'';height:1px;background:var(--theme-surface-hover,#e1e7eb);flex:1}.chat-unread-separator{color:#a83d27}.chat-unread-separator:before,.chat-unread-separator:after{background:#e7b9ad}
.workbench-ui .message-toolbar{position:absolute;right:16px;top:4px;display:flex;align-items:center;gap:2px;margin:0;background:var(--theme-surface,#fff);border:1px solid var(--theme-line,#d7e0e5);border-radius:8px;padding:3px;opacity:0;transition:opacity .12s}.message:hover .message-toolbar,.message:focus-within .message-toolbar{opacity:1}.workbench-ui .message-toolbar>button:not(.message-more):not([data-chat-react]){display:none}.workbench-ui .message-toolbar .icon-button{width:30px;height:30px;padding:5px}.chat-reactions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}.chat-reactions:empty{display:none}.chat-reaction{display:flex;gap:5px;align-items:center;min-height:29px;border:1px solid var(--theme-line,#d9e3e7);border-radius:8px;padding:2px 8px;background:var(--theme-surface-muted,#f8fafb);font-size:17px;line-height:1.3}.chat-reaction>small{font-size:11px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--theme-muted,#395968)}.chat-reaction[aria-pressed=true]{background:#fbece6;border-color:#c47a64}.chat-message-pin{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--theme-muted,#77602f);margin:0 0 6px}.chat-message-pin .icon{width:13px;height:13px}.chat-seen{font-size:11px;line-height:1.4;color:var(--theme-muted,#5c7481);display:block;margin-top:6px}.chat-files{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}.chat-attachment{display:flex;align-items:center;gap:10px;padding:12px;min-width:190px;max-width:320px;min-height:60px;border:1px solid var(--theme-line,#dbe4e8);border-radius:9px;background:#fff;color:var(--theme-ink,#23495c)}.chat-attachment .icon{width:24px;height:24px;flex:none}.chat-attachment>span{min-width:0;display:flex;flex-direction:column;gap:5px}.chat-attachment strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-attachment small{font-size:11px;color:var(--theme-muted,#5e7480)}.chat-jump-target{background:#fff1df!important;animation:chat-highlight 2.5s ease-out forwards}@keyframes chat-highlight{from{background:#fff1df}to{background:transparent}}
.workbench-ui .chat-main .thread-trigger{font-size:12px;padding-top:8px;gap:6px}.workbench-ui .chat-main .thread-summary-copy strong{font-size:12px}.workbench-ui .chat-main .thread-summary-preview{font-size:12px;max-width:65ch}
.workbench-ui .message-composer{margin:8px 24px 16px;padding:0;border:1px solid var(--theme-line,#b9cbd3);border-radius:12px;background:var(--theme-surface,#fff);flex-shrink:0;overflow:visible}.workbench-ui .message-composer:focus-within{border-color:#b95037;outline:1px solid #b95037;outline-offset:0}.workbench-ui .message-composer>textarea{border:0!important;outline:0!important;box-shadow:none!important;resize:none;padding:16px 16px 8px;font-size:15px;line-height:1.6;min-height:76px;max-height:190px;width:100%;background:transparent;border-radius:12px}.chat-composer-tools{display:flex;align-items:center;gap:3px;padding:5px 10px 7px}.chat-composer-tools .icon-button{width:31px;height:31px;padding:6px}.chat-composer-tools .chat-compose-hint{margin-left:auto;font-size:10px;color:var(--theme-muted,#657b86)}.workbench-ui .composer-bottom{padding:8px 12px 12px;display:flex;gap:10px;justify-content:space-between;align-items:center}.workbench-ui .composer-bottom>div{display:flex;align-items:center;gap:4px;min-width:0}.workbench-ui .composer-bottom .button{font-size:12px}.workbench-ui .composer-bottom [type=submit]{min-height:38px}.chat-composer-files{padding:0 14px;display:flex;flex-wrap:wrap;gap:6px}.chat-file-chip{display:flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid var(--theme-line,#dbe4e8);border-radius:6px;font-size:12px;max-width:100%}.chat-file-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}.chat-file-chip button{padding:2px;border:0;background:none}.chat-file-chip .icon{width:15px;height:15px}.chat-typing{font-size:12px;line-height:1.5;color:var(--theme-muted,#506b79);min-height:22px;padding:0 25px 3px;flex-shrink:0}.chat-typing:empty{visibility:hidden}.chat-new-messages{position:absolute;left:50%;bottom:155px;transform:translateX(-50%);z-index:4;background:#234c60;color:#fff;border:0;border-radius:8px;padding:9px 15px;font-size:12px;box-shadow:0 4px 14px #193b4d24}.chat-join-notice,.chat-archived-notice{display:flex;align-items:center;justify-content:center;gap:14px;padding:12px;font-size:13px;background:var(--theme-surface-muted,#f5f8f9)}.chat-archived-notice{margin-top:auto}
.emoji-picker{position:fixed;inset:auto;margin:0;width:360px;max-width:calc(100vw - 24px);height:390px;max-height:70dvh;border:1px solid var(--theme-line,#d7e1e6);border-radius:12px;padding:0;box-shadow:0 8px 30px #163b5029;background:#fff;color:var(--theme-ink,#254b60);z-index:100}.emoji-picker:popover-open{display:flex;flex-direction:column}.emoji-picker header{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--theme-line,#e0e7eb)}.emoji-picker header input{min-width:0;flex:1;margin:0;font-size:13px}.emoji-picker .emoji-categories{display:flex;gap:4px;overflow:auto;padding:8px;border-bottom:1px solid var(--theme-line,#e0e7eb);flex:none}.emoji-categories button{white-space:nowrap;font-size:11px;border:0;background:transparent;padding:6px 8px;border-radius:5px;color:var(--theme-muted,#476574)}.emoji-categories button[aria-pressed=true]{background:#f9e8e1;color:#9d3c27}.emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:3px;align-content:start;overflow:auto;padding:10px;flex:1}.emoji-grid button{font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif;font-size:24px;line-height:1.3;border:0;background:none;border-radius:6px;padding:5px;min-height:37px}.emoji-grid button:hover,.emoji-grid button:focus-visible{background:#f5e7e1;outline:2px solid #bd674d;outline-offset:-2px}.emoji-empty{grid-column:1/-1;font-size:13px;padding:16px;color:var(--theme-muted,#526c79)}.emoji-count{font-size:11px;color:var(--theme-muted,#5f7581);padding:7px 12px;border-top:1px solid var(--theme-line,#e3e9ed)}
.chat-mention-list{position:fixed;inset:auto;margin:0;width:320px;max-width:calc(100vw - 24px);max-height:240px;overflow:auto;border:1px solid var(--theme-line,#d7e1e6);border-radius:10px;padding:6px;background:var(--theme-surface,#fff);box-shadow:0 5px 20px #183c5029;z-index:99}.chat-mention-list button{display:flex;align-items:center;gap:9px;border:0;background:none;width:100%;padding:9px;border-radius:6px;text-align:left;font-size:13px}.chat-mention-list button[aria-selected=true],.chat-mention-list button:hover{background:#f7e9e3}.chat-mention-list .avatar{width:29px;height:29px;font-size:10px}
.channel-settings .channel-settings-summary{display:flex;align-items:center;gap:12px;margin:0 0 20px}.channel-settings-summary h3{font-size:18px}.channel-settings-summary p{font-size:12px;color:var(--theme-muted,#526c79);margin:5px 0 0}.channel-member-list{max-height:320px;overflow:auto;margin:16px 0}.channel-member-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--theme-line,#e0e7eb)}.channel-member-row>.avatar{width:34px;height:34px;flex:none}.channel-member-row .member-name{min-width:0;flex:1}.channel-member-row strong{font-size:14px;display:block}.channel-member-row small{font-size:11px;color:var(--theme-muted,#5b7482);display:block;overflow-wrap:anywhere;margin-top:4px}.channel-member-row select{width:125px;min-height:34px;font-size:12px}.channel-add-members{padding:14px 0}.channel-add-options{max-height:200px;overflow:auto}.channel-add-options label{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:13px;margin:0;padding:9px}.channel-add-options input{width:16px;height:16px}.channel-settings details{padding:14px 0;border-top:1px solid var(--theme-line,#dfe7eb)}.channel-settings summary{font-size:14px;font-weight:650;cursor:pointer}.channel-settings form{margin-top:16px}.channel-mute-toggle{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:13px}.channel-mute-toggle input{width:17px;height:17px}.channel-settings .form-error{margin:8px 0}
.workbench-ui .thread-panel{width:440px;flex-basis:440px;max-width:45vw;background:var(--theme-surface,#fff)}.workbench-ui .thread-panel>header{padding:18px 20px}.workbench-ui .thread-panel>header h2{font-size:17px}.workbench-ui #thread-form{padding:14px 18px;border-top:1px solid var(--theme-line,#dde6eb)}.workbench-ui #thread-form label{margin:0}.workbench-ui #thread-form textarea{font-size:14px;line-height:1.55;min-height:80px;resize:vertical}.workbench-ui #thread-form>.button{float:right;margin-top:8px}.workbench-ui #thread-messages .message{padding:12px 18px;gap:10px}.workbench-ui #thread-messages .chat-message-text{font-size:14px}.chat-pins-list .message{cursor:default}.chat-pins-list .chat-open-original{margin:8px 0 0;font-size:12px}
@media(max-width:1100px){.chat-heading-actions .chat-members-button span{display:none}.workbench-ui .chat-heading{padding:14px 18px;gap:10px}.workbench-ui .chat-heading-actions .button{padding:7px 9px}.workbench-ui .thread-panel{width:390px;flex-basis:390px}.workbench-ui .chat-main .message{padding-right:18px;padding-left:18px}}
@media(max-width:760px){.workbench-ui .chat-workspace{height:calc(100dvh - 109px)}.workbench-ui .chat-heading{padding:12px;min-height:68px;gap:6px}.chat-channel-title h1{font-size:17px}.chat-channel-title>.icon:first-child{display:none}.chat-topic{margin-left:0;font-size:12px;max-width:37ch}.workbench-ui .chat-heading-actions{gap:3px}.workbench-ui .chat-heading-actions .button span,.workbench-ui .chat-heading-actions .chat-members-button{display:none}.workbench-ui .chat-heading-actions>.button{width:34px;height:34px;padding:6px}.workbench-ui .chat-heading-actions>.icon-button{width:32px;height:34px}.workbench-ui .chat-main .conversation-tabs{padding:0 12px;gap:19px;min-height:42px}.workbench-ui .chat-main .conversation-tabs button{font-size:12px}.workbench-ui .chat-main .message{padding:11px 12px;gap:10px}.workbench-ui .chat-main .message>.avatar{width:31px;height:31px;font-size:10px}.workbench-ui .chat-main .message-byline strong{font-size:13px}.chat-message-text{font-size:15px;line-height:1.6}.workbench-ui .message-toolbar{right:6px;top:4px;border:0;background:transparent;opacity:1}.workbench-ui .message-toolbar [data-chat-react]{display:none}.workbench-ui .message-toolbar .icon-button{width:25px;height:25px;padding:4px}.workbench-ui .message-composer{margin:6px 10px 10px}.workbench-ui .message-composer>textarea{min-height:65px;padding:12px 12px 5px}.chat-composer-tools{padding:3px 7px}.chat-composer-tools .chat-compose-hint{display:none}.workbench-ui .composer-bottom{padding:4px 8px 9px}.workbench-ui .composer-bottom .button{font-size:11px;padding:7px 8px}.chat-typing{padding:0 12px;min-height:20px;font-size:11px}.chat-day-separator,.chat-unread-separator{margin:14px 12px 9px}.chat-attachment{max-width:100%;min-width:180px}.workbench-ui .thread-panel{position:fixed;top:48px;bottom:61px;left:0;right:0;width:100%;max-width:none;z-index:25}.workbench-ui #thread-form{padding:12px}.channel-member-row{flex-wrap:wrap}.channel-member-row .member-name{min-width:150px}.channel-member-row select{margin-left:44px}.channel-member-row .icon-button{margin-left:auto}.emoji-picker{width:350px}.chat-new-messages{bottom:160px}}

.chat-file-dialog input[type=file]{display:none}.chat-file-dialog .channel-add-options label{display:flex;flex-direction:row;align-items:center;gap:10px;padding:8px;font-size:13px;margin:0}.chat-file-dialog .channel-add-options input{width:16px;height:16px}.chat-file-dialog .channel-add-options{max-height:280px;overflow:auto}

.chat-sidebar-search{display:flex;align-items:center;gap:7px;margin:15px 0 8px;padding:6px 8px;border:1px solid var(--theme-line,#dbe4e9);border-radius:7px;background:var(--theme-surface,#fff)}.chat-sidebar-search .icon{width:15px;height:15px;flex:none}.chat-sidebar-search input{min-width:0;width:100%;border:0;padding:3px 0;margin:0;font-size:12px;box-shadow:none!important;outline:none!important}.context-nav a[hidden]{display:none!important}
