.message.has-media .bubble { padding: 5px; overflow: hidden; }
.message-image { display: block; max-width: min(420px, 100%); max-height: 420px; border-radius: 12px; object-fit: contain; background: #eef1ef; }
.media-image-link { display: block; }
.message-sticker { display: block; width: min(180px, 100%); max-height: 180px; object-fit: contain; }
.message audio { display: block; width: min(340px, 70vw); height: 42px; }
.message video { display: block; max-width: min(420px, 100%); max-height: 420px; border-radius: 10px; background: #111; }
.media-title { padding: 8px 10px 5px; font-size: 11px; font-weight: 700; color: var(--muted); }
.media-caption { padding: 9px 10px 7px; font-size: 12px; line-height: 1.45; }
.document-link { display: flex; align-items: center; gap: 10px; min-width: 220px; padding: 10px; color: inherit; text-decoration: none; }
.document-link > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.07); font-size: 18px; }
.document-link div { display: flex; flex-direction: column; min-width: 0; }
.document-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; font-size: 11px; }
.document-link small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.message-fallback { display: block; }
.message.has-media.failed .bubble { padding: 8px; }
.media-unavailable { min-width: 190px; padding: 16px; border-radius: 9px; background: #f1f4f2; color: #78857e; font-size: 10px; text-align: center; }
