/* Review chrome, Batch 06: header + dark item nav + minimal bottom toolbar.
   The right review sidebar and annotation toolbox are intentionally unchanged. */
#review-workspace .rw-topbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:clamp(18px,2.5vw,40px);
  width:100%;
  min-height:76px;
  padding:14px clamp(22px,2.4vw,40px);
  background:#fff;
  border-bottom:1px solid #e9e7e8;
}
#review-workspace .rw-project-identity{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
#review-workspace .rw-type-glyph{
  color:#7342d8;
  flex:none;
  display:grid;
  place-items:center;
  width:23px;height:26px;
}
#review-workspace .rw-type-glyph .rw-icon{width:22px;height:22px;stroke-width:1.7;}
#review-workspace .rw-project-identity h1{
  margin:0;min-width:0;
  color:#242634;
  font-size:clamp(16px,1.25vw,20px);
  line-height:1.25;
  font-weight:740;
  letter-spacing:-.035em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#review-workspace .rw-project-identity h1[hidden],
#review-workspace .rw-name-editor[hidden],
#review-workspace .rw-project-identity button[hidden]{display:none!important;}
#review-workspace .rw-chrome-icon{
  display:inline-grid;place-items:center;
  padding:0;width:31px;height:31px;flex:none;
  border:0!important;
  border-radius:8px;
  box-shadow:none!important;
  background:transparent!important;
  color:#777784;
  cursor:pointer;
  transition:color .12s ease,background-color .12s ease;
}
#review-workspace .rw-chrome-icon .rw-icon{width:18px;height:18px;stroke-width:1.6;}
#review-workspace .rw-chrome-icon:hover{color:#6036c7;background:#f2eef8!important;}
#review-workspace .rw-chrome-icon:disabled{opacity:.28;cursor:default;}
#review-workspace .rw-chrome-icon:disabled:hover{background:transparent!important;color:#777784;}
#review-workspace .rw-name-editor{display:flex;align-items:center;gap:5px;flex:1;min-width:0;}
#review-workspace .rw-name-editor input{
  min-width:110px;max-width:390px;width:100%;
  border:1px solid #cabbea;border-radius:8px;background:#fff;
  color:#242633;font-size:15px;padding:8px 11px;
}
#review-workspace .rw-top-actions{
  display:flex;justify-content:flex-end;gap:15px;flex-wrap:nowrap;
}
#review-workspace .rw-top-actions .rw-chrome-icon{width:36px;height:36px;}
#review-workspace .rw-top-actions .rw-icon{width:20px;height:20px;}
#review-workspace .rw-demo-preview{
  display:flex;align-items:center;justify-content:center;
  flex-wrap:wrap;gap:13px;
  white-space:nowrap;
  color:#7d7b88;font-size:11px;
}
#review-workspace .rw-demo-preview>span{font-size:11px;font-weight:600;}
#review-workspace .rw-demo-options{display:flex;align-items:center;gap:5px;}
#review-workspace .rw-demo-options button{
  border:0;border-radius:8px;
  background:transparent;color:#7c7a89;
  padding:8px 11px;font-weight:600;font-size:12px;
}
#review-workspace .rw-demo-options button[aria-pressed="true"]{
  color:#6136b8;background:#f1eafa;
}
#review-workspace .rw-demo-options button:hover{color:#5631a5;background:#f6f1ff;}

