.utpQuestionImages { display:grid; gap:14px; margin:12px 0; min-width:0; }
.utpQuestionImages.utpImageGrid { grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); }
.utpImageFigure { display:block; margin:0; min-width:0; border:1px solid var(--border,#cbded4); border-radius:14px; overflow:hidden; background:var(--bg-surface,#fff); }
.utpImageFigure .utpImageOpen { display:block; width:100%; min-width:0; border:0; padding:0; border-radius:0; background:#fff; color:#145a43; cursor:zoom-in; transform:none; box-shadow:none; }
.utpImageFigure .utpImageOpen:hover { transform:none; box-shadow:none; background:#edf7f2; }
.utpImageStage { display:flex; align-items:center; justify-content:center; position:relative; width:100%; height:clamp(220px,40vw,380px); overflow:hidden; background:#fff; }
.utpQuestionImages .questionImage,.utpQuestionImages .optionImage { display:block; width:100%; height:100%; max-height:none; object-fit:contain; background:#fff; }
.utpImageZoomHint { display:block; padding:9px 12px; border-top:1px solid #e3eee8; background:#f1f7f3; font-size:.84rem; font-weight:600; }
.utpImageCaption { display:block; margin:0; padding:8px 12px; color:var(--text-muted,#536c61); font-size:.78rem; line-height:1.5; overflow-wrap:anywhere; }
.utpImageLoadingText,.utpImageFailureText { display:none; position:absolute; inset:0; align-items:center; justify-content:center; padding:22px; color:#4a6359; background:#f2f7f4; font-size:.88rem; line-height:1.6; }
.utpImageLoading .utpImageLoadingText,.utpImageFailed .utpImageFailureText { display:flex; }
.utpImageFigure .utpImageRetry { display:none; margin:10px auto; padding:8px 14px; font-size:.84rem; }
.utpImageFailed .utpImageRetry { display:block; }
.utpImageFailed .utpImageZoomHint { visibility:hidden; }
.utpImageFigure :focus-visible { outline:3px solid var(--brand,#17885e); outline-offset:-3px; }
.utpOptionImages { margin:4px 0 0; width:100%; }
.utpOptionImages .utpImageStage { height:220px; }
.utpOptionImages .utpImageCaption { font-size:.74rem; }
.reviewOptionMedia .utpOptionImages { max-width:340px; }
.utpImageViewer { width:min(1260px,96vw); max-width:96vw; height:94dvh; max-height:94dvh; margin:auto; border:1px solid #698d7e; border-radius:18px; padding:0; color:#e7f5ec; background:#0e211b; box-shadow:0 18px 80px #0616109c; overflow:hidden; }
.utpImageViewer[open] { display:flex; flex-direction:column; }
.utpImageViewer * { box-sizing:border-box; }
.utpImageViewer::backdrop { background:#051810c9; }
.utpImageViewerHeader { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 20px 8px; }
.utpImageViewerHeader h2 { font-size:1.1rem; line-height:1.4; margin:0; color:#f5fcf7; }
.utpImageViewer button { min-height:40px; border:1px solid #6c9482; border-radius:9px; padding:7px 12px; background:#173a2b; color:#f1fbf6; font:inherit; font-size:.85rem; cursor:pointer; box-shadow:none; transform:none; }
.utpImageViewer button:hover { background:#285d46; box-shadow:none; transform:none; }
.utpImageViewer button:disabled { cursor:default; opacity:.45; }
.utpImageViewer :focus-visible { outline:3px solid #76e1ad; outline-offset:3px; }
.utpImageViewerToolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:4px 20px; }
.utpImageViewerToolbar > button:first-child,.utpImageViewerToolbar > button:nth-child(2) { font-size:1.3rem; line-height:1; min-width:44px; }
.utpImageZoomValue { margin-left:4px; min-width:50px; color:#d4ebdf; font-size:.85rem; }
.utpImageViewerHelp { margin:4px 20px 10px; color:#b6d2c2; font-size:.8rem; line-height:1.5; }
.utpImageViewerViewport { flex:1; min-height:120px; min-width:0; position:relative; overflow:auto; background:#081610; overscroll-behavior:contain; touch-action:pan-x pan-y; }
.utpImageViewerCanvas { display:grid; place-items:center; min-width:100%; min-height:100%; }
.utpImageViewerCanvas img { display:block; flex:none; max-width:none; max-height:none; object-fit:contain; user-select:none; -webkit-user-drag:none; }
.utpImagePannable { cursor:grab; }
.utpImageDragging { cursor:grabbing; }
.utpImageViewerLoading { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; margin:0; padding:24px; text-align:center; color:#d2e8da; background:#081610; font-size:.9rem; }
.utpImageViewerLoading[hidden],.utpImageViewer [hidden] { display:none; }
.utpImageViewerFooter { flex:none; padding:8px 20px 12px; max-height:22dvh; overflow:auto; color:#d4ebdf; font-size:.8rem; line-height:1.5; }
.utpImageViewerFooter p { margin:3px 0; overflow-wrap:anywhere; }
.utpImageViewerSource,.utpImageViewerResolution { color:#a8c6b7; font-size:.74rem; }
@media(max-width:600px) {
 .utpImageViewer { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border:0; border-radius:0; }
 .utpImageViewerHeader { padding:12px 12px 7px; }
 .utpImageViewerToolbar { padding:4px 12px; gap:6px; }
 .utpImageViewerToolbar button { padding:7px 9px; font-size:.78rem; }
 .utpImageViewerHelp { margin:4px 12px 8px; font-size:.75rem; }
 .utpImageViewerFooter { padding:8px 12px 12px; }
 .utpImageStage { height:260px; }
 .utpOptionImages .utpImageStage { height:210px; }
}
@media(prefers-reduced-motion:reduce) { .utpQuestionImages *,.utpImageViewer * { transition:none; scroll-behavior:auto; } }
