.document-preview-popover{max-height:calc(100dvh - 24px);overflow:auto}
.document-preview-popover[hidden],.document-preview-popover [hidden]{display:none!important}
.document-preview-popover .document-preview-media{height:min(390px,60dvh);margin-bottom:10px}
.document-preview-header strong{min-width:0;flex:1}
.document-preview-header button{flex:none;cursor:pointer;min-width:36px;min-height:36px}
@media(max-width:600px),(hover:none){.document-preview-popover:not([hidden]){display:block!important;width:calc(100vw - 24px);max-width:430px}}

.attachment-selection{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px}
.attachment-selection[hidden]{display:none!important}
.attachment-selection small{color:var(--muted);min-width:0;overflow-wrap:anywhere}
.attachment-actions{display:flex;flex-wrap:wrap;gap:8px}