/* The navigation bar spans the entire review content, exactly like the header. */
#review-workspace .rw-top-item-strip{
  display:flex!important;
  align-items:stretch;
  width:100%;
  min-height:69px;height:69px;flex:none;
  margin:0!important;padding:0!important;gap:0!important;
  background:#101114!important;
  color:#f8f7fa!important;
  border:0!important;
  border-bottom:1px solid #24252a!important;
  overflow:hidden!important;
  box-sizing:border-box;
}
#review-workspace .rw-strip-label{
  display:flex;align-items:center;justify-content:center;
  min-width:125px;flex:none;
  padding:0 28px;
  font-size:12px;
  font-weight:740;
  color:#f5f4f7;
  letter-spacing:.01em;
}
#review-workspace .rw-strip-divider{
  display:block;width:1px;min-width:1px;flex:none;
  background:#383a40;
  align-self:stretch;
  margin:0;
}
#review-workspace .rw-strip-items{
  display:flex;align-items:stretch;
  gap:7px;
  padding:0 clamp(14px,1.8vw,34px);
  min-width:0;flex:1;
  overflow-x:auto;
  scrollbar-width:thin;
  scrollbar-color:#4b4b53 #101114;
  scroll-snap-type:x proximity;
}
#review-workspace .rw-top-item-strip .rw-strip-item{
  position:relative;
  display:flex;flex-direction:column;align-items:stretch;justify-content:center;
  gap:9px;
  flex:none;min-width:145px;max-width:260px;
  padding:10px clamp(20px,1.7vw,30px);
  border:0!important;border-radius:0!important;
  background:transparent!important;
  color:#b7b9c1!important;
  box-shadow:none;
  white-space:nowrap;
  text-align:left;
  font-size:12px;font-weight:610;
  scroll-snap-align:start;
}
#review-workspace .rw-top-item-strip .rw-strip-item:hover{
  background:transparent!important;color:#fff!important;
}
#review-workspace .rw-top-item-strip .rw-strip-item[aria-current="true"]{
  background:transparent!important;color:#fff!important;font-weight:740;
}
#review-workspace .rw-top-item-strip .rw-strip-item[aria-current="true"]::after{
  content:"";
  position:absolute;
  left:50%;bottom:0;
  transform:translateX(-50%);
  width:30px;height:3px;
  background:#fff;
  border-radius:3px 3px 0 0;
}
#review-workspace .rw-strip-item-name{
  overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;line-height:1.15;
}
#review-workspace .rw-item-workflow-progress{
  width:66px;height:3px;flex:none;
  display:flex;align-items:center;gap:4px;
  background:transparent;
  overflow:visible;
}
#review-workspace .rw-item-workflow-progress>.rw-stage-segment{
  display:block;
  flex:1;min-width:7px;
  height:3px;
  border-radius:3px;
  background:#666770;
}
#review-workspace .rw-item-workflow-progress>.rw-stage-segment.is-current{background:#ac86ed;}
#review-workspace .rw-item-workflow-progress>.rw-stage-segment.is-complete{background:#58bc8b;}
#review-workspace .rw-item-workflow-progress>.rw-stage-segment.is-revision{background:#ac86ed;}

/* Short three-part toolbar at the foot of the preview. */
#review-workspace .rw-canvas-column{min-height:0;}
#review-workspace .rw-canvas-scroll{
  flex:1;min-height:300px;
  height:auto;max-height:calc(100dvh - 224px);
  padding-bottom:28px;
}
#review-workspace .rw-bottom-bar{
  position:relative;z-index:18;
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  width:100%;min-height:53px;height:53px;
  padding:4px clamp(14px,1.5vw,28px);
  background:#fff;
  border-top:1px solid #e5e1e4;
  color:#4f505a;
  flex:none;
}
#review-workspace .rw-bottom-left,
#review-workspace .rw-bottom-center,
#review-workspace .rw-bottom-right{display:flex;align-items:center;gap:14px;min-width:0;}
#review-workspace .rw-bottom-left{justify-content:flex-start;gap:25px;}
#review-workspace .rw-bottom-center{justify-content:center;gap:18px;}
#review-workspace .rw-bottom-right{justify-content:flex-end;gap:13px;}
#review-workspace .rw-chrome-text{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  border:0!important;background:transparent!important;
  box-shadow:none!important;
  color:#575461;
  padding:7px 2px;
  border-radius:6px;
  font-size:12px;font-weight:700;
  white-space:nowrap;
}
#review-workspace .rw-chrome-text:hover,
#review-workspace .rw-chrome-text[aria-expanded="true"],
#review-workspace .rw-chrome-text.is-active{color:#6f38cd;}
#review-workspace .rw-chrome-text .rw-icon{width:16px;height:16px;}
#review-workspace .rw-caret{transform:rotate(90deg);width:13px!important;height:13px!important;stroke-width:1.6;}
#review-workspace .rw-popup-anchor{position:relative;display:flex;align-items:center;min-width:0;}
#review-workspace .rw-bottom-bar .rw-preview-button{
  display:grid;place-items:center;
  padding:0;border:0!important;border-radius:7px;
  width:30px;height:30px;
  background:transparent!important;box-shadow:none!important;
  color:#85828c;
  position:relative;
}
#review-workspace .rw-bottom-bar .rw-preview-button.is-active{
  color:#6f38cc!important;border:0!important;background:transparent!important;
}
#review-workspace .rw-bottom-bar .rw-preview-button.is-active::after{
  content:"";position:absolute;bottom:0;left:9px;right:9px;height:2px;
  border-radius:3px;background:#7b45d5;
}
#review-workspace .rw-device-group,.rw-zoom-group{display:flex;align-items:center;gap:8px;}
#review-workspace .rw-zoom-group{gap:4px;}
#review-workspace .rw-zoom-group>.rw-chrome-icon{font-size:18px;font-weight:550;width:27px;height:29px;}
#review-workspace #rw-zoom-label{font-size:11px;font-weight:700;color:#676470;min-width:38px;}
#review-workspace .rw-bottom-right>.rw-chrome-icon{width:30px;height:30px;}

