/* Conversation proportions and quiet surfaces follow the supplied desktop reference. */
:root{--ink:#242424;--muted:#999;--line:#e9e9e9;--green:#07b75b;--green-light:#e4e4e4;--background:#f7f7f7;font-family:"Microsoft YaHei UI","Microsoft YaHei","Segoe UI",sans-serif}
button,input,textarea,select{font-family:inherit}button{font-weight:400}button:hover{filter:none}button:disabled{cursor:default}button:focus-visible,summary:focus-visible{outline:2px solid #07a94f;outline-offset:2px}
.workspace{background:#f7f7f7}.workspace-body{height:100%;overflow:hidden}.sidebar{width:280px;background:#ececec;border-right:1px solid #e2e2e2}.sidebar-head{height:72px;padding:18px 18px 10px;flex-shrink:0}.sidebar-head h2{font-size:17px;font-weight:500}.sidebar-footer{border:0;padding:12px 18px;font-size:11px;color:#aaa}.chat-search{border:0;border-radius:5px;background:#dedede;font-size:13px;padding:9px 12px}.chat-tabs{padding:12px 16px 8px;gap:4px}.chat-tabs button{padding:5px;font-size:12px;color:#888}.chat-tabs button.active{color:#333;background:#d9d9d9}.chat-list{padding:0}.chat-item{margin:0;border:0;border-radius:0;padding:16px;gap:12px}.chat-item:hover{background:#e3e3e3}.chat-item.selected,.chat-item.is-pinned.selected{background:#d7d7d7;border:0}.chat-item.is-pinned{background:#e5e5e5}.chat-avatar{width:40px;height:40px;border-radius:5px;background:#d9dfda;color:#627167;font-weight:400}.chat-item.selected .chat-avatar{background:#cdd8d0;color:#516358}.chat-title{font-size:14px;font-weight:400;display:block;white-space:nowrap;text-overflow:ellipsis}.chat-preview{font-size:12px;color:#999;margin-top:4px}.chat-meta{font-size:10px;margin-top:4px;color:#aaa}.chat-badges{margin-top:2px}.pin-badge{color:#999}.unread-badge{background:#f25555}
.conversation{position:relative;background:#f7f7f7}.conversation-head{height:72px;min-height:72px;padding:12px 20px;gap:10px;background:#f7f7f7;border-bottom:1px solid #ebebeb;flex-wrap:nowrap;flex-shrink:0}.conversation-head .conversation-heading{flex:1;min-width:0}.conversation-head h1{font-size:20px;font-weight:400;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-head #conversation-meta{display:none}.conversation-head>details{flex:none}
.icon-button{display:inline-flex;justify-content:center;align-items:center;width:36px;height:36px;padding:6px;border:0;border-radius:5px;background:transparent;color:#444;cursor:pointer;flex-shrink:0;list-style:none}.icon-button:hover,.icon-button[aria-expanded=true]:not(#toggle-sidebar){background:#e6e6e6}.icon-button .wc-icon{opacity:.68}.icon-button:hover .wc-icon{opacity:.9}summary::-webkit-details-marker{display:none}.menu-popover{position:relative}.menu-content{position:absolute;top:calc(100% + 8px);right:0;width:232px;background:#fff;border:1px solid #e5e5e5;border-radius:6px;box-shadow:0 5px 24px #0002;padding:8px;z-index:40}.menu-content button{display:block;width:100%;text-align:left;padding:10px 12px;background:transparent;color:#333;font-size:13px;border:0;border-radius:3px}.menu-content button:hover{background:#f1f1f1}.menu-content p,.menu-content>strong{display:block;font-size:11px;line-height:1.7;color:#888;margin:6px 10px;font-weight:400}.menu-content .chat-actions{display:block}.menu-content .chat-actions[hidden]{display:none}.account-menu .menu-content{right:-3px;width:245px}.account-menu .coverage,.account-menu #sync-feedback{border:0;background:transparent;padding:0;font-size:11px}.account-menu .coverage{margin:6px 10px}.sidebar-collapsed .sidebar{display:none}
.search-panel{padding:14px 24px;background:#f7f7f7;flex-shrink:0}.search-line input{background:#fff;border:1px solid #ddd;border-radius:5px}.search-line button{border-radius:5px}.search-options summary{color:#888}.filters{gap:10px}.filters input,.filters select{border-color:#ddd}.message-notice{background:#f1f1f1;color:#888;font-size:12px;padding-left:24px;padding-right:24px}.message-notice.problem{background:#fff1ee;color:#a4382e}
.messages{padding:24px 28px 18px;background:#f7f7f7;scrollbar-color:#c7c7c7 transparent;scrollbar-width:thin}.messages:focus{outline:none}.day-divider{font-size:11px;color:#aaa;margin:4px 0 24px}.message{max-width:min(760px,82%);gap:12px;margin:0 0 26px;align-items:flex-start}.message-avatar,.message.self .message-avatar{width:40px;height:40px;border:0;border-radius:5px;background:#dfe6e1;color:#6c7b70;font-size:15px;font-weight:400}.message.self .message-avatar{background:#fff;color:#3f5d49}.message-main{max-width:calc(100% - 52px)}.message-meta{gap:8px;margin:0 0 4px;line-height:1.5}.sender-name{font-size:12px;font-weight:400;color:#999}.message-time{font-size:10px;color:#aaa;opacity:0;transition:opacity .1s}.message:hover .message-time,.message:focus-within .message-time{opacity:1}.message.self .message-meta{display:none}.bubble{border:0;border-radius:5px;padding:10px 13px;background:#fff;box-shadow:none;font-size:16px;line-height:1.6;white-space:pre-wrap}.message.self .bubble{border:0;background:#a9e879;border-radius:5px}.message-copy{opacity:0;position:absolute;font-size:10px;padding:2px 5px;margin:2px 0;background:transparent;border:0;color:#999}.message:hover .message-copy,.message:focus-within .message-copy{opacity:1}.message-main{position:relative}.message.self .message-copy{right:0}.outgoing-status{font-size:10px;margin-top:4px;min-height:15px;color:#aaa}.outgoing-status.send-problem{color:#bb4235}
.message[data-type="图片"] .bubble,.message[data-type="视频"] .bubble{padding:0;background:transparent;border:0;border-radius:5px;overflow:visible}.chat-image-preview{max-width:240px}.message .chat-image{display:block;max-width:240px;max-height:340px;width:auto;height:auto;border-radius:5px;object-fit:contain}.chat-image-actions{opacity:0;position:absolute;bottom:5px;left:5px;right:5px;display:flex;justify-content:flex-end;background:#ffffffde;border-radius:4px;padding:3px 6px;gap:8px;font-size:10px;transition:opacity .1s}.chat-image-preview{position:relative}.chat-image-preview:hover .chat-image-actions,.chat-image-preview:focus-within .chat-image-actions{opacity:1}.chat-image-caption{display:none}.chat-image-download{font-size:11px;color:#666}.chat-image-hint{font-size:12px;color:#999;padding:18px;background:#eee;border-radius:5px;max-width:240px}.chat-image-retry{font-size:11px;color:#888;padding:5px 8px;background:#eee}
.message .file-bubble,.message[data-type="链接/文件"] .bubble{background:#eeeef0;border:0;border-radius:6px;min-width:min(270px,65vw);max-width:360px;padding:13px}.file-card-header{display:flex;align-items:center;gap:20px;white-space:normal}.file-card-copy{flex:1;min-width:0}.file-card-header .wc-icon{width:38px;height:44px;flex-basis:38px;opacity:.45}.outgoing-file-name,.chat-image-filename{font-size:15px;font-weight:400;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all}.outgoing-file-size{color:#a4a4aa;font-size:12px;margin:3px 0 0}.message .file-bubble .attachment-preview{padding:0;margin-top:10px;max-height:none;overflow:visible;border:0;background:transparent}.message .bubble .attachment-image{display:block;max-width:100%;max-height:240px;width:auto;height:auto;object-fit:contain;border-radius:4px;margin:auto}.message .bubble .attachment-download{font-size:11px;background:transparent;color:#888;border:0;padding:0;margin-top:8px}.file-bubble .attachment-text,.file-bubble .attachment-document{font-size:12px;padding:10px;background:#ffffffb3;border:0;border-radius:4px;max-height:160px;overflow:auto;white-space:pre-wrap}.file-bubble .preview-note{font-size:11px;color:#999}.message .chat-image-file .chat-image-preview{margin-top:9px}.document-card{max-width:330px}.document-card strong{font-size:15px;font-weight:400;line-height:1.6;word-break:break-all}.document-card p{font-size:11px;color:#999}.document-card button,.document-card a{font-size:11px;padding:4px 6px;border:0;color:#777;background:transparent}.document-body{font-size:12px;max-height:180px;white-space:pre-wrap}
.video-preview{position:relative;width:210px;min-height:260px;border-radius:5px;background:#e7e7e7;overflow:hidden}.video-preview .chat-image{width:210px;max-height:340px;object-fit:contain}.video-preview .chat-image-hint{display:grid;place-items:center;min-height:260px;background:#ededed;text-align:center}.video-preview .video-badge{position:absolute;bottom:9px;right:10px;color:#fff;background:#0005;padding:1px 6px;font-size:12px;border-radius:3px;pointer-events:none}.video-preview .video-open{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:42px;height:42px;padding:8px;background:#ffffffdd;border-radius:50%;border:1px solid #fff;display:flex;align-items:center;justify-content:center}.video-open .wc-icon{width:24px;height:24px}.video-preview .chat-image-actions{bottom:0;z-index:2}.video-preview .chat-image-retry{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);white-space:nowrap}
.history-navigation{position:absolute;z-index:4;top:76px;left:50%;transform:translateX(-50%);pointer-events:none}.history-navigation button{pointer-events:auto;background:#ffffffed;color:#999;border-radius:10px;padding:3px 10px;font-size:10px;box-shadow:0 1px 3px #0001}.history-navigation:has(button[hidden]){display:none}
.video-preview:has(img){min-height:0;width:max-content;max-width:240px}.video-preview .chat-image{width:auto;max-width:240px;max-height:340px}
.conversation-head .back-button{display:none}
.conversation-head h1{font-size:21px}.message-avatar,.message.self .message-avatar{width:44px;height:44px}.message-main{max-width:calc(100% - 56px)}.sender-name{font-size:15px}.message .chat-image,.video-preview .chat-image{max-height:300px}.file-preview-card>summary{list-style:none;cursor:pointer;outline-offset:5px}.file-preview-card:not([open])>:not(summary){display:none}.file-preview-hint{display:block;font-size:12px;color:#a0a0a7;margin-top:10px;line-height:1.4}.file-preview-card[open] .file-preview-hint{display:none}.file-preview-card[open] .file-card-header{margin-bottom:10px}.outgoing-file-name,.chat-image-filename,.document-card strong{font-size:18px;font-weight:400}.outgoing-file-size{font-size:14px}.file-card-header .wc-icon{width:45px;height:50px;flex-basis:45px}.message .file-bubble,.message[data-type="链接/文件"] .bubble{width:300px;max-width:min(360px,65vw)}
.conversation .send-panel{flex:0 0 clamp(175px,24vh,270px);max-height:none;overflow:visible;padding:0 10px 10px;background:#f7f7f7;border:0;min-height:0}.send-panel #send-form{position:relative;height:100%;display:flex;flex-direction:column;border:1px solid #dedede;border-radius:8px;background:#fafafa;box-shadow:0 1px 4px #00000005;padding:12px 14px 10px}.send-panel #send-form:focus-within{border-color:#c8c8c8}.send-panel #send-text{flex:1;min-height:45px;max-height:none;resize:none;padding:0 2px;border:0;border-radius:0;background:transparent;font-size:16px;line-height:1.6;outline:none;box-shadow:none}.send-panel #send-text::placeholder{color:#b1b1b6;font-size:17px}.send-panel #send-text:disabled{background:transparent}.composer-toolbar{display:flex;align-items:center;gap:16px;padding-top:8px}.composer-tools{display:flex;align-items:center;gap:9px}.send-panel .send-actions{margin:0;flex:1;justify-content:flex-end;gap:12px}.send-panel .draft-hint{flex:0 1 auto!important;color:#b4b4b4;font-size:10px;white-space:nowrap}.send-panel #send-button{background:#e7e7e7;color:#3a9d51;font-size:14px;font-weight:400;padding:6px 20px;border-radius:5px;min-width:68px}.send-panel #send-button:hover:not(:disabled){background:#dedede}.send-panel #send-button:disabled{color:#b7b7b7;opacity:1}.send-panel #send-feedback{font-size:11px;margin:4px 2px 0}.send-panel #send-availability{font-size:11px;color:#ba6155}
.send-panel #send-text::placeholder{font-size:21px}.send-panel .emoji-picker{position:relative;margin:0;padding:0;border:0;background:transparent;overflow:visible;max-height:none}.emoji-picker>summary{margin:0!important;padding:6px!important;list-style:none}.emoji-picker .emoji-tray{position:absolute;bottom:44px;left:-8px;width:320px;max-width:calc(100vw - 50px);max-height:270px;overflow:auto;background:white;border:1px solid #e1e1e1;border-radius:7px;box-shadow:0 4px 20px #0002;padding:12px;z-index:40;white-space:normal}.emoji-tray>small{display:block;margin:0 4px 8px;font-size:12px;color:#999}.emoji-tray button{width:32px;height:32px;padding:4px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0}.emoji-tray button:hover{background:#eee}.emoji-picker:not([open])>.emoji-tray{display:none}
.result-card{border:0;border-radius:5px;box-shadow:none;background:#fff}.result-head .context-button{font-size:11px;background:#efefef;color:#777}.result-chat{font-weight:400;color:#777}.result-card .message-time{opacity:1}.image-viewer .image-viewer-picture{max-width:100%;max-height:100%}
@media(min-width:1800px){.sidebar{width:300px}.messages{padding-left:34px;padding-right:34px}}
@media(max-width:1000px){.sidebar{width:240px}.conversation-head{padding:10px 16px}.messages{padding:22px}.message{max-width:90%}.send-panel .draft-hint{display:none}}
@media(max-width:700px){.sidebar{width:100%}.sidebar-head{height:64px}.conversation-head{height:62px;min-height:62px;padding:10px 12px;gap:6px}.conversation-head h1{font-size:17px}.conversation-head #toggle-sidebar{display:none}.conversation-head .back-button{display:inline-flex;padding:6px}.messages{padding:18px 14px}.message{max-width:95%;gap:9px;margin-bottom:24px}.message-avatar,.message.self .message-avatar{width:34px;height:34px;font-size:12px}.message-main{max-width:calc(100% - 43px)}.bubble{font-size:15px}.message .chat-image{max-width:min(210px,57vw);max-height:290px}.chat-image-actions{opacity:1}.message-copy{display:none}.message .file-bubble,.message[data-type="链接/文件"] .bubble{min-width:0;width:min(270px,65vw);padding:11px}.video-preview{width:min(210px,57vw);min-height:200px}.video-preview .chat-image{width:100%}.conversation .send-panel{flex-basis:180px;padding:0 8px 8px}.send-panel #send-form{padding:12px 10px 8px}.send-panel #send-text::placeholder{font-size:15px}.send-panel #send-button{padding:6px 14px;min-width:58px}.composer-tools{gap:8px}.icon-button{width:36px;height:36px}.history-navigation{top:65px}.menu-content{width:210px}.search-panel{padding:10px 14px}.filters{max-height:150px;overflow:auto}.sidebar-collapsed .sidebar{display:flex}.workspace.show-chat.sidebar-collapsed .sidebar{display:none}.send-panel #send-availability{max-width:100px;font-size:10px}}
.message .chat-image-preview:has(img){min-width:0;width:var(--media-width,240px);max-width:100%;align-items:flex-start}.message .chat-image-preview .chat-image{width:100%;height:auto;max-height:none;object-fit:contain}@media(max-width:700px){.message .chat-image-preview:has(img){max-width:57vw}}
.message .bubble.media-bubble,.message .bubble:has(>.chat-image-preview){background:transparent;border:0;padding:0;width:auto;min-width:0;max-width:300px;position:relative;overflow:visible}.message .media-bubble .attachment-preview{padding:0;margin:0;background:transparent;border:0;max-height:none;overflow:visible}.media-preview{width:var(--media-width,auto);max-width:100%;min-height:0}.message .media-bubble .attachment-image,.attachment-video{display:block;width:auto;height:auto;max-width:300px;max-height:300px;border-radius:5px;object-fit:contain}.attachment-video{width:100%;background:#111}.media-bubble .attachment-download{display:block;text-align:right;margin-top:4px!important;font-size:11px;color:#888;opacity:0}.media-bubble:hover .attachment-download,.media-bubble:focus-within .attachment-download{opacity:1}@media(max-width:700px){.message .bubble.media-bubble,.message .bubble:has(>.chat-image-preview),.message .media-bubble .attachment-image,.attachment-video{max-width:57vw}.media-bubble .attachment-download{opacity:1}}

/* Media reading surfaces: retain source proportions and expose quality/status on touch screens. */
.message:has(.chat-image-preview),.message:has(.received-video),.message:has(.media-preview){max-width:min(760px,96%)}
.message .bubble.media-bubble,.message .bubble:has(>.chat-image-preview),.message .bubble:has(>.received-video){width:auto;min-width:0;max-width:520px;white-space:normal}
.received-video{width:520px;max-width:100%}
.message .chat-image-preview,.message .chat-image-preview:has(img){width:var(--media-width,320px);max-width:100%;display:block}
.media-frame{max-width:100%;max-height:560px;overflow:auto;border-radius:6px}
.message .chat-image-preview .chat-image{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain}
.message .chat-image-actions{position:static;opacity:1;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 12px;padding:8px 0;background:transparent;color:#53615c;font-size:12px}
.chat-image-caption{display:block;color:#53615c;font-size:12px;line-height:1.5}
.chat-image-download,.message .media-bubble .attachment-download{font-size:12px;color:#25694e;opacity:1}
.chat-image-hint{max-width:100%;padding:9px 0;background:transparent;color:#606b65;font-size:12px;line-height:1.5}
.message .video-preview .chat-image-hint{display:block;min-height:0;background:transparent}
.message .video-preview .chat-image-retry{position:static;transform:none;white-space:normal}
.chat-image-retry,.video-play,.media-player-tools button{font:inherit;font-size:13px;line-height:1.4;padding:9px 13px;min-height:38px;border:1px solid #bdc9c1;border-radius:5px;background:#fff;color:#255c44;cursor:pointer}
.chat-image-retry:disabled,.video-play:disabled{cursor:wait;color:#67776d}
.video-play{font-weight:600;background:#e8f4eb;border-color:#b5d4bd}
.video-prepare-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:5px 0}
.video-prepare-status{font-size:12px;color:#58655d;line-height:1.5;max-width:100%;overflow-wrap:anywhere}
.received-video-player,.media-preview{width:var(--media-width,520px);max-width:100%}
.message .media-bubble .attachment-video,.received-video-player .attachment-video{display:block;width:100%;height:auto;max-width:100%;max-height:560px;object-fit:contain;background:#111}
.message .media-bubble .attachment-image{display:block;width:100%;height:auto;max-width:100%;max-height:none}
.message .media-bubble .media-preview:has(.attachment-image){max-height:620px;overflow:auto}
.media-player-tools{display:flex;justify-content:flex-end;margin-top:6px}
.media-expanded{width:min(900px,calc(100vw - 100px));max-width:none}
.media-expanded .attachment-video{max-height:85dvh}
[data-media-fullscreen]:fullscreen{box-sizing:border-box;width:100vw!important;max-width:none!important;height:100dvh!important;padding:16px!important;background:#111!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;overflow:auto!important}
[data-media-fullscreen]:fullscreen .attachment-video{width:100%!important;max-width:100%!important;min-height:0;height:calc(100dvh - 104px)!important;max-height:calc(100dvh - 104px)!important;object-fit:contain}
[data-media-fullscreen]:fullscreen .media-player-tools{align-self:flex-end;flex-shrink:0;margin:0}
[data-media-fullscreen]:fullscreen .chat-image-caption{color:#ddd}
.image-viewer.image-actual .image-viewer-picture{max-width:none;max-height:none}
.video-play:focus-visible,.media-player-tools button:focus-visible,.chat-image-retry:focus-visible{outline:3px solid #16775c;outline-offset:3px}
@media(max-width:700px){
 .message:has(.chat-image-preview),.message:has(.received-video),.message:has(.media-preview){max-width:100%}
 .message .chat-image-preview:has(img),.message .bubble.media-bubble,.message .bubble:has(>.chat-image-preview),.message .bubble:has(>.received-video),.message .media-bubble .attachment-image,.message .media-bubble .attachment-video,.received-video-player .attachment-video{max-width:100%}
 .video-play,.chat-image-retry,.media-player-tools button{min-height:44px}
 .media-expanded{width:100%;max-width:100%}
}
