.ov-zoomable { cursor:zoom-in; }
.ov-zoomable:focus-visible { outline:3px solid #89b8ca; outline-offset:3px; }
body.ov-viewer-open { overflow:hidden; }
.ov-image-viewer { width:min(1120px,calc(100vw - 32px)); height:min(900px,calc(100dvh - 32px)); max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); margin:auto; padding:0; border:1px solid #ddd; border-radius:20px; background:#f6f6f7; color:#191919; box-shadow:0 24px 100px #0005; }
.ov-image-viewer[open] { display:flex; flex-direction:column; }
.ov-image-viewer::backdrop { background:rgba(12,16,18,.84); backdrop-filter:blur(7px); }
.ov-header { display:flex; align-items:center; gap:16px; flex:none; padding:16px 20px; background:#fff; border-bottom:1px solid #e6e6e8; }
.ov-title { min-width:0; flex:1; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.ov-position { white-space:nowrap; font-size:12px; color:#667078; }
.ov-control { flex:none; min-height:40px; padding:9px 15px; border:1px solid #d9dde0; border-radius:10px; background:#fff; color:#222; font:inherit; font-size:12px; cursor:pointer; }
.ov-control:disabled { opacity:.4; cursor:default; }
.ov-control:focus-visible { outline:3px solid #a2bdca; outline-offset:2px; }
.ov-viewport { flex:1; min-height:0; min-width:0; overflow:auto; display:flex; align-items:center; justify-content:center; padding:16px; overscroll-behavior:contain; touch-action:pan-y pinch-zoom; }
.ov-image { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; user-select:none; -webkit-user-drag:none; }
.ov-image[hidden], .ov-error[hidden] { display:none; }
.ov-viewport.is-original { display:block; padding:0; cursor:grab; touch-action:none; }
.ov-viewport.is-original:active { cursor:grabbing; }
.ov-viewport.is-original .ov-image { max-width:none; max-height:none; width:auto; height:auto; }
.ov-error { padding:24px; color:#7f3f34; font-size:14px; }
.ov-tools { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; flex:none; padding:14px; background:#fff; border-top:1px solid #e6e6e8; }
.ov-help { width:100%; color:#75808a; text-align:center; font-size:11px; line-height:1.6; }
@media(max-width:600px) { .ov-image-viewer { width:calc(100vw - 16px); height:calc(100dvh - 24px); max-width:calc(100vw - 16px); max-height:calc(100dvh - 24px); border-radius:14px; } .ov-header { padding:12px; gap:8px; } .ov-title { font-size:12px; } .ov-viewport { padding:8px; } .ov-tools { padding:10px; gap:6px; } .ov-control { min-height:44px; padding:8px 11px; } }