/* The comparison and version menus slide upward from the unboxed controls. */
#review-workspace .rw-bottom-popup{
  position:absolute;
  bottom:calc(100% + 11px);
  left:-14px;
  width:295px;max-width:min(340px,85vw);
  padding:17px;
  border:1px solid #32343c;
  background:#101114;
  color:#f5f3f8;
  border-radius:14px;
  box-shadow:0 20px 45px #13131f40;
  z-index:100;
  display:grid;gap:10px;
  max-height:min(460px,65dvh);
  overflow-y:auto;
  overscroll-behavior:contain;
  animation:rw-bottom-slide .16s ease-out;
}
#review-workspace .rw-bottom-popup[hidden]{display:none!important;}
@keyframes rw-bottom-slide{from{opacity:0;transform:translateY(11px)}to{opacity:1;transform:translateY(0)}}
#review-workspace .rw-bottom-popup strong{font-size:13px;color:#f7f4fa;line-height:1.3;}
#review-workspace .rw-bottom-popup button{cursor:pointer;}
#review-workspace .rw-bottom-popup button:focus-visible{outline:2px solid #ae91fc;outline-offset:2px;}
#review-workspace .rw-version-menu{width:164px;max-height:min(320px,65dvh);padding:12px;}
#review-workspace #rw-version-options,
#review-workspace .rw-compare-references{display:grid;gap:4px;min-width:0;}
#review-workspace #rw-version-options button,
#review-workspace .rw-compare-references button{
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  text-align:left;min-height:39px;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#b9b8c1;
  font-size:12px;font-weight:600;
}
#review-workspace #rw-version-options button[aria-current="true"],
#review-workspace .rw-compare-references button[aria-pressed="true"]{
  background:#383044;
  color:#d7c1ff;
  border-color:#443a55;
}
#review-workspace .rw-compare-references button:hover,
#review-workspace #rw-version-options button:hover{background:#2a2b32;color:#fff;}
#review-workspace .rw-compare-references button:disabled{opacity:.36;cursor:not-allowed;}
#review-workspace .rw-compare-sheet{width:318px;}
#review-workspace .rw-popup-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
#review-workspace .rw-popup-close{
  width:26px;height:26px;display:grid;place-items:center;
  background:transparent;border:0;color:#b1acb7;border-radius:7px;
}
#review-workspace .rw-popup-close .rw-icon{width:15px;height:15px;}
#review-workspace .rw-popup-close:hover{color:#fff;background:#33313c;}
#review-workspace .rw-compare-references{max-height:193px;overflow-y:auto;scrollbar-width:thin;}
#review-workspace .rw-compare-references button{flex-direction:row;}
#review-workspace .rw-compare-references button span{flex:1;}
#review-workspace .rw-compare-references button small{color:#8f899a;font-size:9px;white-space:normal;max-width:115px;text-align:right;line-height:1.4;}
#review-workspace .rw-compare-layout{display:flex;align-items:center;gap:6px;padding-top:10px;border-top:1px solid #35343b;}
#review-workspace .rw-compare-layout>span{font-size:10px;color:#9794a1;flex:1;}
#review-workspace .rw-compare-layout button{
  border:1px solid transparent;background:transparent;color:#bab5c2;
  padding:8px;border-radius:8px;font-size:10px;font-weight:650;
}
#review-workspace .rw-compare-layout button[aria-pressed="true"]{background:#393046;border-color:#52416d;color:#e3d2ff;}
#review-workspace .rw-compare-opacity{display:flex;align-items:center;gap:9px;font-size:10px;color:#b6afc0;}
#review-workspace .rw-compare-opacity[hidden]{display:none!important;}
#review-workspace .rw-compare-opacity input{flex:1;min-width:0;accent-color:#a785ff;}
#review-workspace .rw-compare-opacity b{font-size:10px;}
#review-workspace .rw-stop-compare{
  background:transparent;border:1px solid #56515e;border-radius:8px;
  padding:9px 12px;color:#beb8c6;font-size:11px;font-weight:600;
}
#review-workspace .rw-stop-compare:hover{background:#36303d;color:#fff;}
#review-workspace .rw-compare-note{margin:0;color:#928e9c;font-size:10px;line-height:1.5;}

