/* Review Workspace batch: compact Workflow + character-led AI QA + feedback controls. */
#review-workspace .rw-panel-header{
  justify-content:center!important;
  text-align:center!important;
}
#review-workspace .rw-panel-header h2{
  width:100%;
  text-align:center;
}
/* Bottom toolbar reaches the main navigation edge, behind the tool rail. */
@media(min-width:1251px){
  /* Cover the full right-hand tab rail; sidebar begins immediately after it. */
  #review-workspace .rw-bottom-bar{
    margin-left:0!important;
    width:calc(100% + 51px)!important;
    padding-left:22px!important;
  }
}
@media(min-width:941px) and (max-width:1250px){
  #review-workspace .rw-bottom-bar{
    margin-left:0!important;
    width:calc(100% + 46px)!important;
    padding-left:17px!important;
  }
}
/* Feedback controls: edge-to-edge dark row with air between compact elements. */
#review-workspace .rws-feedback-toolbar{
  width:calc(100% + 40px)!important;
  margin:-1px -20px 20px!important;
  min-height:60px!important;
  align-items:center!important;
  padding:9px 12px!important;
  gap:10px!important;
  border-radius:0!important;
}
#review-workspace .rws-feedback-filters{
  gap:7px!important;
}
#review-workspace .rws-feedback-filters>button{
  padding:8px 4px!important;
  font-size:10px!important;
}
#review-workspace .rws-feedback-options{gap:5px!important;}
#review-workspace .rws-option>button{width:28px;height:34px;}
#review-workspace .rwf-feedback-role-actions{
  display:grid;
  gap:11px;
  margin:0 0 18px;
}
#review-workspace .rwf-role-action-buttons{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
#review-workspace .rwf-role-action-buttons>button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:41px;
  padding:9px 8px;
  border:1px solid #e4dfea;
  border-radius:9px;
  color:#654699;
  background:#fbf9fe;
  font-size:10px;
  font-weight:700;
  line-height:1.4;
}
#review-workspace .rwf-role-action-buttons>button .icon{
  width:14px;height:14px;flex:none;
}
#review-workspace .rwf-role-action-buttons>button.rwf-action-primary{
  background:#7441d1;
  border-color:#7441d1;
  color:#fff;
}
#review-workspace .rwf-role-action-buttons>button:disabled{
  opacity:.4;cursor:not-allowed;
}
#review-workspace .rwf-role-action-buttons>button:hover:not(:disabled){
  border-color:#b9a4e0;
}
#review-workspace .rws-comment-status.is-question{
  color:#4f84ba!important;
  background:#edf6ff!important;
  border-color:#a1cae9!important;
}
#review-workspace .rws-status-menu>button[data-status-value="question"][aria-pressed="true"]{
  background:#253c50;color:#d8efff;
}
/* Workflow stages: airy divider rows, not nested cards. */
#review-workspace .rwf-panel{
  display:flex;flex-direction:column;gap:0!important;
}
#review-workspace .rwf-preview-role{
  border:0!important;border-bottom:1px solid #ece8ed!important;
  border-radius:0!important;
  background:transparent!important;
  padding:12px 1px 18px!important;
  margin:0;
}
#review-workspace .rwf-preview-role>div{gap:8px!important;}
#review-workspace .rwf-preview-role button{
  border:0!important;
  border-radius:5px!important;
  padding:8px 6px!important;
  background:transparent!important;
}
#review-workspace .rwf-preview-role button[aria-pressed="true"]{
  color:#6e39c6!important;
  background:#f3eefb!important;
}
#review-workspace .rwf-summary{
  gap:5px!important;
  padding:18px 2px!important;
  border-bottom:1px solid #eae7ed!important;
}
#review-workspace .rwf-stage,
#review-workspace .rwf-stage.is-expanded{
  position:relative;
  display:block;
  border:0!important;
  border-bottom:1px solid #eae6ec!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  margin:0;
}
#review-workspace .rwf-stage-head{
  display:flex;
  align-items:center;
  gap:2px;
  min-width:0;
}
#review-workspace .rwf-stage-toggle{
  flex:1;
  min-width:0;
  min-height:67px;
  padding:14px 3px!important;
  display:flex;
  align-items:center;
  gap:10px!important;
  background:transparent;
  border:0;
}
#review-workspace .rwf-stage-copy{
  display:grid!important;
  gap:3px!important;
  flex:1;
  min-width:0;
}
#review-workspace .rwf-stage-toggle .rwf-stage-copy>strong{
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#review-workspace .rwf-stage-toggle .rwf-stage-copy>small{
  font-size:10px;
  color:#9691a0;
}
#review-workspace .rwf-stage-status{
  display:grid!important;
  place-items:center;
  flex:none!important;
  width:23px!important;
  height:23px!important;
  border-radius:50%;
  color:#858894;
}
#review-workspace .rwf-stage-status>.icon{width:18px;height:18px;}
#review-workspace .rwf-stage-status-complete{color:#329b70;}
#review-workspace .rwf-stage-status-current{color:#8957da;}
#review-workspace .rwf-stage-status-changes{color:#bf5861;}
#review-workspace .rwf-stage-status-waiting{color:#999ca5;}
#review-workspace .rwf-stage-head-faces{margin-right:7px;}
#review-workspace .rwf-stage.is-expanded .rwf-stage-head-faces{display:none!important;}
#review-workspace .rwf-stage-edit{
  width:27px;height:30px;
  display:grid;place-items:center;flex:none;
  border:0;background:transparent;
  padding:0;color:#8a8793;
  border-radius:6px;
}
#review-workspace .rwf-stage-edit:hover{background:#f3eef9;color:#6736c2;}
#review-workspace .rwf-stage-edit>.icon{width:16px;height:16px;}
#review-workspace .rwf-vertical-flow{
  padding:12px 7px 19px!important;
  gap:6px!important;
}
#review-workspace .rwf-person{
  position:relative;
  flex:none;
}
#review-workspace .rwf-person-photo{
  border:2px solid #b0afb8!important;
  box-shadow:0 0 0 2px #ffffff;
  background:#ece7f3;
}
#review-workspace .rwf-status-complete .rwf-person-photo{
  border-color:#58c399!important;
}
#review-workspace .rwf-status-current .rwf-person-photo{
  border-color:#a37add!important;
}
#review-workspace .rwf-status-waiting .rwf-person-photo{
  border-color:#aeb0b9!important;
}
#review-workspace .rwf-person-status{
  display:none!important;
}
#review-workspace .rwf-person-role{
  left:-5px;
  top:-4px;
  width:16px;height:16px;
}
#review-workspace .rwf-person-edit{
  position:absolute;
  z-index:8;
  bottom:-5px;left:-6px;
  width:18px;height:18px;
  display:grid;place-items:center;
  padding:0;
  border:1px solid #dad1e4;
  border-radius:50%;
  color:#714ab2;
  background:#fff;
  box-shadow:0 2px 5px #211b2923;
}
#review-workspace .rwf-person-edit:hover{
  background:#ece4fa;color:#59249f;
}
#review-workspace .rwf-person-edit>.icon{width:11px;height:11px;}
#review-workspace .rwf-owner,
#review-workspace .rwf-gate-row,
#review-workspace .rwf-reviewer-row{
  display:flex;align-items:center;justify-content:center;
}
#review-workspace .rwf-empty-gate{
  display:grid;place-items:center;
  width:48px;height:48px;
  border:2px solid #df666e;
  border-radius:50%;
  background:#fff4f4;
  color:#c94a58;
}
#review-workspace .rwf-empty-gate .icon{width:23px;height:23px;}
#review-workspace .rwf-empty-reviewers{
  font-size:10px;
  color:#a49aa8;
}
#review-workspace .rwf-stage-utility{
  display:flex;justify-content:space-between;align-items:center;
  gap:14px;
  padding:10px 3px 16px;
  border-top:1px solid #efedf0;
  margin:0 4px;
}
#review-workspace .rwf-stage-utility>div{
  display:flex;align-items:center;gap:15px;
}
#review-workspace .rwf-stage-utility button{
  display:grid;place-items:center;
  width:29px;height:29px;
  color:#807b8a;
  border:0!important;
  background:transparent!important;
  border-radius:7px!important;
  padding:0!important;
}
#review-workspace .rwf-stage-utility button:hover:not(:disabled){
  color:#6f3ac7;
  background:#f3eef9!important;
}
#review-workspace .rwf-stage-utility button:disabled{
  opacity:.3;cursor:not-allowed;
}
#review-workspace .rwf-stage-utility button>.icon{width:17px;height:17px;}
#review-workspace .rwf-quick-person,
#review-workspace .rwf-inline-editor{
  display:grid;
  gap:12px;
  padding:13px 10px;
  margin:7px 3px 16px;
  border:1px solid #ede5f0;
  border-radius:10px;
  background:#faf8fc;
  color:#3d394a;
}
#review-workspace .rwf-quick-person>strong,
#review-workspace .rwf-inline-editor>strong{
  font-size:11px;
}
#review-workspace .rwf-quick-person>small{font-size:10px;color:#8b8494;}
#review-workspace .rwf-person-choices,
#review-workspace .rwf-inline-edit-actions,
#review-workspace .rwf-quick-roles{
  display:flex;flex-wrap:wrap;gap:6px;
}
#review-workspace .rwf-person-choices>button,
#review-workspace .rwf-quick-roles>button,
#review-workspace .rwf-inline-edit-actions>button,
#review-workspace .rwf-quick-person>button{
  border:1px solid #e5ddec;
  background:#fff;color:#67488b;
  border-radius:7px;padding:7px 9px;
  font-size:10px;font-weight:650;
}
#review-workspace .rwf-quick-roles>button[aria-pressed="true"]{
  background:#eee6f9;color:#6733b3;border-color:#bda9de;
}
#review-workspace .rwf-quick-person .rwf-danger-link{color:#ae4d56;border-color:#f4d7da;}
#review-workspace .rwf-inline-editor .rwf-primary{color:#fff!important;background:#7443d3!important;}
#review-workspace .rwf-warning,
#review-workspace .rwf-return-form{
  padding:12px!important;
  margin:7px 3px 12px;
}
/* Three QA characters, three restrained colored speech bubbles with tails. */
#review-workspace .rwf-ai-qa-panel{
  display:grid;
  gap:34px;
  padding:6px 0 25px;
}
#review-workspace .rwf-qa-character{
  --qa-tint:#f4effc;
  --qa-divider:#e4d7f2;
  display:flex;flex-direction:column;align-items:center;
  gap:16px;
  min-width:0;
}
#review-workspace .rwf-qa-character.rwf-qa-visual{
  --qa-tint:#fef1f6;
  --qa-divider:#f3d7e4;
}
#review-workspace .rwf-qa-character.rwf-qa-technical{
  --qa-tint:#edf7fc;
  --qa-divider:#d3e9f3;
}
#review-workspace .rwf-qa-speech{
  position:relative;
  display:grid;
  width:100%;
  gap:0;
  padding:8px 12px;
  background:var(--qa-tint);
  border-radius:19px;
}
#review-workspace .rwf-qa-speech::after{
  content:"";
  position:absolute;
  width:20px;height:20px;
  background:var(--qa-tint);
  bottom:-8px;
  left:50%;
  transform:translateX(-50%) rotate(45deg);
  border-radius:2px;
}
#review-workspace .rwf-qa-suggestion{
  display:flex;gap:9px;
  align-items:center;
  padding:12px 1px;
  min-width:0;
  position:relative;
  z-index:1;
}
#review-workspace .rwf-qa-suggestion+.rwf-qa-suggestion{
  border-top:1px solid var(--qa-divider);
}
#review-workspace .rwf-qa-suggestion>span{
  flex:1;
  min-width:0;
  font-size:11px;
  line-height:1.5;
  color:#555162;
}
#review-workspace .rwf-qa-controls{
  display:flex;gap:3px;
  flex:none;
}
#review-workspace .rwf-qa-controls>button{
  display:grid;place-items:center;
  width:27px;height:27px;
  padding:0;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#8e8a97;
}
#review-workspace .rwf-qa-controls>button:first-child:hover{
  background:#e4f5e9;color:#238256;
}
#review-workspace .rwf-qa-controls>button:last-child:hover{
  background:#ffe5e8;color:#bd4454;
}
#review-workspace .rwf-qa-action-svg{
  width:16px;height:16px;
}
#review-workspace .rwf-qa-figure{
  display:flex;align-items:center;flex-direction:column;
  gap:5px;
  text-align:center;
  padding-top:5px;
}
#review-workspace .rwf-qa-mascot-img,
#review-workspace .rwf-qa-character-fallback{
  display:grid;place-items:center;
  width:100px;height:105px;
  object-fit:contain;
  font-size:73px;
  animation:rwf-character-idle 3.8s ease-in-out infinite;
  transform-origin:center bottom;
}
#review-workspace .rwf-qa-character-fallback[hidden]{display:none!important;}
#review-workspace .rwf-qa-character.rwf-qa-visual .rwf-qa-mascot-img,
#review-workspace .rwf-qa-character.rwf-qa-visual .rwf-qa-character-fallback{
  animation-delay:.55s;
}
#review-workspace .rwf-qa-character.rwf-qa-technical .rwf-qa-mascot-img,
#review-workspace .rwf-qa-character.rwf-qa-technical .rwf-qa-character-fallback{
  animation-delay:1.1s;
}
#review-workspace .rwf-qa-figure strong{
  font-size:13px;
  color:#35313e;
  font-weight:770;
}
#review-workspace .rwf-qa-figure>span:last-child{
  font-size:11px;
  color:#88808e;
}
#review-workspace .rwf-qa-empty{
  margin:12px 4px;
  text-align:center;
  font-size:11px;
  color:#96909d;
}
#review-workspace .rwf-qa-technical-note{
  display:grid;gap:10px;
  padding:17px 0 4px;
  border-top:1px solid #ece9ed;
}
#review-workspace .rwf-qa-technical-note>button{
  padding:10px 13px;
  border:1px solid #d9cfe9;
  border-radius:8px;
  background:#f9f6fd;
  color:#6841ad;
  font-size:11px;
  font-weight:720;
}
#review-workspace .rwf-qa-technical-note>small{
  color:#8e8898;
  line-height:1.6;
  font-size:10px;
}
@keyframes rwf-character-idle{
  0%,100%{transform:translateY(0) rotate(0);}
  50%{transform:translateY(-7px) rotate(1deg);}
}
@media(max-width:1100px){
  #review-workspace .rws-feedback-toolbar{
    width:calc(100% + 26px)!important;
    margin-left:-13px!important;
    margin-right:-13px!important;
    padding:9px 8px!important;
  }
}
@media(max-width:780px){
  #review-workspace .rw-bottom-bar{
    margin-left:0!important;width:100%!important;
  }
  #review-workspace .rwf-role-action-buttons{gap:5px;}
}
@media(prefers-reduced-motion:reduce){
  #review-workspace .rwf-qa-mascot-img,
  #review-workspace .rwf-qa-character-fallback{animation:none!important;}
}
/* Batch correction: filter directly beneath header, role actions after it. */
#review-workspace .rws-feedback-toolbar{
  margin-top:-19px!important;
  margin-bottom:20px!important;
}
@media(max-width:1100px){
  #review-workspace .rws-feedback-toolbar{margin-top:-16px!important;}
}
#review-workspace .rwf-feedback-role-actions{
  margin:0 0 20px!important;
}
/* Person edit is at BOTTOM RIGHT of the portrait, not left. */
#review-workspace .rwf-person-edit{
  left:auto!important;
  right:-7px!important;
  bottom:-6px!important;
}
/* Stage diagram: connectors use measured SVG paths, not fake horizontal arms. */
#review-workspace .rwf-vertical-flow{
  position:relative!important;
  padding-bottom:40px!important;
  isolation:isolate;
}
#review-workspace .rwf-connector-svg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:visible;
  display:block;
}
#review-workspace .rwf-vertical-flow>:not(.rwf-connector-svg){
  position:relative;
  z-index:1;
}
#review-workspace .rwf-decision{
  display:grid!important;
  width:100%!important;
  grid-template-columns:1fr 1fr;
  justify-items:center;
  gap:20px!important;
  margin-top:30px!important;
  padding:0 8px;
  position:relative;
}
#review-workspace .rwf-decision::before,
#review-workspace .rwf-decision::after{
  content:none!important;
  display:none!important;
}
#review-workspace .rwf-choice{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  min-width:0;
  font-size:10px;
  text-align:center;
  background:#fff;
  padding:2px 5px;
  z-index:2;
  position:relative;
}
#review-workspace .rwf-choice>svg{
  height:17px;width:17px;
}
#review-workspace .rwf-choice-revisions{color:#b17c93;}
#review-workspace .rwf-choice-continue{color:#4b9a76;}
#review-workspace .rwf-choice>small{
  font-size:10px;
  color:inherit;
}
#review-workspace .rwf-add-avatar{
  display:grid;place-items:center;
  flex:none;
  width:43px;height:43px;
  border-radius:50%;
  border:1.5px dashed #bba7d8;
  background:#faf6ff;
  color:#8454bc;
  padding:0;
  cursor:pointer;
}
#review-workspace .rwf-add-avatar:hover{
  background:#efe6fa;
  border-color:#8454bc;
}
#review-workspace .rwf-add-avatar>.icon{
  width:19px;height:19px;
}
#review-workspace .rwf-status-skipped .rwf-person-photo{
  border:2px dashed #a4a5af!important;
  filter:saturate(.48);
}
#review-workspace .rwf-skip-person{
  margin-top:10px;
}
#review-workspace .rwf-skip-person button{
  color:#694398;
  background:#fff;
  border:1px solid #e4dbe9;
  border-radius:7px;
  min-height:31px;
  padding:7px 10px;
  font-size:11px;
  text-align:left;
}
#review-workspace .rwf-skip-person button:hover{
  border-color:#a188cb;
  background:#f8f4fc;
}
/* QA run control belongs immediately under the centered AI QA header. */
#review-workspace .rwf-ai-qa-panel{
  padding-top:0!important;
}
#review-workspace .rwf-qa-top-action{
  display:flex;
  justify-content:center;
  margin:0 0 -7px;
  padding:5px 0 0;
}
#review-workspace .rwf-qa-top-action>button{
  width:100%;
  min-height:39px;
  border:1px solid #d9cce9;
  border-radius:9px;
  background:#f7f3fc;
  color:#6740b0;
  font-size:11px;
  font-weight:730;
}
#review-workspace .rwf-qa-top-action>button:hover{
  background:#ede5f8;
}
/* Hidden missing GIFs must not display giant clipped ALT text. */
#review-workspace .rwf-qa-mascot-img[hidden]{
  display:none!important;
}
#review-workspace .rwf-qa-character-fallback{
  width:94px!important;
  height:100px!important;
  font-size:58px!important;
  line-height:1!important;
  overflow:hidden!important;
  text-indent:0!important;
  white-space:nowrap!important;
}
#review-workspace .rwf-qa-character-fallback[hidden]{
  display:none!important;
}
#review-workspace .rwf-qa-figure{
  gap:4px!important;
  padding-top:0!important;
}
#review-workspace .rwf-qa-character{
  gap:12px!important;
}
