/* Compact document cards and messenger bubbles. */
html body .app .message{padding:9px 12px 6px!important;border-radius:18px!important;max-width:min(86%,680px);margin-bottom:5px!important}
html body .app .message.mine{border-bottom-right-radius:6px!important}
html body .app .message:not(.mine){border-bottom-left-radius:6px!important}
html[data-theme=dark] body .app .message{background:#37394f!important;color:#f5f5fa!important}
html[data-theme=dark] body .app .message.mine{background:linear-gradient(112deg,#6266e8,#9148b4)!important;color:#fff!important}
html[data-theme=dark] body .app .message .message-meta{color:#e0def3!important;opacity:.8}
html body .app .message .message-menu-toggle{opacity:0;background:#0003!important}
html body .app .message:hover .message-menu-toggle,html body .app .message .message-menu-toggle:focus-visible{opacity:1}
@media(pointer:coarse){html body .app .message .message-menu-toggle{opacity:.35;width:20px;height:20px}}
html body .app .message .media-placeholder{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:2px 0!important;background:transparent!important;color:inherit!important;border:0!important;box-shadow:none!important;border-radius:0}
html body .app .message .media-placeholder>span:not(.pdf-file-icon){min-width:0;flex:1;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
html body .app .message .media-placeholder small{display:block;font-size:12px;line-height:1.4;opacity:.65;margin-top:3px;color:inherit}
html body .pdf-file-icon{position:relative;display:block;flex:0 0 40px;width:40px;height:47px;margin:0 7px 0 2px;background:#9298aa;border:0;border-radius:9px;color:white;overflow:visible}
html body .pdf-file-icon::before{content:'';position:absolute;right:0;top:0;width:13px;height:13px;background:#bdc2d0;clip-path:polygon(0 0,100% 100%,0 100%);border-radius:0 0 0 4px}
.document-type-badge{position:absolute;left:-3px;right:-3px;bottom:5px;padding:4px 0;background:#bf3850;color:#fff;border-radius:4px;font:600 10px/1.15 -apple-system,BlinkMacSystemFont,sans-serif;text-align:center;letter-spacing:.25px}
.pdf-file-icon[data-type=DOCX] .document-type-badge{background:#2865b7}
.document-download-arrow{position:absolute;left:13px;top:6px;width:15px;height:17px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
html body .media-slot.pdf-attachment .media-content>a[download]{display:flex;align-items:center;gap:12px;padding:2px 0;color:inherit!important;text-decoration:none;font-size:15px}
.document-file-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.document-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;line-height:1.4}.document-file-size{font-size:12px;opacity:.65;line-height:1.4}
html body .media-slot.pdf-attachment .media-content>a[download]>svg{display:none}
html body .app .message:has(.image-open){padding:4px 4px 6px!important;overflow:hidden}
html body .app .message:has(.image-open) .message-author,html body .app .message:has(.image-open) .message-text{margin:5px 8px!important}
html body .app .message:has(.image-open) .message-meta{margin-right:7px!important}
html body .app .message .image-open{border-radius:14px;max-width:100%}
@media(max-width:680px){html body .app .message{max-width:92%;}.document-file-name{max-width:65vw}html body .app .message .message-text{font-size:16px;line-height:1.4}html body .app .message .message-meta{font-size:11px}}
html[data-theme=dark] body .app .conversation-header,html[data-theme=dark] body .app .composer-area,html[data-theme=dark] body .app .message-tools{background:#1b1c1f!important;border-color:#292a31!important}
html[data-theme=dark] body .app .conversation{background-color:#121315!important}
html[data-theme=dark] body .app .messages{background-color:#12131588!important}
html[data-theme=dark] body .app .conversation-header h2{color:#f6f6fa!important}