/* Unsaved edits confirmation. */
#review-workspace .rw-leave-overlay{
  position:fixed;inset:0;
  z-index:5000;
  display:grid;place-items:center;
  background:#10111483;
  padding:20px;
}
#review-workspace .rw-leave-overlay[hidden]{display:none!important;}
#review-workspace .rw-leave-dialog{
  width:min(410px,100%);
  border-radius:18px;
  border:1px solid #ede8ef;
  background:#faf9f8;color:#272a36;
  box-shadow:0 30px 80px #16112135;
  padding:28px;
}
#review-workspace .rw-leave-symbol{
  display:grid;place-items:center;width:38px;height:38px;
  border-radius:11px;background:#fff0ee;color:#b34f48;margin-bottom:15px;
}
#review-workspace .rw-leave-symbol .rw-icon{width:21px;height:21px;}
#review-workspace .rw-leave-dialog h2{font-size:19px;margin:0 0 9px;}
#review-workspace .rw-leave-dialog p{font-size:12px;line-height:1.6;color:#7e7b85;margin:0 0 22px;}
#review-workspace .rw-leave-actions{display:flex;justify-content:flex-end;gap:10px;}
#review-workspace .rw-leave-actions button{border:1px solid #e1dce6;border-radius:9px;padding:10px 14px;font-size:12px;font-weight:650;background:transparent;color:#6e6976;}
#review-workspace .rw-leave-actions button:last-child{background:#7e43dd;color:#fff;border-color:#7e43dd;}

