.document-preview{margin:20px 0 24px;padding:20px;border:1px solid #d4dfd8;border-radius:14px;background:#f6f8f6;min-width:0}.document-preview[hidden],.document-preview [hidden]{display:none!important}.document-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.document-preview-heading h2{margin:0;font-size:19px;color:#23473d}.document-preview-meta{font-size:12px;color:#66786c;overflow-wrap:anywhere;min-width:0;max-width:55%}.document-preview-note{font-size:12px;color:#597061;line-height:1.7;margin:10px 0 14px}.document-preview-stage{max-height:520px;overflow:auto;overscroll-behavior:contain;text-align:center;min-width:0}.document-preview-stage:empty{display:none}.document-preview-stage canvas{display:block;width:auto;max-width:100%;height:auto;margin:0 auto;background:white;box-shadow:0 2px 12px #23473d14}.document-preview-paper{max-width:760px;margin:0 auto;padding:30px;background:#fff;box-shadow:0 2px 12px #23473d14;text-align:left;color:#26342e;overflow-wrap:anywhere}.document-preview-paper p{font-family:Arial,sans-serif;font-size:14px;line-height:1.65;margin:0 0 12px;white-space:pre-wrap}.document-preview-paper h3{font-size:22px;margin:0 0 15px}.document-preview-paper h4{font-size:17px;margin:16px 0 10px}.document-preview-paper table{border-collapse:collapse;width:100%;margin:14px 0;font-size:12px}.document-preview-paper td{border:1px solid #dbe1dd;padding:7px;vertical-align:top;max-width:220px;word-break:break-word}.document-preview-paper img{display:block;max-width:100%;max-height:320px;object-fit:contain;margin:15px auto}.document-preview-navigation{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;margin-top:16px}.document-preview-navigation button{font:inherit;font-size:13px;min-height:44px;border:1px solid #d0dacf;background:#fff;color:#23473d;border-radius:8px;padding:9px 14px;cursor:pointer}.document-preview-navigation button:disabled{opacity:.4;cursor:default}.document-preview-navigation span{font-size:12px;color:#597061}.document-preview button:focus-visible{outline:3px solid #a78bdc;outline-offset:3px}@media(max-width:600px){.document-preview{padding:14px}.document-preview-heading{align-items:flex-start;flex-direction:column;gap:6px}.document-preview-meta{max-width:100%}.document-preview-paper{padding:18px}.document-preview-stage{max-height:420px}.document-preview-navigation{gap:10px}}
/* Compact preview leaves the primary action and following content within reach. */
.document-preview{max-width:800px;margin:16px auto 20px;padding:16px}
.document-preview-stage{max-height:220px}
.document-preview-stage canvas{max-height:220px;max-width:100%;width:auto;height:auto;object-fit:contain}
.document-preview-paper{padding:20px}
.document-preview-paper img{max-height:180px}
.document-preview-heading h2{font-size:17px}
.document-preview-note{margin:8px 0 12px;line-height:1.55}
.document-preview-navigation{margin-top:12px;gap:12px}
@media(max-width:600px){.document-preview{padding:13px;margin:14px auto 18px}.document-preview-stage,.document-preview-stage canvas{max-height:180px}.document-preview-paper{padding:14px}.document-preview-paper img{max-height:150px}}
