/* Review polish: full-width proof navigation and an inset email metadata card.
   All overrides live here to avoid reopening the original review layout. */
@media (min-width:941px) {
  body:has(#review-workspace.is-target) { overflow:hidden; }
  #review-workspace.rw-view { height:100dvh; min-height:0; overflow:hidden; }
  #review-workspace .rw-shell { flex:1 1 auto; min-height:0!important; column-gap:0; }
  #review-workspace .rw-canvas-column { min-height:0; }
}

/* The dark Pages / Versions / Assets navigation spans the ENTIRE review workspace. */
#review-workspace > #rw-item-strip {
  display:flex!important;
  width:100%;
  min-height:69px;
  height:69px;
  flex:0 0 69px;
  margin:0!important;
  padding:0!important;
  background:#101114!important;
  overflow:hidden;
}
#review-workspace #rw-strip-items {
  display:flex;
  align-items:stretch;
  min-width:0;
  flex:1;
  gap:0;
  padding:0 11px;
  overflow-x:auto;
  scrollbar-width:none;
}
#review-workspace #rw-strip-items::-webkit-scrollbar { display:none; }
#review-workspace .rw-strip-label {
  min-width:118px;
  padding:0 22px;
  font-size:12px;
  font-weight:740;
}
#review-workspace .rw-strip-unit {
  display:flex;
  flex:0 0 166px;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  position:relative;
  min-width:0;
  max-width:236px;
  height:100%;
  padding:9px 14px 12px;
}
#review-workspace .rw-strip-unit.is-current { flex-basis:196px; }
#review-workspace .rw-strip-title-row {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:5px;
  width:100%;
  min-width:0;
  min-height:25px;
}
#review-workspace .rw-top-item-strip .rw-strip-unit .rw-strip-item {
  display:inline-flex!important;
  flex:0 1 auto;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-width:0!important;
  max-width:100%;
  width:auto!important;
  min-height:0!important;
  height:auto;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#b9bac4!important;
  text-align:left!important;
}
#review-workspace .rw-strip-unit .rw-strip-item-name {
  display:block;
  width:auto!important;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:620;
  line-height:1.25;
  text-align:left!important;
}
#review-workspace .rw-strip-unit.is-current .rw-strip-item {
  color:#fff!important;
}
#review-workspace .rw-strip-unit.is-current .rw-strip-item-name {
  font-size:14px;
  font-weight:780;
}
#review-workspace .rw-strip-unit .rw-strip-item:hover {
  color:#fff!important;
}
#review-workspace .rw-strip-unit .rw-item-workflow-progress {
  display:flex;
  flex:none;
  align-self:flex-start;
  width:110px;
  margin:8px 0 0;
}
#review-workspace .rw-strip-unit .rw-strip-rename {
  display:grid;
  flex:none;
  place-items:center;
  position:static!important;
  inset:auto!important;
  width:22px;
  height:22px;
  margin:0;
  padding:3px!important;
  border:0!important;
  border-radius:5px;
  background:transparent!important;
  box-shadow:none!important;
  color:#d4c7e9!important;
  cursor:pointer;
  appearance:none;
}
#review-workspace .rw-strip-unit .rw-strip-rename svg {
  display:block;
  width:15px;
  height:15px;
  stroke:currentColor;
  fill:none;
}
#review-workspace .rw-strip-unit .rw-strip-rename:hover {
  background:#33323b!important;
  color:#fff!important;
}
#review-workspace .rw-strip-unit .rw-strip-item[aria-current="true"]::after {
  content:none!important;
}
#review-workspace .rw-strip-unit.is-current::after {
  content:"";
  position:absolute;
  left:14px;
  bottom:0;
  width:37px;
  height:3px;
  border-radius:3px 3px 0 0;
  background:#fff;
}

