#root img[data-image-preview="ready"] { cursor: zoom-in; }
#root img[data-image-preview="ready"]:focus-visible { outline: 3px solid #25846c; outline-offset: 3px; }
.oc-image-preview { box-sizing:border-box; width:min(1100px,94vw); height:min(900px,92vh); height:min(900px,92dvh); max-width:none; max-height:none; padding:0; border:1px solid #d5e0dc; border-radius:18px; background:#f5f7f6; color:#193e34; box-shadow:0 24px 100px #001b1690; overflow:hidden; }
.oc-image-preview[open] { display:flex; flex-direction:column; }
.oc-image-preview::backdrop { background:rgba(10,25,23,.78); }
.oc-image-head { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 22px; background:white; border-bottom:1px solid #dce6e2; flex-shrink:0; }
.oc-image-caption { font:600 16px/1.5 sans-serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.oc-image-preview button { appearance:none; font:500 14px/1.4 sans-serif; background:white; color:#193e34; border:1px solid #ccdcd6; border-radius:8px; padding:8px 14px; cursor:pointer; flex-shrink:0; min-height:38px; }
.oc-image-preview button:hover { background:#eaf2ee; }
.oc-image-preview button:focus-visible { outline:3px solid #3da387; outline-offset:2px; }
.oc-image-preview button:disabled { opacity:.4; cursor:default; }
.oc-image-stage { flex:1; display:flex; min-height:0; min-width:0; overflow:auto; overscroll-behavior:contain; padding:16px; box-sizing:border-box; text-align:center; }
.oc-image-preview .oc-image-original { display:block; flex:none; max-width:none; max-height:none; height:auto; margin:auto; border-radius:4px; object-fit:contain; align-self:flex-start; }
.oc-image-preview .oc-image-original[hidden] { display:none; }
.oc-image-feedback { margin:0; padding:0 20px; text-align:center; color:#667f76; font:13px/1.6 sans-serif; }
.oc-image-feedback:empty { display:none; }
.oc-image-tools { display:flex; flex-shrink:0; flex-wrap:wrap; gap:8px; justify-content:center; align-items:center; padding:12px 18px; background:#fff; border-top:1px solid #dce6e2; }
.oc-image-zoom { min-width:55px; text-align:center; font:14px/1.4 sans-serif; }
.oc-image-hint { font:12px/1.5 sans-serif; color:#667f76; margin-left:12px; }
@media(max-width:600px) { .oc-image-preview { width:96vw; height:92dvh; border-radius:12px; } .oc-image-head { padding:10px 12px; gap:10px; } .oc-image-caption { font-size:14px; } .oc-image-tools { padding:10px; gap:6px; } .oc-image-preview button { padding:8px 10px; } .oc-image-hint { width:100%; margin:0; text-align:center; } }
@media print { .oc-image-preview { display:none !important; } }
