.rr-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,1.6fr);gap:18px;align-items:start}
.rr-panel{border:1px solid var(--line,#d6dce3);border-radius:14px;padding:16px;min-width:0}
.rr-heading{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;flex-wrap:wrap}
.rr-heading h1{margin:5px 0}
.rr-status{margin:12px 0;font-size:.92rem}
.rr-list{display:grid;gap:8px;max-height:68vh;overflow:auto}
.rr-entry{width:100%;text-align:left;padding:14px;border:1px solid var(--line,#d6dce3);border-radius:12px;background:transparent;color:inherit;cursor:pointer;display:grid;gap:5px}
.rr-entry:hover,.rr-entry[aria-pressed="true"]{border-color:var(--accent,#679cde);background:rgba(114,139,190,.1)}
.rr-entry-meta,.rr-muted,.rr-empty{color:var(--muted,#768392);font-size:.88rem}
.rr-preview{width:100%;display:block;max-height:520px;object-fit:contain;background:#080d16;border-radius:12px;margin:12px 0}
.rr-open-file{display:inline-block;margin:0 0 12px}
.rr-detail-line{margin:8px 0}
.rr-notice{border-left:3px solid var(--accent,#679cde);padding:12px;background:rgba(114,139,190,.1);font-size:.91rem}
.rr-thread{display:grid;gap:12px;max-height:390px;overflow:auto}
.rr-message{padding:10px 12px;border:1px solid var(--line,#d6dce3);border-radius:10px}
.rr-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
@media(max-width:760px){.rr-layout{grid-template-columns:minmax(0,1fr)}.rr-panel{padding:12px}.rr-list{max-height:340px}.rr-preview{max-height:440px}}

.rr-preview[hidden],.rr-open-file[hidden]{display:none!important}

#navRenderingReview[hidden],#rrMore[hidden]{display:none!important}

.rr-chat-form{display:grid;gap:10px;margin-top:16px;min-width:0}
.rr-chat-form textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:108px;padding:12px;border:1px solid var(--line,#d6dce3);border-radius:10px;background:var(--surface,#fff);color:inherit;font:inherit;resize:vertical}
.rr-chat-form button{justify-self:start;max-width:100%;white-space:normal}
.rr-candidate{border:1px solid var(--line,#d6dce3);border-radius:10px;padding:12px;margin:12px 0;min-width:0;overflow-wrap:anywhere}
.rr-candidate summary{cursor:pointer;font-weight:600}
.rr-draft{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){.rr-chat-form button{width:100%;justify-self:stretch}.rr-chat-form textarea{font-size:16px}}

.rr-panel[aria-label="Selected Reel preview"]{min-width:0}
@media(max-width:760px){.rr-panel[aria-label="Selected Reel preview"]{order:-1;display:flex;flex-direction:column}.rr-panel[aria-label="Selected Reel preview"] #rrVideo{order:0}.rr-panel[aria-label="Selected Reel preview"] #rrDetail{order:1}.rr-panel[aria-label="Selected Reel preview"] #rrOpenFile{order:2}}

.rr-v1-warning{margin:12px 0;padding:10px 12px;border:1px solid var(--accent,#679cde);border-radius:8px;font-size:.92rem;font-weight:600}
.rr-proposal-storyboard{margin:16px 0;padding:12px;border:1px solid var(--line,#d6dce3);border-radius:12px}
.rr-proposal-storyboard h3{margin:0 0 6px}
.rr-storyboard-row{padding:10px 0;border-top:1px solid var(--line,#d6dce3)}
.rr-storyboard-row h4{margin:4px 0 10px}
.rr-storyboard-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rr-storyboard-still{min-width:0;display:flex;flex-direction:column;gap:6px}
.rr-storyboard-still strong{font-size:.87rem}
.rr-storyboard-still img{width:100%;max-height:320px;object-fit:contain;background:#080d16;border-radius:8px}
.rr-storyboard-still p{overflow-wrap:anywhere;margin:2px 0}
@media(max-width:430px){.rr-storyboard-pair{gap:8px}.rr-storyboard-still img{max-height:210px}}

/* Keep unresolved-source correction ABOVE the long review history on mobile. */
.rr-night-fix{margin:12px 0 18px;padding:14px;border:2px solid var(--line,#d6dce3);border-radius:12px;display:grid;gap:10px;min-width:0}
.rr-night-fix h3{margin:0;font-size:1.05rem}
.rr-night-fix .rr-notice{margin:0}
.rr-night-fix button{width:100%;max-width:100%;white-space:normal;min-height:50px;font-weight:700}

/* A single conversational response sits with the Producer's photo offer.
   Other output details remain available farther down the review workspace. */
.rr-night-fix{border-width:1px;gap:8px}
.rr-night-fix .rr-producer-label{font-size:.95rem}
.rr-night-fix>p{margin:4px 0;line-height:1.5}
.rr-night-fix .rr-chat-form{margin-top:4px}
.rr-night-fix .rr-chat-form button{min-height:44px;font-weight:600}


/* The playing media version sits directly below the video on every screen. */
.rr-panel[aria-label="Selected Reel preview"]{display:flex;flex-direction:column}
.rr-panel[aria-label="Selected Reel preview"] #rrVideo{order:0}
.rr-panel[aria-label="Selected Reel preview"] #rrVersionBar{order:1}
.rr-panel[aria-label="Selected Reel preview"] #rrOpenFile{order:2}
.rr-panel[aria-label="Selected Reel preview"] #rrDetail{order:3}
.rr-version-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 6px}
.rr-version-bar[hidden],.rr-original-version[hidden]{display:none!important}
.rr-version-label{font-weight:700}
.rr-original-version{font:inherit;color:var(--accent,#679cde);background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}
.rr-original-version:hover{text-decoration-thickness:2px}

/* Keep feedback visible above the action, even with the iOS keyboard open. */
.rr-feedback-status{margin:4px 0;padding:12px;border:1px solid var(--line,#d6dce3);border-radius:10px;background:var(--surface,#fff);color:inherit;line-height:1.45}
.rr-feedback-status[hidden]{display:none!important}
.rr-feedback-status[data-state="working"]{border-left:4px solid var(--accent,#679cde)}
.rr-feedback-status[data-state="success"]{border-left:4px solid #3f8d60}
.rr-feedback-status[data-state="error"]{border-left:4px solid #c65b52}
.rr-chat-form button[aria-busy="true"]{opacity:.8;cursor:progress}
.rr-feedback-receipt,.rr-review-progress{padding:12px;margin:8px 0;border-left:4px solid var(--accent,#679cde);border-radius:8px;background:rgba(114,139,190,.09);line-height:1.45}

/* Conversation first, technical details only on request. */
.rr-next-step{margin:14px 0;border:1px solid var(--line,#d6dce3);border-radius:12px;padding:16px;display:grid;gap:10px}
.rr-next-step p{margin:0;line-height:1.5}
.rr-next-step button{width:100%;min-height:48px;font-weight:700;white-space:normal}
.rr-producer-chat-primary{padding:12px;border:1px solid var(--line,#d6dce3);border-radius:12px;margin:14px 0}
.rr-producer-chat-primary>p{margin:0}
.rr-plan-details,.rr-conversation-history{margin:12px 0;padding:12px;border:1px solid var(--line,#d6dce3);border-radius:10px}
.rr-plan-details summary,.rr-conversation-history summary{cursor:pointer;font-weight:600}

/* Status and saved messages are visible before Producer input (not collapsed). */
.rr-activity{display:grid;gap:6px;margin:12px 0;padding:12px 14px;border:1px solid var(--line,#d6dce3);border-left:4px solid var(--accent,#679cde);border-radius:10px;overflow-wrap:anywhere}
.rr-activity-heading{font-size:1rem}
.rr-activity-time{font-size:.82rem;margin:0;color:var(--muted,#768392)}
.rr-activity-detail{margin:3px 0;line-height:1.5}
.rr-activity-needs{font-size:.89rem}
.rr-activity-needs ul{margin:6px 0;padding-left:22px}
.rr-conversation-live{margin:12px 0;min-width:0}
.rr-conversation-live h3{font-size:1rem;margin:0 0 10px}
.rr-message-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.rr-message-time{font-size:.78rem;color:var(--muted,#768392);font-variant-numeric:tabular-nums}
.rr-conversation-live .rr-thread{max-height:440px}

/* Compact media previews: one globally shared NEEDS ASSET visual for missing or
   inaccessible thumbnails; the video itself is still reviewed in the player. */
.rr-entry{grid-template-columns:52px minmax(0,1fr);align-items:center;gap:10px}
.rr-entry-thumb{display:block;width:52px;height:68px;min-width:0;overflow:hidden;
  border:1px solid var(--line,#d6dce3);border-radius:7px;background:#122846}
.rr-entry-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.rr-entry-body{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
@media(max-width:430px){
  .rr-entry{grid-template-columns:46px minmax(0,1fr);gap:9px;padding:10px}
  .rr-entry-thumb{width:46px;height:61px}
}


/* Source-of-truth review progress is visible even before a render job exists.
   Stage labels describe confirmed milestones; no fictional percent complete. */
.rr-progress-top{margin:10px 0 16px;padding:12px 14px;border:1px solid var(--line,#d6dce3);
  border-left:4px solid var(--accent,#679cde);border-radius:10px;font-weight:600;line-height:1.5}
.rr-progress-top[hidden]{display:none!important}
.rr-progress-heading{font-size:1rem;margin:6px 0 0}
.rr-progress-summary{line-height:1.5;margin:2px 0 8px;font-weight:600}
.rr-progress-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  padding:0;list-style:none;margin:8px 0}
.rr-progress-stage{display:flex;flex-direction:column;gap:4px;min-width:0;
  border:1px solid var(--line,#d6dce3);border-radius:8px;padding:9px}
.rr-progress-stage-name{font-weight:600;font-size:.85rem}
.rr-progress-stage-state{font-size:.75rem;color:var(--muted,#768392)}
.rr-progress-stage--complete{border-color:#3f8d60;background:rgba(63,141,96,.08)}
.rr-progress-stage--complete .rr-progress-stage-state{color:inherit}
.rr-progress-stage--current{border-color:var(--accent,#679cde);border-width:2px}
.rr-progress-stage--attention{border-color:#b42318;border-width:2px;
  background:rgba(220,38,38,.14);color:#8f1d18}
.rr-progress-stage--attention .rr-progress-stage-state{color:#991b1b;font-weight:800}
.rr-activity--attention{border-color:#c2413b!important;border-left:4px solid #b42318!important}
.rr-progress-top--attention{border-left-color:#b42318!important;
  background:rgba(220,38,38,.1);color:var(--text,#19243a)}
.rr-progress-checked{color:var(--muted,#768392);font-size:.8rem;margin:4px 0}
.rr-activity>button{justify-self:start}
@media(max-width:760px){.rr-progress-stages{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rr-progress-stage{padding:8px}.rr-activity>button{min-height:44px}}

/* A finished V2 and an unstarted V3 are different verified timelines. */
.rr-pending-revision{display:grid;gap:8px;min-width:0;padding:12px;
  margin:10px 0 4px;border:1px solid var(--line,#d6dce3);
  border-left:4px solid #b16b28;border-radius:9px;background:rgba(177,107,40,.055)}
.rr-pending-revision-heading{font-size:.97rem}
.rr-pending-revision-summary{margin:0;line-height:1.45}
.rr-pending-revision-steps{padding:0;margin:2px 0;list-style:none;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.rr-pending-revision-step{display:flex;flex-direction:column;gap:3px;
  border:1px solid var(--line,#d6dce3);border-radius:7px;padding:8px;min-width:0}
.rr-pending-revision-step strong{font-size:.83rem}
.rr-pending-revision-step span{font-size:.78rem;overflow-wrap:anywhere}
@media(max-width:500px){.rr-pending-revision-steps{grid-template-columns:minmax(0,1fr)}}
