﻿dialog.file-preview {
    width: min(1080px, 92vw);
    max-width: 92vw;
    margin: auto;
    padding: 0;
    border: 1px solid #d4dbe5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 70px #111d3640;
    color: #18304c;
}
.file-preview::backdrop { background: rgb(16 27 44 / 68%); }
.file-preview-header { display: flex; align-items: center; gap: 20px; padding: 12px 20px; }
.file-preview-header h2 { flex: 1; margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.file-preview-header a { color: #164e91; text-decoration: underline; }
.file-preview-header form { margin: 0; }
.file-preview-header button { width: 38px; height: 38px; border: 0; border-radius: 50%; font-size: 24px; cursor: pointer; }
.file-preview-body { height: min(74vh, 850px); background: #f1f3f6; display: grid; place-items: center; overflow: hidden; }
.file-preview-body img { max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; }
.file-preview-body iframe { width: 100%; height: 100%; border: 0; }