/* A reviewer may choose Save as PDF in the browser's print dialog. */
@media print{
 @page{margin:12mm;size:auto;}
 body:has(#review-workspace.is-target) .sidebar,
 body:has(#review-workspace.is-target) .mobile-nav,
 #review-workspace .rw-top-actions,
 #review-workspace .rw-demo-preview,
 #review-workspace .rw-top-item-strip,
 #review-workspace .rw-toolbox,
 #review-workspace .rw-vertical-nav,
 #review-workspace .rw-right-panel,
 #review-workspace .rw-bottom-bar,
 #review-workspace .rw-leave-overlay,
 #review-workspace .rw-floating-thread,
 #review-workspace #rw-annotation-layer{display:none!important;}
 body:has(#review-workspace.is-target) .layout,
 body:has(#review-workspace.is-target) .content,
 body:has(#review-workspace.is-target) #review-workspace,
 body:has(#review-workspace.is-target) .rw-shell,
 body:has(#review-workspace.is-target) .rw-canvas-column,
 body:has(#review-workspace.is-target) .rw-canvas-scroll{
  display:block!important;overflow:visible!important;
  height:auto!important;max-height:none!important;
  min-height:0!important;
  width:100%!important;padding:0!important;margin:0!important;
 }
 #review-workspace .rw-topbar{display:flex!important;padding:0 0 16px!important;margin:0 0 16px!important;}
 #review-workspace .rw-proof-wrap{transform:none!important;width:100%!important;}
 #review-workspace .rw-proof{box-shadow:none!important;border:0!important;}
 #review-workspace .rw-canvas-scroll{display:block!important;}
}
@media(max-width:1180px){
 #review-workspace .rw-topbar{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px 21px;}
 #review-workspace .rw-demo-preview{grid-column:1/-1;grid-row:2;justify-content:center;}
 #review-workspace .rw-top-actions{grid-column:2;grid-row:1;}
 #review-workspace .rw-bottom-bar{grid-template-columns:1fr auto 1fr;gap:5px;padding:4px 11px;}
 #review-workspace .rw-bottom-left{gap:15px;}
 #review-workspace .rw-bottom-center{gap:9px;}
}
@media(max-width:780px){
 #review-workspace .rw-topbar{padding:11px 14px;min-height:64px;}
 #review-workspace .rw-project-identity{gap:7px;}
 #review-workspace .rw-top-actions{gap:5px;}
 #review-workspace .rw-demo-preview{gap:7px;}
 #review-workspace .rw-strip-label{min-width:95px;padding:0 17px;}
 #review-workspace .rw-top-item-strip{height:62px;min-height:62px;}
 #review-workspace .rw-top-item-strip .rw-strip-item{min-width:130px;padding:9px 16px;}
 #review-workspace .rw-bottom-bar{display:flex;justify-content:space-between;gap:8px;padding:5px 9px;min-height:54px;height:auto;flex-wrap:wrap;}
 #review-workspace .rw-bottom-left{gap:10px;}
 #review-workspace .rw-bottom-center{gap:9px;}
 #review-workspace .rw-device-group{gap:2px;}
 #review-workspace .rw-zoom-group{gap:1px;}
 #review-workspace .rw-bottom-right{gap:2px;}
 #review-workspace .rw-bottom-bar .rw-chrome-icon{width:26px;height:26px;}
 #review-workspace .rw-bottom-popup{left:0;}
}
@media(max-width:580px){
 #review-workspace .rw-bottom-bar{justify-content:space-between;}
 #review-workspace .rw-bottom-left{order:1;}
 #review-workspace .rw-bottom-center{order:3;width:100%;justify-content:center;border-top:1px solid #eee9ee;padding-top:3px;}
 #review-workspace .rw-bottom-right{order:2;}
 #review-workspace .rw-demo-options button{padding:7px;font-size:11px;}
}
@media(prefers-reduced-motion:reduce){
 #review-workspace .rw-bottom-popup{animation:none;}
 #review-workspace .rw-item-workflow-progress>span{transition:none;}
}

/* Keep the compact bottom bar visible, even when the email subject/preheader row exists. */
@media(min-width:941px){
 body:has(#review-workspace.is-target) #review-workspace.rw-view{
   height:100dvh;min-height:0;overflow:hidden;
 }
 #review-workspace .rw-shell{
   flex:1 1 auto;min-height:0!important;
 }
 #review-workspace .rw-canvas-column{min-height:0;}
 #review-workspace .rw-canvas-scroll{
   flex:1 1 auto;min-height:0!important;
   height:auto!important;max-height:none!important;
 }
 #review-workspace .rw-right-panel{min-height:0;}
 #review-workspace .rw-panel-body{
   min-height:0;max-height:none;overflow-y:auto;
 }
}
@media print{
 body:has(#review-workspace.is-target) #review-workspace.rw-view{
   height:auto!important;min-height:0!important;overflow:visible!important;
 }
}

/* Fix: the shared SVG sprite is outline-only. The review chrome lacked
   the fill:none/stroke inheritance used by the main navigation icons. */
#review-workspace .rw-type-glyph .rw-icon,
#review-workspace .rw-project-identity .rw-chrome-icon .rw-icon,
#review-workspace .rw-top-actions .rw-icon,
#review-workspace .rw-bottom-bar .rw-icon,
#review-workspace .rw-leave-dialog .rw-icon {
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
/* Bring Share and Close closer to the right edge of the header. */
#review-workspace .rw-topbar{padding-right:13px;}
#review-workspace .rw-top-actions{
  justify-self:end;
  margin-left:auto;
  gap:7px;
}

/* Information belongs in the Info tab, not as a separate row above the proof. */
#review-workspace .rw-info-email{
  display:grid;
  gap:12px;
  border-radius:12px;
  background:#f8f5fc;
  padding:16px;
}
#review-workspace .rw-info-email h4{
  margin:0;
  color:#363447;
  font-size:12px;
  font-weight:750;
}
#review-workspace .rw-email-details{
  display:grid;
  gap:8px;
  margin:0;
}
#review-workspace .rw-email-details dt{
  font-size:10px;
  font-weight:650;
  color:#8d8494;
}
#review-workspace .rw-email-details dd{
  margin:0 0 8px;
  font-size:12px;
  font-weight:550;
  line-height:1.55;
  color:#3b3847;
  overflow-wrap:anywhere;
}
/* Review-only sidebar alignment: contents move down while the black rail
   itself remains full-height and fixed in place. */
