.mlv-file-preview { margin:auto; padding:0; width:min(1080px,94vw); height:min(820px,90dvh); max-width:94vw; max-height:90dvh; border:0; border-radius:16px; color:#172033; background:#fff; box-shadow:0 24px 80px #0005; }
.mlv-file-preview::backdrop { background:#0f172abf; }
.mlv-file-preview[open] { display:flex; flex-direction:column; }
.mlv-file-preview header { display:flex; align-items:center; gap:16px; padding:14px 20px; border-bottom:1px solid #e2e8f0; flex-shrink:0; }
.mlv-file-preview strong { min-width:0; flex:1; overflow-wrap:anywhere; }
.mlv-file-preview a,.mlv-file-preview button { padding:8px 12px; border-radius:8px; border:1px solid #cbd5e1; background:#fff; color:#334155; cursor:pointer; font:inherit; text-decoration:none; }
.mlv-file-preview :focus-visible { outline:3px solid #6366f1; outline-offset:2px; }
.mlv-file-content { flex:1; min-height:0; overflow:auto; display:flex; align-items:center; justify-content:center; padding:16px; background:#f8fafc; }
.mlv-file-content img,.mlv-file-content video { max-width:100%; max-height:100%; object-fit:contain; }
.mlv-file-content iframe { width:100%; height:100%; border:0; background:#fff; }
.mlv-file-content pre { align-self:stretch; width:100%; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font:14px/1.6 monospace; }
.mlv-file-content p { max-width:520px; text-align:center; }
.mlv-file-preview footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; padding:10px 20px; border-top:1px solid #e2e8f0; flex-shrink:0; }
.mlv-file-preview button:disabled { opacity:.4; cursor:default; }
.mlv-file-preview [hidden] { display:none; }
.mlv-preview-counter { min-width:70px; text-align:center; font-size:13px; color:#475569; }
.mlv-file-content.mlv-file-zoomed { display:block; }
.mlv-file-content.mlv-file-zoomed img { display:block; margin:auto; max-width:none; max-height:none; }
