/* Reserve the attachment button's space in both the themed and mobile composer. */
.composer .composer-field:has(.attachment-toggle) textarea,
html[data-theme] .composer .composer-field:has(.attachment-toggle) textarea{padding-left:62px}
.attachment-toggle{position:absolute;left:7px;bottom:6px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:15px;background:transparent;box-shadow:none;color:var(--lavender,#c9afd7);padding:0;cursor:pointer}
.attachment-toggle:hover:not(:disabled){background:color-mix(in srgb,var(--lavender) 10%,transparent)}.attachment-toggle:focus-visible{outline:2px solid var(--rose,#d4a4c3);outline-offset:1px}
.attachment-card{width:min(360px,100%);margin:5px 0;overflow:hidden}.attachment-image{display:block;width:100%;height:240px;max-width:100%;max-height:320px;object-fit:contain;border-radius:18px;background:transparent}.attachment-card a{color:inherit;text-decoration:none}.attachment-details{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:9px;font-size:12px;color:var(--muted,#b1abc2)}.attachment-details>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.attachment-details>a{flex:none;padding:5px 0;color:var(--rose,#d4a4c3)}.attachment-expiry{display:block;font-size:10px;color:var(--muted,#b1abc2);opacity:.85;margin-top:3px}.media-expired{font-size:13px;color:var(--muted,#b1abc2);font-style:italic}
.attachment-document-link{display:flex;align-items:center;gap:14px;min-height:55px}.attachment-document-link>svg{flex:none;color:var(--rose,#d4a4c3)}.attachment-document-link>span{overflow-wrap:anywhere;font-size:14px}.attachment-video-play{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;position:absolute;inset:0;border:0;border-radius:18px;background:linear-gradient(135deg,#42516a,#263a50);color:#eadcec;cursor:pointer}.attachment-video-play span{font-size:12px}.message-video-layer video{display:block;width:100%;height:100%;object-fit:contain;background:#071525;border-radius:18px}
.attachment-preview{display:flex;align-items:center;justify-content:center;min-height:80px;max-height:320px;margin:12px 0 18px;color:var(--rose,#d4a4c3)}.attachment-preview img,.attachment-preview video{max-width:100%;max-height:min(320px,35dvh);border-radius:18px;object-fit:contain}.attachment-preview>svg{width:48px;height:48px}.attachment-selected{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.attachment-selected strong{overflow-wrap:anywhere;min-width:0;font-size:14px}.attachment-selected span{flex:none;font-size:12px;color:var(--muted,#b1abc2)}.attachment-caption{font-size:13px}.attachment-caption>span{font-weight:400;color:var(--muted,#b1abc2)}.attachment-caption textarea{min-height:72px;font:inherit;resize:vertical}.attachment-retention{font-size:12px;color:var(--muted,#b1abc2);margin:14px 0}.attachment-progress{display:flex;align-items:center;gap:14px;margin:16px 0;font-size:12px}.attachment-progress[hidden]{display:none}.attachment-progress progress{flex:1;min-width:0;height:6px;accent-color:var(--rose,#d4a4c3);border-radius:6px}.attachment-error{font-size:13px;color:var(--rose,#d4a4c3)}.attachment-error:empty{display:none}
.attachment-caption .attachment-caption-label{color:var(--text,#eadcec);font-weight:600}.attachment-caption-label small{font-size:12px;font-weight:400;color:var(--muted,#b1abc2)}

.attachment-details .media-download,.media-download{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 11px;border:1px solid color-mix(in srgb,var(--rose,#d4a4c3) 18%,transparent);border-radius:13px;background:color-mix(in srgb,var(--rose,#d4a4c3) 8%,transparent);color:var(--rose,#d4a4c3);font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap;flex:none}.media-download:hover{background:color-mix(in srgb,var(--rose,#d4a4c3) 16%,transparent)}.media-download:focus-visible{outline:2px solid var(--rose,#d4a4c3);outline-offset:2px}.media-download[hidden]{display:none}.media-download svg{flex:none}.attachment-size{display:block;font-size:10px;margin-top:3px;opacity:.85}.voice-download{margin-top:7px;min-height:36px}.voice-attachment{width:min(290px,100%)}
