.file-preview{box-sizing:border-box;width:min(1200px,96vw);max-width:96vw;height:90dvh;max-height:94dvh;padding:0;border:1px solid #3a4650;border-radius:16px;background:#15202a;color:#e6eef7;overflow:hidden}.file-preview[open]{display:flex;flex-direction:column}.file-preview::backdrop{background:#020811cb}.file-preview-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 20px;border-bottom:1px solid #3a4650}.file-preview h2{font-size:17px;margin:0;overflow-wrap:anywhere}.file-preview-head p{font-size:12px;margin:5px 0 0;color:#a9bacb}.file-preview button{width:auto;cursor:pointer;border:1px solid #526171;border-radius:9px;background:#263c50;color:#fff;padding:10px 14px;font:inherit;font-size:13px}.file-preview-body{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;background:#0d141c}.file-preview-body.file-preview-pdf{display:block;padding:12px}.file-preview-pages{position:sticky;top:0;z-index:1;display:flex;justify-content:center;gap:10px;padding:8px 0;margin-bottom:8px;background:#0d141c}.file-preview-pages button:disabled{opacity:.5;cursor:default}.file-preview-pdf canvas{display:block;width:min(100%,900px);height:auto;margin:0 auto;background:#fff}.file-preview img{max-width:100%;max-height:100%;object-fit:contain}.file-preview pre{margin:0;padding:20px;align-self:stretch;flex:1;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;color:#e6eef7}.file-preview-body>p{padding:30px;max-width:600px;line-height:1.7}.file-preview footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-top:1px solid #3a4650}.file-preview footer span{font-size:12px;line-height:1.5;color:#b4c5d6}.file-preview button:focus-visible{outline:3px solid #86d8c9;outline-offset:3px}@media(max-width:600px){.file-preview{height:94dvh}.file-preview-head,.file-preview footer{padding:12px;gap:10px}.file-preview h2{font-size:14px}.file-preview footer{flex-wrap:wrap}.file-preview footer button{margin-left:auto}}
