/* Shared image viewer for product and Ops messaging. */
dialog.scop-msg-image-viewer { position: fixed; inset: 0; width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--color-border-light); border-radius: var(--radius-md); background: light-dark(#fff, var(--color-surface, #fff)); color: var(--color-text-primary); box-shadow: 0 24px 80px #0005; overflow: hidden; font-family: inherit; z-index: 10000; }
dialog.scop-msg-image-viewer[open] { display: flex; flex-direction: column; }
.scop-msg-image-viewer::backdrop { background: #0f172acc; }
.scop-msg-image-viewer-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; padding: var(--space-3) var(--space-4); }
.scop-msg-image-viewer-header h2 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-14); font-weight: var(--fw-semibold); }
.scop-msg-image-viewer-actions { display: flex; flex-shrink: 0; align-items: center; gap: var(--space-3); }
.scop-msg-image-viewer-actions a { color: light-dark(var(--color-brand-primary), var(--color-info-text, var(--color-brand-primary))); font-size: var(--fs-13); font-weight: var(--fw-semibold); text-decoration: none; }
.scop-msg-image-viewer-actions button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--color-surface-muted); color: var(--color-text-secondary); font: inherit; font-size: var(--fs-24); cursor: pointer; }
.scop-msg-image-viewer-actions button:hover { background: var(--color-surface-muted); }
.scop-msg-image-viewer-actions :focus-visible { outline: 2px solid var(--color-brand-primary); outline-offset: 3px; }
.scop-msg-image-viewer-stage { display: flex; align-items: center; justify-content: center; min-height: 120px; height: min(76vh, 820px); height: min(76dvh, 820px); min-width: 0; padding: var(--space-3); overflow: auto; background: #111827; }
.scop-msg-image-viewer-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.scop-msg-image-viewer-stage img[hidden], .scop-msg-image-viewer-error[hidden] { display: none; }
.scop-msg-image-viewer-error { max-width: 420px; margin: var(--space-6); color: #e2e8f0; text-align: center; font-size: var(--fs-14); line-height: 1.6; }
