.rbpr-dialog { box-sizing:border-box;margin:auto;border:0;border-radius:20px;padding:24px;background:#fff;color:#223343;box-shadow:0 20px 90px #0005;max-height:88vh;max-height:88dvh;overflow:auto;font:14px/1.5 Inter,Arial,sans-serif; }
.rbpr-dialog::backdrop { background:rgb(10 24 38 / .75); }
.rbpr-editor { width:min(640px,calc(100vw - 24px)); }
.rbpr-dialog-heading { display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px; }
.rbpr-dialog-heading h2 { margin:0;font-size:22px;line-height:1.3; }
.rbpr-close { display:block;flex-shrink:0;width:40px;height:40px;border:0;border-radius:50%;background:#edf2f7;color:#334155;font-size:26px;line-height:1; }
.rbpr-label { display:block;font-weight:600;margin-bottom:6px;font-size:13px; }
.rbpr-label span { color:#788899;font-weight:400; }
.rbpr-dialog textarea,.rbpr-caption-input { box-sizing:border-box;width:100%;font:14px/1.5 Inter,Arial,sans-serif;border:1px solid #c9d9e4;border-radius:10px;padding:10px;color:#223343;background:#fff; }
.rbpr-dialog textarea { resize:vertical;min-height:84px; }
.rbpr-hint { color:#657788;font-size:12px;line-height:1.55; }
.rbpr-draft { display:flex;flex-direction:column;gap:12px;margin:16px 0; }
.rbpr-draft-row { display:flex;gap:12px;padding:12px;border:1px solid #dce7ee;border-radius:12px; }
.rbpr-thumbnail { display:block;width:88px;height:88px;object-fit:contain;border-radius:8px;background:#eaf2f7;flex-shrink:0; }
.rbpr-draft-details { flex:1;min-width:0; }
.rbpr-draft-controls { display:flex;gap:8px;margin-top:8px; }
.rbpr-add { display:block;width:100%;background:#f0f7fc;color:#1768a3;border:1px dashed #9fc4dd;border-radius:12px;padding:12px; }
.rbpr-dialog-actions { display:flex;justify-content:flex-end;gap:10px;margin-top:20px; }
.rbpr-error { color:#a42b2b;background:#fff0ee;padding:10px 12px;border-radius:8px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere; }
.rbpr-empty { color:#657788;font-size:14px;padding:16px 0; }

/* rb-photo-reports-live-v1; normal comments remain styled by recipe.html. */
.rbpr-report [hidden],#rbprReports [hidden],#rbprEditor [hidden],#rbprViewer[hidden],#rbprViewer [hidden]{display:none!important}
#recipeContent .rbpr-has-reports #commentsList>.rb-comments-empty{display:none}
#recipeContent .rbpr-comment-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;min-width:0}
#recipeContent .rbpr-comment-actions>#submitCommentBtn{margin:0!important}
#recipeContent .rbpr-comment-actions>#rbprCreate{box-sizing:border-box;min-height:42px;max-width:100%;padding:10px 16px;border:1px solid #b5d6eb;border-radius:12px;background:#edf6fc;color:#1768a3;font:600 14px/1.4 Inter,Arial,sans-serif;white-space:normal;cursor:pointer}
.rbpr-button,.rbpr-small,.rbpr-arrow,.rbpr-close,.rbpr-add,.rbpr-photo-button{font-family:Inter,Arial,sans-serif;cursor:pointer;box-sizing:border-box;touch-action:manipulation;transition:none!important;-webkit-tap-highlight-color:transparent}
.rbpr-button{background:#1768a3;color:white;border:1px solid #1768a3;border-radius:12px;padding:11px 17px;font-size:14px;font-weight:600}
.rbpr-secondary{background:white;color:#334155;border-color:#cbd5e1}
.rbpr-small{background:white;border:1px solid #cbdde9;border-radius:8px;padding:8px 12px;color:#24536e;font-size:13px;min-height:38px}
.rbpr-remove{color:#a83232}
.rbpr-button:disabled,.rbpr-small:disabled,.rbpr-arrow:disabled,.rbpr-add:disabled{cursor:default;opacity:.45}
#recipeContent .rbpr-report{box-sizing:border-box;width:100%;max-width:760px;min-width:0;border:1px solid #d9e6ee;background:#f7fbfe;border-radius:16px;padding:16px;margin:0 0 14px;scroll-margin-top:130px}
#recipeContent .rbpr-report.rbpr-highlight{box-shadow:0 0 0 3px #e6ad42;background:#fff8e8}
#recipeContent .rbpr-report-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px 12px;min-width:0;font:14px/1.5 Inter,Arial,sans-serif}
#recipeContent a.rbpr-author{grid-row:1;grid-column:1;min-width:0;max-width:100%;font-weight:600;color:#1768a3;text-decoration:none;white-space:normal!important;overflow-wrap:anywhere}
#recipeContent a.rbpr-author:hover{text-decoration:underline}
#recipeContent .rbpr-date{grid-row:1;grid-column:2;font-size:12px;line-height:1.7;color:#718096;white-space:nowrap}
#recipeContent .rbpr-badge{grid-row:2;grid-column:1/-1;box-sizing:border-box;justify-self:start;max-width:100%;min-width:0;padding:4px 9px;background:#e4f0f8;color:#1768a3;border-radius:12px;font-size:12px;line-height:1.4;white-space:normal!important;overflow-wrap:anywhere}
#recipeContent .rbpr-text{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.6 Inter,Arial,sans-serif;margin:12px 0}
#recipeContent .rbpr-gallery{width:100%;max-width:560px;min-width:0;margin:12px 0 0;touch-action:pan-y pinch-zoom}
#recipeContent button.rbpr-photo-button{display:block!important;width:fit-content!important;max-width:100%!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;border-radius:10px;overflow:hidden;background:transparent!important;cursor:zoom-in;touch-action:pan-y pinch-zoom}
#recipeContent img.rbpr-photo{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:min(55vh,360px)!important;margin:0!important;border-radius:10px;object-fit:contain!important;background:transparent!important}
#recipeContent img.rbpr-photo[hidden]{display:none!important}
.rbpr-image-status{display:block;border:0;background:transparent;color:#657788;padding:14px 0;font:13px/1.5 Inter,Arial,sans-serif;cursor:pointer;min-height:44px;max-width:100%;white-space:normal}
.rbpr-caption{font:14px/1.5 Inter,Arial,sans-serif;margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.rbpr-gallery-nav,.rbpr-viewer-navigation{display:grid;grid-template-columns:44px 76px 44px;justify-content:center;align-items:center;gap:12px;margin-top:8px}
.rbpr-arrow{width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;border:1px solid #bfd7e6;border-radius:10px;background:white;color:#1768a3;font-size:28px;line-height:1}
.rbpr-arrow:active:not(:disabled){background:#d9edfa}
.rbpr-counter{text-align:center;color:#546a7b;font:13px/1.5 Inter,Arial,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.rbpr-report-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
#recipeContent a.rbpr-jump{display:flex!important;align-items:center;gap:12px;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:14px!important;margin:14px 0!important;border:2px solid #85bfe7;border-radius:14px;background:#cce8fc;color:#125c91!important;font:600 14px/1.5 Inter,Arial,sans-serif!important;text-decoration:none!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;text-align:left;cursor:pointer;box-shadow:0 3px 9px #1d65931a}
#recipeContent a.rbpr-jump:hover{background:#b9def8;border-color:#4a9bd1}
#recipeContent a.rbpr-jump:active{background:#abd5f2;box-shadow:none}
.rbpr-jump-icon{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border-radius:11px;background:#fff9;color:#125c91}
.rbpr-jump-icon svg{display:block;flex:none;width:24px;height:24px}
.rbpr-jump-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}
.rbpr-jump-title{font-size:15px;line-height:1.35;font-weight:700}
.rbpr-jump-details{font-size:12px;line-height:1.4;font-weight:500;color:#245f89}
.rbpr-jump-chevron{display:flex;align-items:center;justify-content:center;flex:0 0 20px;font:32px/1 Arial,sans-serif}
.rbpr-viewer{box-sizing:border-box!important;position:fixed!important;inset:0!important;z-index:2147483646!important;display:grid;place-items:center;width:100%!important;height:100vh;height:100dvh;max-width:none!important;margin:0!important;padding:8px;background:rgba(7,16,26,.96);color:white;overflow:hidden;overscroll-behavior:contain}
.rbpr-viewer-panel{display:grid;grid-template-rows:48px minmax(0,1fr) 138px;width:min(1200px,100%);height:100%;max-height:100%;min-width:0;min-height:0;margin:auto}
.rbpr-viewer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font:13px/1.4 Inter,Arial,sans-serif}
.rbpr-viewer-heading>span{min-width:0;overflow-wrap:anywhere}
.rbpr-viewer-stage{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden;touch-action:pan-y pinch-zoom}
.rbpr-viewer img.rbpr-viewer-image{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;margin:0!important;object-fit:contain!important;background:transparent!important}
.rbpr-viewer .rbpr-image-status{color:#d0dce8}
.rbpr-viewer-footer{display:grid;grid-template-rows:72px 54px;gap:6px;min-width:0;padding:6px 0 0}
.rbpr-viewer-footer .rbpr-caption{box-sizing:border-box;align-self:center;width:100%;max-height:72px;overflow:auto;margin:0;text-align:center;color:white;font-size:14px;line-height:1.5}
.rbpr-viewer-navigation{margin:0;align-self:start}
.rbpr-viewer .rbpr-counter{color:#e3edf5}
.rbpr-viewer .rbpr-close{flex-shrink:0;width:44px;height:44px;border:0;border-radius:50%;background:#e6eef7;color:#263749;font-size:28px;line-height:1;padding:0}
html.rbpr-view-open,html.rbpr-view-open body{overflow:hidden!important;overscroll-behavior:none}
.rbpr-button:focus-visible,.rbpr-small:focus-visible,.rbpr-arrow:focus-visible,.rbpr-close:focus-visible,.rbpr-add:focus-visible,.rbpr-jump:focus-visible,.rbpr-photo-button:focus-visible,.rbpr-author:focus-visible{outline:3px solid #e8b046;outline-offset:3px}
@media(max-width:600px){
 #recipeContent .rbpr-report{padding:12px}
 #recipeContent .rbpr-comment-actions{gap:8px}
 #recipeContent .rbpr-comment-actions>#submitCommentBtn,#recipeContent .rbpr-comment-actions>#rbprCreate{flex:1 1 145px;width:auto!important;max-width:100%!important}
 #recipeContent .rbpr-comment-actions>#rbprCreate{font-size:13px}
 .rbpr-editor{padding:18px 14px}
 .rbpr-dialog-heading h2{font-size:19px}
 .rbpr-draft-row{padding:9px;gap:9px}
 .rbpr-thumbnail{width:64px;height:76px}
 .rbpr-draft-controls{gap:6px}
 .rbpr-small{padding:7px 10px}
 .rbpr-viewer{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
}
body:has(#rbprEditor[open]){overflow:hidden}
@media print{.rbpr-comment-actions,.rbpr-report-actions,.rbpr-jump,#rbprEditor,#rbprViewer{display:none!important}}
