.image-viewer[hidden]{display:none!important}.image-viewer{position:fixed;inset:0;z-index:1000;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;background:#151e1b;color:#f3f7f1;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);height:100%;height:100dvh;overflow:hidden}.image-viewer header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px}.image-viewer header>span{font-size:13px;color:#d0dacf}.image-viewer button,.image-viewer a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:8px 13px;background:#31483d;color:#f4f8f1;border:1px solid #63816d;border-radius:7px;font-size:13px;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation}.image-viewer button:disabled{opacity:.4;cursor:default}.image-viewer button:focus-visible,.image-viewer a:focus-visible{outline:2px solid #b5e3c3;outline-offset:2px}.image-viewer-stage{position:relative;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;background:#111713;touch-action:pan-x pan-y}.image-viewer-canvas{display:flex;align-items:center;justify-content:center;min-width:100%;min-height:100%;padding:12px}.image-viewer-canvas>img{display:block;flex-shrink:0;max-width:none;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none}.image-viewer-stage.is-zoomed{cursor:grab;touch-action:pan-x pan-y}.image-viewer-status{font-size:12px;line-height:1.65;padding:8px 14px;margin:0;min-height:35px;background:#1d2b22;color:#cadacb}.image-viewer-status.is-error{color:#ffd7c5}.image-viewer footer{padding:8px 14px 12px;background:#1d2b22}.image-viewer footer>p{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 8px;max-height:3em;overflow:auto;color:#dce7da}.image-viewer-tools{display:flex;gap:7px;flex-wrap:wrap}.photo-preview-open{display:block;border:0;background:transparent;padding:0;width:100%;text-align:inherit;cursor:zoom-in}.photo-preview-open img{width:100%;display:block}.photo-preview-open:focus-visible{outline:3px solid #2c7966;outline-offset:-3px}.photo-preview-open .preview-placeholder{display:grid}@media(max-width:680px){.image-viewer header{padding:7px 10px}.image-viewer footer{padding:7px 10px 10px}.image-viewer button,.image-viewer a{font-size:12px;padding:7px 10px;min-height:42px}.image-viewer-tools{gap:6px}.image-viewer-status{padding:6px 10px;font-size:11px}.image-viewer footer>p{font-size:11px}.image-viewer-canvas{padding:8px}}
