.cmquote-preview-dialog{box-sizing:border-box;width:calc(100% - 20px);max-width:1180px;max-height:calc(100dvh - 20px);margin:auto;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--text);overflow:auto;overscroll-behavior:contain}
.cmquote-preview-dialog::backdrop{background:rgb(0 0 0 / .68)}
.cmquote-preview-dialog[open]{display:block}
.cmquote-preview-dialog *{box-sizing:border-box;min-width:0}
.cmquote-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.cmquote-preview-header h2{margin:0;font-size:20px;line-height:28px}
.cmquote-preview-dialog button{min-height:40px;padding:8px 12px;font-size:14px;line-height:20px;white-space:normal;overflow-wrap:anywhere}
.cmquote-preview-dialog .quiet{background:transparent}
.cmquote-preview-filename{margin:8px 0 12px;font-size:13px;line-height:20px;color:var(--muted);overflow-wrap:anywhere}
.cmquote-preview-toolbar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:8px 0}
.cmquote-preview-page{font-size:14px;line-height:21px;text-align:center;min-width:130px}
.cmquote-preview-zoom{font-size:13px;min-width:42px;text-align:center}
.cmquote-preview-status{margin:9px 0;font-size:13px;line-height:20px;color:var(--muted);overflow-wrap:anywhere}
.cmquote-preview-error{color:var(--error)}
.cmquote-preview-stage{max-height:calc(100dvh - 280px);min-height:170px;overflow:auto;padding:12px;background:#e7e8eb;border:1px solid var(--line);border-radius:8px;overscroll-behavior:contain;touch-action:pan-x pan-y}
.cmquote-preview-canvas{display:block;margin:0 auto;background:white;box-shadow:0 1px 7px rgb(0 0 0 / .17)}
.cmquote-preview-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.cmquote-preview-word{max-width:800px;overflow-wrap:anywhere}
.cmquote-preview-word .cmquote-preview-status:empty{display:none}
@media(max-width:480px){.cmquote-preview-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:12px}.cmquote-preview-header h2{font-size:18px;line-height:26px}.cmquote-preview-toolbar{gap:5px}.cmquote-preview-page{min-width:105px;font-size:12px}.cmquote-preview-dialog button{padding:7px 9px;font-size:13px}.cmquote-preview-stage{max-height:calc(100dvh - 285px);padding:8px}.cmquote-preview-footer button{width:100%}}
