.document-preview{width:min(1100px,calc(100vw - 40px));height:min(900px,calc(100dvh - 40px));max-width:none;max-height:none;padding:0;border:1px solid #c9dde5;border-radius:14px;color:#203f4c;background:#fff;box-shadow:0 18px 60px #132b3c40;overflow:hidden}
.document-preview[open]{display:flex;flex-direction:column}.document-preview::backdrop{background:#122c3c99}
.document-preview header,.document-preview footer{display:flex;align-items:center;gap:12px;padding:16px 20px;flex-shrink:0}.document-preview header{border-bottom:1px solid #dce6eb}.document-preview h2{font-size:18px;line-height:1.4;margin:0;overflow-wrap:anywhere;flex:1;min-width:0}.document-preview header button{flex-shrink:0}.document-preview footer{border-top:1px solid #dce6eb;flex-wrap:wrap}.document-preview footer a{margin-left:auto}.document-preview-status{margin:0;padding:8px 20px;flex-shrink:0}.document-preview-status:empty{display:none}.document-preview-body{flex:1;min-height:0;overflow:auto;background:#edf2f5;padding:16px;text-align:center}.document-preview-body canvas,.document-preview-body img{display:block;max-width:100%;height:auto;margin:0 auto;background:#fff}.document-preview-page{font-size:14px}.document-preview-text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.document-preview button:focus-visible,.document-preview a:focus-visible{outline:3px solid #176d91;outline-offset:3px}
@media(max-width:600px){.document-preview{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:10px}.document-preview header,.document-preview footer{padding:12px;gap:8px}.document-preview h2{font-size:16px}.document-preview-body{padding:8px}.document-preview footer a{margin-left:0}.document-preview footer button,.document-preview footer a{font-size:13px;padding:10px}.document-preview-page{font-size:12px}}
