.rp-capture{background:#fff;border:1px solid #e2e8f4;border-radius:15px;padding:15px;margin:12px 0}.rp-head{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#4b648c}.rp-head>span{font-size:10px;color:#94a2b9;line-height:1.7}.rp-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.rp-note{font-size:11px;color:#8598b6;line-height:1.8;margin:10px 0}.rp-capture #rpImage{display:block;max-width:100%;max-height:260px;object-fit:contain;border-radius:10px;cursor:zoom-in;margin-top:13px}.rp-candidate{display:grid;grid-template-columns:18px minmax(0,1fr) 110px;gap:8px;align-items:center;font-size:11px;line-height:1.7;color:#6f84a7;margin:10px 0}.rp-candidate input[type=number]{min-width:0;width:100%;height:36px;padding:0 8px;border:1px solid #dfe7f4;border-radius:8px;color:#435c89;background:white;font:inherit}.rp-candidate input[type=checkbox]{accent-color:#2659e9}.rp-capture pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;line-height:1.7;color:#95a4bc;background:#f5f8fc;padding:12px;border-radius:8px}.rp-capture details{font-size:11px;color:#899dbd;margin-top:13px}.rp-saved{margin-top:19px;padding:14px;background:#f4f7fd;border:1px solid #e8eef8;border-radius:12px;color:#7f93b4;font-size:11px;line-height:1.8}.rp-saved>b{display:block;margin-bottom:10px;font-weight:550;color:#607ca6}.rp-zoom-button{display:block;width:100%;border:0;background:transparent;padding:0;text-align:left;color:#8197b9;cursor:zoom-in;font:inherit}.rp-zoom-button img{display:block;max-width:100%;max-height:280px;border-radius:8px;object-fit:contain}.rp-zoom-button span{display:block;margin-top:8px}.rp-zoom{z-index:120}.rp-zoom .panel{max-width:95vw!important;max-height:94dvh;overflow:auto;padding:15px!important}.rp-zoom img{display:block;max-width:100%;height:auto;margin-top:12px}.rp-zoom .panel>button{position:sticky;top:0}@media(max-width:420px){.rp-candidate{grid-template-columns:17px minmax(0,1fr) 95px}.rp-candidate input[type=number]{font-size:16px}}

.rp-zoom-tools{position:sticky;top:0;left:0;display:flex;gap:8px;z-index:2;background:#fff;padding:0 0 9px;width:max-content}.rp-zoom img{max-width:none}.rp-zoom .panel{width:min(95vw,1100px)}

.rp-zoom-tools{width:100%;flex-wrap:nowrap}.rp-zoom-tools>button{flex:0 0 auto;width:auto;min-width:40px;height:36px;padding:0 12px;white-space:nowrap}.rp-zoom-tools>button:first-child{min-width:88px}

/* Per-report gallery: three photos max; original single-photo styles remain compatible. */
.rp-count{float:right;padding:2px 8px;border-radius:20px;background:#edf3ff;color:#2454e9;font-size:11px;font-weight:600}
.rp-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.rp-thumbs[hidden]{display:none}
.rp-thumb{position:relative;border:2px solid #e5ebf5;border-radius:10px;overflow:hidden;background:#f4f7fc}.rp-thumb.active{border-color:#2454e9;box-shadow:0 0 0 1px #2454e9}
.rp-thumb-select{position:relative;display:block;width:100%;border:0;background:transparent;padding:0;cursor:pointer}.rp-thumb-select img{display:block;width:100%;height:90px;object-fit:cover}.rp-thumb-select>span{position:absolute;bottom:4px;left:5px;border-radius:12px;padding:1px 6px;background:#17243ecc;color:white;font-size:11px}
.rp-thumb-delete{position:absolute;right:0;top:0;width:40px;height:40px;border:0;background:linear-gradient(225deg,#17243eb0,transparent);color:white;font-size:24px;cursor:pointer}.rp-thumb-select:focus-visible,.rp-thumb-delete:focus-visible{outline:2px solid #2454e9;outline-offset:-3px}
.rp-capture button:disabled{opacity:.45;cursor:default}.rp-saved-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rp-saved-grid .rp-zoom-button img{width:100%;height:96px;object-fit:cover}.rp-photo-error{font-size:11px;line-height:1.6;color:#8b5b36}

/* Each authenticated photo paints independently; one slow request cannot hide the rest. */
.rp-photo-cell{min-width:0}.rp-photo-pending{display:grid;place-content:center;min-height:96px;border:1px solid #e1e8f4;background:#edf2fa;border-radius:8px;text-align:center;font-size:11px;line-height:1.8;color:#7e92b2}.rp-photo-cell.rp-photo-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:96px;text-align:center}.rp-photo-retry{min-height:44px;min-width:52px;border:1px solid #cfdbef;border-radius:8px;color:#315dcc;background:#fff;font:inherit;cursor:pointer}

/* Continuous same-report gallery; native pinch zoom and vertical gestures remain available. */
#rpZoom.rp-simple-viewer{position:fixed;inset:0;z-index:160;background:rgba(0,0,0,.94);align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) 10px max(12px,env(safe-area-inset-bottom))}
#rpZoom.rp-simple-viewer.on{display:flex}
#rpZoom.rp-simple-viewer .panel{position:relative;display:flex;flex-direction:column;align-items:center;width:min(95vw,1100px);max-height:94dvh;background:transparent!important;border:0;box-shadow:none;padding:48px 0 0!important;overflow:hidden}
#rpZoom .rp-viewer-close{position:absolute!important;top:0;right:0;z-index:2;width:44px;height:44px;background:#fff;color:#111;border:0;border-radius:50%;font-size:28px}
#rpZoom .rp-gallery-stage{width:100%;min-height:120px;overflow:auto;touch-action:pan-y pinch-zoom;display:flex;flex-direction:column;align-items:center;justify-content:center}
#rpZoom .rp-gallery-stage img{max-width:100%;max-height:calc(94dvh - 160px);width:auto;height:auto;object-fit:contain;margin:0}
#rpZoom .rp-gallery-stage img[hidden]{display:none}
#rpZoom .rp-gallery-status{color:#fff;text-align:center;font-size:14px;padding:8px;line-height:1.6}
#rpZoom .rp-gallery-status:empty{display:none}
#rpZoom .rp-gallery-controls{display:flex;align-items:center;justify-content:center;gap:28px;flex:0 0 auto;color:#fff;padding:10px 0}
#rpZoom .rp-gallery-controls[hidden],#rpZoom .rp-gallery-hint[hidden]{display:none}
#rpZoom .rp-gallery-controls button{width:44px;height:44px;border:1px solid #777;border-radius:50%;background:#222;color:#fff;font-size:30px}
#rpZoom .rp-gallery-count{min-width:48px;text-align:center;font-size:15px}
#rpZoom .rp-gallery-hint{color:#ccc;font-size:12px;padding-bottom:6px}
