.reference-gallery-dialog{border:0;border-radius:12px;padding:18px;max-width:96vw;max-height:94vh;color:var(--ink,#1f1f1f);background:#ffffff}.reference-gallery-dialog::backdrop{background:#141414d9}.reference-gallery-dialog figure{margin:0;text-align:center}.reference-gallery-dialog img{display:block;object-fit:contain;max-width:88vw;max-height:70vh;margin:auto}.reference-gallery-dialog figcaption{font:14px/1.4 system-ui,sans-serif;max-width:80vw;margin:12px auto}.reference-gallery-toolbar{text-align:right;margin-bottom:12px}.reference-gallery-dialog button{padding:10px 14px;min-height:44px;border:1px solid #f3f3f3;border-radius:6px;background:#ffffff;color:var(--accent,#751c40);font:600 14px system-ui,sans-serif;cursor:pointer}.reference-gallery-actions{display:flex;justify-content:space-between;gap:12px}