@media(min-width:701px){
  body:has(#review-workspace.is-target) .layout .sidebar>.brand{
    margin-top:var(--rw-brand-offset, 68px)!important;
  }
  body:has(#review-workspace.is-target) .layout .sidebar::before{
    top:0;
    bottom:0;
    height:100%;
  }
  body:has(#review-workspace.is-target) .layout .sidebar:is(:hover,:focus-within)
  .side-link[aria-current="page"]::after{
    right:-26px!important;
  }
  body:has(#review-workspace.is-target) .layout .sidebar:not(:hover):not(:focus-within)
  .side-link[aria-current="page"]::after{
    right:-12px;
  }
}
@media(max-width:780px){

}
@media print{
  #review-workspace .rw-popup-anchor::before{display:none!important;}
}

/* Connected comparison panel follows the approved mockup's hierarchy. */
#review-workspace .rw-compare-sheet .rw-popup-head{
  margin-bottom:3px;
}
#review-workspace .rw-compare-sheet .rw-popup-title{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-size:15px;
  font-weight:760;
}
#review-workspace .rw-compare-sheet .rw-popup-title .rw-icon{
  display:block;
  width:20px;
  height:20px;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
}
#review-workspace .rw-popup-section-title{
  margin:9px 0 3px;
  color:#f7f5fb;
  font-size:12px;
  font-weight:700;
}
#review-workspace .rw-compare-references{
  max-height:min(220px,36dvh);
  gap:3px;
}
#review-workspace .rw-compare-references .rw-reference-design{
  min-height:45px;
  padding:11px 12px;
  margin-bottom:5px;
  background:#312a3d;
  color:#e7d7ff;
  border:1px solid #59496e;
  border-radius:10px;
  font-size:12px;
  font-weight:700;
}
#review-workspace .rw-compare-references .rw-reference-design:hover{
  background:#40364e;
}
#review-workspace .rw-compare-references .rw-reference-design>.rw-icon{
  display:block;
  width:14px;
  height:14px;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
  flex:none;
}
#review-workspace .rw-compare-references .rw-reference-version{
  gap:12px;
  min-height:39px;
  padding:7px 6px;
  border-radius:6px;
  color:#eeeaf3;
  font-size:12px;
  font-weight:600;
  background:transparent;
}
#review-workspace .rw-compare-references .rw-reference-version[aria-pressed="true"]{
  background:transparent;
  border-color:transparent;
  color:#f7edff;
}
#review-workspace .rw-reference-version .rw-reference-radio{
  flex:none;
  width:16px;
  height:16px;
  border-radius:50%;
  border:1.5px solid #a8a5b1;
  background:transparent;
}
#review-workspace .rw-reference-version[aria-pressed="true"] .rw-reference-radio{
  border-color:#bb91ff;
  background:radial-gradient(circle, #bc99fb 0 43%, transparent 47% 100%);
}
#review-workspace .rw-compare-references .rw-reference-version small{
  flex:1;
  text-align:right;
  max-width:none;
  font-size:9px;
  color:#a19ba8;
}
#review-workspace .rw-compare-references .rw-reference-version:disabled{
  opacity:.58;
}
#review-workspace .rw-compare-references .rw-reference-version:disabled small{
  display:inline-flex;
  justify-content:flex-end;
  color:#c5adc9;
  opacity:1;
}
#review-workspace .rw-compare-layout{
  gap:9px;
}
#review-workspace .rw-compare-layout>span{
  min-width:35px;
  font-size:11px;
  color:#d7d1db;
}
#review-workspace .rw-compare-layout button{
  display:flex;align-items:center;gap:7px;
  padding:6px 2px;
  font-size:10px;
  color:#d5d0dc;
}
#review-workspace .rw-compare-layout button::before{
  content:"";
  width:14px;height:14px;
  border:1.5px solid #92919d;
  border-radius:50%;
  flex:none;
}
#review-workspace .rw-compare-layout button[aria-pressed="true"]{
  background:transparent;
  border-color:transparent;
  color:#fff;
}
#review-workspace .rw-compare-layout button[aria-pressed="true"]::before{
  border-color:#b38bf6;
  background:radial-gradient(circle,#c6a6ff 0 43%,transparent 47% 100%);
}

