/* R6B.2 UI R2 — standalone, cache-busted, review-workspace-only stylesheet. */
#r6b-panel{min-width:0;max-width:100%;overflow:hidden;color:#18364d;}
#r6b-panel *,#r6b-panel *::before,#r6b-panel *::after{box-sizing:border-box;}
#r6b-panel .r51-panel-head{align-items:flex-start;}
#r6b-panel .r51-panel-head h3{font-size:19px;letter-spacing:0;line-height:1.5;}
#r6b-panel .r51-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
#r6b-panel #r6b-overview{border:1px solid #dfebf1;border-radius:9px;background:#f6fafd;padding:9px 12px;font-size:12px;color:#456278;}
#r6b-panel #r6b-pages{min-width:0;max-width:100%;}
#r6b-panel .r6b-page{min-width:0;max-width:100%;margin:14px 0;padding:14px;border:1px solid #dbe5eb;border-radius:13px;overflow:hidden;background:#fff;}
#r6b-panel .r6b-page-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid #e8eef3;padding:0 0 12px;margin:0 0 14px;}
#r6b-panel .r6b-page-title h4{font-size:17px;line-height:1.5;margin:0;font-weight:750;}
#r6b-panel .r6b-state-badge{font-size:12px;font-weight:700;border-radius:100px;padding:4px 12px;color:#8e5210;background:#fff3dc;}
#r6b-panel .r6b-state-badge.APPROVED{background:#e6f6ed;color:#176643;}
#r6b-panel .r6b-state-badge.SUBMITTED{background:#eaf3ff;color:#185d9d;}
#r6b-panel .r6b-columns{display:grid!important;grid-template-columns:minmax(0,0.94fr) minmax(0,1.06fr)!important;gap:16px;align-items:start;max-width:100%;min-width:0;}
#r6b-panel .r6b-columns > *{min-width:0;max-width:100%;}
#r6b-panel .r6b-visual{position:sticky;top:12px;min-width:0;max-width:100%;border:1px solid #dce5eb;border-radius:10px;overflow:hidden;background:#f2f6f8;}
#r6b-panel .r6b-image-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;min-height:43px;padding:8px 10px;border-bottom:1px solid #dce5eb;background:#f9fbfc;color:#436278;font-size:12px;}
#r6b-panel .r6b-image-tools button{width:auto!important;min-height:29px;border:1px solid #b5cad9;background:#fff;color:#205677;border-radius:7px;padding:4px 10px;font-size:12px;font-weight:650;}
#r6b-panel .r6b-image-tools button:hover{background:#eaf4fc;}
#r6b-panel .r6b-image-frame{width:100%;max-width:100%;height:min(69vh,730px);min-height:340px;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:8px;background:#edf2f4;}
#r6b-panel .r6b-image-frame img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0!important;object-fit:contain!important;object-position:center top;border:0!important;border-radius:4px!important;background:white;}
#r6b-panel .r6b-image-frame.zoomed{justify-content:flex-start;}
#r6b-panel .r6b-image-frame.zoomed img{width:180%!important;min-width:180%!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:fill!important;}
#r6b-panel .r6b-image-error{font-size:12px;color:#9d2e3b;padding:12px;}
#r6b-panel .r6b-form{min-width:0;max-width:100%;}
#r6b-panel .r6b-form label{display:block;font-size:12.5px;font-weight:700;color:#35536b;margin:10px 0 5px;line-height:1.6;}
#r6b-panel .r6b-form label:first-child{margin-top:0;}
#r6b-panel .r6b-source{font-family:inherit!important;font-size:13px;line-height:1.75;text-align:start;direction:rtl;max-height:148px;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;padding:10px 12px;border:1px solid #e0e7ef;background:#f8fafc;border-radius:8px;}
#r6b-panel .r6b-form textarea{font-family:inherit;font-size:14px;line-height:1.85;max-width:100%;min-width:0;width:100%;padding:10px 11px;border:1px solid #c7d8e5;border-radius:8px;resize:vertical;background:white;}
#r6b-panel .r6b-form textarea:focus-visible{outline:3px solid #70c6f060;outline-offset:1px;}
#r6b-panel .r6b-form small{display:block;font-size:11px;line-height:1.7;color:#597084;overflow-wrap:anywhere;}
#r6b-panel .r6b-choices{display:flex;gap:7px 11px;flex-wrap:wrap;}
#r6b-panel .r6b-choices label{display:inline-flex;align-items:center;gap:5px;margin:0;max-width:100%;padding:5px 9px;background:#f3f8fb;border:1px solid #dfebf2;border-radius:8px;font-size:12px;font-weight:500;}
#r6b-panel .r6b-choices input{width:15px;min-width:15px;height:15px;margin:0;accent-color:#087cab;}
#r6b-panel .r6b-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:12px;border-top:1px solid #e7edf2;}
#r6b-panel .r6b-controls button{width:auto;max-width:100%;white-space:normal;font-size:12px;}
#r6b-panel .r6b-unsaved{padding:7px 10px;border-radius:7px;background:#fff3df;border:1px solid #f1d7a9;font-size:12px;color:#875416;}
#r6b-panel .r51-pager{margin-top:14px;border-top:1px solid #e5edf2;padding-top:12px;}
@media(max-width:1100px){#r6b-panel .r6b-columns{grid-template-columns:minmax(0,1fr)!important;}#r6b-panel .r6b-visual{position:relative;top:auto;}#r6b-panel .r6b-image-frame{height:min(60vh,620px);}}
@media(max-width:640px){#r6b-panel{padding:10px;}#r6b-panel .r51-filters{grid-template-columns:minmax(0,1fr);}#r6b-panel .r6b-page{padding:9px;}#r6b-panel .r6b-image-frame{height:min(55vh,500px);min-height:260px;}#r6b-panel .r6b-page-title h4{font-size:16px;}#r6b-panel .r6b-source{max-height:125px;}#r6b-panel .r6b-form textarea{font-size:14px;}}

/* R3: page-local feedback always adjacent to action controls. */
#r6b-panel .r6b-action-notice{margin:12px 0 0;padding:10px 12px;border:1px solid #c9dfe9;background:#f2f8fc;color:#20516a;border-radius:9px;font-size:13px;line-height:1.7;overflow-wrap:anywhere;}
#r6b-panel .r6b-action-notice[data-kind="success"]{background:#e8f7ed;border-color:#9ed4b3;color:#17603a;font-weight:650;}
#r6b-panel .r6b-action-notice[data-kind="error"]{background:#fff1f0;border-color:#eeb8b1;color:#9a2825;font-weight:650;}
#r6b-panel .r6b-action-notice[data-kind="pending"]{background:#fff8e6;border-color:#edd99a;color:#795817;}
#r6b-panel .r6b-checks{display:flex;gap:8px;flex-direction:column;margin:13px 0;padding:10px 12px;border:1px solid #dce7ef;border-radius:9px;background:#f9fbfd;}
#r6b-panel .r6b-checks label{display:flex;gap:8px;align-items:center;font-size:12.5px;font-weight:500;margin:0;}
#r6b-panel .r6b-checks input{width:16px;height:16px;margin:0;accent-color:#087cab;flex-shrink:0;}