/* Subject line and preheader are constrained to the same width as the proof. */
#review-workspace .rw-proof-wrap > .rw-email-meta-bar {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  width:100%;
  min-width:0;
  gap:18px;
  margin:0 0 15px;
  padding:13px 16px;
  border:1px solid #e7e3e8;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 13px #2217290c;
  color:#464451;
}
#review-workspace .rw-proof-wrap > .rw-email-meta-bar[hidden] {
  display:none!important;
}
#review-workspace .rw-proof-wrap.rw-compare-side > .rw-email-meta-bar {
  grid-column:1 / -1;
}
#review-workspace .rw-email-meta-field {
  display:flex;
  flex:1 1 0;
  align-items:center;
  gap:9px;
  min-width:0;
}
#review-workspace .rw-email-meta-label {
  display:inline-flex;
  flex:none;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  color:#7a4fbc;
}
#review-workspace .rw-email-meta-label strong {
  font-size:10px;
  font-weight:760;
  letter-spacing:.055em;
}
#review-workspace .rw-email-meta-label .rw-icon {
  width:15px;
  height:15px;
}
#review-workspace .rw-email-meta-field > span {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  line-height:1.4;
}

/* Keep scrolling functional without the permanent chunky gray scrollbar/gutter. */
#review-workspace .rw-canvas-scroll {
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:none;
  scrollbar-gutter:auto;
  -ms-overflow-style:none;
  box-sizing:border-box;
  padding-right:clamp(12px,1.5vw,20px);
}
#review-workspace .rw-canvas-scroll::-webkit-scrollbar {
  width:0;
  height:0;
}
#review-workspace .rw-canvas-scroll:hover,
#review-workspace .rw-canvas-scroll:focus-within {
  scrollbar-width:thin;
  scrollbar-color:#a39eac transparent;
}
#review-workspace .rw-canvas-scroll:hover::-webkit-scrollbar,
#review-workspace .rw-canvas-scroll:focus-within::-webkit-scrollbar {
  width:5px;
}
#review-workspace .rw-canvas-scroll::-webkit-scrollbar-track {
  background:transparent;
}
#review-workspace .rw-canvas-scroll::-webkit-scrollbar-thumb {
  background:#aaa4b0;
  border-radius:10px;
}
/* Remove any extra grid gap before the black right-hand tools. */
#review-workspace .rw-shell > .rw-vertical-nav {
  margin-left:0!important;
}

/* Project Details: keep the selected proof open without a gray highlight. */
#review-workspace .rws-version-list { padding-top:13px; }
#review-workspace .rws-list-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 0 12px;
}
#review-workspace .rws-list-header h3 {
  margin:0;
  font-size:14px;
  line-height:1.3;
  font-weight:750;
  color:#34313b;
}
#review-workspace .rws-list-header .rws-add-version {
  display:grid;
  flex:none;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  margin:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#703bcf;
  cursor:pointer;
}
#review-workspace .rws-list-header .rws-add-version:hover {
  background:#eee7f9;
}
#review-workspace .rws-list-header .rws-add-version .rws-icon {
  width:20px;
  height:20px;
}
#review-workspace .rws-item-main .rws-proof-name {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:5px;
  min-width:0;
}
#review-workspace .rws-item-main .rws-proof-name strong {
  flex:0 1 auto!important;
  width:auto;
  min-width:0;
}
#review-workspace .rws-item-main .rws-rename-proof {
  flex:none;
  position:static;
  width:22px;
  height:22px;
  margin:0;
  color:#92909a;
}
#review-workspace .rws-current-item > summary {
  background:transparent!important;
  box-shadow:none!important;
}
#review-workspace .rws-current-item .rws-item-main strong {
  color:#6032bb;
}
@media(max-width:780px) {
  #review-workspace > #rw-item-strip {
    min-height:62px;
    height:62px;
    flex-basis:62px;
  }
  #review-workspace .rw-strip-label {
    min-width:95px;
    padding:0 14px;
  }
  #review-workspace .rw-strip-unit { flex-basis:153px; padding-inline:11px; }
  #review-workspace .rw-strip-unit.is-current { flex-basis:178px; }
}
@media(max-width:700px) {
  #review-workspace .rw-proof-wrap > .rw-email-meta-bar {
    flex-direction:column;
    align-items:stretch;
    gap:9px;
    padding:11px 13px;
  }
  #review-workspace .rw-email-meta-field { width:100%; }
  #review-workspace .rw-email-meta-field > span { flex:1; }
}


/* Explicit stroke-only icons: avoid solid-square SVG inheritance on the metadata labels. */
#review-workspace .rw-email-meta-label > svg.rw-icon {
  display:block;flex:none;width:15px;height:15px;
  fill:none!important;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