/* Batch 08 polish: restrained attached controls, brand purple tools, review-only logo alignment. */
#review-workspace .rw-tool.is-active{
  background:#7442df!important;
  color:#fff!important;
  box-shadow:0 3px 9px #7641d52a!important;
}
@media(min-width:701px){

}
/* Navigation item alignment is shared between page, version and asset tabs. */
#review-workspace .rw-top-item-strip .rw-strip-item{align-items:center!important;}
#review-workspace .rw-strip-item-name{text-align:center;width:100%;}

/* Connected review controls: one predictable layout instead of layered scoops. */
#review-workspace .rw-bottom-bar,
#review-workspace .rw-popup-anchor{overflow:visible;}
#review-workspace .rw-popup-anchor:has(>.rw-bottom-popup:not([hidden])){
  position:relative;
  isolation:isolate;
  align-self:center;
  z-index:120;
  margin:0;
}
#review-workspace .rw-popup-anchor:has(>.rw-bottom-popup:not([hidden]))>.rw-chrome-text{
  position:relative;
  z-index:121;
  align-self:center;
  min-height:36px;
  margin:0;
  padding:0 12px;
  background:#101114!important;
  color:#e8d4ff!important;
  border-radius:0 0 9px 9px;
}
#review-workspace .rw-popup-anchor .rw-bottom-popup{
  position:absolute;
  left:0!important;
  bottom:calc(100% - 1px)!important;
  z-index:120;
  border-bottom-color:#101114;
  border-radius:14px 14px 12px 0;
  box-shadow:0 12px 32px #10111422!important;
}
#review-workspace .rw-version-anchor .rw-version-menu{left:0!important;}
#review-workspace .rw-popup-anchor:has(>.rw-bottom-popup:not([hidden]))::before,
#review-workspace .rw-popup-anchor:has(>.rw-bottom-popup:not([hidden]))::after{
  content:none!important;
}
#review-workspace .rw-bottom-bar .rw-popup-anchor>.rw-chrome-text:hover{color:#8a54dd;}
/* Each stage is a distinct, high-contrast segment. */
#review-workspace .rw-item-workflow-progress{
  display:flex!important;
  width:128px!important;
  height:5px!important;
  gap:8px!important;
  flex:none;
  overflow:visible!important;
  background:transparent!important;
}
#review-workspace .rw-item-workflow-progress>.rw-stage-segment{
  display:block!important;
  flex:1 1 0!important;
  min-width:0!important;
  height:5px!important;
  border-radius:4px!important;
  background:#858892!important;
}
#review-workspace .rw-item-workflow-progress>.rw-stage-segment.is-complete{background:#59c995!important;}
#review-workspace .rw-item-workflow-progress>.rw-stage-segment.is-current{background:#aa7cf6!important;}
#review-workspace .rw-item-workflow-progress>.rw-stage-segment.is-revision{background:#aa7cf6!important;}
