/* One fitted saved-preview dialog. New inner classes intentionally avoid the
   historical16:9 image-wrap/100% image rules; only the shared overlay is bridged. */
body .three-drqe-preview-modal.three-drqe-preview-modal--fit82{box-sizing:border-box!important;position:fixed;inset:0;z-index:999999!important;display:flex;align-items:center;justify-content:center;padding:16px!important;background:rgba(5,6,8,.84);backdrop-filter:blur(4px)}
body .three-drqe-preview-modal.three-drqe-preview-modal--fit82[hidden]{display:none!important}
body .three-drqe-preview-modal--fit82 .drqe-preview-dialog{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;width:fit-content;min-width:min(280px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:0;padding:16px;border:1px solid #52565c;border-radius:14px;background:#141618;color:#f6f6f6;box-shadow:0 24px 72px #0009;overflow:auto;font-family:inherit}
body .three-drqe-preview-modal--fit82 .drqe-preview-dialog__head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:24px;flex:none;min-height:40px;background:#141618}
body .three-drqe-preview-modal--fit82 .drqe-preview-dialog__head h2{margin:0;color:inherit;font-size:16px;line-height:1.35;font-weight:700;font-family:inherit;letter-spacing:0;text-transform:none}
body .three-drqe-preview-modal--fit82 .drqe-preview-dialog__close{appearance:none;display:flex;align-items:center;justify-content:center;flex:none;min-width:40px;width:40px;height:40px;min-height:40px;margin:0;padding:8px;border:1px solid #6c727b;border-radius:8px;background:#202327;color:#fff;cursor:pointer;box-shadow:none;line-height:1}
body .three-drqe-preview-modal--fit82 .drqe-preview-dialog__close:hover{background:#393e44;border-color:#d1d5db}
body .three-drqe-preview-modal--fit82 .drqe-preview-dialog__close:focus-visible{outline:2px solid #fff;outline-offset:2px}
body .three-drqe-preview-modal--fit82 .drqe-preview-dialog__close::before,body .three-drqe-preview-modal--fit82 .drqe-preview-dialog__close::after{display:none;content:none}
body .three-drqe-preview-modal--fit82 .drqe-preview-dialog__stage{display:grid;place-items:center;flex:none;min-width:0;min-height:0;margin:0;padding:0;background:#0c0e10;overflow:visible;aspect-ratio:auto}
body .three-drqe-preview-modal--fit82 img.drqe-preview-dialog__image{display:block;flex:none;width:auto;height:auto;min-width:0;min-height:0;max-width:min(100%,var(--drqe-preview-natural-width,480px),calc(100vw - 68px));max-height:min(var(--drqe-preview-natural-height,400px),max(48px,calc(100vh - 148px)));max-height:min(var(--drqe-preview-natural-height,400px),max(48px,calc(100dvh - 148px)));margin:0;padding:0;border:0;border-radius:4px;background:transparent;object-fit:contain;object-position:center;box-sizing:border-box}
body .three-drqe-preview-modal--fit82 img.drqe-preview-dialog__image[hidden]{display:none}
body .three-drqe-preview-modal--fit82 .drqe-preview-dialog__status{flex:none;max-width:480px;margin:0;color:#bfc5cd;font-size:12px;line-height:1.5;font-weight:400;letter-spacing:0;overflow-wrap:anywhere}
@media(max-width:600px){body .three-drqe-preview-modal.three-drqe-preview-modal--fit82{padding:12px!important}body .three-drqe-preview-modal--fit82 .drqe-preview-dialog{padding:12px;gap:10px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}body .three-drqe-preview-modal--fit82 img.drqe-preview-dialog__image{max-width:min(100%,var(--drqe-preview-natural-width,480px),calc(100vw - 54px))}}
